lantiq: dts: move memory node to board dts
[openwrt/staging/blogic.git] / target / linux / lantiq / files / arch / mips / boot / dts / ARV7510PW22.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv7510pw22", "lantiq,xway", "lantiq,danube";
9 model = "Astoria Networks ARV7510PW22";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power;
17 led-failsafe = &power;
18 led-running = &power;
19 led-upgrade = &power;
20
21 led-dsl = &internet;
22 led-usb = &umts;
23 led-wifi = &wlan;
24 };
25
26 memory@0 {
27 device_type = "memory";
28 reg = <0x0 0x4000000>;
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
35 poll-interval = <100>;
36
37 rfkill {
38 label = "rfkill";
39 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RFKILL>;
41 };
42 restart {
43 label = "restart";
44 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_POWER>;
46 };
47 reset {
48 label = "reset";
49 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
51 };
52 };
53
54 gpio-leds {
55 compatible = "gpio-leds";
56 power: power {
57 label = "power";
58 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
59 default-state = "keep";
60 };
61 internet: internet {
62 label = "internet";
63 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
64 };
65 wlan: wlan {
66 label = "wlan";
67 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
68 };
69 umts: 3g {
70 label = "3g";
71 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
72 };
73 message {
74 label = "message";
75 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
76 };
77 };
78 };
79
80 &gpio {
81 pinctrl-names = "default";
82 pinctrl-0 = <&state_default>;
83
84 state_default: pinmux {
85 exin {
86 lantiq,groups = "exin1";
87 lantiq,function = "exin";
88 lantiq,pull = <2>;
89 lantiq,output = <0>;
90 };
91 pci_in {
92 lantiq,groups = "req1", "req2";
93 lantiq,function = "pci";
94 lantiq,open-drain = <1>;
95 lantiq,pull = <2>;
96 lantiq,output = <0>;
97 };
98 pci_out {
99 lantiq,groups = "gnt1";
100 lantiq,function = "pci";
101 lantiq,output = <1>;
102 };
103 pci_rst {
104 lantiq,pins = "io21";
105 lantiq,pull = <2>;
106 lantiq,output = <1>;
107 };
108 pins_out {
109 lantiq,pins = "io2", "io4", "io8", "io9", "io10", "io15", "io20";
110 lantiq,output = <1>;
111 };
112 pins_in {
113 lantiq,pins = "io11", "io12", "io28";
114 lantiq,open-drain = <1>;
115 lantiq,pull = <2>;
116 lantiq,output = <0>;
117 };
118 };
119
120 usb_vbus: regulator-usb-vbus {
121 compatible = "regulator-fixed";
122
123 regulator-name = "USB_VBUS";
124
125 regulator-min-microvolt = <5000000>;
126 regulator-max-microvolt = <5000000>;
127
128 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
129 enable-active-high;
130 };
131 };
132
133 &gsw {
134 /* Switch reset 19 */
135 phy-mode = "mii";
136 mtd-mac-address = <&boardconfig 0x16>;
137 };
138
139 &localbus {
140 nor@0 {
141 compatible = "lantiq,nor";
142 bank-width = <2>;
143 reg = <0 0x0 0x1000000>;
144 #address-cells = <1>;
145 #size-cells = <1>;
146
147 partitions {
148 compatible = "fixed-partitions";
149 #address-cells = <1>;
150 #size-cells = <1>;
151
152 partition@0 {
153 label = "uboot";
154 reg = <0x00000 0x40000>;
155 read-only;
156 };
157
158 partition@40000 {
159 label = "uboot_env";
160 reg = <0x40000 0x20000>;
161 read-only;
162 };
163
164 partition@60000 {
165 label = "firmware";
166 reg = <0x60000 0xf80000>;
167 };
168
169 boardconfig: partition@fe0000 {
170 label = "board_config";
171 reg = <0xfe0000 0x20000>;
172 read-only;
173 };
174 };
175 };
176 };
177
178 &pci0 {
179 status = "okay";
180 lantiq,external-clock;
181 interrupt-map = <
182 0x7000 0 0 1 &icu0 30
183 0x7800 0 0 1 &icu0 135
184 0x7800 0 0 2 &icu0 135
185 0x7800 0 0 3 &icu0 135
186 >;
187 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
188 req-mask = <0x3>;
189
190 wifi@1814,3592 {
191 compatible = "pci1814,3592";
192 reg = <0x7000 0 0 0 0>;
193 ralink,mtd-eeprom = <&boardconfig 0x410>;
194 ralink,mtd-eeprom-swap;
195 };
196 };
197
198 &usb_phy {
199 status = "okay";
200 };
201
202 &usb {
203 status = "okay";
204 vbus-supply = <&usb_vbus>;
205 };
206
207 &vmmc {
208 status = "okay";
209 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
210 };