ath79: fix dts warnings
[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                         };
86
87                         partition@800000 {
88                                 label = "ubnt-airos";
89                                 reg = <0x800000 0x790000>;
90                                 read-only;
91                         };
92
93                         partition@f90000 {
94                                 label = "bs";
95                                 reg = <0xf90000 0x020000>;
96                         };
97
98                         partition@fb0000 {
99                                 label = "cfg";
100                                 reg = <0xfb0000 0x040000>;
101                                 read-only;
102                         };
103
104                         eeprom: partition@ff0000 {
105                                 label = "EEPROM";
106                                 reg = <0xff0000 0x010000>;
107                                 read-only;
108                         };
109                 };
110         };
111 };
112
113 &wmac {
114         status = "okay";
115         mtd-cal-data = <&eeprom 0x1000>;
116         mtd-mac-address = <&eeprom 0x0>;
117 };