1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.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 label = "creativebox-v1:blue:power";
29 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
34 label = "creativebox-v1:blue:sys";
35 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
39 label = "creativebox-v1:blue:internet";
40 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
44 label = "creativebox-v1:blue:wlan2g";
45 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
50 label = "creativebox-v1:blue:wlan5g";
51 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
57 compatible = "gpio-keys-polled";
62 gpios = <&gpio0 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 = <&gpio0 22 GPIO_ACTIVE_HIGH>;
78 gpio-export,name = "power_usb3";
79 gpio-export,output = <1>;
80 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
84 gpio-export,name = "power_sata";
85 gpio-export,output = <1>;
86 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <40000000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
111 label = "u-boot-env";
112 reg = <0x30000 0x10000>;
116 factory: partition@40000 {
118 reg = <0x40000 0x10000>;
123 compatible = "denx,uimage";
125 reg = <0x50000 0x1fb0000>;
141 compatible = "pci1400,7603";
142 reg = <0x0000 0 0 0 0>;
143 mediatek,mtd-eeprom = <&factory 0x0000>;
149 compatible = "pci14c3,7662";
150 reg = <0x0000 0 0 0 0>;
151 mediatek,mtd-eeprom = <&factory 0x8000>;
152 ieee80211-freq-limit = <5000000 6000000>;
157 mtd-mac-address = <&factory 0xe000>;
161 state_default: pinctrl0 {
163 ralink,group = "wdt", "rgmii2";
164 ralink,function = "gpio";