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 = "hanyang,hyc-g920", "mediatek,mt7621-soc";
11 model = "CJ-Hello HYC-G920";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 bootargs = "console=ttyS0,115200";
22 bootargs-override = "console=ttyS0,115200";
26 compatible = "gpio-leds";
29 function = LED_FUNCTION_POWER;
30 color = <LED_COLOR_ID_RED>;
31 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
35 function = LED_FUNCTION_USB;
36 color = <LED_COLOR_ID_GREEN>;
37 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
38 trigger-sources = <&ehci_port2>;
39 linux,default-trigger = "usbport";
44 compatible = "gpio-keys";
48 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
50 debounce-interval = <60>;
59 compatible = "jedec,spi-nor";
61 spi-max-frequency = <40000000>;
64 compatible = "fixed-partitions";
76 reg = <0x30000 0x10000>;
82 reg = <0x40000 0x10000>;
86 compatible = "fixed-layout";
90 eeprom_factory_0: eeprom@0 {
94 eeprom_factory_8000: eeprom@8000 {
98 macaddr_factory_4: macaddr@4 {
99 compatible = "mac-base";
101 #nvmem-cell-cells = <1>;
104 macaddr_factory_8004: macaddr@8004 {
111 compatible = "denx,uimage";
113 reg = <0x50000 0xfb0000>;
118 reg = <0xfb0000 0x20000>;
123 label = "config_bak ";
124 reg = <0xfd0000 0x20000>;
130 reg = <0xff0000 0x10000>;
143 compatible = "mediatek,mt76";
144 reg = <0x0000 0 0 0 0>;
145 nvmem-cells = <&eeprom_factory_8000>;
146 nvmem-cell-names = "eeprom";
147 ieee80211-freq-limit = <5000000 6000000>;
158 compatible = "mediatek,mt76";
159 reg = <0x0000 0 0 0 0>;
160 nvmem-cells = <&eeprom_factory_0>;
161 nvmem-cell-names = "eeprom";
162 ieee80211-freq-limit = <2400000 2500000>;
172 nvmem-cells = <&macaddr_factory_4 0>;
173 nvmem-cell-names = "mac-address";
181 nvmem-cells = <&macaddr_factory_4 1>;
182 nvmem-cell-names = "mac-address";