ath79: fix label MAC address for Ubiquiti UniFi AP Outdoor+
[openwrt/staging/nbd.git] / target / linux / ath79 / dts / ar7241_ubnt_unifi.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", "qca,ar7241";
7 model = "Ubiquiti UniFi AP";
8
9 aliases {
10 led-boot = &led_dome_green;
11 led-failsafe = &led_dome_green;
12 led-running = &led_dome_green;
13 led-upgrade = &led_dome_green;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_dome_green: dome_green {
20 label = "green:dome";
21 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
22 };
23
24 dome_orange {
25 label = "orange:dome";
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 = <25000000>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "u-boot";
46 reg = <0x000000 0x040000>;
47 read-only;
48 };
49
50 partition@40000 {
51 label = "u-boot-env";
52 reg = <0x040000 0x010000>;
53 read-only;
54 };
55
56 partition@50000 {
57 compatible = "denx,uimage";
58 label = "firmware";
59 reg = <0x050000 0x750000>;
60 };
61
62 partition@7a0000 {
63 label = "board_config";
64 reg = <0x7a0000 0x010000>;
65 read-only;
66 };
67
68 partition@7b0000 {
69 label = "cfg";
70 reg = <0x7b0000 0x040000>;
71 read-only;
72 };
73
74 art: partition@7f0000 {
75 label = "art";
76 reg = <0x7f0000 0x010000>;
77 read-only;
78 };
79 };
80 };
81 };
82
83 &eth0 {
84 nvmem-cells = <&macaddr_art_0>;
85 nvmem-cell-names = "mac-address";
86 };
87
88 &eth1 {
89 compatible = "syscon", "simple-mfd";
90 };
91
92 &art {
93 compatible = "nvmem-cells";
94 #address-cells = <1>;
95 #size-cells = <1>;
96
97 macaddr_art_0: macaddr@0 {
98 reg = <0x0 0x6>;
99 };
100 };