8278a177dd52c80901668dd25cbe95f0ab88d149
[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                                 gphy-leds {
78                                         lantiq,groups = "gphy0 led0", "gphy0 led1",
79                                                         "gphy0 led2", "gphy1 led0",
80                                                         "gphy1 led1", "gphy1 led2";
81                                         lantiq,function = "gphy";
82                                         lantiq,pull = <2>;
83                                         lantiq,open-drain = <0>;
84                                         lantiq,output = <1>;
85                                 };
86                         };
87                 };
88
89                 eth@E108000 {
90                         #address-cells = <1>;
91                         #size-cells = <0>;
92                         compatible = "lantiq,xrx200-net";
93                         reg = < 0xE108000 0x3000 /* switch */
94                                 0xE10B100 0x70 /* mdio */
95                                 0xE10B1D8 0x30 /* mii */
96                                 0xE10B308 0x30 /* pmac */
97                         >;
98                         interrupt-parent = <&icu0>;
99                         interrupts = <73 72>;
100
101                         interface@0 {
102                                 compatible = "lantiq,xrx200-pdi";
103                                 #address-cells = <1>;
104                                 #size-cells = <0>;
105                                 reg = <0>;
106                                 mac-address = [ 00 11 22 33 44 55 ];
107                                 ethernet@2 {
108                                         compatible = "lantiq,xrx200-pdi-port";
109                                         reg = <2>;
110                                         phy-mode = "mii";
111                                         phy-handle = <&phy11>;
112                                 };
113                                 ethernet@4 {
114                                         compatible = "lantiq,xrx200-pdi-port";
115                                         reg = <4>;
116                                         phy-mode = "mii";
117                                         phy-handle = <&phy13>;
118                                 };
119                         };
120
121                         mdio@0 {
122                                 #address-cells = <1>;
123                                 #size-cells = <0>;
124                                 compatible = "lantiq,xrx200-mdio";
125                                 phy11: ethernet-phy@11 {
126                                         reg = <0x11>;
127                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
128                                 };
129                                 phy13: ethernet-phy@13 {
130                                         reg = <0x13>;
131                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
132                                 };
133                         };
134                 };
135         };
136
137         gphy-xrx200 {
138                 compatible = "lantiq,phy-xrx200";
139                 firmware = "lantiq/vr9_phy22f_a1x.bin";
140                 phys = [ 00 01 ];
141         };
142
143         gpio-keys-polled {
144                 compatible = "gpio-keys-polled";
145                 #address-cells = <1>;
146                 #size-cells = <0>;
147                 poll-interval = <100>;
148                 reset {
149                         label = "reset";
150                         gpios = <&gpio 6 1>;
151                         linux,code = <0x198>;
152                 };
153         };
154
155         gpio-leds {
156                 compatible = "gpio-leds";
157
158                 power2 {
159                         label = "power2";
160                         gpios = <&gpio 14 1>;
161                 };
162                 dsl {
163                         label = "bt:green:dsl";
164                         gpios = <&gpio 19 1>;
165                 };
166                 power {
167                         label = "power";
168                         gpios = <&gpio 28 1>;
169                 };
170         };
171 };