Files
bl-mt798x/uboot-mtk-20230718-09eda825/arch/arm/dts/mt7986a-ruijie-ew-6000gx-pro.dts
2025-08-29 20:04:23 +08:00

160 lines
2.8 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later
/dts-v1/;
#include "mt7986.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ {
#address-cells = <1>;
#size-cells = <1>;
model = "mt7986-ruijie-ew-6000gx-pro";
compatible = "mediatek,mt7986", "mediatek,mt7986-rfb";
chosen {
stdout-path = &uart0;
tick-timer = &timer0;
};
config {
bootcmd = "mtkboardboot";
blink_led = "meshled:status";
system_led = "meshled:status";
environment {
bootconf = "config@ruijie_x60_gsw_en8811h_phy";
};
};
memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x20000000>;
};
mtd-layout {
layout@0 {
label = "default";
cmdline = "console=ttyS0,115200n8 earlycon=uart8250,mmio32,0x11002000";
mtdids = "nmbm0=nmbm0";
mtdparts = "nmbm0:1024k(bl2),512k(u-boot-env),2048k(Factory),2048k(fip),512k(product_info),512k(kdump),64512k(ubi)";
};
layout@1 {
label = "ubi-107m";
mtdids = "nmbm0=nmbm0";
mtdparts = "nmbm0:1024k(bl2),512k(u-boot-env),2048k(Factory),2048k(fip),512k(product_info),512k(kdump),109568k(ubi)";
};
};
gpio-keys {
compatible = "gpio-keys";
reset-button {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
mesh-button {
label = "mesh";
linux,code = <BTN_9>;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
};
gpio-leds {
compatible = "gpio-leds";
led-0 {
label = "meshled:status";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
default-state = "off";
};
led-1 {
label = "red:status";
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
default-state = "off";
};
led-2 {
label = "green:status";
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
default-state = "off";
};
led-3 {
label = "blue:status";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
default-state = "off";
};
};
bl2_verify {
bl2_compatible = "spim-nand";
};
};
&eth {
status = "okay";
mediatek,gmac-id = <0>;
phy-mode = "2500base-x";
mediatek,switch = "mt7531";
reset-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
fixed-link {
speed = <2500>;
full-duplex;
};
};
&pinctrl {
spi_flash_pins: spi0-pins-func-1 {
mux {
function = "flash";
groups = "spi0", "spi0_wp_hold";
};
conf-pu {
pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
drive-strength = <MTK_DRIVE_8mA>;
bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
};
conf-pd {
pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
drive-strength = <MTK_DRIVE_8mA>;
bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
};
};
};
&spi0 {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&spi_flash_pins>;
status = "okay";
must_tx;
enhance_timing;
dma_ext;
ipm_design;
support_quad;
tick_dly = <2>;
sample_sel = <0>;
spi_nand@0 {
compatible = "spi-nand";
reg = <1>;
spi-max-frequency = <52000000>;
};
};
&uart0 {
status = "okay";
};
&watchdog {
status = "disabled";
};