ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_qxwlan_e600g.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 label-mac-device = &eth0;
12 led-boot = &led_system;
13 led-failsafe = &led_system;
14 led-running = &led_system;
15 led-upgrade = &led_system;
16 };
17
18 keys: keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27 };
28
29 leds: leds {
30 compatible = "gpio-leds";
31
32 led_system: system {
33 label = "blue:system";
34 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
35 default-state = "on";
36 };
37
38 wan {
39 function = LED_FUNCTION_WAN;
40 color = <LED_COLOR_ID_GREEN>;
41 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
42 };
43
44 lan {
45 function = LED_FUNCTION_LAN;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
48 };
49 };
50 };
51
52 &pcie0 {
53 status = "okay";
54
55 wifi@0,0 {
56 compatible = "qcom,ath10k";
57 reg = <0x0000 0 0 0 0>;
58 nvmem-cells = <&cal_art_5000>;
59 nvmem-cell-names = "calibration";
60 };
61 };
62
63 &spi {
64 status = "okay";
65
66 flash@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <25000000>;
70
71 partitions: partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x000000 0x040000>;
79 read-only;
80 };
81
82 partition@40000 {
83 label = "u-boot-env";
84 reg = <0x040000 0x010000>;
85 read-only;
86 };
87
88 pridata: partition@50000 {
89 label = "pri-data";
90 reg = <0x050000 0x010000>;
91 read-only;
92
93 nvmem-layout {
94 compatible = "fixed-layout";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 macaddr_pridata_400: macaddr@400 {
99 compatible = "mac-base";
100 reg = <0x400 0x6>;
101 #nvmem-cell-cells = <1>;
102 };
103
104 cal_art_5000: calibration@5000 {
105 reg = <0x5000 0x844>;
106 };
107 };
108 };
109
110 art: partition@60000 {
111 label = "art";
112 reg = <0x060000 0x010000>;
113 read-only;
114 };
115 };
116 };
117 };
118
119 &eth0 {
120 status = "okay";
121
122 phy-handle = <&swphy4>;
123
124 nvmem-cells = <&macaddr_pridata_400 1>;
125 nvmem-cell-names = "mac-address";
126 };
127
128 &eth1 {
129 nvmem-cells = <&macaddr_pridata_400 0>;
130 nvmem-cell-names = "mac-address";
131 };
132
133 &wmac {
134 status = "okay";
135
136 mtd-cal-data = <&art 0x1000>;
137 };