46b047a09d76011c33d80c9df15e674c274890b9
[openwrt/staging/wigyori.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 aliases {
13 led-boot = &power_green;
14 led-failsafe = &power_red;
15 led-running = &power_green;
16
17 led-internet = &dsl;
18 };
19
20 memory@0 {
21 reg = <0x0 0x2000000>;
22 };
23
24 fpi@10000000 {
25 localbus@0 {
26 ranges = <0 0 0x0 0x3ffffff>;
27 nor-boot@0 {
28 compatible = "lantiq,nor";
29 bank-width = <2>;
30 reg = <0 0x0 0x2000000>;
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partitions {
35 compatible = "fixed-partitions";
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partition@0 {
40 label = "uboot";
41 reg = <0x00000 0x20000>;
42 };
43
44 partition@20000 {
45 label = "firmware";
46 reg = <0x20000 0x7d0000>;
47 };
48
49 partition@7f0000 {
50 label = "uboot-env";
51 reg = <0x7f0000 0x10000>;
52 };
53 };
54 };
55 };
56
57 gpio: pinmux@E100B10 {
58 pinctrl-names = "default";
59 pinctrl-0 = <&state_default>;
60
61 state_default: pinmux {
62 mdio {
63 lantiq,groups = "mdio";
64 lantiq,function = "mdio";
65 };
66 gphy-leds {
67 lantiq,groups = "gphy0 led0", "gphy0 led1",
68 "gphy0 led2", "gphy1 led0",
69 "gphy1 led1", "gphy1 led2";
70 lantiq,function = "gphy";
71 lantiq,pull = <2>;
72 lantiq,open-drain = <0>;
73 lantiq,output = <1>;
74 };
75 };
76 };
77 };
78
79 gphy-xrx200 {
80 compatible = "lantiq,phy-xrx200";
81 firmware1 = "lantiq/vr9_phy11g_a1x.bin"; /*VR9 1.1*/
82 firmware2 = "lantiq/vr9_phy11g_a2x.bin"; /*VR9 1.2*/
83 phys = [ 00 01 ];
84 };
85
86 gpio-keys-polled {
87 compatible = "gpio-keys-polled";
88 #address-cells = <1>;
89 #size-cells = <0>;
90 poll-interval = <100>;
91 reset {
92 label = "reset";
93 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
94 linux,code = <KEY_RESTART>;
95 };
96 };
97
98 gpio-leds {
99 compatible = "gpio-leds";
100
101 power_red: power2 {
102 label = "vg3503j:red:power";
103 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
104 };
105 dsl: dsl {
106 label = "vg3503j:green:dsl";
107 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
108 };
109 power_green: power {
110 label = "vg3503j:green:power";
111 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
112 default-state = "keep";
113 };
114 };
115 };
116
117 &eth0 {
118 interface@0 {
119 compatible = "lantiq,xrx200-pdi";
120 #address-cells = <1>;
121 #size-cells = <0>;
122 reg = <0>;
123
124 lantiq,switch;
125 ethernet@2 {
126 compatible = "lantiq,xrx200-pdi-port";
127 reg = <2>;
128 phy-mode = "mii";
129 phy-handle = <&phy11>;
130 };
131 ethernet@4 {
132 compatible = "lantiq,xrx200-pdi-port";
133 reg = <4>;
134 phy-mode = "mii";
135 phy-handle = <&phy13>;
136 };
137 };
138
139 mdio@0 {
140 #address-cells = <1>;
141 #size-cells = <0>;
142 compatible = "lantiq,xrx200-mdio";
143 phy11: ethernet-phy@11 {
144 reg = <0x11>;
145 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
146 lantiq,led1h = <0x70>;
147 lantiq,led1l = <0x00>;
148 lantiq,led2h = <0x00>;
149 lantiq,led2l = <0x03>;
150 };
151 phy13: ethernet-phy@13 {
152 reg = <0x13>;
153 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
154 lantiq,led1h = <0x70>;
155 lantiq,led1l = <0x00>;
156 lantiq,led2h = <0x00>;
157 lantiq,led2l = <0x03>;
158 };
159 };
160 };