1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca953x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "glinet,gl-xe300", "qca,qca9531";
11 model = "GL.iNet GL-XE300";
14 label-mac-device = ð0;
18 compatible = "gpio-export";
21 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
22 gpio-export,name = "lte_power";
23 gpio-export,output = <1>;
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
28 gpio-export,name = "sd_detect";
29 gpio-export,output = <0>;
34 compatible = "gpio-keys";
36 pinctrl-names = "default";
37 pinctrl-0 = <&jtag_disable_pins>;
41 linux,code = <KEY_RESTART>;
42 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
47 compatible = "gpio-leds";
50 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
51 function = LED_FUNCTION_LAN;
52 color = <LED_COLOR_ID_GREEN>;
56 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
57 function = LED_FUNCTION_WAN;
58 color = <LED_COLOR_ID_GREEN>;
62 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
63 function = LED_FUNCTION_WLAN;
64 color = <LED_COLOR_ID_GREEN>;
65 linux,default-trigger = "phy0tpt";
69 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <25000000>;
96 compatible = "fixed-partitions";
107 label = "u-boot-env";
108 reg = <0x40000 0x10000>;
111 art: partition@50000 {
113 reg = <0x50000 0x10000>;
117 compatible = "fixed-layout";
118 #address-cells = <1>;
121 macaddr_art_0: macaddr@0 {
122 compatible = "mac-base";
124 #nvmem-cell-cells = <1>;
131 reg = <0x60000 0x400000>;
135 label = "nor_reserved";
136 reg = <0x460000 0xba0000>;
142 compatible = "spi-nand";
144 spi-max-frequency = <25000000>;
147 compatible = "fixed-partitions";
148 #address-cells = <1>;
153 reg = <0x0 0x8000000>;
162 phy-handle = <&swphy4>;
164 nvmem-cells = <&macaddr_art_0 0>;
165 nvmem-cell-names = "mac-address";
169 nvmem-cells = <&macaddr_art_0 1>;
170 nvmem-cell-names = "mac-address";
176 mtd-cal-data = <&art 0x1000>;