1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca953x.dtsi"
10 compatible = "glinet,gl-s200", "qca,qca9531";
11 model = "GL.iNet GL-S200";
14 label-mac-device = ð0;
18 compatible = "gpio-keys";
20 pinctrl-names = "default";
21 pinctrl-0 = <&jtag_disable_pins>;
25 linux,code = <KEY_RESTART>;
26 linux,input-type = <EV_KEY>;
27 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_SETUP>;
33 linux,input-type = <EV_SW>;
34 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
39 compatible = "gpio-leds";
42 label = "gl-s200:blue";
43 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
48 label = "gl-s200:white";
49 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
50 default-state = "off";
54 label = "gl-s200:orange";
55 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
56 default-state = "off";
61 compatible = "gpio-export";
64 gpio-export,name = "gpio1";
65 gpio-export,output = <1>;
66 gpio-export,direction_may_change;
67 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
71 gpio-export,name = "gpio2";
72 gpio-export,output = <1>;
73 gpio-export,direction_may_change;
74 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
78 gpio-export,name = "gpio11";
79 gpio-export,output = <1>;
80 gpio-export,direction_may_change;
81 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
85 gpio-export,name = "gpio17";
86 gpio-export,output = <1>;
87 gpio-export,direction_may_change;
88 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
96 "","reset-zigbee","reset-zwave","reset",
97 "LED-orange","","","","","","",
98 "upgrade-zigbee","LED-white","LED-blue",
99 "switch","","","upgrade-zwave";
114 compatible = "jedec,spi-nor";
116 spi-max-frequency = <25000000>;
118 nor_partitions: partitions {
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
125 reg = <0x000000 0x040000>;
130 label = "u-boot-env";
131 reg = <0x040000 0x010000>;
134 art: partition@50000 {
136 reg = <0x050000 0x010000>;
140 compatible = "fixed-layout";
141 #address-cells = <1>;
144 macaddr_wan_lan: macaddr@0 {
145 compatible = "mac-base";
147 #nvmem-cell-cells = <1>;
150 calibration_art_1000: calibration@1000 {
151 reg = <0x1000 0x440>;
158 flash_nand: flash@1 {
159 compatible = "spi-nand";
161 spi-max-frequency = <25000000>;
164 nand_partitions: partitions {
165 compatible = "fixed-partitions";
166 #address-cells = <1>;
169 nand_ubi: partition@0 {
171 reg = <0x000000 0x8000000>;
180 phy-handle = <&swphy4>;
182 nvmem-cells = <&macaddr_wan_lan 0>;
183 nvmem-cell-names = "mac-address";
189 nvmem-cells = <&macaddr_wan_lan 1>;
190 nvmem-cell-names = "mac-address";
195 nvmem-cells = <&calibration_art_1000>;
196 nvmem-cell-names = "calibration";