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