d85a07a8dcb180bb2b872ebf182953d87f519068
[openwrt/staging/svanheule.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 &pcie {
29 status = "okay";
30 };
31
32 &spi {
33 status = "okay";
34
35 flash@0 {
36 compatible = "jedec,spi-nor";
37 reg = <0>;
38 spi-max-frequency = <25000000>;
39
40 partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 partition@0 {
46 label = "u-boot";
47 reg = <0x000000 0x040000>;
48 read-only;
49 };
50
51 partition@40000 {
52 label = "u-boot-env";
53 reg = <0x040000 0x010000>;
54 read-only;
55 };
56
57 partition@50000 {
58 compatible = "denx,uimage";
59 label = "firmware";
60 reg = <0x050000 0xf60000>;
61 };
62
63 partition@fb0000 {
64 label = "cfg";
65 reg = <0xfb0000 0x040000>;
66 read-only;
67 };
68
69 art: partition@ff0000 {
70 label = "art";
71 reg = <0xff0000 0x010000>;
72 read-only;
73
74 nvmem-layout {
75 compatible = "fixed-layout";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 macaddr_art_0: macaddr@0 {
80 reg = <0x0 0x6>;
81 };
82 };
83 };
84 };
85 };
86 };
87
88 &wmac {
89 status = "okay";
90
91 ieee80211-freq-limit = <2402000 2482000>;
92 mtd-cal-data = <&art 0x1000>;
93 };