lantiq: VGV7510KW22 - enable the IP101A phy
[oweals/openwrt.git] / target / linux / lantiq / dts / VG3503J.dts
1 /dts-v1/;
2
3 /include/ "vr9.dtsi"
4
5 / {
6         model = "VG3503J - BT OpenReach VDSL Modem";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         boot = &power_green;
13                         failsafe = &power_red;
14                         running = &power_green;
15
16                         internet = &dsl;
17                 };
18         };
19
20         memory@0 {
21                 reg = <0x0 0x2000000>;
22         };
23
24         fpi@10000000 {
25                 localbus@0 {
26                         ranges = <0 0 0x0 0x3ffffff>;
27                         nor-boot@0 {
28                                 compatible = "lantiq,nor";
29                                 bank-width = <2>;
30                                 reg = <0 0x0 0x2000000>;
31                                 #address-cells = <1>;
32                                 #size-cells = <1>;
33
34                                 partitions {
35                                         compatible = "fixed-partitions";
36                                         #address-cells = <1>;
37                                         #size-cells = <1>;
38
39                                         partition@0 {
40                                                 label = "uboot";
41                                                 reg = <0x00000 0x20000>;
42                                         };
43
44                                         partition@20000 {
45                                                 label = "kernel";
46                                                 reg = <0x20000 0x300000>;
47                                         };
48
49                                         partition@1a0000 {
50                                                 label = "rootfs";
51                                                 reg = <0x320000 0x420000>;
52                                         };
53
54                                         partition@740000 {
55                                                 label = "btagent";
56                                                 reg = <0x740000 0x80000>;
57                                         };
58
59                                         partition@7c0000 {
60                                                 label = "pri_bfocus_cfg";
61                                                 reg = <0x7c0000 0x10000>;
62                                         };
63
64                                         partition@7d0000 {
65                                                 label = "sec_bfocus_cfg";
66                                                 reg = <0x7d0000 0x10000>;
67                                         };
68
69                                         partition@7e0000 {
70                                                 label = "sysconfig";
71                                                 reg = <0x7e0000 0x10000>;
72                                         };
73
74                                         partition@7f0000 {
75                                                 label = "misc_cfg";
76                                                 reg = <0x7f0000 0x10000>;
77                                         };
78                                 };
79                         };
80                 };
81
82                 gpio: pinmux@E100B10 {
83                         pinctrl-names = "default";
84                         pinctrl-0 = <&state_default>;
85
86                         state_default: pinmux {
87                                 mdio {
88                                         lantiq,groups = "mdio";
89                                         lantiq,function = "mdio";
90                                 };
91                                 gphy-leds {
92                                         lantiq,groups = "gphy0 led0", "gphy0 led1",
93                                                         "gphy0 led2", "gphy1 led0",
94                                                         "gphy1 led1", "gphy1 led2";
95                                         lantiq,function = "gphy";
96                                         lantiq,pull = <2>;
97                                         lantiq,open-drain = <0>;
98                                         lantiq,output = <1>;
99                                 };
100                         };
101                 };
102         };
103
104         gphy-xrx200 {
105                 compatible = "lantiq,phy-xrx200";
106                 firmware1 = "lantiq/vr9_phy11g_a1x.bin";        /*VR9 1.1*/
107                 firmware2 = "lantiq/vr9_phy11g_a2x.bin";        /*VR9 1.2*/
108                 phys = [ 00 01 ];
109         };
110
111         gpio-keys-polled {
112                 compatible = "gpio-keys-polled";
113                 #address-cells = <1>;
114                 #size-cells = <0>;
115                 poll-interval = <100>;
116                 reset {
117                         label = "reset";
118                         gpios = <&gpio 6 1>;
119                         linux,code = <0x198>;
120                 };
121         };
122
123         gpio-leds {
124                 compatible = "gpio-leds";
125
126                 power_red: power2 {
127                         label = "vg3503j:red:power";
128                         gpios = <&gpio 14 1>;
129                 };
130                 dsl: dsl {
131                         label = "vg3503j:green:dsl";
132                         gpios = <&gpio 19 1>;
133                 };
134                 power_green: power {
135                         label = "vg3503j:green:power";
136                         gpios = <&gpio 28 1>;
137                         default-state = "keep";
138                 };
139         };
140 };
141
142 &eth0 {
143         interface@0 {
144                 compatible = "lantiq,xrx200-pdi";
145                 #address-cells = <1>;
146                 #size-cells = <0>;
147                 reg = <0>;
148                 mac-address = [ 00 11 22 33 44 55 ];
149                 lantiq,switch;
150                 ethernet@2 {
151                         compatible = "lantiq,xrx200-pdi-port";
152                         reg = <2>;
153                         phy-mode = "mii";
154                         phy-handle = <&phy11>;
155                 };
156                 ethernet@4 {
157                         compatible = "lantiq,xrx200-pdi-port";
158                         reg = <4>;
159                         phy-mode = "mii";
160                         phy-handle = <&phy13>;
161                 };
162         };
163
164         mdio@0 {
165                 #address-cells = <1>;
166                 #size-cells = <0>;
167                 compatible = "lantiq,xrx200-mdio";
168                 phy11: ethernet-phy@11 {
169                         reg = <0x11>;
170                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
171                         lantiq,led1h = <0x70>;
172                         lantiq,led1l = <0x00>;
173                         lantiq,led2h = <0x00>;
174                         lantiq,led2l = <0x03>;
175                 };
176                 phy13: ethernet-phy@13 {
177                         reg = <0x13>;
178                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
179                         lantiq,led1h = <0x70>;
180                         lantiq,led1l = <0x00>;
181                         lantiq,led2h = <0x00>;
182                         lantiq,led2l = <0x03>;
183                 };
184         };
185 };