lantiq: use external pci clock on ARV7506PW11
[oweals/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         aliases {
9                 led-boot = &power_green;
10                 led-failsafe = &power_red;
11                 led-running = &power_green;
12
13                 led-dsl = &dsl_green;
14                 led-internet = &online_green;
15                 led-wifi = &wireless_green;
16         };
17
18         memory@0 {
19                 reg = <0x0 0x4000000>;
20         };
21
22         sram@1F000000 {
23                 vmmc@107000 {
24                         status = "okay";
25                         gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
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 0x800000>;
35                                 #address-cells = <1>;
36                                 #size-cells = <1>;
37
38                                 partitions {
39                                         compatible = "fixed-partitions";
40                                         #address-cells = <1>;
41                                         #size-cells = <1>;
42
43                                         partition@0 {
44                                                 label = "uboot";
45                                                 reg = <0x00000 0x30000>;        /* 192 KiB */
46                                                 read-only;
47                                         };
48
49                                         partition@30000 {
50                                                 label = "uboot";
51                                                 reg = <0x30000 0x10000>;        /* 64 KiB */
52                                                 read-only;
53                                         };
54
55                                         partition@40000 {
56                                                 label = "firmware";
57                                                 reg = <0x40000 0x7B0000>;       /* 7872 KiB */
58                                         };
59
60                                         art: partition@7F0000 {
61                                                 label = "art";
62                                                 reg = <0x7F0000 0x10000>;       /* 64 KiB*/
63                                                 read-only;
64                                         };
65                                 };
66                         };
67
68                         ath9k_eep {
69                                 compatible = "ath9k,eeprom";
70                                 ath,eep-flash = <&art 0x400>;
71                                 ath,mac-offset = <0x16>;
72                                 ath,mac-increment = <1>;
73                                 ath,pci-slot = <14>;
74                                 ath,eep-endian;
75                         };
76                 };
77
78                 gpio: pinmux@E100B10 {
79                         pinctrl-names = "default";
80                         pinctrl-0 = <&state_default>;
81
82                         state_default: pinmux {
83                                 pci_in {
84                                         lantiq,groups = "req1";
85                                         lantiq,function = "pci";
86                                         lantiq,open-drain = <1>;
87                                         lantiq,pull = <2>;
88                                         lantiq,output = <0>;
89                                 };
90                                 pci_out {
91                                         lantiq,groups = "gnt1";
92                                         lantiq,function = "pci";
93                                         lantiq,output = <1>;
94                                 };
95                                 pci_rst {
96                                         lantiq,pins = "io21";
97                                         lantiq,pull = <2>;
98                                         lantiq,output = <1>;
99                                 };
100                                 relay {
101                                         lantiq,pins = "io31";
102                                         lantiq,output = <1>;
103                                 };
104                         };
105                 };
106
107                 etop@E180000 {
108                         phy-mode = "mii";
109                         mtd-mac-address = <&art 0x16>;
110                 };
111
112                 pci@E105400 {
113                         status = "okay";
114                         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
115                 };
116
117                 ifxhcd@E101000 {
118                         status = "okay";
119                         gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
120                         lantiq,portmask = <0x3>;
121                 };
122         };
123
124         gpio-keys-polled {
125                 compatible = "gpio-keys-polled";
126                 #address-cells = <1>;
127                 #size-cells = <0>;
128                 poll-interval = <100>;
129
130                 wlan {
131                         label = "wlan";
132                         gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
133                         linux,code = <KEY_WPS_BUTTON>;
134                 };
135                 reset {
136                         label = "reset";
137                         gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
138                         linux,code = <KEY_RESTART>;
139                 };
140         };
141
142         gpio-leds {
143                 compatible = "gpio-leds";
144
145                 power_green: power-green {
146                         label = "arv8539pw22:green:power";
147                         gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
148                         default-state = "keep";
149                 };
150                 power_red: power-red {
151                         label = "arv8539pw22:red:power";
152                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
153                 };
154
155                 dsl_green: dsl-green {
156                         label = "arv8539pw22:green:dsl";
157                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
158                 };
159
160                 online_green: online-green {
161                         label = "arv8539pw22:green:online";
162                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
163                 };
164
165                 wireless_green: wireless-green {
166                         label = "arv8539pw22:green:wlan";
167                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
168                 };
169                 /*
170                         telefonie green is missing
171                 */
172         };
173 };
174