lantiq: use default leds defined in DTS
[openwrt.git] / target / linux / lantiq / dts / FRITZ7320.dts
1 /dts-v1/;
2
3 /include/ "ar9.dtsi"
4
5 / {
6         model = "FRITZ7320 - 1&1 HomeServer";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         dsl = &power;
13                         internet = &online;
14                         power = &power;
15                         wifi = &wlan;
16                 };
17         };
18
19         memory@0 {
20                 reg = <0x0 0x4000000>;
21         };
22
23         fpi@10000000 {
24                 localbus@0 {
25                         nor-boot@0 {
26                                 compatible = "lantiq,nor";
27                                 bank-width = <2>;
28                                 reg = <0 0x0 0x1000000>;
29                                 #address-cells = <1>;
30                                 #size-cells = <1>;
31
32                                 partition@0 {
33                                         label = "urlader";
34                                         reg = <0x00000 0x20000>;
35                                         read-only;
36                                 };
37
38                                 partition@20000 {
39                                         label = "firmware";
40                                         reg = <0x20000 0xf60000>;
41                                 };
42
43                                 partition@f80000 {
44                                         label = "tffs (1)";
45                                         reg = <0xf80000 0x40000>;
46                                         read-only;
47                                 };
48
49                                 partition@fc0000 {
50                                         label = "tffs (2)";
51                                         reg = <0xfc0000 0x40000>;
52                                         read-only;
53                                 };
54                         };
55                 };
56
57                 gpio: pinmux@E100B10 {
58                         pinctrl-names = "default";
59                         pinctrl-0 = <&state_default>;
60
61                         state_default: pinmux {
62                                 pci {
63                                         lantiq,groups = "gnt1", "req1", "req2", "req3", "req4", "gnt2", "gnt3", "gnt4";
64                                         lantiq,function = "pci";
65                                 };
66                                 pci-in {
67                                         lantiq,groups = "req1", "req2", "req3", "req4";
68                                         lantiq,output = <0>;
69                                         lantiq,open-drain = <1>;
70                                         lantiq,pull = <2>;
71                                 };
72                                 pci-out {
73                                         lantiq,groups = "gnt1", "gnt2", "gnt3", "gnt4";
74                                         lantiq,output = <1>;
75                                         lantiq,pull = <0>;
76                                 };
77                         };
78                 };
79
80                 etop@E180000 {
81                         phy-mode = "mii";
82                         mac-address = [ 00 11 22 33 44 55 ];
83                 };
84
85                 ifxhcd@E101000 {
86                         status = "okay";
87                 };
88
89                 pci@E105400 {
90                         status = "okay";
91                         req-mask = <0xf>;
92                         lantiq,bus-clock = <33333333>;
93                         interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
94                         interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
95                         gpio-reset = <&gpio 21 0>;
96                         req-mask = <0xf>; /* GNT1 */
97                 };
98         };
99
100         gpio-keys-polled {
101                 compatible = "gpio-keys-polled";
102                 #address-cells = <1>;
103                 #size-cells = <0>;
104                 poll-interval = <100>;
105
106                 rfkill {
107                         label = "rfkill";
108                         gpios = <&gpio 1 1>;
109                         linux,code = <0xf7>;
110                 };
111                 dect {
112                         label = "dect";
113                         gpios = <&gpio 2 1>;
114                         linux,code = <0x102>;
115                 };
116         };
117
118         gpio-leds {
119                 compatible = "gpio-leds";
120                 power: power {
121                         label = "power";
122                         gpios = <&gpio 44 1>;
123                 };
124                 voice {
125                         label = "voice";
126                         gpios = <&gpio 47 1>;
127                 };
128                 dect {
129                         label = "dect";
130                         gpios = <&gpio 38 1>;
131                 };
132                 wlan: wlan {
133                         label = "wlan";
134                         gpios = <&gpio 37 1>;
135                 };
136                 online: online {
137                         label = "online";
138                         gpios = <&gpio 35 1>;
139                 };
140                 online2 {
141                         label = "online2";
142                         gpios = <&gpio 45 1>;
143                 };
144         };
145 };