6b8e772560447189ed9f29440f71b8971cef1fd6
[oweals/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / ACMP252.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 / {
6         compatible = "audiocodes,mp-252", "lantiq,xway", "lantiq,danube";
7         model = "AudioCodes MediaPack MP-252";
8
9         chosen {
10                 bootargs = "console=ttyLTQ0,115200";
11         };
12
13         memory@0 {
14                 device_type = "memory";
15                 reg = <0x0 0x4000000>;
16         };
17
18         usb_vbus: regulator-usb-vbus {
19                 compatible = "regulator-fixed";
20
21                 regulator-name = "USB_VBUS";
22
23                 regulator-min-microvolt = <5000000>;
24                 regulator-max-microvolt = <5000000>;
25
26                 gpio = <&gpio 3 GPIO_ACTIVE_HIGH>;
27                 enable-active-high;
28         };
29 };
30
31 &gpio {
32         pinctrl-names = "default";
33         pinctrl-0 = <&state_default>;
34
35         state_default: pinmux {
36                 exin {
37                         lantiq,groups = "exin1";
38                         lantiq,function = "exin";
39                 };
40                 pci {
41                         lantiq,groups = "gnt1", "req1";
42                         lantiq,function = "pci";
43                 };
44         };
45 };
46
47 &gsw {
48         phy-mode = "rmii";
49 };
50
51 &localbus {
52         nor@0 {
53                 compatible = "lantiq,nor";
54                 bank-width = <2>;
55                 reg = <0 0x0 0x2000000>;
56
57                 partitions {
58                         compatible = "fixed-partitions";
59                         #address-cells = <1>;
60                         #size-cells = <1>;
61
62                         partition@0 {
63                                 label = "uboot";
64                                 reg = <0x0 0x20000>;
65                                 read-only;
66                         };
67
68                         partition@20000 {
69                                 label = "uboot_env";
70                                 reg = <0x20000 0x20000>;
71                         };
72
73                         partition@40000 {
74                                 label = "boardconfig";
75                                 reg = <0x40000 0x60000>;
76                                 read-only;
77                         };
78
79                         partition@a0000 {
80                                 label = "firmware";
81                                 reg = <0xa0000 0xf20000>;
82                         };
83
84                         partition@fc0000 {
85                                 label = "sysconfig";
86                                 reg = <0xfc0000 0x40000>;
87                         };
88
89                         partition@1000000 {
90                                 label = "rootfs_data";
91                                 reg = <0x1000000 0x1000000>;
92                         };
93                 };
94         };
95 };
96
97 &pci0 {
98         status = "okay";
99 };
100
101 &usb_phy {
102         status = "okay";
103 };
104
105 &usb {
106         status = "okay";
107         vbus-supply = <&usb_vbus>;
108 };
109
110 &vmmc {
111         status = "okay";
112         gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
113 };