1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
11 model = "Qihoo 360T7";
12 compatible = "qihoo,360t7", "mediatek,mt7981";
16 led-boot = &led_status_red;
17 led-failsafe = &led_status_red;
18 led-running = &led_status_green;
19 led-upgrade = &led_status_green;
23 stdout-path = "serial0:115200n8";
27 reg = <0 0x40000000 0 0x10000000>;
31 compatible = "gpio-keys";
35 linux,code = <KEY_RESTART>;
36 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
42 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
47 compatible = "gpio-leds";
50 function = LED_FUNCTION_STATUS;
51 color = <LED_COLOR_ID_RED>;
52 gpios = <&pio 3 GPIO_ACTIVE_LOW>;
55 led_status_green: green {
56 function = LED_FUNCTION_STATUS;
57 color = <LED_COLOR_ID_GREEN>;
58 gpios = <&pio 7 GPIO_ACTIVE_LOW>;
67 compatible = "mediatek,eth-mac";
69 phy-mode = "2500base-x";
81 compatible = "mediatek,mt7531";
83 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
85 #interrupt-cells = <1>;
86 interrupt-parent = <&pio>;
87 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&spi0_flash_pins>;
97 compatible = "spi-nand";
102 spi-max-frequency = <52000000>;
103 spi-tx-bus-width = <4>;
104 spi-rx-bus-width = <4>;
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
113 reg = <0x0000000 0x0100000>;
118 label = "u-boot-env";
119 reg = <0x0100000 0x0080000>;
122 factory: partition@180000 {
124 reg = <0x0180000 0x0200000>;
130 reg = <0x0380000 0x0200000>;
136 reg = <0x0580000 0x6c00000>;
141 reg = <0x7180000 0x0100000>;
147 reg = <0x7280000 0x0080000>;
153 reg = <0x7300000 0x0700000>;
162 #address-cells = <1>;
188 phy-mode = "2500base-x";
200 spi0_flash_pins: spi0-pins {
203 groups = "spi0", "spi0_wp_hold";
207 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
208 drive-strength = <8>;
209 mediatek,pull-up-adv = <0>; /* bias-disable */
213 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
214 drive-strength = <8>;
215 mediatek,pull-up-adv = <0>; /* bias-disable */
231 mediatek,mtd-eeprom = <&factory 0x0>;