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";
19 led-failsafe = &led_run;
20 led-running = &led_run;
21 led-upgrade = &led_run;
27 compatible = "gpio-leds";
30 label = "wizfi630s:green:run";
31 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
35 label = "wizfi630s:green:wps";
36 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
40 label = "wizfi630s:green:uart1";
41 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
45 label = "wizfi630s:green:uart2";
46 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-keys-polled";
58 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
64 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
65 linux,code = <KEY_WPS_BUTTON>;
70 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
76 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
84 state_default: pinctrl0 {
86 ralink,group = "gpio";
87 ralink,function = "gpio";
92 ralink,function = "gpio";
97 ralink,function = "gpio";
102 ralink,group = "i2c";
103 ralink,function = "gpio";
107 ralink,group = "refclk";
108 ralink,function = "gpio";
120 pinctrl-names = "default";
121 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
124 compatible = "jedec,spi-nor";
126 spi-max-frequency = <40000000>;
127 m25p,chunked-io = <31>;
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
141 label = "u-boot-env";
142 reg = <0x30000 0x10000>;
146 factory: partition@40000 {
148 reg = <0x40000 0x10000>;
153 compatible = "denx,uimage";
155 reg = <0x50000 0x1fb0000>;
174 mtd-mac-address = <&factory 0x28>;
178 mediatek,portmap = <0x3e>;