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