
* Cumulative fixes and updates for MediaTek platform. [1] * Update mt7981 pinctrl driver based on upstream kernel. [2] [1] https://lore.kernel.org/u-boot/cover.1737104723.git.weijie.gao@mediatek.com/ [2] https://lore.kernel.org/u-boot/20250124033902.187796-1-weijie.gao@mediatek.com/ Signed-off-by: Shiji Yang <yangshiji66@qq.com>
82 lines
2.0 KiB
Diff
82 lines
2.0 KiB
Diff
From 1090c6df3767da2c56d5827ba65ce91af8745420 Mon Sep 17 00:00:00 2001
|
|
From: Weijie Gao <weijie.gao@mediatek.com>
|
|
Date: Fri, 17 Jan 2025 17:18:41 +0800
|
|
Subject: [PATCH 13/15] arm: dts: medaitek: add flash interface driving
|
|
settings for mt7988
|
|
|
|
Add driving settings for both SPI and SD/eMMC interfaces to support ensure
|
|
flash devices is accessible for ram-booting.
|
|
|
|
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|
---
|
|
arch/arm/dts/mt7988-rfb.dts | 32 ++++++++++++++++++++++++++++++++
|
|
1 file changed, 32 insertions(+)
|
|
|
|
--- a/arch/arm/dts/mt7988-rfb.dts
|
|
+++ b/arch/arm/dts/mt7988-rfb.dts
|
|
@@ -101,6 +101,19 @@
|
|
function = "spi";
|
|
groups = "spi0", "spi0_wp_hold";
|
|
};
|
|
+
|
|
+ conf-pu {
|
|
+ pins = "SPI0_CSB", "SPI0_HOLD", "SPI0_WP";
|
|
+ drive-strength = <MTK_DRIVE_8mA>;
|
|
+ bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
|
|
+ };
|
|
+
|
|
+ conf-pd {
|
|
+ pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
|
|
+ drive-strength = <MTK_DRIVE_8mA>;
|
|
+ bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
|
|
+ };
|
|
+
|
|
};
|
|
|
|
spi2_pins: spi2-pins {
|
|
@@ -108,6 +121,18 @@
|
|
function = "spi";
|
|
groups = "spi2", "spi2_wp_hold";
|
|
};
|
|
+
|
|
+ conf-pu {
|
|
+ pins = "SPI2_CSB", "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>;
|
|
+ };
|
|
};
|
|
|
|
mmc0_pins_default: mmc0default {
|
|
@@ -121,18 +146,25 @@
|
|
"EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5",
|
|
"EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD";
|
|
input-enable;
|
|
+ drive-strength = <MTK_DRIVE_4mA>;
|
|
+ mediatek,pull-up-adv = <1>; /* pull-up 10K */
|
|
};
|
|
|
|
conf-clk {
|
|
pins = "EMMC_CK";
|
|
+ drive-strength = <MTK_DRIVE_6mA>;
|
|
+ mediatek,pull-down-adv = <2>; /* pull-down 50K */
|
|
};
|
|
|
|
conf-dsl {
|
|
pins = "EMMC_DSL";
|
|
+ mediatek,pull-down-adv = <2>; /* pull-down 50K */
|
|
};
|
|
|
|
conf-rst {
|
|
pins = "EMMC_RSTB";
|
|
+ drive-strength = <MTK_DRIVE_4mA>;
|
|
+ mediatek,pull-up-adv = <1>; /* pull-up 10K */
|
|
};
|
|
};
|
|
};
|