lantiq: move dts files to thir own folder
[openwrt/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
12 memory@0 {
13 reg = <0x0 0x2000000>;
14 };
15
16 fpi@10000000 {
17 localbus@0 {
18 ranges = <0 0 0x0 0x3ffffff>;
19 nor-boot@0 {
20 compatible = "lantiq,nor";
21 bank-width = <2>;
22 reg = <0 0x0 0x2000000>;
23 #address-cells = <1>;
24 #size-cells = <1>;
25
26 partition@0 {
27 label = "uboot";
28 reg = <0x00000 0x20000>;
29 };
30
31 partition@20000 {
32 label = "kernel";
33 reg = <0x20000 0x180000>;
34 };
35
36 partition@1a0000 {
37 label = "rootfs";
38 reg = <0x1a0000 0x5a0000>;
39 };
40
41 partition@740000 {
42 label = "btagent";
43 reg = <0x740000 0x80000>;
44 };
45
46 partition@7c0000 {
47 label = "pri_bfocus_cfg";
48 reg = <0x7c0000 0x10000>;
49 };
50
51 partition@7d0000 {
52 label = "sec_bfocus_cfg";
53 reg = <0x7d0000 0x10000>;
54 };
55
56 partition@7e0000 {
57 label = "sysconfig";
58 reg = <0x7e0000 0x10000>;
59 };
60
61 partition@7f0000 {
62 label = "misc_cfg";
63 reg = <0x7f0000 0x10000>;
64 };
65 };
66 };
67
68 gpio: pinmux@E100B10 {
69 pinctrl-names = "default";
70 pinctrl-0 = <&state_default>;
71
72 state_default: pinmux {
73 mdio {
74 lantiq,groups = "mdio";
75 lantiq,function = "mdio";
76 };
77 };
78 };
79
80 eth@E108000 {
81 #address-cells = <1>;
82 #size-cells = <0>;
83 compatible = "lantiq,xrx200-net";
84 reg = < 0xE108000 0x3000 /* switch */
85 0xE10B100 0x70 /* mdio */
86 0xE10B1D8 0x30 /* mii */
87 0xE10B308 0x30 /* pmac */
88 >;
89 interrupt-parent = <&icu0>;
90 interrupts = <73 72>;
91
92 lan: interface@0 {
93 compatible = "lantiq,xrx200-pdi";
94 #address-cells = <1>;
95 #size-cells = <0>;
96 reg = <0>;
97 mac-address = [ 00 11 22 33 44 55 ];
98
99 ethernet@2 {
100 compatible = "lantiq,xrx200-pdi-port";
101 reg = <2>;
102 phy-mode = "mii";
103 phy-handle = <&phy11>;
104 };
105 ethernet@4 {
106 compatible = "lantiq,xrx200-pdi-port";
107 reg = <4>;
108 phy-mode = "mii";
109 phy-handle = <&phy13>;
110 };
111 };
112
113 mdio@0 {
114 #address-cells = <1>;
115 #size-cells = <0>;
116 compatible = "lantiq,xrx200-mdio";
117 phy11: ethernet-phy@11 {
118 reg = <0x11>;
119 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
120 lantiq,c45-reg-init = <1 0 0 0>;
121 };
122 phy13: ethernet-phy@13 {
123 reg = <0x13>;
124 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
125 lantiq,c45-reg-init = <1 0 0 0>;
126 };
127 };
128 };
129 };
130
131 gphy-xrx200 {
132 compatible = "lantiq,phy-xrx200";
133 firmware = "lantiq/vr9_phy22f_a1x.bin";
134 phys = [ 00 01 ];
135 };
136
137 gpio-keys-polled {
138 compatible = "gpio-keys-polled";
139 #address-cells = <1>;
140 #size-cells = <0>;
141 poll-interval = <100>;
142 reset {
143 label = "reset";
144 gpios = <&gpio 6 1>;
145 linux,code = <0x198>;
146 };
147 };
148
149 gpio-leds {
150 compatible = "gpio-leds";
151
152 port2green {
153 label = "bt:green:port2";
154 gpios = <&gpio 2 0>;
155 };
156 lan2 {
157 label = "bt:green:lan2";
158 gpios = <&gpio 5 0>;
159 };
160 port2orange {
161 label = "bt:orange:port2";
162 gpios = <&gpio 7 0>;
163 };
164 power2 {
165 label = "power2";
166 gpios = <&gpio 14 1>;
167 };
168 dsl {
169 label = "dsl";
170 gpios = <&gpio 19 1>;
171 };
172 power {
173 label = "power";
174 gpios = <&gpio 28 1>;
175 };
176 lan1 {
177 label = "bt:green:lan1";
178 gpios = <&gpio 44 0>;
179 };
180 port1green {
181 label = "bt:green:port1";
182 gpios = <&gpio 45 0>;
183 };
184 port1orange {
185 label = "bt:orange:port1";
186 gpios = <&gpio 47 0>;
187 };
188 };
189 };