lantiq: add support for indicating the boot state using three leds
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV4525PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV4525PW - Speedport W501V Typ A";
7
8 chosen {
9 leds {
10 /* we dont have a power led, lets use the online led */
11 boot = &online;
12 failsafe = &online;
13
14 dsl = &dsl;
15 internet = &online;
16 wifi = &wifi;
17 };
18 };
19
20 memory@0 {
21 reg = <0x0 0x2000000>;
22 };
23
24 sram@1F000000 {
25 vmmc@107000 {
26 status = "okay";
27 gpios = <&gpio 31 0>;
28 };
29 };
30
31 fpi@10000000 {
32 localbus@0 {
33 nor-boot@0 {
34 compatible = "lantiq,nor";
35 bank-width = <2>;
36 reg = <0 0x0 0x2000000>;
37 #address-cells = <1>;
38 #size-cells = <1>;
39
40 partition@0 {
41 label = "uboot";
42 reg = <0x00000 0x10000>;
43 read-only;
44 };
45
46 partition@10000 {
47 label = "uboot_env";
48 reg = <0x10000 0x10000>;
49 read-only;
50 };
51
52 partition@20000 {
53 label = "firmware";
54 reg = <0x20000 0x3d0000>;
55 };
56
57 partition@400000 {
58 label = "boardconfig";
59 reg = <0x3f0000 0x10000>;
60 read-only;
61 };
62 };
63
64 mac_addr {
65 compatible = "lantiq,eth-mac";
66 reg = <0 0x3f0016 0x6>;
67 mac-increment = <2>;
68 };
69
70 ath5k_eep {
71 compatible = "ath5k,eeprom";
72 reg = <0 0x3f0400 0x1000>;
73 ath,mac-offset = <0>;
74 ath,eep-swap;
75 };
76 };
77
78 gpio: pinmux@E100B10 {
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 etop@E180000 {
108 phy-mode = "mii";
109 };
110
111 pci@E105400 {
112 status = "okay";
113 gpio-reset = <&gpio 21 0>;
114 };
115
116 };
117
118 /*
119 #define ARV4525PW_PHYRESET 13
120 #define ARV4525PW_RELAY 31
121 */
122
123 gpio-keys-polled {
124 compatible = "gpio-keys-polled";
125 #address-cells = <1>;
126 #size-cells = <0>;
127 poll-interval = <100>;
128
129 wps {
130 label = "wps";
131 gpios = <&gpio 29 1>;
132 linux,code = <0x211>;
133 };
134 reset {
135 label = "reset";
136 gpios = <&gpio 30 1>;
137 linux,code = <0x198>;
138 };
139 };
140
141 gpio-leds {
142 compatible = "gpio-leds";
143 fxo {
144 label = "fxo";
145 gpios = <&gpio 4 1>;
146 };
147 fxs {
148 label = "fxs";
149 gpios = <&gpio 5 1>;
150 };
151 dsl: dsl {
152 label = "dsl";
153 gpios = <&gpio 6 1>;
154 };
155 wifi: wifi {
156 label = "wifi";
157 gpios = <&gpio 8 1>;
158 };
159 online: online {
160 label = "online";
161 gpios = <&gpio 9 1>;
162 };
163 };
164 };