ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_glinet_gl-ar750.dts
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 compatible = "glinet,gl-ar750", "qca,qca9531";
11 model = "GL.iNet GL-AR750";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &eth0;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 pinctrl-names = "default";
25 pinctrl-0 = <&jtag_disable_pins>;
26
27 reset {
28 label = "reset";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
31 };
32
33 mode {
34 label = "mode";
35 linux,code = <BTN_0>;
36 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 led_power: power {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_WHITE>;
46 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
47 default-state = "on";
48 };
49
50 wlan2g {
51 label = "white:wlan2g";
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy1tpt";
54 };
55
56 wlan5g {
57 label = "white:wlan5g";
58 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
59 linux,default-trigger = "phy0tpt";
60 };
61 };
62
63 i2c {
64 compatible = "i2c-gpio";
65
66 sda-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
67 scl-gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
68 };
69 };
70
71 &pcie0 {
72 status = "okay";
73
74 wifi@0,0 {
75 compatible = "qcom,ath10k";
76 reg = <0 0 0 0 0>;
77 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 1>;
78 nvmem-cell-names = "calibration", "mac-address";
79 };
80 };
81
82 &usb0 {
83 status = "okay";
84 };
85
86 &usb_phy {
87 status = "okay";
88 };
89
90 &spi {
91 status = "okay";
92
93 flash@0 {
94 compatible = "jedec,spi-nor";
95 reg = <0>;
96 spi-max-frequency = <25000000>;
97
98 partitions {
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 partition@0 {
104 label = "u-boot";
105 reg = <0x000000 0x040000>;
106 read-only;
107 };
108
109 partition@40000 {
110 label = "u-boot-env";
111 reg = <0x040000 0x010000>;
112 read-only;
113 };
114
115 art: partition@50000 {
116 label = "art";
117 reg = <0x050000 0x010000>;
118 read-only;
119
120 nvmem-layout {
121 compatible = "fixed-layout";
122 #address-cells = <1>;
123 #size-cells = <1>;
124
125 macaddr_art_0: macaddr@0 {
126 compatible = "mac-base";
127 reg = <0x0 0x6>;
128 #nvmem-cell-cells = <1>;
129 };
130
131 cal_art_5000: calibration@5000 {
132 reg = <0x5000 0x844>;
133 };
134 };
135 };
136
137 partition@60000 {
138 compatible = "denx,uimage";
139 label = "firmware";
140 reg = <0x060000 0xfa0000>;
141 };
142 };
143 };
144 };
145
146 &eth0 {
147 status = "okay";
148
149 phy-handle = <&swphy4>;
150
151 nvmem-cells = <&macaddr_art_0 0>;
152 nvmem-cell-names = "mac-address";
153 };
154
155 &eth1 {
156 nvmem-cells = <&macaddr_art_0 1>;
157 nvmem-cell-names = "mac-address";
158 };
159
160 &wmac {
161 status = "okay";
162
163 mtd-cal-data = <&art 0x1000>;
164 };