ath79: fix UniFi AC LED mapping
[openwrt/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 aliases {
10 led-boot = &led_white;
11 led-failsafe = &led_white;
12 led-running = &led_blue;
13 led-upgrade = &led_blue;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200n8";
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_white: led_white {
24 label = "ubnt:white:dome";
25 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
26 };
27
28 led_blue: led_blue {
29 label = "ubnt:blue:dome";
30 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
31 };
32
33 };
34
35 keys {
36 compatible = "gpio-keys";
37
38 reset {
39 label = "Reset button";
40 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
43 };
44 };
45 };
46
47 &uart {
48 status = "okay";
49 };
50
51 &gpio {
52 status = "okay";
53 };
54
55 &pcie {
56 status = "okay";
57 };
58
59 &spi {
60 status = "okay";
61 num-cs = <1>;
62
63 flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <25000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "u-boot";
75 reg = <0x000000 0x060000>;
76 read-only;
77 };
78
79 partition@60000 {
80 label = "u-boot-env";
81 reg = <0x060000 0x010000>;
82 read-only;
83 };
84
85 partition@70000 {
86 label = "firmware";
87 reg = <0x070000 0x790000>;
88 compatible = "denx,uimage";
89 };
90
91 partition@800000 {
92 label = "ubnt-airos";
93 reg = <0x800000 0x790000>;
94 read-only;
95 };
96
97 partition@f90000 {
98 label = "bs";
99 reg = <0xf90000 0x020000>;
100 };
101
102 partition@fb0000 {
103 label = "cfg";
104 reg = <0xfb0000 0x040000>;
105 read-only;
106 };
107
108 eeprom: partition@ff0000 {
109 label = "EEPROM";
110 reg = <0xff0000 0x010000>;
111 read-only;
112 };
113 };
114 };
115 };
116
117 &wmac {
118 status = "okay";
119 mtd-cal-data = <&eeprom 0x1000>;
120 mtd-mac-address = <&eeprom 0x0>;
121 };