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