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