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