d141d48dae44f1df1e3a667fe5f7f2ce6e61b348
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9342_ubnt_wa.dtsi
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ubnt,wa", "qca,ar9342";
10 model = "Ubiquiti Networks WA board";
11
12 keys {
13 compatible = "gpio-keys";
14
15 reset {
16 label = "Reset button";
17 linux,code = <KEY_RESTART>;
18 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
19 debounce-interval = <60>;
20 };
21 };
22 };
23
24 &ref {
25 clock-frequency = <40000000>;
26 };
27
28 &uart {
29 status = "okay";
30 };
31
32 &pcie {
33 status = "okay";
34 };
35
36 &spi {
37 status = "okay";
38
39 flash@0 {
40 compatible = "jedec,spi-nor";
41 reg = <0>;
42 spi-max-frequency = <25000000>;
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 partition@0 {
50 label = "u-boot";
51 reg = <0x000000 0x040000>;
52 read-only;
53 };
54
55 partition@40000 {
56 label = "u-boot-env";
57 reg = <0x040000 0x010000>;
58 read-only;
59 };
60
61 partition@50000 {
62 compatible = "denx,uimage";
63 label = "firmware";
64 reg = <0x050000 0xf60000>;
65 };
66
67 partition@fb0000 {
68 label = "cfg";
69 reg = <0xfb0000 0x040000>;
70 read-only;
71 };
72
73 art: partition@ff0000 {
74 label = "art";
75 reg = <0xff0000 0x010000>;
76 read-only;
77 };
78 };
79 };
80 };
81
82 &wmac {
83 status = "okay";
84
85 qca,disable-5ghz;
86 mtd-cal-data = <&art 0x1000>;
87 };