lantiq: define default leds in dts files
[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                         dsl = &dsl;
11                         internet = &online;
12                         /* we dont have a power led, lets use the online led */
13                         power = &online;
14                         wifi = &wifi;
15                 };
16         };
17
18         memory@0 {
19                 reg = <0x0 0x2000000>;
20         };
21
22         sram@1F000000 {
23                 vmmc@107000 {
24                         status = "okay";
25                         gpios = <&gpio 31 0>;
26                 };
27         };
28
29         fpi@10000000 {
30                 localbus@0 {
31                         nor-boot@0 {
32                                 compatible = "lantiq,nor";
33                                 bank-width = <2>;
34                                 reg = <0 0x0 0x2000000>;
35                                 #address-cells = <1>;
36                                 #size-cells = <1>;
37
38                                 partition@0 {
39                                         label = "uboot";
40                                         reg = <0x00000 0x10000>;
41                                         read-only;
42                                 };
43
44                                 partition@10000 {
45                                         label = "uboot_env";
46                                         reg = <0x10000 0x10000>;
47                                         read-only;
48                                 };
49
50                                 partition@20000 {
51                                         label = "firmware";
52                                         reg = <0x20000 0x3d0000>;
53                                 };
54
55                                 partition@400000 {
56                                         label = "boardconfig";
57                                         reg = <0x3f0000 0x10000>;
58                                         read-only;
59                                 };
60                         };
61
62                         mac_addr {
63                                 compatible = "lantiq,eth-mac";
64                                 reg = <0 0x3f0016 0x6>;
65                                 mac-increment = <2>;
66                         };
67
68                         ath5k_eep {
69                                 compatible = "ath5k,eeprom";
70                                 reg = <0 0x3f0400 0x1000>;
71                                 ath,mac-offset = <0>;
72                                 ath,eep-swap;
73                         };
74                 };
75
76                 gpio: pinmux@E100B10 {
77                         pinctrl-names = "default";
78                         pinctrl-0 = <&state_default>;
79
80                         state_default: pinmux {
81                                 pci_in {
82                                         lantiq,groups = "req1";
83                                         lantiq,function = "pci";
84                                         lantiq,open-drain = <1>;
85                                         lantiq,pull = <2>;
86                                         lantiq,output = <0>;
87                                 };
88                                 pci_out {
89                                         lantiq,groups = "gnt1";
90                                         lantiq,function = "pci";
91                                         lantiq,output = <1>;
92                                 };
93                                 pci_rst {
94                                         lantiq,pins = "io21";
95                                         lantiq,pull = <2>;
96                                         lantiq,output = <1>;
97                                 };
98                                 relay {
99                                         lantiq,pins = "io31";
100                                         lantiq,output = <1>;
101                                 };
102                         };
103                 };
104
105                 etop@E180000 {
106                         phy-mode = "mii";
107                 };
108
109                 pci@E105400 {
110                         status = "okay";
111                         gpio-reset = <&gpio 21 0>;
112                 };
113
114         };
115
116 /*
117 #define ARV4525PW_PHYRESET      13
118 #define ARV4525PW_RELAY         31
119 */
120
121         gpio-keys-polled {
122                 compatible = "gpio-keys-polled";
123                 #address-cells = <1>;
124                 #size-cells = <0>;
125                 poll-interval = <100>;
126
127                 wps {
128                         label = "wps";
129                         gpios = <&gpio 29 1>;
130                         linux,code = <0x211>;
131                 };
132                 reset {
133                         label = "reset";
134                         gpios = <&gpio 30 1>;
135                         linux,code = <0x198>;
136                 };
137         };
138
139         gpio-leds {
140                 compatible = "gpio-leds";
141                 fxo {
142                         label = "fxo";
143                         gpios = <&gpio 4 1>;
144                 };
145                 fxs {
146                         label = "fxs";
147                         gpios = <&gpio 5 1>;
148                 };
149                 dsl: dsl {
150                         label = "dsl";
151                         gpios = <&gpio 6 1>;
152                 };
153                 wifi: wifi {
154                         label = "wifi";
155                         gpios = <&gpio 8 1>;
156                 };
157                 online: online {
158                         /*label = "online"; - we dont have a power led, lets use this one */
159                         label = "power";
160                         gpios = <&gpio 9 1>;
161                 };
162         };
163 };