diff --git a/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts b/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts index 811b02fe0..ce1931d9d 100644 --- a/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts +++ b/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts @@ -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>; }; }; }; diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index be5676a44..3b3a59479 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -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