ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_ubnt_unifiac.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
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 leds: leds {
17 compatible = "gpio-leds";
18
19 led_white: led_white {
20 label = "white:dome";
21 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
22 };
23
24 led_blue: led_blue {
25 label = "blue:dome";
26 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "Reset button";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39 };
40 };
41
42 &pcie {
43 status = "okay";
44
45 wifi@0,0 {
46 compatible = "qcom,ath10k";
47 reg = <0x0000 0 0 0 0>;
48 nvmem-cells = <&cal_art_5000>;
49 nvmem-cell-names = "calibration";
50 };
51 };
52
53 &spi {
54 status = "okay";
55
56 flash@0 {
57 compatible = "jedec,spi-nor";
58 reg = <0>;
59 spi-max-frequency = <25000000>;
60
61 partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x000000 0x060000>;
69 read-only;
70 };
71
72 partition@60000 {
73 label = "u-boot-env";
74 reg = <0x060000 0x010000>;
75 read-only;
76 };
77
78 partition@70000 {
79 /* Combine kernel0 & kernel1 */
80 label = "firmware";
81 reg = <0x070000 0xf20000>;
82 compatible = "denx,uimage";
83 };
84
85 partition@f90000 {
86 label = "bs";
87 reg = <0xf90000 0x020000>;
88 };
89
90 partition@fb0000 {
91 label = "cfg";
92 reg = <0xfb0000 0x040000>;
93 read-only;
94 };
95
96 art: partition@ff0000 {
97 label = "art";
98 reg = <0xff0000 0x010000>;
99 read-only;
100
101 nvmem-layout {
102 compatible = "fixed-layout";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 macaddr_art_0: macaddr@0 {
107 reg = <0x0 0x6>;
108 };
109
110 cal_art_5000: calibration@5000 {
111 reg = <0x5000 0x844>;
112 };
113 };
114 };
115 };
116 };
117 };
118
119 &wmac {
120 status = "okay";
121
122 mtd-cal-data = <&art 0x1000>;
123 };