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 {
40 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
43 led_power_yellow: led-power-yellow {
44 label = "yellow:power";
45 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
50 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy0tpt";
55 label = "blue:signal1";
56 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
60 label = "blue:signal2";
61 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
65 label = "blue:signal3";
66 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
70 label = "blue:signal4";
71 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
75 label = "blue:signal5";
76 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
81 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
86 compatible = "gpio-keys";
90 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_RESTART>;
96 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
97 linux,code = <KEY_RFKILL>;
102 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_WPS_BUTTON>;
108 compatible = "gpio-export";
111 gpio-export,name = "lt72_ant0";
112 gpio-export,input = <0>;
113 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
117 gpio-export,name = "lt72_ant1";
118 gpio-export,input = <0>;
119 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
123 gpio-export,name = "lt72_power";
124 gpio-export,output = <1>;
125 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
134 compatible = "jedec,spi-nor";
136 spi-max-frequency = <10000000>;
139 compatible = "fixed-partitions";
140 #address-cells = <1>;
150 label = "u-boot-env";
151 reg = <0x30000 0x8000>;
155 // Stock config partition
157 label = "tozed-conf";
158 reg = <0x38000 0x8000>;
162 factory: partition@40000 {
163 compatible = "nvmem-cells";
165 reg = <0x40000 0x10000>;
166 #address-cells = <1>;
170 eeprom_factory_0: eeprom@0 {
174 eeprom_factory_8000: eeprom@8000 {
175 reg = <0x8000 0x200>;
178 macaddr_factory_e000: macaddr@e000 {
184 compatible = "denx,uimage";
186 reg = <0x50000 0xfb0000>;
198 compatible = "mediatek,mt76";
199 reg = <0x0000 0 0 0 0>;
200 nvmem-cells = <&eeprom_factory_8000>;
201 nvmem-cell-names = "eeprom";
202 ieee80211-freq-limit = <5000000 6000000>;
208 compatible = "mediatek,mt76";
209 reg = <0x0000 0 0 0 0>;
210 nvmem-cells = <&eeprom_factory_0>;
211 nvmem-cell-names = "eeprom";
212 ieee80211-freq-limit = <2400000 2500000>;
217 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
221 nvmem-cells = <&macaddr_factory_e000>;
222 nvmem-cell-names = "mac-address";
251 groups = "wdt", "rgmii2", "jtag", "uart3";