generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7242_ubnt_sw.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar7242.dtsi"
8
9 / {
10         compatible = "qca,ar7242";
11         model = "Ubiquiti Networks SW board";
12
13         chosen {
14                 bootargs = "console=ttyS0,115200n8";
15         };
16
17         aliases {
18                 led-boot = &led_usr;
19                 led-failsafe = &led_usr;
20                 led-running = &led_usr;
21                 led-upgrade = &led_usr;
22         };
23
24         leds {
25                 compatible = "gpio-leds";
26
27                 led_usr: usr {
28                         label = "ubnt:yellow:usr";
29                         gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
30                 };
31         };
32
33         keys {
34                 compatible = "gpio-keys";
35
36                 reset {
37                         linux,code = <KEY_RESTART>;
38                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
39                         debounce-interval = <60>;
40                 };
41         };
42
43         gpio_spi {
44                 compatible = "spi-gpio";
45                 #address-cells = <0x1>;
46                 ranges;
47
48                 sck-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
49                 mosi-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
50                 cs-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
51                 num-chipselects = <1>;
52
53                 gpio_hc595: gpio_spi@0 {
54                         compatible = "fairchild,74hc595";
55                         reg = <0>;
56                         registers-number = <2>;
57                         spi-max-frequency = <100000>;
58                         enable-gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
59
60                         gpio-controller;
61                         #gpio-cells = <2>;
62
63                 };
64         };
65 };
66
67 &spi {
68         status = "okay";
69
70         num-cs = <1>;
71
72         flash@0 {
73                 compatible = "jedec,spi-nor";
74                 reg = <0>;
75                 spi-max-frequency = <25000000>;
76
77                 partitions {
78                         compatible = "fixed-partitions";
79                         #address-cells = <1>;
80                         #size-cells = <1>;
81
82                         partition@0 {
83                                 reg = <0x000000 0x040000>;
84                                 label = "u-boot";
85                                 read-only;
86                         };
87
88                         partition@40000 {
89                                 reg = <0x040000 0x010000>;
90                                 label = "u-boot-env";
91                                 read-only;
92                         };
93
94                         partition@50000 {
95                                 compatible = "denx,uimage";
96                                 reg = <0x050000 0x760000>;
97                                 label = "firmware";
98                         };
99
100                         partition@7b0000 {
101                                 reg = <0x7b0000 0x040000>;
102                                 label = "cfg";
103                                 read-only;
104                         };
105
106                         art: partition@7f0000 {
107                                 reg = <0x7f0000 0x010000>;
108                                 label = "art";
109                                 read-only;
110                         };
111                 };
112         };
113 };
114
115 &usb_phy {
116         status = "okay";
117 };
118
119 &usb {
120         #address-cells = <1>;
121         #size-cells = <0>;
122         status = "okay";
123
124         hub_port: port@1 {
125                 reg = <1>;
126                 #trigger-source-cells = <0>;
127         };
128 };
129
130 &pcie {
131         status = "okay";
132 };
133
134 &uart {
135         status = "okay";
136 };
137
138 &eth1 {
139         status = "okay";
140
141         mtd-mac-address = <&art 0x6>;
142 };