ath79: fix compatible strings
[oweals/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                 #address-cells = <1>;
26                 #size-cells = <0>;
27
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                 #address-cells = <1>;
64                 #size-cells = <1>;
65                 compatible = "jedec,spi-nor";
66                 reg = <0>;
67                 spi-max-frequency = <25000000>;
68
69                 partitions {
70                         compatible = "fixed-partitions";
71                         #address-cells = <1>;
72                         #size-cells = <1>;
73
74                         partition@0 {
75                                 label = "u-boot";
76                                 reg = <0x000000 0x040000>;
77                                 read-only;
78                         };
79
80                         partition@1 {
81                                 label = "u-boot-env";
82                                 reg = <0x040000 0x010000>;
83                         };
84
85                         partition@2 {
86                                 label = "firmware";
87                                 reg = <0x050000 0x750000>;
88                         };
89
90                         partition@3 {
91                                 label = "board_config";
92                                 reg = <0x7a0000 0x010000>;
93                                 read-only;
94                         };
95
96                         partition@4 {
97                                 label = "cfg";
98                                 reg = <0x7b0000 0x040000>;
99                                 read-only;
100                         };
101
102                         art: partition@5 {
103                                 label = "art";
104                                 reg = <0x7f0000 0x010000>;
105                                 read-only;
106                         };
107                 };
108         };
109 };
110
111 &pcie {
112         status = "okay";
113
114         ath9k@0 {
115                 reg = <0x0000 0 0 0 0>;
116                 qca,no-eeprom;
117         };
118 };
119
120 &eth0 {
121         status = "okay";
122
123         mtd-mac-address = <&art 0x0>;
124 };
125
126 &eth1 {
127         status = "okay";
128
129         compatible = "syscon", "simple-mfd";
130 };