lantiq: add the TDW8980 5GHz led
[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 0x300000>;
32                                 };
33
34                                 partition@1a0000 {
35                                         label = "rootfs";
36                                         reg = <0x320000 0x420000>;
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                                 lantiq,switch;
106                                 ethernet@2 {
107                                         compatible = "lantiq,xrx200-pdi-port";
108                                         reg = <2>;
109                                         phy-mode = "mii";
110                                         phy-handle = <&phy11>;
111                                 };
112                                 ethernet@4 {
113                                         compatible = "lantiq,xrx200-pdi-port";
114                                         reg = <4>;
115                                         phy-mode = "mii";
116                                         phy-handle = <&phy13>;
117                                 };
118                         };
119
120                         mdio@0 {
121                                 #address-cells = <1>;
122                                 #size-cells = <0>;
123                                 compatible = "lantiq,xrx200-mdio";
124                                 phy11: ethernet-phy@11 {
125                                         reg = <0x11>;
126                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
127                                 };
128                                 phy13: ethernet-phy@13 {
129                                         reg = <0x13>;
130                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
131                                 };
132                         };
133                 };
134         };
135
136         gpio-keys-polled {
137                 compatible = "gpio-keys-polled";
138                 #address-cells = <1>;
139                 #size-cells = <0>;
140                 poll-interval = <100>;
141                 reset {
142                         label = "reset";
143                         gpios = <&gpio 6 1>;
144                         linux,code = <0x198>;
145                 };
146         };
147
148         gpio-leds {
149                 compatible = "gpio-leds";
150
151                 power2 {
152                         label = "power2";
153                         gpios = <&gpio 14 1>;
154                 };
155                 dsl {
156                         label = "bt:green:dsl";
157                         gpios = <&gpio 19 1>;
158                 };
159                 power {
160                         label = "power";
161                         gpios = <&gpio 28 1>;
162                 };
163         };
164 };