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 = "dual-q,h721", "mediatek,mt7621-soc";
11 model = "Dual-Q H721";
14 led-boot = &led_status;
15 led-failsafe = &led_status;
16 led-running = &led_status;
17 led-upgrade = &led_status;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-export";
29 gpio-export,name = "usb-30-power";
30 gpio-export,output = <0>;
31 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
35 gpio-export,name = "usb-20-power";
36 gpio-export,output = <0>;
37 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-keys";
46 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
52 compatible = "gpio-leds";
56 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
66 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
71 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
76 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
80 label = "green:wifi1";
81 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
85 label = "green:wifi2";
86 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
90 function = LED_FUNCTION_STATUS;
91 color = <LED_COLOR_ID_GREEN>;
92 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <40000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
111 label = "bootloader";
118 reg = <0x30000 0x10000>;
124 reg = <0x40000 0x10000>;
128 compatible = "fixed-layout";
129 #address-cells = <1>;
132 macaddr_factory_e000: macaddr@e000 {
133 compatible = "mac-base";
135 #nvmem-cell-cells = <1>;
141 compatible = "denx,uimage";
143 reg = <0x50000 0xfb0000>;
183 nvmem-cells = <&macaddr_factory_e000 1>;
184 nvmem-cell-names = "mac-address";
190 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
194 nvmem-cells = <&macaddr_factory_e000 0>;
195 nvmem-cell-names = "mac-address";
200 groups = "jtag", "wdt", "rgmii2";