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