lantiq: VGV7510KW22BRN - set the phy clock source
[openwrt.git] / target / linux / lantiq / dts / ARV7519RW22.dts
1 /dts-v1/;
2
3 /include/ "vr9.dtsi"
4
5 / {
6         model = "ARV7519RW22 - Orange Livebox 2.1";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         boot = &power_green;
13                         failsafe = &power_green;
14                         running = &power_green;
15
16                         internet = &internet_green;
17                 };
18         };
19
20         memory@0 {
21                 reg = <0x0 0x8000000>;
22         };
23
24         fpi@10000000 {
25                 localbus@0 {
26                         nor-boot@0 {
27                                 compatible = "lantiq,nor";
28                                 bank-width = <2>;
29                                 reg = <0 0x0 0x2000000>;
30                                 #address-cells = <1>;
31                                 #size-cells = <1>;
32
33                                 partitions {
34                                         compatible = "fixed-partitions";
35                                         #address-cells = <1>;
36                                         #size-cells = <1>;
37
38                                         partition@0 {
39                                                 label = "uboot";
40                                                 reg = <0x0 0x60000>;
41                                                 read-only;
42                                         };
43
44                                         partition@60000 {
45                                                 label = "uboot-env";
46                                                 reg = <0x60000 0x20000>;
47                                                 read-only;
48                                         };
49
50                                         partition@80000 {
51                                                 label = "firmware";
52                                                 reg = <0x80000 0x1f00000>;
53                                         };
54
55                                         boardconfig: partition@1f80000 {
56                                                 label = "boardconfig";
57                                                 reg = <0x1f80000 0x80000>;
58                                                 read-only;
59                                         };
60                                 };
61                         };
62                 };
63
64                 gpio: pinmux@E100B10 {
65                         pinctrl-names = "default";
66                         pinctrl-0 = <&state_default>;
67
68                         state_default: pinmux {
69                                 mdio {
70                                         lantiq,groups = "mdio";
71                                         lantiq,function = "mdio";
72                                 };
73                                 pcie-rst {
74                                         lantiq,pins = "io21";
75                                         lantiq,pull = <0>;
76                                         lantiq,output = <1>;
77                                 };
78                         };
79                 };
80
81                 ifxhcd@E101000 {
82                         status = "okay";
83                         gpios = <&gpio 32 0>;
84                 };
85
86                 ifxhcd@E106000 {
87                         status = "okay";
88                         gpios = <&gpio 32 0>;
89                 };
90
91                 pcie@d900000 {
92                         status = "disabled";
93                 };
94
95                 pci@E105400 {
96                         status = "disabled";
97                         compatible = "lantiq,pci-xway";
98                 };
99         };
100
101         gphy-xrx200 {
102                 compatible = "lantiq,phy-xrx200";
103                 firmware1 = "lantiq/vr9_phy22f_a1x.bin";        /*VR9 1.1*/
104                 firmware2 = "lantiq/vr9_phy22f_a2x.bin";        /*VR9 1.2*/
105                 phys = [ 00 01 ];
106         };
107
108         gpio-keys-polled {
109                 compatible = "gpio-keys-polled";
110                 #address-cells = <1>;
111                 #size-cells = <0>;
112                 poll-interval = <100>;
113
114                 reset {
115                         label = "reset";
116                         gpios = <&gpio 6 1>;
117                         linux,code = <0x198>;
118                 };
119                 rfkill {
120                         label = "rfkill";
121                         gpios = <&gpio 33 1>;
122                         linux,code = <0xf7>;
123                 };
124                 wps {
125                         label = "wps";
126                         gpios = <&gpio 37 1>;
127                         linux,code = <0x211>;
128                 };
129         };
130
131         gpio-leds {
132                 compatible = "gpio-leds";
133
134                 lan_green {
135                         label = "arv7519rw22:green:lan";
136                         gpios = <&gpio 2 1>;
137                 };
138                 internet_red {
139                         label = "arv7519rw22:red:internet";
140                         gpios = <&gpio 10 1>;
141                 };
142                 power_green: power_green {
143                         label = "arv7519rw22:green:power";
144                         gpios = <&gpio 14 1>;
145                         default-state = "keep";
146                 };
147                 alarm_blue {
148                         label = "arv7519rw22:blue:alarm";
149                         gpios = <&gpio 15 1>;
150                 };
151                 internet_orange {
152                         label = "arv7519rw22:orange:internet";
153                         gpios = <&gpio 19 1>;
154                 };
155                 internet_green: internet_green {
156                         label = "arv7519rw22:green:internet";
157                         gpios = <&gpio 28 1>;
158                 };
159                 voice_green {
160                         label = "arv7519rw22:green:voice";
161                         gpios = <&gpio 29 1>;
162                 };
163         };
164 };
165
166 &eth0 {
167         lan: interface@0 {
168                 compatible = "lantiq,xrx200-pdi";
169                 #address-cells = <1>;
170                 #size-cells = <0>;
171                 reg = <0>;
172                 mtd-mac-address = <&boardconfig 0x16>;
173                 lantiq,switch;
174
175                 ethernet@0 {
176                         compatible = "lantiq,xrx200-pdi-port";
177                         reg = <0>;
178                         phy-mode = "rgmii";
179                         phy-handle = <&phy0>;
180                 };
181                 ethernet@1 {
182                         compatible = "lantiq,xrx200-pdi-port";
183                         reg = <4>;
184                         phy-mode = "mii";
185                         phy-handle = <&phy13>;
186                 };
187                 ethernet@2 {
188                         compatible = "lantiq,xrx200-pdi-port";
189                         reg = <5>;
190                         phy-mode = "mii";
191                         phy-handle = <&phy14>;
192                 };
193                 ethernet@3 {
194                         compatible = "lantiq,xrx200-pdi-port";
195                         reg = <2>;
196                         phy-mode = "mii";
197                         phy-handle = <&phy11>;
198                 };
199                 ethernet@4 {
200                         compatible = "lantiq,xrx200-pdi-port";
201                         reg = <3>;
202                         phy-mode = "mii";
203                         phy-handle = <&phy12>;
204                 };
205         };
206
207         mdio@0 {
208                 #address-cells = <1>;
209                 #size-cells = <0>;
210                 compatible = "lantiq,xrx200-mdio";
211                 phy0: ethernet-phy@0 {
212                         reg = <0x0>;
213                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
214                 };
215                 phy11: ethernet-phy@11 {
216                         reg = <0x11>;
217                         compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
218                 };
219                 phy12: ethernet-phy@12 {
220                         reg = <0x12>;
221                         compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
222                 };
223                 phy13: ethernet-phy@13 {
224                         reg = <0x13>;
225                         compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
226                 };
227                 phy14: ethernet-phy@14 {
228                         reg = <0x14>;
229                         compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
230                 };
231         };
232 };