generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9344_ocedo_raccoon.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 "ar9344.dtsi"
8
9 / {
10         model = "OCEDO Raccoon";
11         compatible = "ocedo,raccoon", "qca,ar9344";
12
13         chosen {
14                 bootargs = "console=ttyS0,115200n8";
15         };
16
17         aliases {
18                 led-boot = &led_system;
19                 led-failsafe = &led_system;
20                 led-running = &led_system;
21                 led-upgrade = &led_system;
22         };
23
24         leds {
25                 compatible = "gpio-leds";
26
27                 power {
28                         label = "raccoon:green:power";
29                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30                         default-state = "on";
31                 };
32
33                 wlan2g {
34                         label = "raccoon:yellow:wlan24";
35                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
36                         linux,default-trigger = "phy0tpt";
37                 };
38
39                 led_system: system {
40                         label = "raccoon:blue:sys";
41                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
42                 };
43         };
44
45         ath9k-leds {
46                 compatible = "gpio-leds";
47
48                 wlan5g {
49                         label = "raccoon:red:wlan5";
50                         gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
51                         linux,default-trigger = "phy1tpt";
52                 };
53         };
54
55         keys {
56                 compatible = "gpio-keys";
57
58                 reset {
59                         linux,code = <KEY_RESTART>;
60                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
61                         debounce-interval = <60>;
62                 };
63         };
64 };
65
66 &ref {
67         clock-frequency = <40000000>;
68 };
69
70 &uart {
71         status = "okay";
72 };
73
74 &gpio {
75         status = "okay";
76 };
77
78 &spi {
79         status = "okay";
80
81         num-cs = <1>;
82
83         flash@0 {
84                 compatible = "jedec,spi-nor";
85                 reg = <0>;
86                 spi-max-frequency = <25000000>;
87
88                 partitions {
89                         compatible = "fixed-partitions";
90                         #address-cells = <1>;
91                         #size-cells = <1>;
92
93                         uboot: partition@0 {
94                                 label = "u-boot";
95                                 reg = <0x000000 0x040000>;
96                                 read-only;
97                         };
98
99                         partition@40000 {
100                                 label = "u-boot-env";
101                                 reg = <0x040000 0x010000>;
102                         };
103
104                         partition@50000 {
105                                 compatible = "denx,uimage";
106                                 label = "firmware";
107                                 reg = <0x050000 0x740000>;
108                         };
109
110                         partition@790000 {
111                                 label = "vendor";
112                                 reg = <0x790000 0x740000>;
113                                 read-only;
114                         };
115
116                         partition@ed0000 {
117                                 label = "data";
118                                 reg = <0xed0000 0x110000>;
119                                 read-only;
120                         };
121
122                         partition@fe0000 {
123                                 label = "id";
124                                 reg = <0xfe0000 0x010000>;
125                                 read-only;
126                         };
127
128                         art: partition@ff0000 {
129                                 label = "art";
130                                 reg = <0xff0000 0x010000>;
131                                 read-only;
132                         };
133                 };
134         };
135 };
136
137 &pcie {
138         status = "okay";
139
140         ath9k: wifi@0,0 {
141                 compatible = "pci168c,0030";
142                 reg = <0x0000 0 0 0 0>;
143                 mtd-mac-address = <&art 0xc>;
144                 qca,no-eeprom;
145                 #gpio-cells = <2>;
146                 gpio-controller;
147         };
148 };
149
150 &wmac {
151         status = "okay";
152
153         mtd-cal-data = <&art 0x1000>;
154         mtd-mac-address = <&art 0x6>;
155 };
156
157 &mdio0 {
158         status = "okay";
159
160         phy-mask = <0>;
161
162         phy0: ethernet-phy@0 {
163                 reg = <0>;
164         };
165 };
166
167 &eth0 {
168         status = "okay";
169
170         pll-data = <0x06000000 0x00000101 0x00001313>;
171
172         mtd-mac-address = <&art 0x0>;
173
174         phy-mode = "rgmii-id";
175         phy-handle = <&phy0>;
176 };