lantiq: VG3503J - merge profiles
[openwrt/openwrt.git] / target / linux / lantiq / dts / VG3503J.dts
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 gphy-xrx200 {
103 compatible = "lantiq,phy-xrx200";
104 firmware1 = "lantiq/vr9_phy22f_a1x.bin"; /*VR9 1.1*/
105 firmware2 = "lantiq/vr9_phy22f_a2x.bin"; /*VR9 1.2*/
106 phys = [ 00 01 ];
107 };
108
109 gpio-keys-polled {
110 compatible = "gpio-keys-polled";
111 #address-cells = <1>;
112 #size-cells = <0>;
113 poll-interval = <100>;
114 reset {
115 label = "reset";
116 gpios = <&gpio 6 1>;
117 linux,code = <0x198>;
118 };
119 };
120
121 gpio-leds {
122 compatible = "gpio-leds";
123
124 power_red: power2 {
125 label = "vg3503j:red:power";
126 gpios = <&gpio 14 1>;
127 };
128 dsl: dsl {
129 label = "vg3503j:green:dsl";
130 gpios = <&gpio 19 1>;
131 };
132 power_green: power {
133 label = "vg3503j:green:power";
134 gpios = <&gpio 28 1>;
135 default-state = "keep";
136 };
137 };
138 };
139
140 &eth0 {
141 interface@0 {
142 compatible = "lantiq,xrx200-pdi";
143 #address-cells = <1>;
144 #size-cells = <0>;
145 reg = <0>;
146 mac-address = [ 00 11 22 33 44 55 ];
147 lantiq,switch;
148 ethernet@2 {
149 compatible = "lantiq,xrx200-pdi-port";
150 reg = <2>;
151 phy-mode = "mii";
152 phy-handle = <&phy11>;
153 };
154 ethernet@4 {
155 compatible = "lantiq,xrx200-pdi-port";
156 reg = <4>;
157 phy-mode = "mii";
158 phy-handle = <&phy13>;
159 };
160 };
161
162 mdio@0 {
163 #address-cells = <1>;
164 #size-cells = <0>;
165 compatible = "lantiq,xrx200-mdio";
166 phy11: ethernet-phy@11 {
167 reg = <0x11>;
168 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
169 lantiq,led1h = <0x70>;
170 lantiq,led1l = <0x00>;
171 lantiq,led2h = <0x00>;
172 lantiq,led2l = <0x03>;
173 };
174 phy13: ethernet-phy@13 {
175 reg = <0x13>;
176 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
177 lantiq,led1h = <0x70>;
178 lantiq,led1l = <0x00>;
179 lantiq,led2h = <0x00>;
180 lantiq,led2l = <0x03>;
181 };
182 };
183 };