ath79: split ubnt outdoor device leds into separate dtsi
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9563_ubnt_unifiac.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "qca956x.dtsi"
7
8 / {
9         chosen {
10                 bootargs = "console=ttyS0,115200n8";
11         };
12
13         leds {
14                 compatible = "gpio-leds";
15
16                 wifi_ac {
17                         label = "ubnt:white:dome";
18                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
19                         default-state = "off";
20                         linux,default-trigger = "phy0tpt";
21                 };
22
23                 wifi_n {
24                         label = "ubnt:blue:dome";
25                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
26                         default-state = "off";
27                         linux,default-trigger = "phy1tpt";
28                 };
29
30         };
31
32         keys {
33                 compatible = "gpio-keys";
34
35                 reset {
36                         label = "Reset button";
37                         linux,code = <KEY_RESTART>;
38                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
39                         debounce-interval = <60>;
40                 };
41         };
42 };
43
44 &uart {
45         status = "okay";
46 };
47
48 &gpio {
49         status = "okay";
50 };
51
52 &pcie {
53         status = "okay";
54 };
55
56 &spi {
57         status = "okay";
58         num-cs = <1>;
59
60         flash@0 {
61                 compatible = "jedec,spi-nor";
62                 reg = <0>;
63                 spi-max-frequency = <25000000>;
64
65                 partitions {
66                         compatible = "fixed-partitions";
67                         #address-cells = <1>;
68                         #size-cells = <1>;
69
70                         partition@0 {
71                                 label = "u-boot";
72                                 reg = <0x000000 0x060000>;
73                                 read-only;
74                         };
75
76                         partition@60000 {
77                                 label = "u-boot-env";
78                                 reg = <0x060000 0x010000>;
79                                 read-only;
80                         };
81
82                         partition@70000 {
83                                 label = "firmware";
84                                 reg = <0x070000 0x790000>;
85                                 compatible = "denx,uimage";
86                         };
87
88                         partition@800000 {
89                                 label = "ubnt-airos";
90                                 reg = <0x800000 0x790000>;
91                                 read-only;
92                         };
93
94                         partition@f90000 {
95                                 label = "bs";
96                                 reg = <0xf90000 0x020000>;
97                         };
98
99                         partition@fb0000 {
100                                 label = "cfg";
101                                 reg = <0xfb0000 0x040000>;
102                                 read-only;
103                         };
104
105                         eeprom: partition@ff0000 {
106                                 label = "EEPROM";
107                                 reg = <0xff0000 0x010000>;
108                                 read-only;
109                         };
110                 };
111         };
112 };
113
114 &wmac {
115         status = "okay";
116         mtd-cal-data = <&eeprom 0x1000>;
117         mtd-mac-address = <&eeprom 0x0>;
118 };