ramips: improve AP-MT7621A-V60 EVB support

This commit is contained in:
coolsnowwolf 2024-05-21 20:49:55 +08:00
parent c188b9f52e
commit 5376eb13b3
2 changed files with 25 additions and 5 deletions

View File

@ -3,6 +3,18 @@
/ {
compatible = "mediatek,ap-mt7621a-v60", "mediatek,mt7621-soc";
model = "Mediatek AP-MT7621A-V60 EVB";
chosen {
bootargs = "console=ttyS0,57600";
};
watchdog: watchdog {
compatible = "linux,wdt-gpio";
gpios = <&gpio 27 0>;
hw_algo = "toggle";
hw_margin_ms = <3000>;
always-running;
};
sound {
compatible = "simple-audio-card";
@ -38,6 +50,12 @@
};
&pinctrl {
state_default: pinctrl0 {
gpio {
ralink,group = "rgmii2", "jtag";
ralink,function = "gpio";
};
};
i2s_pins: i2s {
i2s {
groups = "uart3";
@ -72,9 +90,10 @@
status = "okay";
flash@0 {
compatible = "mx25l6405d","jedec,spi-nor";
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
spi-max-frequency = <45000000>;
broken-flash-reset;
partitions {
compatible = "fixed-partitions";
@ -102,7 +121,7 @@
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0x7b0000>;
reg = <0x50000 0x1fb0000>;
};
};
};

View File

@ -1102,10 +1102,11 @@ TARGET_DEVICES += linksys_re6500
define Device/mediatek_ap-mt7621a-v60
$(Device/dsa-migration)
IMAGE_SIZE := 7872k
$(Device/uimage-lzma-loader)
IMAGE_SIZE := 32448k
DEVICE_VENDOR := Mediatek
DEVICE_MODEL := AP-MT7621A-V60 EVB
DEVICE_PACKAGES := kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620 -wpad-openssl
DEVICE_PACKAGES := kmod-usb3 kmod-i2c-gpio kmod-rtc-pcf8563 kmod-sdhci-mt7620 kmod-sound-mt7620 kmod-mt76x2
endef
TARGET_DEVICES += mediatek_ap-mt7621a-v60