ath79: add WNDR3700 and WNDR3700v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7241_ubnt_unifi.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 "ar7241.dtsi"
8
9 / {
10 compatible = "ubnt,unifi", "qca,ar7241";
11 model = "Ubiquiti UniFi AP";
12
13 aliases {
14 led-status = &dome_green;
15 };
16
17 extosc: ref {
18 compatible = "fixed-clock";
19 #clock-cells = <0>;
20 clock-frequency = <40000000>;
21 };
22
23 keys {
24 compatible = "gpio-keys-polled";
25 poll-interval = <20>;
26 reset {
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
29 debounce-interval = <60>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35 dome_green: dome-green {
36 label = "ubnt:green:dome";
37 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
38 };
39
40 dome-orange {
41 label = "ubnt:orange:dome";
42 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
43 };
44 };
45 };
46
47 &uart {
48 status = "okay";
49 };
50
51 &pll {
52 clocks = <&extosc>;
53 };
54
55 &spi {
56 status = "okay";
57 num-cs = <1>;
58
59 flash@0 {
60 compatible = "jedec,spi-nor";
61 reg = <0>;
62 spi-max-frequency = <25000000>;
63
64 partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "u-boot";
71 reg = <0x000000 0x040000>;
72 read-only;
73 };
74
75 partition@1 {
76 label = "u-boot-env";
77 reg = <0x040000 0x010000>;
78 };
79
80 partition@2 {
81 label = "firmware";
82 reg = <0x050000 0x750000>;
83 };
84
85 partition@3 {
86 label = "board_config";
87 reg = <0x7a0000 0x010000>;
88 read-only;
89 };
90
91 partition@4 {
92 label = "cfg";
93 reg = <0x7b0000 0x040000>;
94 read-only;
95 };
96
97 art: partition@5 {
98 label = "art";
99 reg = <0x7f0000 0x010000>;
100 read-only;
101 };
102 };
103 };
104 };
105
106 &pcie {
107 status = "okay";
108
109 wifi@0,0 {
110 reg = <0x0000 0 0 0 0>;
111 qca,no-eeprom;
112 };
113 };
114
115 &eth0 {
116 status = "okay";
117
118 mtd-mac-address = <&art 0x0>;
119 };
120
121 &eth1 {
122 status = "okay";
123
124 compatible = "syscon", "simple-mfd";
125 };