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>
10 model = "Qihoo 360T7";
11 compatible = "qihoo,360t7", "mediatek,mt7981";
15 led-boot = &led_status_red;
16 led-failsafe = &led_status_red;
17 led-running = &led_status_green;
18 led-upgrade = &led_status_green;
22 stdout-path = "serial0:115200n8";
26 reg = <0 0x40000000 0 0x10000000>;
30 compatible = "gpio-keys";
34 linux,code = <KEY_RESTART>;
35 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-leds";
50 gpios = <&pio 3 GPIO_ACTIVE_LOW>;
53 led_status_green: green {
54 label = "green:status";
55 gpios = <&pio 7 GPIO_ACTIVE_LOW>;
64 compatible = "mediatek,eth-mac";
66 phy-mode = "2500base-x";
78 compatible = "mediatek,mt7531";
80 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
82 #interrupt-cells = <1>;
83 interrupt-parent = <&pio>;
84 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
89 pinctrl-names = "default";
90 pinctrl-0 = <&spi0_flash_pins>;
94 compatible = "spi-nand";
99 spi-max-frequency = <52000000>;
100 spi-tx-buswidth = <4>;
101 spi-rx-buswidth = <4>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
110 reg = <0x0000000 0x0100000>;
115 label = "u-boot-env";
116 reg = <0x0100000 0x0080000>;
119 factory: partition@180000 {
121 reg = <0x0180000 0x0200000>;
127 reg = <0x0380000 0x0200000>;
133 reg = <0x0580000 0x6c00000>;
138 reg = <0x7180000 0x0100000>;
144 reg = <0x7280000 0x0080000>;
150 reg = <0x7300000 0x0700000>;
159 #address-cells = <1>;
185 phy-mode = "2500base-x";
197 spi0_flash_pins: spi0-pins {
200 groups = "spi0", "spi0_wp_hold";
204 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
205 drive-strength = <8>;
206 mediatek,pull-up-adv = <0>; /* bias-disable */
210 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
211 drive-strength = <8>;
212 mediatek,pull-up-adv = <0>; /* bias-disable */
228 mediatek,mtd-eeprom = <&factory 0x0>;