lantiq: define default leds in dts files
[openwrt.git] / target / linux / lantiq / dts / ARV8539PW22.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "ARV8539PW22 - Speedport W 504V Typ A";
7
8             chosen {
9                     leds {
10                             dsl = &dsl_green;
11                             internet = &online_green;
12                             power = &power_green;
13                             wifi = &wireless_green;
14                     };
15             };
16
17         memory@0 {
18                 reg = <0x0 0x4000000>;
19         };
20
21         sram@1F000000 {
22                 vmmc@107000 {
23                         status = "okay";
24                         gpios = <&gpio 31 0>;
25                 };
26         };
27
28         fpi@10000000 {
29                 localbus@0 {
30                         nor-boot@0 {
31                                 compatible = "lantiq,nor";
32                                 bank-width = <2>;
33                                 reg = <0 0x0 0x800000>;
34                                 #address-cells = <1>;
35                                 #size-cells = <1>;
36
37                                 partition@0 {
38                                         label = "uboot";
39                                         reg = <0x00000 0x30000>;        /* 192 KiB */
40                                         read-only;
41                                 };
42
43                                 partition@30000 {
44                                         label = "uboot";
45                                         reg = <0x30000 0x10000>;        /* 64 KiB */
46                                         read-only;
47                                 };
48
49                                 partition@40000 {
50                                         label = "firmware";
51                                         reg = <0x40000 0x7B0000>;       /* 7872 KiB */
52                                 };
53
54                                 partition@7F0000 {
55                                         label = "art";
56                                         reg = <0x7F0000 0x10000>;       /* 64 KiB*/
57                                         read-only;
58                                 };
59                         };
60
61                         mac_addr {
62                                 compatible = "lantiq,eth-mac";
63                                 reg = <0 0x7f0016 0x6>;
64                                 mac-increment = <2>;
65                         };
66
67                         ath9k_eep {
68                                 compatible = "ath9k,eeprom";
69                                 reg = <0 0x7f0400 0x1000
70                                         0 0x7f0016 0x6>;
71                                 ath,mac-increment = <1>;
72                                 ath,pci-slot = <14>;
73                                 ath,eep-endian;
74                                 ath,arv-ath9k-fix;
75                         };
76                 };
77
78                 gpio: pinmux@E100B10 {
79                         pinctrl-names = "default";
80                         pinctrl-0 = <&state_default>;
81
82                         state_default: pinmux {
83
84                                 pci_in {
85                                         lantiq,groups = "req1";
86                                         lantiq,function = "pci";
87                                         lantiq,open-drain = <1>;
88                                         lantiq,pull = <2>;
89                                         lantiq,output = <0>;
90                                 };
91                                 pci_out {
92                                         lantiq,groups = "gnt1";
93                                         lantiq,function = "pci";
94                                         lantiq,output = <1>;
95                                 };
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                 etop@E180000 {
109                         phy-mode = "mii";
110                 };
111
112                 pci@E105400 {
113                         status = "okay";
114                         gpio-reset = <&gpio 21 0>;
115                 };
116
117                 ifxhcd@E101000 {
118                         status = "okay";
119                         gpios = <&gpio 14 0>;
120                         lantiq,portmask = <0x3>;
121                 };
122
123         };
124
125         gpio-keys-polled {
126                 compatible = "gpio-keys-polled";
127                 #address-cells = <1>;
128                 #size-cells = <0>;
129                 poll-interval = <100>;
130
131                 wlan {
132                         label = "wlan";
133                         gpios = <&gpio 29 1>;
134                         linux,code = <0x211>;
135                 };
136                 reset {
137                         label = "reset";
138                         gpios = <&gpio 30 1>;
139                         linux,code = <0x198>;
140                 };
141         };
142
143         gpio-leds {
144                 compatible = "gpio-leds";
145
146                 power_green: power-green {
147                         label = "power";
148                         gpios = <&gpio 24 1>;
149                 };
150                 power-red {
151                         label = "soc:red:power";
152                         gpios = <&gpio 4 1>;
153                 };
154
155                 dsl_green: dsl-green {
156                         label = "soc:green:dsl";
157                         gpios = <&gpio 5 1>;
158                 };
159
160                 online_green: online-green {
161                         label = "soc:green:online";
162                         gpios = <&gpio 6 1>;
163                 };
164
165                 wireless_green: wireless-green {
166                         label = "soc:green:wireless";
167                         gpios = <&gpio 8 1>;
168                 };
169         };
170 };
171