1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.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";
31 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
35 function = LED_FUNCTION_WPS;
36 color = <LED_COLOR_ID_GREEN>;
37 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
41 label = "green:uart1";
42 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
46 label = "green:uart2";
47 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
52 compatible = "gpio-keys";
56 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
62 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_WPS_BUTTON>;
68 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
70 linux,input-type = <EV_SW>;
75 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
77 linux,input-type = <EV_SW>;
84 groups = "gpio", "i2s", "i2c", "wdt", "refclk", "p1led_an", "p2led_an";
92 pinctrl-names = "default";
93 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <40000000>;
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
113 label = "u-boot-env";
114 reg = <0x30000 0x10000>;
118 factory: partition@40000 {
120 reg = <0x40000 0x10000>;
124 compatible = "fixed-layout";
125 #address-cells = <1>;
128 eeprom_factory_0: eeprom@0 {
132 macaddr_factory_2e: macaddr@2e {
139 compatible = "denx,uimage";
141 reg = <0x50000 0x1fb0000>;
160 nvmem-cells = <&macaddr_factory_2e>;
161 nvmem-cell-names = "mac-address";
165 mediatek,portmap = <0x3e>;
166 mediatek,portdisable = <0x26>;
177 nvmem-cells = <&eeprom_factory_0>;
178 nvmem-cell-names = "eeprom";