ath79: fix label MAC address for Ubiquiti UniFi
[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 label-mac-device = &wifi;
11 led-boot = &led_white;
12 led-failsafe = &led_white;
13 led-running = &led_blue;
14 led-upgrade = &led_blue;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_blue: blue {
21 label = "blue";
22 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
23 };
24
25 led_white: white {
26 label = "white";
27 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
28 };
29 };
30 };
31
32 &spi {
33 status = "okay";
34
35 flash@0 {
36 compatible = "jedec,spi-nor";
37 reg = <0>;
38 spi-max-frequency = <50000000>;
39
40 partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 uboot: partition@0 {
46 label = "u-boot";
47 reg = <0x0 0x40000>;
48 read-only;
49 };
50
51 partition@40000 {
52 label = "u-boot-env";
53 reg = <0x40000 0x10000>;
54 read-only;
55 };
56
57 partition@50000 {
58 label = "firmware";
59 reg = <0x50000 0xf60000>;
60
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 partition@0 {
66 label = "kernel";
67 reg = <0x0 0x300000>;
68 /* Can be resized w/o issues.
69 * U-Boot can load kernel from the
70 * entirety of the "firmware" partition space.
71 */
72 };
73
74 partition@300000 {
75 label = "rootfs";
76 reg = <0x300000 0xc60000>;
77 };
78 };
79
80 partition@fb0000 {
81 label = "cfg";
82 reg = <0xfb0000 0x40000>;
83 read-only;
84 };
85
86 art: partition@ff0000 {
87 label = "art";
88 reg = <0xff0000 0x10000>;
89 read-only;
90 };
91 };
92 };
93 };
94
95 &eth1 {
96 status = "okay";
97
98 mtd-mac-address = <&art 0x6>;
99 };
100
101 &wifi {
102 ubnt,hsr;
103 };