lantiq: dts: drop superfluous address and size cells
[openwrt/staging/dedeckeh.git] / target / linux / lantiq / files / arch / mips / boot / dts / ARV4525PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv4525pw", "lantiq,xway", "lantiq,danube";
9 model = "Speedport W501V Typ A";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 /* we dont have a power led, lets use the online led */
17 led-boot = &online;
18 led-failsafe = &online;
19
20 led-dsl = &dsl;
21 led-internet = &online;
22 led-wifi = &wifi;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x2000000>;
28 };
29
30 ath5k_eep {
31 compatible = "ath5k,eeprom";
32 ath,eep-flash = <&boardconfig 0x400>;
33 ath,mac-offset = <0x0>;
34 ath,eep-swap;
35 };
36
37 gpio-keys-polled {
38 compatible = "gpio-keys-polled";
39 poll-interval = <100>;
40
41 wps {
42 label = "wps";
43 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_WPS_BUTTON>;
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 fxo {
56 label = "arv4525pw:green:festnetz";
57 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
58 };
59 fxs {
60 label = "arv4525pw:green:internet";
61 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
62 };
63 dsl: dsl {
64 label = "arv4525pw:green:t-dsl";
65 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
66 };
67 wifi: wifi {
68 label = "arv4525pw:green:wlan";
69 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
70 };
71 online: online {
72 label = "arv4525pw:green:online";
73 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
74 };
75 };
76 };
77
78 &gpio {
79 pinctrl-names = "default";
80 pinctrl-0 = <&state_default>;
81
82 state_default: pinmux {
83 pci_in {
84 lantiq,groups = "req1";
85 lantiq,function = "pci";
86 lantiq,open-drain = <1>;
87 lantiq,pull = <2>;
88 lantiq,output = <0>;
89 };
90 pci_out {
91 lantiq,groups = "gnt1";
92 lantiq,function = "pci";
93 lantiq,output = <1>;
94 };
95 pci_rst {
96 lantiq,pins = "io21";
97 lantiq,pull = <2>;
98 lantiq,output = <1>;
99 };
100 relay {
101 lantiq,pins = "io31";
102 lantiq,output = <1>;
103 };
104 };
105 };
106
107 /* #define ARV4525PW_PHYRESET 13 */
108 &gsw {
109 phy-mode = "mii";
110 mtd-mac-address = <&boardconfig 0x16>;
111 };
112
113 &localbus {
114 nor@0 {
115 compatible = "lantiq,nor";
116 bank-width = <2>;
117 reg = <0 0x0 0x2000000>;
118
119 partitions {
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 partition@0 {
125 label = "uboot";
126 reg = <0x00000 0x10000>;
127 read-only;
128 };
129
130 partition@10000 {
131 label = "uboot_env";
132 reg = <0x10000 0x10000>;
133 read-only;
134 };
135
136 partition@20000 {
137 label = "firmware";
138 reg = <0x20000 0x3d0000>;
139 };
140
141 boardconfig: partition@400000 {
142 label = "boardconfig";
143 reg = <0x3f0000 0x10000>;
144 read-only;
145 };
146 };
147 };
148 };
149
150 &pci0 {
151 status = "okay";
152 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
153 };
154
155 /* #define ARV4525PW_RELAY 31 */
156 &vmmc {
157 status = "okay";
158 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
159 };