3a0cc4250ed2b51fccb075344fd7a348cd1e036a
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7241_ubnt_unifi-ap-outdoor-plus.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7241_ubnt_unifi.dtsi"
4
5 / {
6 compatible = "ubnt,unifi-ap-outdoor-plus", "qca,ar7241";
7 model = "Ubiquiti UniFi AP Outdoor+";
8
9 aliases {
10 led-boot = &led_white;
11 led-failsafe = &led_white;
12 led-running = &led_blue;
13 led-upgrade = &led_blue;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_blue: blue {
20 label = "blue";
21 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
22 };
23
24 led_white: white {
25 label = "white";
26 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
27 };
28 };
29 };
30
31 &spi {
32 status = "okay";
33
34 flash@0 {
35 compatible = "jedec,spi-nor";
36 reg = <0>;
37 spi-max-frequency = <50000000>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 uboot: partition@0 {
45 label = "u-boot";
46 reg = <0x0 0x40000>;
47 read-only;
48 };
49
50 partition@40000 {
51 label = "u-boot-env";
52 reg = <0x40000 0x10000>;
53 read-only;
54 };
55
56 partition@50000 {
57 label = "firmware";
58 reg = <0x50000 0xf60000>;
59
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 partition@0 {
65 label = "kernel";
66 reg = <0x0 0x300000>;
67 /* Can be resized w/o issues.
68 * U-Boot can load kernel from the
69 * entirety of the "firmware" partition space.
70 */
71 };
72
73 partition@300000 {
74 label = "rootfs";
75 reg = <0x300000 0xc60000>;
76 };
77 };
78
79 partition@fb0000 {
80 label = "cfg";
81 reg = <0xfb0000 0x40000>;
82 read-only;
83 };
84
85 art: partition@ff0000 {
86 label = "art";
87 reg = <0xff0000 0x10000>;
88 read-only;
89 };
90 };
91 };
92 };
93
94 &eth1 {
95 status = "okay";
96
97 nvmem-cells = <&macaddr_art_6>;
98 nvmem-cell-names = "mac-address";
99 };
100
101 &wifi {
102 ubnt,hsr;
103 };
104
105 &art {
106 compatible = "nvmem-cells";
107 #address-cells = <1>;
108 #size-cells = <1>;
109
110 macaddr_art_6: macaddr@6 {
111 reg = <0x6 0x6>;
112 };
113 };