1 //SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7628an.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "wiznet,wizfi630s", "mediatek,mt7628an-soc";
11 model = "WIZnet WizFi630S";
14 bootargs = "console=ttyS1,115200";
18 device_type = "memory";
19 reg = <0x0 0x8000000>;
24 led-failsafe = &led_run;
25 led-running = &led_run;
26 led-upgrade = &led_run;
32 compatible = "gpio-leds";
35 label = "wizfi630s:green:run";
36 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
40 label = "wizfi630s:green:wps";
41 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
45 label = "wizfi630s:green:uart1";
46 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
50 label = "wizfi630s:green:uart2";
51 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
56 compatible = "gpio-keys-polled";
63 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_RESTART>;
69 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
70 linux,code = <KEY_WPS_BUTTON>;
75 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
81 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
89 state_default: pinctrl0 {
91 ralink,group = "gpio";
92 ralink,function = "gpio";
97 ralink,function = "gpio";
101 ralink,group = "wdt";
102 ralink,function = "gpio";
107 ralink,group = "i2c";
108 ralink,function = "gpio";
112 ralink,group = "refclk";
113 ralink,function = "gpio";
125 pinctrl-names = "default";
126 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
129 compatible = "jedec,spi-nor";
131 spi-max-frequency = <40000000>;
132 m25p,chunked-io = <31>;
135 compatible = "fixed-partitions";
136 #address-cells = <1>;
146 label = "u-boot-env";
147 reg = <0x30000 0x10000>;
151 factory: partition@40000 {
153 reg = <0x40000 0x10000>;
158 compatible = "denx,uimage";
160 reg = <0x50000 0x1fb0000>;
179 mtd-mac-address = <&factory 0x28>;
183 mediatek,portmap = <0x3e>;