Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
_PLAT_MT7981=y
_DRAM_DDR4=y
_BOOT_DEVICE_EMMC=y
_LOG_LEVEL_INFO=y
4 changes: 4 additions & 0 deletions atf-20240117-bacca82a8/configs/mt7981_sn_r1_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
_PLAT_MT7981=y
_DRAM_DDR4=y
_BOOT_DEVICE_EMMC=y
_LOG_LEVEL_INFO=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_PLAT_MT7986=y
_DRAM_DDR3=y
_LOG_LEVEL_INFO=y
125 changes: 125 additions & 0 deletions uboot-mtk-20250711/arch/arm/dts/mt7981-360t7.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
// SPDX-License-Identifier: GPL-2.0

/dts-v1/;
#include "mt7981.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "mt7981-360-t7";
compatible = "mediatek,mt7981", "mediatek,mt7981-rfb";

chosen {
stdout-path = &uart0;
tick-timer = &timer0;
};

config {
bootcmd = "mtkboardboot";
blink_led = "red:run";
system_led = "green:system";
};

gpio-keys {
compatible = "gpio-keys";

reset-button {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&pio 1 GPIO_ACTIVE_LOW>;
};

mesh-button {
label = "mesh";
linux,code = <BTN_9>;
gpios = <&pio 0 GPIO_ACTIVE_LOW>;
};
};

leds {
compatible = "gpio-leds";

led-0 {
label = "green:system";
gpios = <&pio 7 GPIO_ACTIVE_LOW>;
};

led-1 {
label = "red:run";
gpios = <&pio 3 GPIO_ACTIVE_LOW>;
};
};

memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x10000000>;
};

bl2_verify {
bl2_compatible = "spim-nand";
};
};

&uart0 {
status = "okay";
};

&eth {
status = "okay";
mediatek,gmac-id = <0>;
phy-mode = "2500base-x";
mediatek,switch = "auto";
reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;

fixed-link {
speed = <2500>;
full-duplex;
};
};

&pio {
spi_flash_pins: spi0-pins-func-1 {
mux {
function = "flash";
groups = "spi0", "spi0_wp_hold";
};

conf-pu {
pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
drive-strength = <MTK_DRIVE_4mA>;
bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
};

conf-pd {
pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
drive-strength = <MTK_DRIVE_4mA>;
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 = <0>;
spi-max-frequency = <52000000>;
};
};

&watchdog {
status = "disabled";
};
140 changes: 140 additions & 0 deletions uboot-mtk-20250711/arch/arm/dts/mt7981-abt_asr3000.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

/dts-v1/;
#include "mt7981.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
#address-cells = <1>;
#size-cells = <1>;
model = "mt7981-abt_asr3000";
compatible = "mediatek,mt7981", "mediatek,mt7981-rfb";

chosen {
stdout-path = &uart0;
tick-timer = &timer0;
};

config {
bootcmd = "mtkboardboot";
blink_led = "green:mesh";
system_led = "green:mesh";
};

gpio-keys {
compatible = "gpio-keys";

button-reset {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&pio 1 GPIO_ACTIVE_LOW>;
};

button-mesh {
label = "mesh";
linux,code = <BTN_9>;
gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
};
};

leds {
compatible = "gpio-leds";

led-0 {
label = "red:wan";
gpios = <&pio 4 GPIO_ACTIVE_LOW>;
};

led-1 {
label = "green:wan";
gpios = <&pio 8 GPIO_ACTIVE_LOW>;
};

mesh_led: led-2 {
label = "green:mesh";
gpios = <&pio 15 GPIO_ACTIVE_LOW>;
};

led-3 {
label = "green:wlan2g";
gpios = <&pio 34 GPIO_ACTIVE_LOW>;
};

led-4 {
label = "green:wlan5g";
gpios = <&pio 35 GPIO_ACTIVE_LOW>;
};
};

memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x10000000>;
};

bl2_verify {
bl2_compatible = "spim-nand";
};
};

&eth {
status = "okay";
mediatek,gmac-id = <0>;
phy-mode = "2500base-x";
mediatek,switch = "auto";
reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;

fixed-link {
speed = <2500>;
full-duplex;
};
};

&pio {
spi_flash_pins: spi0-pins-func-1 {
mux {
function = "flash";
groups = "spi0", "spi0_wp_hold";
};

conf-pu {
pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
drive-strength = <MTK_DRIVE_4mA>;
bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
};

conf-pd {
pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
drive-strength = <MTK_DRIVE_4mA>;
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 = <0>;
spi-max-frequency = <52000000>;
};
};

&uart0 {
status = "okay";
};

&watchdog {
status = "disabled";
};
12 changes: 12 additions & 0 deletions uboot-mtk-20250711/arch/arm/dts/mt7981-ax3000t-an8855.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: GPL-2.0

/dts-v1/;
#include "mt7981-ax3000t.dts"

/ {
model = "mt7981-xiaomi-ax3000t-an8855";
};

&eth {
mediatek,switch = "an8855";
};
Loading