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