generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9330_dlink_dir-505.dts
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 "ar9330.dtsi"
8
9 / {
10         model = "D-Link DIR-505";
11         compatible = "dlink,dir-505", "qca,ar9330";
12
13         aliases {
14                 serial0 = &uart;
15                 led-boot = &led_power_green;
16                 led-failsafe = &led_status_red;
17                 led-running = &led_power_green;
18                 led-upgrade = &led_status_red;
19         };
20
21         keys {
22                 compatible = "gpio-keys";
23
24                 wps {
25                         label = "WPS button";
26                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
27                         linux,code = <KEY_WPS_BUTTON>;
28                 };
29
30                 reset {
31                         label = "Reset button";
32                         gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
33                         linux,code = <KEY_RESTART>;
34                 };
35         };
36
37         leds {
38                 compatible = "gpio-leds";
39                 pinctrl-names = "default";
40                 pinctrl-0 = <&jtag_disable_pins>;
41
42                 led_power_green: power {
43                         label = "d-link:green:power";
44                         gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
45                 };
46
47                 led_status_red: status {
48                         label = "d-link:red:status";
49                         gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
50                 };
51         };
52 };
53
54 &uart {
55         status = "okay";
56 };
57
58 &gpio {
59         status = "okay";
60
61         led_enable {
62                 gpio-hog;
63                 output-low;
64                 gpios = <1 GPIO_ACTIVE_LOW>;
65                 line-name = "d-link:power:led";
66         };
67 };
68
69 &usb {
70         dr_mode = "host";
71         status = "okay";
72 };
73
74 &usb_phy {
75         status = "okay";
76 };
77
78 &eth0 {
79         status = "okay";
80
81         gmac-config {
82                 device = <&gmac>;
83                 switch-phy-addr-swap = <0>;
84                 switch-phy-swap = <0>;
85         };
86 };
87
88 &eth1 {
89         compatible = "syscon", "simple-mfd";
90         status = "okay";
91 };
92
93 &spi {
94         num-chipselects = <1>;
95         status = "okay";
96
97         flash@0 {
98                 compatible = "jedec,spi-nor";
99                 spi-max-frequency = <50000000>;
100                 reg = <0>;
101
102                 partitions {
103                         compatible = "fixed-partitions";
104                         #address-cells = <1>;
105                         #size-cells = <1>;
106
107                         partition@0 {
108                                 label = "u-boot";
109                                 reg = <0x0 0x10000>;
110                                 read-only;
111                         };
112
113                         art: partition@10000 {
114                                 label = "art";
115                                 reg = <0x10000 0x10000>;
116                                 read-only;
117                         };
118
119                         mac: partition@20000 {
120                                 label = "mac";
121                                 reg = <0x20000 0x10000>;
122                                 read-only;
123                         };
124
125                         partition@30000 {
126                                 label = "nvram";
127                                 reg = <0x30000 0x10000>;
128                                 read-only;
129                         };
130
131                         partition@40000 {
132                                 label = "language";
133                                 reg = <0x40000 0x40000>;
134                                 read-only;
135                         };
136
137                         partition@80000 {
138                                 compatible = "denx,uimage";
139                                 label = "firmware";
140                                 reg = <0x80000 0x780000>;
141                         };
142                 };
143         };
144 };
145
146 &wmac {
147         status = "okay";
148         qca,no-eeprom;
149 };