1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "tozed,zlt-s12-pro", "mediatek,mt7621-soc";
11 model = "TOZED ZLT S12 PRO";
14 led-boot = &led_power_blue;
15 led-failsafe = &led_power_yellow;
16 led-running = &led_power_blue;
17 led-upgrade = &led_power_blue;
18 label-mac-device = &wifi1;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-leds";
30 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
35 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
38 led_power_blue: led-power-blue {
39 function = LED_FUNCTION_POWER;
40 color = <LED_COLOR_ID_BLUE>;
41 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
44 led_power_yellow: led-power-yellow {
45 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_YELLOW>;
47 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy0tpt";
57 label = "blue:signal1";
58 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
62 label = "blue:signal2";
63 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
67 label = "blue:signal3";
68 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
72 label = "blue:signal4";
73 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
77 label = "blue:signal5";
78 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
83 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
88 compatible = "gpio-keys";
92 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
93 linux,code = <KEY_RESTART>;
98 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
99 linux,code = <KEY_RFKILL>;
104 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
105 linux,code = <KEY_WPS_BUTTON>;
110 compatible = "gpio-export";
113 gpio-export,name = "lt72_ant0";
114 gpio-export,input = <0>;
115 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
119 gpio-export,name = "lt72_ant1";
120 gpio-export,input = <0>;
121 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
125 gpio-export,name = "lt72_power";
126 gpio-export,output = <1>;
127 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
136 compatible = "jedec,spi-nor";
138 spi-max-frequency = <10000000>;
141 compatible = "fixed-partitions";
142 #address-cells = <1>;
152 label = "u-boot-env";
153 reg = <0x30000 0x8000>;
157 // Stock config partition
159 label = "tozed-conf";
160 reg = <0x38000 0x8000>;
164 factory: partition@40000 {
166 reg = <0x40000 0x10000>;
170 compatible = "fixed-layout";
171 #address-cells = <1>;
174 eeprom_factory_0: eeprom@0 {
178 eeprom_factory_8000: eeprom@8000 {
179 reg = <0x8000 0x200>;
182 macaddr_factory_e000: macaddr@e000 {
189 compatible = "denx,uimage";
191 reg = <0x50000 0xfb0000>;
203 compatible = "mediatek,mt76";
204 reg = <0x0000 0 0 0 0>;
205 nvmem-cells = <&eeprom_factory_8000>;
206 nvmem-cell-names = "eeprom";
207 ieee80211-freq-limit = <5000000 6000000>;
213 compatible = "mediatek,mt76";
214 reg = <0x0000 0 0 0 0>;
215 nvmem-cells = <&eeprom_factory_0>;
216 nvmem-cell-names = "eeprom";
217 ieee80211-freq-limit = <2400000 2500000>;
222 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
226 nvmem-cells = <&macaddr_factory_e000>;
227 nvmem-cell-names = "mac-address";
256 groups = "wdt", "rgmii2", "jtag", "uart3";