lantiq: use external pci clock on ARV7506PW11
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV7506PW11.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 / {
6         model = "ARV7506PW11 - Alice/O2 IAD 4421";
7
8         aliases {
9                 led-boot = &power;
10                 led-failsafe = &power_red;
11                 led-running = &power;
12
13                 led-dsl = &dsl;
14                 led-internet = &internet;
15                 led-wifi = &wlan;
16         };
17
18         memory@0 {
19                 reg = <0x0 0x4000000>;
20         };
21
22         fpi@10000000 {
23                 localbus@0 {
24                         nor-boot@0 {
25                                 compatible = "lantiq,nor";
26                                 bank-width = <2>;
27                                 reg = <0 0x0 0x800000>;
28
29                                 partitions {
30                                         compatible = "fixed-partitions";
31                                         #address-cells = <1>;
32                                         #size-cells = <1>;
33
34                                         partition@0 {
35                                                 label = "uboot";
36                                                 reg = <0x00000 0x40000>;
37                                                 read-only;
38                                         };
39
40                                         partition@40000 {
41                                                 label = "uboot_env";
42                                                 reg = <0x40000 0x10000>;
43                                                 read-only;
44                                         };
45
46                                         partition@50000 {
47                                                 label = "firmware";
48                                                 reg = <0x50000 0x7a0000>;
49                                         };
50
51                                         boardconfig: partition@7f0000 {
52                                                 label = "board_config";
53                                                 reg = <0x7f0000 0x10000>;
54                                                 read-only;
55                                         };
56                                 };
57                         };
58                 };
59
60                 gpio: pinmux@E100B10 {
61                         pinctrl-names = "default";
62                         pinctrl-0 = <&state_default>;
63
64                         state_default: pinmux {
65                                 pci {
66                                         lantiq,groups = "gnt1";
67                                         lantiq,function = "pci";
68                                         lantiq,output = <1>;
69                                 };
70                                 pci_rst {
71                                         lantiq,pins = "io21";
72                                         lantiq,pull = <2>;
73                                         lantiq,output = <1>;
74                                 };
75                         };
76                 };
77
78                 /* GPIO 19: switch reset */
79                 etop@E180000 {
80                         phy-mode = "rmii";
81                         mtd-mac-address = <&boardconfig 0x16>;
82                 };
83
84                 pci@E105400 {
85                         status = "okay";
86                         lantiq,external-clock;
87                         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
88                 };
89         };
90
91         ralink_eep {
92                 compatible = "ralink,eeprom";
93                 ralink,eeprom = "RT2860.eeprom";
94         };
95
96         gpio-keys-polled {
97                 compatible = "gpio-keys-polled";
98                 #address-cells = <1>;
99                 #size-cells = <0>;
100                 poll-interval = <100>;
101
102                 rfkill {
103                         label = "rfkill";
104                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
105                         linux,code = <KEY_RFKILL>;
106                 };
107                 reset {
108                         label = "reset";
109                         gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
110                         linux,code = <KEY_RESTART>;
111                 };
112         };
113
114         gpio-leds {
115                 compatible = "gpio-leds";
116                 wlan: wlan {
117                         label = "arv7506pw11:green:wlan";
118                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
119                 };
120                 power: power {
121                         label = "arv7506pw11:green:power";
122                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
123                         default-state = "keep";
124                 };
125                 dsl: dsl {
126                         label = "arv7506pw11:green:dsl";
127                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
128                 };
129                 internet: internet {
130                         label = "arv7506pw11:green:internet";
131                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
132                 };
133                 power_red: power_red {
134                         label = "arv7506pw11:red:power";
135                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
136                 };
137                 internet_red {
138                         label = "arv7506pw11:red:internet";
139                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
140                 };
141                 info {
142                         label = "arv7506pw11:green:info";
143                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
144                 };
145                 telefon {
146                         label = "arv7506pw11:green:telefon";
147                         gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
148                 };
149                 info_red {
150                         label = "arv7506pw11:red:info";
151                         gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
152                 };
153         };
154 };