ath79: move dts-v1 statement to ath79.dtsi
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7241_ubnt_unifi.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7241.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ubnt,unifi", "qca,ar7241";
10 model = "Ubiquiti UniFi";
11
12 aliases {
13 led-boot = &led_dome_green;
14 led-failsafe = &led_dome_green;
15 led-running = &led_dome_green;
16 led-upgrade = &led_dome_green;
17 label-mac-device = &wifi;
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";
28
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
39 led_dome_green: dome_green {
40 label = "ubnt:green:dome";
41 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
42 };
43
44 dome_orange {
45 label = "ubnt:orange:dome";
46 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
47 };
48 };
49 };
50
51 &uart {
52 status = "okay";
53 };
54
55 &pll {
56 clocks = <&extosc>;
57 };
58
59 &spi {
60 status = "okay";
61
62 num-cs = <1>;
63
64 flash@0 {
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@40000 {
81 label = "u-boot-env";
82 reg = <0x040000 0x010000>;
83 };
84
85 partition@50000 {
86 compatible = "denx,uimage";
87 label = "firmware";
88 reg = <0x050000 0x750000>;
89 };
90
91 partition@7a0000 {
92 label = "board_config";
93 reg = <0x7a0000 0x010000>;
94 read-only;
95 };
96
97 partition@7b0000 {
98 label = "cfg";
99 reg = <0x7b0000 0x040000>;
100 read-only;
101 };
102
103 art: partition@7f0000 {
104 label = "art";
105 reg = <0x7f0000 0x010000>;
106 read-only;
107 };
108 };
109 };
110 };
111
112 &pcie {
113 status = "okay";
114
115 wifi: wifi@0,0 {
116 reg = <0x0000 0 0 0 0>;
117 qca,no-eeprom;
118 };
119 };
120
121 &eth0 {
122 status = "okay";
123
124 mtd-mac-address = <&art 0x0>;
125 };
126
127 &eth1 {
128 compatible = "syscon", "simple-mfd";
129 };