ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_glinet_gl-s200.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca953x.dtsi"
8
9 / {
10 compatible = "glinet,gl-s200", "qca,qca9531";
11 model = "GL.iNet GL-S200";
12
13 aliases {
14 label-mac-device = &eth0;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 pinctrl-names = "default";
21 pinctrl-0 = <&jtag_disable_pins>;
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 linux,input-type = <EV_KEY>;
27 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
28 };
29
30 switch {
31 label = "switch";
32 linux,code = <KEY_SETUP>;
33 linux,input-type = <EV_SW>;
34 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 leds {
39 compatible = "gpio-leds";
40
41 blue_led {
42 label = "gl-s200:blue";
43 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
44 default-state = "on";
45 };
46
47 white_led {
48 label = "gl-s200:white";
49 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
50 default-state = "off";
51 };
52
53 orange_led {
54 label = "gl-s200:orange";
55 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
56 default-state = "off";
57 };
58 };
59
60 gpio-export {
61 compatible = "gpio-export";
62
63 gpio_zigbee_reset {
64 gpio-export,name = "gpio1";
65 gpio-export,output = <1>;
66 gpio-export,direction_may_change;
67 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
68 };
69
70 gpio_zwave_reset {
71 gpio-export,name = "gpio2";
72 gpio-export,output = <1>;
73 gpio-export,direction_may_change;
74 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
75 };
76
77 gpio_zigbee_upgrade {
78 gpio-export,name = "gpio11";
79 gpio-export,output = <1>;
80 gpio-export,direction_may_change;
81 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
82 };
83
84 gpio_zwave_upgrade {
85 gpio-export,name = "gpio17";
86 gpio-export,output = <1>;
87 gpio-export,direction_may_change;
88 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
89 };
90 };
91 };
92
93 &gpio {
94 ngpios = <17>;
95 gpio-line-names =
96 "","reset-zigbee","reset-zwave","reset",
97 "LED-orange","","","","","","",
98 "upgrade-zigbee","LED-white","LED-blue",
99 "switch","","","upgrade-zwave";
100 };
101
102 &pcie0 {
103 status = "okay";
104 };
105
106 &uart {
107 status = "okay";
108 };
109
110 &spi {
111 status = "okay";
112
113 flash@0 {
114 compatible = "jedec,spi-nor";
115 reg = <0>;
116 spi-max-frequency = <25000000>;
117
118 nor_partitions: partitions {
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 partition@0 {
124 label = "u-boot";
125 reg = <0x000000 0x040000>;
126 read-only;
127 };
128
129 partition@40000 {
130 label = "u-boot-env";
131 reg = <0x040000 0x010000>;
132 };
133
134 art: partition@50000 {
135 label = "art";
136 reg = <0x050000 0x010000>;
137 read-only;
138
139 nvmem-layout {
140 compatible = "fixed-layout";
141 #address-cells = <1>;
142 #size-cells = <1>;
143
144 macaddr_wan_lan: macaddr@0 {
145 compatible = "mac-base";
146 reg = <0x0 0x6>;
147 #nvmem-cell-cells = <1>;
148 };
149
150 calibration_art_1000: calibration@1000 {
151 reg = <0x1000 0x440>;
152 };
153 };
154 };
155 };
156 };
157
158 flash_nand: flash@1 {
159 compatible = "spi-nand";
160 reg = <1>;
161 spi-max-frequency = <25000000>;
162 status = "disabled";
163
164 nand_partitions: partitions {
165 compatible = "fixed-partitions";
166 #address-cells = <1>;
167 #size-cells = <1>;
168
169 nand_ubi: partition@0 {
170 label = "ubi";
171 reg = <0x000000 0x8000000>;
172 };
173 };
174 };
175 };
176
177 &eth0 {
178 status = "okay";
179
180 phy-handle = <&swphy4>;
181
182 nvmem-cells = <&macaddr_wan_lan 0>;
183 nvmem-cell-names = "mac-address";
184 };
185
186 &eth1 {
187 status = "okay";
188
189 nvmem-cells = <&macaddr_wan_lan 1>;
190 nvmem-cell-names = "mac-address";
191 };
192
193 &wmac {
194 status = "okay";
195 nvmem-cells = <&calibration_art_1000>;
196 nvmem-cell-names = "calibration";
197 };