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