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 = "xzwifi,creativebox-v1", "mediatek,mt7621-soc";
11 model = "CreativeBox v1";
15 led-failsafe = &led_sys;
16 led-running = &led_sys;
17 led-upgrade = &led_sys;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
28 function = LED_FUNCTION_POWER;
29 color = <LED_COLOR_ID_BLUE>;
30 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
36 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
40 label = "blue:internet";
41 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
45 label = "blue:wlan2g";
46 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy0tpt";
51 label = "blue:wlan5g";
52 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy1tpt";
58 compatible = "gpio-keys";
62 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_RESTART>;
68 compatible = "gpio-export";
72 gpio-export,name = "power_usb2";
73 gpio-export,output = <1>;
74 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
78 gpio-export,name = "power_usb3";
79 gpio-export,output = <1>;
80 gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
84 gpio-export,name = "power_sata";
85 gpio-export,output = <1>;
86 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <40000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
112 label = "u-boot-env";
113 reg = <0x30000 0x10000>;
119 reg = <0x40000 0x10000>;
123 compatible = "fixed-layout";
124 #address-cells = <1>;
127 eeprom_factory_0: eeprom@0 {
131 eeprom_factory_8000: eeprom@8000 {
132 reg = <0x8000 0x200>;
135 macaddr_factory_e000: macaddr@e000 {
136 compatible = "mac-base";
138 #nvmem-cell-cells = <1>;
144 compatible = "denx,uimage";
146 reg = <0x50000 0x1fb0000>;
162 compatible = "pci1400,7603";
163 reg = <0x0000 0 0 0 0>;
164 nvmem-cells = <&eeprom_factory_0>;
165 nvmem-cell-names = "eeprom";
171 compatible = "pci14c3,7662";
172 reg = <0x0000 0 0 0 0>;
173 nvmem-cells = <&eeprom_factory_8000>;
174 nvmem-cell-names = "eeprom";
175 ieee80211-freq-limit = <5000000 6000000>;
180 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
184 nvmem-cells = <&macaddr_factory_e000 0>;
185 nvmem-cell-names = "mac-address";
213 nvmem-cells = <&macaddr_factory_e000 1>;
214 nvmem-cell-names = "mac-address";
221 groups = "wdt", "rgmii2";