ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_glinet_gl-xe300.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-xe300", "qca,qca9531";
11 model = "GL.iNet GL-XE300";
12
13 aliases {
14 label-mac-device = &eth0;
15 };
16
17 gpio-export {
18 compatible = "gpio-export";
19
20 gpio_lte_power {
21 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
22 gpio-export,name = "lte_power";
23 gpio-export,output = <1>;
24 };
25
26 gpio_sd_detect {
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
28 gpio-export,name = "sd_detect";
29 gpio-export,output = <0>;
30 };
31 };
32
33 keys {
34 compatible = "gpio-keys";
35
36 pinctrl-names = "default";
37 pinctrl-0 = <&jtag_disable_pins>;
38
39 reset {
40 label = "reset";
41 linux,code = <KEY_RESTART>;
42 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
43 };
44 };
45
46 leds {
47 compatible = "gpio-leds";
48
49 lan {
50 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
51 function = LED_FUNCTION_LAN;
52 color = <LED_COLOR_ID_GREEN>;
53 };
54
55 wan {
56 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
57 function = LED_FUNCTION_WAN;
58 color = <LED_COLOR_ID_GREEN>;
59 };
60
61 wlan {
62 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
63 function = LED_FUNCTION_WLAN;
64 color = <LED_COLOR_ID_GREEN>;
65 linux,default-trigger = "phy0tpt";
66 };
67
68 lte {
69 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
70 label = "green:lte";
71 };
72 };
73 };
74
75 &pcie0 {
76 status = "okay";
77 };
78
79 &usb0 {
80 status = "okay";
81 };
82
83 &usb_phy {
84 status = "okay";
85 };
86
87 &spi {
88 status = "okay";
89
90 flash@0 {
91 compatible = "jedec,spi-nor";
92 reg = <0>;
93 spi-max-frequency = <25000000>;
94
95 partitions {
96 compatible = "fixed-partitions";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 partition@0 {
101 label = "u-boot";
102 reg = <0x0 0x40000>;
103 read-only;
104 };
105
106 partition@40000 {
107 label = "u-boot-env";
108 reg = <0x40000 0x10000>;
109 };
110
111 art: partition@50000 {
112 label = "art";
113 reg = <0x50000 0x10000>;
114 read-only;
115
116 nvmem-layout {
117 compatible = "fixed-layout";
118 #address-cells = <1>;
119 #size-cells = <1>;
120
121 macaddr_art_0: macaddr@0 {
122 compatible = "mac-base";
123 reg = <0x0 0x6>;
124 #nvmem-cell-cells = <1>;
125 };
126 };
127 };
128
129 partition@60000 {
130 label = "kernel";
131 reg = <0x60000 0x400000>;
132 };
133
134 partition@460000 {
135 label = "nor_reserved";
136 reg = <0x460000 0xba0000>;
137 };
138 };
139 };
140
141 flash@1 {
142 compatible = "spi-nand";
143 reg = <1>;
144 spi-max-frequency = <25000000>;
145
146 partitions {
147 compatible = "fixed-partitions";
148 #address-cells = <1>;
149 #size-cells = <1>;
150
151 partition@0 {
152 label = "ubi";
153 reg = <0x0 0x8000000>;
154 };
155 };
156 };
157 };
158
159 &eth0 {
160 status = "okay";
161
162 phy-handle = <&swphy4>;
163
164 nvmem-cells = <&macaddr_art_0 0>;
165 nvmem-cell-names = "mac-address";
166 };
167
168 &eth1 {
169 nvmem-cells = <&macaddr_art_0 1>;
170 nvmem-cell-names = "mac-address";
171 };
172
173 &wmac {
174 status = "okay";
175
176 mtd-cal-data = <&art 0x1000>;
177 };