f68d22cceb66fe3292e91d8fc6ec507d078ca48b
[openwrt/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 partitions {
33 compatible = "fixed-partitions";
34 #address-cells = <1>;
35 #size-cells = <1>;
36
37 partition@0 {
38 label = "uboot";
39 reg = <0x00000 0x20000>;
40 };
41
42 partition@20000 {
43 label = "kernel";
44 reg = <0x20000 0x300000>;
45 };
46
47 partition@1a0000 {
48 label = "rootfs";
49 reg = <0x320000 0x420000>;
50 };
51
52 partition@740000 {
53 label = "btagent";
54 reg = <0x740000 0x80000>;
55 };
56
57 partition@7c0000 {
58 label = "pri_bfocus_cfg";
59 reg = <0x7c0000 0x10000>;
60 };
61
62 partition@7d0000 {
63 label = "sec_bfocus_cfg";
64 reg = <0x7d0000 0x10000>;
65 };
66
67 partition@7e0000 {
68 label = "sysconfig";
69 reg = <0x7e0000 0x10000>;
70 };
71
72 partition@7f0000 {
73 label = "misc_cfg";
74 reg = <0x7f0000 0x10000>;
75 };
76 };
77 };
78 };
79
80 gpio: pinmux@E100B10 {
81 pinctrl-names = "default";
82 pinctrl-0 = <&state_default>;
83
84 state_default: pinmux {
85 mdio {
86 lantiq,groups = "mdio";
87 lantiq,function = "mdio";
88 };
89 gphy-leds {
90 lantiq,groups = "gphy0 led0", "gphy0 led1",
91 "gphy0 led2", "gphy1 led0",
92 "gphy1 led1", "gphy1 led2";
93 lantiq,function = "gphy";
94 lantiq,pull = <2>;
95 lantiq,open-drain = <0>;
96 lantiq,output = <1>;
97 };
98 };
99 };
100 };
101
102 gpio-keys-polled {
103 compatible = "gpio-keys-polled";
104 #address-cells = <1>;
105 #size-cells = <0>;
106 poll-interval = <100>;
107 reset {
108 label = "reset";
109 gpios = <&gpio 6 1>;
110 linux,code = <0x198>;
111 };
112 };
113
114 gpio-leds {
115 compatible = "gpio-leds";
116
117 power_red: power2 {
118 label = "vg3503j:red:power";
119 gpios = <&gpio 14 1>;
120 };
121 dsl: dsl {
122 label = "vg3503j:green:dsl";
123 gpios = <&gpio 19 1>;
124 };
125 power_green: power {
126 label = "vg3503j:green:power";
127 gpios = <&gpio 28 1>;
128 default-state = "keep";
129 };
130 };
131 };
132
133 &eth0 {
134 interface@0 {
135 compatible = "lantiq,xrx200-pdi";
136 #address-cells = <1>;
137 #size-cells = <0>;
138 reg = <0>;
139 mac-address = [ 00 11 22 33 44 55 ];
140 lantiq,switch;
141 ethernet@2 {
142 compatible = "lantiq,xrx200-pdi-port";
143 reg = <2>;
144 phy-mode = "mii";
145 phy-handle = <&phy11>;
146 };
147 ethernet@4 {
148 compatible = "lantiq,xrx200-pdi-port";
149 reg = <4>;
150 phy-mode = "mii";
151 phy-handle = <&phy13>;
152 };
153 };
154
155 mdio@0 {
156 #address-cells = <1>;
157 #size-cells = <0>;
158 compatible = "lantiq,xrx200-mdio";
159 phy11: ethernet-phy@11 {
160 reg = <0x11>;
161 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
162 lantiq,led1h = <0x70>;
163 lantiq,led1l = <0x00>;
164 lantiq,led2h = <0x00>;
165 lantiq,led2l = <0x03>;
166 };
167 phy13: ethernet-phy@13 {
168 reg = <0x13>;
169 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
170 lantiq,led1h = <0x70>;
171 lantiq,led1l = <0x00>;
172 lantiq,led2h = <0x00>;
173 lantiq,led2l = <0x03>;
174 };
175 };
176 };