lantiq: dts: move memory node to board dts
[openwrt/staging/blogic.git] / target / linux / lantiq / files / arch / mips / boot / dts / ARV8539PW22.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv8539pw22", "lantiq,xway", "lantiq,danube";
9 model = "Speedport W 504V Typ A";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_green;
17 led-failsafe = &power_red;
18 led-running = &power_green;
19 led-upgrade = &power_green;
20
21 led-dsl = &dsl_green;
22 led-internet = &online_green;
23 led-wifi = &wireless_green;
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 wlan {
38 label = "wlan";
39 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 };
42 reset {
43 label = "reset";
44 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
46 };
47 /* key DECT is missing */
48 };
49
50 gpio-leds {
51 compatible = "gpio-leds";
52
53 power_green: power-green {
54 label = "arv8539pw22:green:power";
55 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
56 default-state = "keep";
57 };
58 power_red: power-red {
59 label = "arv8539pw22:red:power";
60 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
61 };
62
63 dsl_green: dsl-green {
64 label = "arv8539pw22:green:dsl";
65 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
66 };
67
68 online_green: online-green {
69 label = "arv8539pw22:green:online";
70 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
71 };
72
73 wireless_green: wireless-green {
74 label = "arv8539pw22:green:wlan";
75 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
76 };
77 /*
78 telefonie green is missing
79 */
80 };
81
82 usb_vbus: regulator-usb-vbus {
83 compatible = "regulator-fixed";
84
85 regulator-name = "USB_VBUS";
86
87 regulator-min-microvolt = <5000000>;
88 regulator-max-microvolt = <5000000>;
89
90 gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
91 enable-active-high;
92 };
93 };
94
95 &gpio {
96 pinctrl-names = "default";
97 pinctrl-0 = <&state_default>;
98
99 state_default: pinmux {
100 pci_in {
101 lantiq,groups = "req1";
102 lantiq,function = "pci";
103 lantiq,open-drain = <1>;
104 lantiq,pull = <2>;
105 lantiq,output = <0>;
106 };
107 pci_out {
108 lantiq,groups = "gnt1";
109 lantiq,function = "pci";
110 lantiq,output = <1>;
111 };
112 pci_rst {
113 lantiq,pins = "io21";
114 lantiq,pull = <2>;
115 lantiq,output = <1>;
116 };
117 relay {
118 lantiq,pins = "io31";
119 lantiq,output = <1>;
120 };
121 };
122 };
123
124 &gsw {
125 phy-mode = "mii";
126 mtd-mac-address = <&art 0x16>;
127 };
128
129 &localbus {
130 nor@0 {
131 compatible = "lantiq,nor";
132 bank-width = <2>;
133 reg = <0 0x0 0x800000>;
134 #address-cells = <1>;
135 #size-cells = <1>;
136
137 partitions {
138 compatible = "fixed-partitions";
139 #address-cells = <1>;
140 #size-cells = <1>;
141
142 partition@0 {
143 label = "uboot";
144 reg = <0x00000 0x30000>; /* 192 KiB */
145 read-only;
146 };
147
148 partition@30000 {
149 label = "uboot";
150 reg = <0x30000 0x10000>; /* 64 KiB */
151 read-only;
152 };
153
154 partition@40000 {
155 label = "firmware";
156 reg = <0x40000 0x7B0000>; /* 7872 KiB */
157 };
158
159 art: partition@7F0000 {
160 label = "art";
161 reg = <0x7F0000 0x10000>; /* 64 KiB*/
162 read-only;
163 };
164 };
165 };
166 };
167
168 &pci0 {
169 status = "okay";
170 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
171
172 wifi@168c,0029 {
173 compatible = "pci168c,0029";
174 reg = <0x7000 0 0 0 0>;
175 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
176 mtd-mac-address = <&art 0x16>;
177 mtd-mac-address-increment = <1>;
178 };
179 };
180
181 &usb_phy {
182 status = "okay";
183 };
184
185 &usb {
186 status = "okay";
187 vbus-supply = <&usb_vbus>;
188 };
189
190 &vmmc {
191 status = "okay";
192 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
193 };