lantiq: use aliases device tree node for leds
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV4518PWR01.dtsi
1 /include/ "danube.dtsi"
2
3 / {
4 chosen {
5 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
6 };
7
8 aliases {
9 led-boot = &power;
10 led-failsafe = &power;
11 led-running = &power;
12
13 led-dsl = &dsl;
14 led-internet = &online;
15 led-usb = &usb;
16 led-wifi = &wifi;
17 };
18
19 memory@0 {
20 reg = <0x0 0x4000000>;
21 };
22
23 sram@1F000000 {
24 vmmc@107000 {
25 status = "okay";
26 gpios = <&gpio 31 0>;
27 };
28 };
29
30 fpi@10000000 {
31 localbus@0 {
32 nor-boot@0 {
33 compatible = "lantiq,nor";
34 bank-width = <2>;
35 reg = <0 0x0 0x2000000>;
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "uboot";
46 reg = <0x00000 0x10000>; /* 64 KB */
47 read-only;
48 };
49
50 partition@10000 {
51 label = "uboot_env";
52 reg = <0x10000 0x10000>; /* 64 KB */
53 read-only;
54 };
55
56 partition@20000 {
57 label = "firmware";
58 reg = <0x20000 0x3d0000>;
59 };
60
61 boardconfig: partition@400000 {
62 label = "boardconfig";
63 reg = <0x3f0000 0x10000>;
64 read-only;
65 };
66 };
67 };
68
69 gpiomm: gpiomm@4000000 {
70 compatible = "lantiq,gpio-mm";
71 reg = <1 0x0 0x10 >;
72 #address-cells = <1>;
73 #size-cells = <1>;
74 #gpio-cells = <2>;
75 gpio-controller;
76 lantiq,shadow = <0x0>;
77 };
78
79 ath5k_eep {
80 compatible = "ath5k,eeprom";
81 ath,eep-flash = <&boardconfig 0x400>;
82 ath,mac-offset = <0x16>;
83 ath,mac-increment = <1>;
84 ath,eep-swap;
85 };
86 };
87
88 gpio: pinmux@E100B10 {
89 pinctrl-names = "default";
90 pinctrl-0 = <&state_default>;
91
92 state_default: pinmux {
93 ebu {
94 lantiq,groups = "ebu cs1";
95 lantiq,function = "ebu";
96 };
97 pci_in {
98 lantiq,groups = "req1", "req2";
99 lantiq,function = "pci";
100 lantiq,open-drain = <1>;
101 lantiq,pull = <2>;
102 lantiq,output = <0>;
103 };
104 pci_out {
105 lantiq,groups = "gnt1", "gnt2";
106 lantiq,function = "pci";
107 lantiq,pull = <0>;
108 lantiq,output = <1>;
109 };
110 };
111 };
112
113 etop@E180000 {
114 phy-mode = "mii";
115 mtd-mac-address = <&boardconfig 0x16>;
116 };
117
118 ifxhcd@E101000 {
119 status = "okay";
120 gpios = <&gpio 14 0>;
121 };
122
123 pci@E105400 {
124 status = "okay";
125 gpio-reset = <&gpio 21 0>;
126 req-mask = <0xf>;
127 };
128
129 };
130
131 gpio-keys-polled {
132 compatible = "gpio-keys-polled";
133 #address-cells = <1>;
134 #size-cells = <0>;
135 poll-interval = <100>;
136
137 rfkill {
138 label = "rfkill";
139 gpios = <&gpio 28 1>;
140 linux,code = <0xf7>;
141 };
142 reset {
143 label = "reset";
144 gpios = <&gpio 30 1>;
145 linux,code = <0x198>;
146 };
147 };
148
149 gpio-leds {
150 compatible = "gpio-leds";
151 power: power {
152 label = "power";
153 gpios = <&gpio 3 0>;
154 default-state = "keep";
155 };
156 dsl: dsl {
157 label = "dsl";
158 gpios = <&gpio 4 1>;
159 };
160 online: online {
161 label = "online";
162 gpios = <&gpio 5 1>;
163 };
164 wifi: wifi {
165 label = "wifi";
166 gpios = <&gpio 6 1>;
167 };
168 wps {
169 label = "wps";
170 gpios = <&gpio 7 1>;
171 };
172 dsl2 {
173 label = "dsl2";
174 gpios = <&gpio 8 1>;
175 };
176 usb: usb {
177 label = "usb";
178 gpios = <&gpio 19 1>;
179 };
180 voice {
181 label = "voice";
182 gpios = <&gpiomm 0 1>;
183 };
184 fxs1 {
185 label = "fxs1";
186 gpios = <&gpiomm 1 1>;
187 };
188 fxs2 {
189 label = "fxs2";
190 gpios = <&gpiomm 2 1>;
191 };
192 fxo {
193 label = "fxo";
194 gpios = <&gpiomm 3 1>;
195 };
196 };
197 };