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