lantiq: fix broadcasts and vlans in two iface mode
[oweals/openwrt.git] / target / linux / lantiq / dts / DGN3500.dtsi
1 #include "ar9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6         chosen {
7                 bootargs = "root= console=ttyLTQ0,115200";
8         };
9
10         aliases {
11                 led-boot = &power_green;
12                 led-failsafe = &power_red;
13                 led-running = &power_green;
14
15                 led-dsl = &dsl;
16                 led-internet = &internet;
17                 led-usb = &usb;
18                 led-wifi = &wifi;
19         };
20
21         memory@0 {
22                 reg = <0x0 0x4000000>;
23         };
24
25         fpi@10000000 {
26                 gpio: pinmux@E100B10 {
27                         pinctrl-names = "default";
28                         pinctrl-0 = <&state_default>;
29
30                         state_default: pinmux {
31                                 exin {
32                                         lantiq,groups = "exin1";
33                                         lantiq,function = "exin";
34                                 };
35                                 pci {
36                                         lantiq,groups = "gnt1", "req1";
37                                         lantiq,function = "pci";
38                                 };
39                                 pci-in {
40                                         lantiq,groups = "req1";
41                                         lantiq,output = <0>;
42                                         lantiq,open-drain = <1>;
43                                         lantiq,pull = <2>;
44                                 };
45                                 pci-out {
46                                         lantiq,groups = "gnt1";
47                                         lantiq,output = <1>;
48                                         lantiq,pull = <0>;
49                                 };
50                         };
51                         pins_spi_default: pins_spi_default {
52                                 spi_in {
53                                         lantiq,groups = "spi_di";
54                                         lantiq,function = "spi";
55                                 };
56                                 spi_out {
57                                         lantiq,groups = "spi_do", "spi_clk",
58                                                 "spi_cs4";
59                                         lantiq,function = "spi";
60                                         lantiq,output = <1>;
61                                 };
62                         };
63                 };
64
65                 etop@E180000 {
66                         phy-mode = "mii";
67                 };
68
69                 ifxhcd@E101000 {
70                         status = "okay";
71                 };
72         };
73
74         rtl8366rb {
75                 compatible = "realtek,rtl8366rb";
76                 gpio-sda = <&gpio 35 GPIO_ACTIVE_HIGH>;
77                 gpio-sck = <&gpio 37 GPIO_ACTIVE_HIGH>;
78         };
79
80         gpio-keys-polled {
81                 compatible = "gpio-keys-polled";
82                 #address-cells = <1>;
83                 #size-cells = <0>;
84                 poll-interval = <100>;
85
86                 rfkill {
87                         label = "rfkill";
88                         gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
89                         linux,code = <KEY_RFKILL>;
90                 };
91                 wps {
92                         label = "wps";
93                         gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
94                         linux,code = <KEY_WPS_BUTTON>;
95                 };
96                 reset {
97                         label = "reset";
98                         gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
99                         linux,code = <KEY_RESTART>;
100                 };
101         };
102
103         gpio-leds {
104                 compatible = "gpio-leds";
105                 internet: internet {
106                         label = "dgn3500:green:internet";
107                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
108                 };
109                 /*
110                         internet red is missing
111                 */
112                 dsl: dsl {
113                         label = "dgn3500:green:dsl";
114                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
115                 };
116                 usb: usb {
117                         label = "dgn3500:green:usb";
118                         gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
119                 };
120                 power_green: power {
121                         label = "dgn3500:green:power";
122                         gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
123                         default-state = "keep";
124                 };
125                 power_red: power2 {
126                         label = "dgn3500:red:power";
127                         gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
128                 };
129                 /*
130                         power amber is missing
131                 */
132                 wifi: wifi {
133                         label = "dgn3500:blue:wireless";
134                         gpios = <&gpio 51 GPIO_ACTIVE_LOW>;
135                 };
136                 wps {
137                         label = "dgn3500:green:wps";
138                         gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
139                 };
140         };
141 };
142
143 &pci0 {
144         status = "okay";
145         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
146
147         wifi@168c,0029 {
148                 compatible = "pci168c,0029";
149                 reg = <0x7000 0 0 0 0>;
150                 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
151         };
152 };
153
154 &spi {
155         pinctrl-names = "default";
156         pinctrl-0 = <&pins_spi_default>;
157
158         status = "ok";
159
160         m25p80@4 {
161                 #address-cells = <1>;
162                 #size-cells = <1>;
163                 compatible = "jedec,spi-nor";
164                 reg = <4 0>;
165                 spi-max-frequency = <20000000>;
166
167                 partitions {
168                         compatible = "fixed-partitions";
169                         #address-cells = <1>;
170                         #size-cells = <1>;
171
172                         partition@0 {
173                                 reg = <0x0 0x10000>;
174                                 label = "uboot";
175                                 read-only;
176                         };
177
178                         partition@10000 {
179                                 reg = <0x10000 0x10000>;
180                                 label = "uboot-env";
181                                 read-only;
182                         };
183
184                         ath9k_cal: partition@20000 {
185                                 reg = <0x20000 0x10000>;
186                                 label = "calibration";
187                                 read-only;
188                         };
189
190                         partition@50000 {
191                                 reg = <0x50000 0xfa0000>;
192                                 label = "firmware";
193                         };
194                 };
195         };
196 };