acb88b60a0c225bbee4ba0ae3f56aee3ec497716
[lede.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                         boot = &power;
13                         failsafe = &power;
14                         running = &power;
15
16                         internet = &info_green;
17                         dsl = &power;
18                         wifi = &wlan;
19                 };
20         };
21
22         memory@0 {
23                 reg = <0x0 0x4000000>;
24         };
25
26         fpi@10000000 {
27                 localbus@0 {
28                         nor-boot@0 {
29                                 compatible = "lantiq,nor";
30                                 bank-width = <2>;
31                                 reg = <0 0x0 0x1000000>;
32                                 #address-cells = <1>;
33                                 #size-cells = <1>;
34
35                                 partitions {
36                                         compatible = "fixed-partitions";
37                                         #address-cells = <1>;
38                                         #size-cells = <1>;
39
40                                         ath9k_cal: partition@0 {
41                                                 label = "urlader";
42                                                 reg = <0x00000 0x20000>;
43                                                 read-only;
44                                         };
45
46                                         partition@20000 {
47                                                 label = "firmware";
48                                                 reg = <0x20000 0xf60000>;
49                                         };
50
51                                         partition@f80000 {
52                                                 label = "tffs (1)";
53                                                 reg = <0xf80000 0x40000>;
54                                                 read-only;
55                                         };
56
57                                         partition@fc0000 {
58                                                 label = "tffs (2)";
59                                                 reg = <0xfc0000 0x40000>;
60                                                 read-only;
61                                         };
62                                 };
63                         };
64                 };
65
66                 ath9k_eep {
67                         compatible = "ath9k,eeprom";
68                         ath,eep-flash = <&ath9k_cal 0x985>;
69                         ath,device-id = /bits/ 16 <0xff1d 0x2d>;
70                         ath,eep-endian;
71                         ath,eep-swap;
72                 };
73
74                 gpio: pinmux@E100B10 {
75                         pinctrl-names = "default";
76                         pinctrl-0 = <&state_default>;
77
78                         state_default: pinmux {
79                                 pci {
80                                         lantiq,groups = "gnt1", "req1", "req2", "req3", "req4", "gnt2", "gnt3", "gnt4";
81                                         lantiq,function = "pci";
82                                 };
83                                 pci-in {
84                                         lantiq,groups = "req1", "req2", "req3", "req4";
85                                         lantiq,output = <0>;
86                                         lantiq,open-drain = <1>;
87                                         lantiq,pull = <2>;
88                                 };
89                                 pci-out {
90                                         lantiq,groups = "gnt1", "gnt2", "gnt3", "gnt4";
91                                         lantiq,output = <1>;
92                                         lantiq,pull = <0>;
93                                 };
94                         };
95                 };
96
97                 etop@E180000 {
98                         phy-mode = "mii";
99                         mac-address = [ 00 11 22 33 44 55 ];
100                 };
101
102                 ifxhcd@E101000 {
103                         status = "okay";
104                 };
105
106                 pci@E105400 {
107                         status = "okay";
108                         req-mask = <0xf>;
109                         lantiq,bus-clock = <33333333>;
110                         interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
111                         interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
112                         gpio-reset = <&gpio 21 0>;
113                         req-mask = <0xf>; /* GNT1 */
114                 };
115         };
116
117         gpio-keys-polled {
118                 compatible = "gpio-keys-polled";
119                 #address-cells = <1>;
120                 #size-cells = <0>;
121                 poll-interval = <100>;
122
123                 rfkill {
124                         label = "rfkill";
125                         gpios = <&gpio 1 1>;
126                         linux,code = <0xf7>;
127                 };
128                 dect {
129                         label = "dect";
130                         gpios = <&gpio 2 1>;
131                         linux,code = <0x102>;
132                 };
133         };
134
135         gpio-leds {
136                 compatible = "gpio-leds";
137                 power: power {
138                         label = "fritz7320:green:power";
139                         gpios = <&gpio 44 1>;
140                         default-state = "keep";
141                 };
142                 voice {
143                         label = "fritz7320:green:fon";
144                         gpios = <&gpio 47 1>;
145                 };
146                 dect {
147                         label = "fritz7320:green:dect";
148                         gpios = <&gpio 38 1>;
149                 };
150                 wlan: wlan {
151                         label = "fritz7320:green:wlan";
152                         gpios = <&gpio 37 1>;
153                 };
154                 info_green: info_green {
155                         label = "fritz7320:green:info";
156                         gpios = <&gpio 35 1>;
157                 };
158                 info_red {
159                         label = "fritz7320:red:info";
160                         gpios = <&gpio 45 1>;
161                 };
162         };
163 };