lantiq: use external pci clock on ARV7506PW11
[oweals/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
12         aliases {
13                 led-boot = &power;
14                 led-failsafe = &power;
15                 led-running = &power;
16
17                 led-internet = &info_green;
18                 led-dsl = &power;
19                 led-wifi = &wlan;
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                 };
100
101                 ifxhcd@E101000 {
102                         status = "okay";
103                 };
104
105                 pci@E105400 {
106                         status = "okay";
107                         req-mask = <0xf>;
108                         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
109                 };
110         };
111
112         gpio-keys-polled {
113                 compatible = "gpio-keys-polled";
114                 #address-cells = <1>;
115                 #size-cells = <0>;
116                 poll-interval = <100>;
117
118                 rfkill {
119                         label = "rfkill";
120                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
121                         linux,code = <KEY_RFKILL>;
122                 };
123                 dect {
124                         label = "dect";
125                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
126                         linux,code = <BTN_2>;
127                 };
128         };
129
130         gpio-leds {
131                 compatible = "gpio-leds";
132                 power: power {
133                         label = "fritz7320:green:power";
134                         gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
135                         default-state = "keep";
136                 };
137                 voice {
138                         label = "fritz7320:green:fon";
139                         gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
140                 };
141                 dect {
142                         label = "fritz7320:green:dect";
143                         gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
144                 };
145                 wlan: wlan {
146                         label = "fritz7320:green:wlan";
147                         gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
148                 };
149                 info_green: info_green {
150                         label = "fritz7320:green:info";
151                         gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
152                 };
153                 info_red {
154                         label = "fritz7320:red:info";
155                         gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
156                 };
157         };
158 };