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