lantiq: dts: move memory node to board dts
[openwrt/staging/rmilecki.git] / target / linux / lantiq / files / arch / mips / boot / dts / ARV4518PWR01.dtsi
1 #include "danube.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 chosen {
7 bootargs = "console=ttyLTQ0,115200";
8 };
9
10 aliases {
11 led-boot = &power;
12 led-failsafe = &power;
13 led-running = &power;
14 led-upgrade = &power;
15
16 led-dsl = &dsl;
17 led-internet = &online;
18 led-usb = &led_usb;
19 led-wifi = &wifi;
20 };
21
22 memory@0 {
23 device_type = "memory";
24 reg = <0x0 0x4000000>;
25 };
26
27 ath5k_eep {
28 compatible = "ath5k,eeprom";
29 ath,eep-flash = <&boardconfig 0x400>;
30 ath,mac-offset = <0x16>;
31 ath,mac-increment = <1>;
32 ath,eep-swap;
33 };
34
35 gpio-keys-polled {
36 compatible = "gpio-keys-polled";
37 #address-cells = <1>;
38 #size-cells = <0>;
39 poll-interval = <100>;
40
41 rfkill {
42 label = "rfkill";
43 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RFKILL>;
45 };
46 reset {
47 label = "reset";
48 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
50 };
51 };
52
53 gpio-leds {
54 compatible = "gpio-leds";
55 power: power {
56 label = "power";
57 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
58 default-state = "keep";
59 };
60 dsl: dsl {
61 label = "dsl";
62 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
63 };
64 online: online {
65 label = "online";
66 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
67 };
68 wifi: wifi {
69 label = "wifi";
70 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
71 };
72 wps {
73 label = "wps";
74 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
75 };
76 dsl2 {
77 label = "dsl2";
78 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
79 };
80 led_usb: usb {
81 label = "usb";
82 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
83 };
84 voice {
85 label = "voice";
86 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
87 };
88 fxs1 {
89 label = "fxs1";
90 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
91 };
92 fxs2 {
93 label = "fxs2";
94 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
95 };
96 fxo {
97 label = "fxo";
98 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
99 };
100 };
101
102 usb_vbus: regulator-usb-vbus {
103 compatible = "regulator-fixed";
104
105 regulator-name = "USB_VBUS";
106
107 regulator-min-microvolt = <5000000>;
108 regulator-max-microvolt = <5000000>;
109
110 gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
111 enable-active-high;
112 };
113 };
114
115 &gpio {
116 pinctrl-names = "default";
117 pinctrl-0 = <&state_default>;
118
119 state_default: pinmux {
120 ebu {
121 lantiq,groups = "ebu cs1";
122 lantiq,function = "ebu";
123 };
124 pci_in {
125 lantiq,groups = "req1", "req2";
126 lantiq,function = "pci";
127 lantiq,open-drain = <1>;
128 lantiq,pull = <2>;
129 lantiq,output = <0>;
130 };
131 pci_out {
132 lantiq,groups = "gnt1", "gnt2";
133 lantiq,function = "pci";
134 lantiq,pull = <0>;
135 lantiq,output = <1>;
136 };
137 };
138 };
139
140 &gpiomm {
141 status = "okay";
142 lantiq,shadow = <0x0>;
143 };
144
145 &gsw {
146 phy-mode = "mii";
147 mtd-mac-address = <&boardconfig 0x16>;
148 };
149
150 &localbus {
151 nor@0 {
152 compatible = "lantiq,nor";
153 bank-width = <2>;
154 reg = <0 0x0 0x2000000>;
155 #address-cells = <1>;
156 #size-cells = <1>;
157
158 partitions {
159 compatible = "fixed-partitions";
160 #address-cells = <1>;
161 #size-cells = <1>;
162
163 partition@0 {
164 label = "uboot";
165 reg = <0x00000 0x10000>; /* 64 KB */
166 read-only;
167 };
168
169 partition@10000 {
170 label = "uboot_env";
171 reg = <0x10000 0x10000>; /* 64 KB */
172 read-only;
173 };
174
175 partition@20000 {
176 label = "firmware";
177 reg = <0x20000 0x3d0000>;
178 };
179
180 boardconfig: partition@400000 {
181 label = "boardconfig";
182 reg = <0x3f0000 0x10000>;
183 read-only;
184 };
185 };
186 };
187 };
188
189 &pci0 {
190 status = "okay";
191 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
192 req-mask = <0xf>;
193 };
194
195 &usb_phy {
196 status = "okay";
197 };
198
199 &usb {
200 status = "okay";
201 vbus-supply = <&usb_vbus>;
202 };
203
204 &vmmc {
205 status = "okay";
206 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
207 };