2020-11-25 18:16:51 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
2019-01-11 23:37:43 +00:00
|
|
|
|
|
|
|
#include "mt7628an.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
2024-02-07 13:48:43 +00:00
|
|
|
#include <dt-bindings/leds/common.h>
|
2019-01-11 23:37:43 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "wiznet,wizfi630s", "mediatek,mt7628an-soc";
|
|
|
|
model = "WIZnet WizFi630S";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS1,115200";
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led-boot = &led_run;
|
|
|
|
led-failsafe = &led_run;
|
|
|
|
led-running = &led_run;
|
|
|
|
led-upgrade = &led_run;
|
|
|
|
serial0 = &uart1;
|
|
|
|
serial1 = &uartlite;
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
led_run: run {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:run";
|
2020-08-04 15:55:40 +00:00
|
|
|
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
|
2019-01-11 23:37:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ledwps {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_WPS;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
|
2019-01-11 23:37:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
leduart1 {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:uart1";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
2019-01-11 23:37:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
leduart2 {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:uart2";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
2019-01-11 23:37:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
keys {
|
2019-09-20 12:03:02 +00:00
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
2019-01-11 23:37:43 +00:00
|
|
|
reset {
|
|
|
|
label = "reset";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
2019-01-11 23:37:43 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
2020-08-04 15:55:40 +00:00
|
|
|
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
|
2019-01-11 23:37:43 +00:00
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
};
|
|
|
|
|
|
|
|
scm1 {
|
|
|
|
label = "SCM1";
|
2020-08-04 15:55:40 +00:00
|
|
|
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
2019-01-11 23:37:43 +00:00
|
|
|
linux,code = <BTN_1>;
|
2020-08-04 15:55:40 +00:00
|
|
|
linux,input-type = <EV_SW>;
|
2019-01-11 23:37:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
scm2 {
|
|
|
|
label = "SCM2";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
2019-01-11 23:37:43 +00:00
|
|
|
linux,code = <BTN_2>;
|
2020-08-04 15:55:40 +00:00
|
|
|
linux,input-type = <EV_SW>;
|
2019-01-11 23:37:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-08-04 15:55:40 +00:00
|
|
|
groups = "gpio", "i2s", "i2c", "wdt", "refclk", "p1led_an", "p2led_an";
|
2020-04-12 12:58:29 +00:00
|
|
|
function = "gpio";
|
2019-01-11 23:37:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
|
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <40000000>;
|
2021-09-11 02:06:10 +00:00
|
|
|
broken-flash-reset;
|
2019-01-11 23:37:43 +00:00
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0 0x30000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@30000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x30000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2024-02-17 14:10:10 +00:00
|
|
|
partition@40000 {
|
2019-01-11 23:37:43 +00:00
|
|
|
label = "factory";
|
|
|
|
reg = <0x40000 0x10000>;
|
|
|
|
read-only;
|
2023-10-02 02:12:02 +00:00
|
|
|
|
2023-11-24 02:31:55 +00:00
|
|
|
nvmem-layout {
|
|
|
|
compatible = "fixed-layout";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
eeprom_factory_0: eeprom@0 {
|
|
|
|
reg = <0x0 0x400>;
|
|
|
|
};
|
2023-10-02 02:12:02 +00:00
|
|
|
|
2023-11-24 02:31:55 +00:00
|
|
|
macaddr_factory_2e: macaddr@2e {
|
|
|
|
reg = <0x2e 0x6>;
|
|
|
|
};
|
2023-10-02 02:12:02 +00:00
|
|
|
};
|
2019-01-11 23:37:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
partition@50000 {
|
|
|
|
compatible = "denx,uimage";
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x50000 0x1fb0000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-08-04 15:55:40 +00:00
|
|
|
&uart1 {
|
2019-01-11 23:37:43 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-08-04 15:55:40 +00:00
|
|
|
&uart2 {
|
2019-01-11 23:37:43 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pwm {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
2021-04-02 21:50:02 +00:00
|
|
|
nvmem-cells = <&macaddr_factory_2e>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2019-01-11 23:37:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&esw {
|
|
|
|
mediatek,portmap = <0x3e>;
|
2020-08-03 19:39:43 +00:00
|
|
|
mediatek,portdisable = <0x26>;
|
2019-01-11 23:37:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&sdhci {
|
|
|
|
status = "okay";
|
|
|
|
mediatek,cd-high;
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
status = "okay";
|
2021-08-17 12:07:57 +00:00
|
|
|
|
2023-10-02 02:12:02 +00:00
|
|
|
nvmem-cells = <&eeprom_factory_0>;
|
|
|
|
nvmem-cell-names = "eeprom";
|
2021-04-02 21:50:02 +00:00
|
|
|
};
|