[PATCH] arm64: dts: amlogic: meson-g12b-odroid-n2-plus: enable SD UHS modes
From: Igor Velkov via B4 Relay
Date: Wed Nov 25 2026 - 01:22:46 EST
From: Igor Velkov <iav@xxxxxx>
The ODROID-N2+ (board rev 0.5 and later) feeds the SD I/O rail from an
FC8731 LDO that a GPIO switches between 3.3 V and 1.8 V, so the card can
switch to UHS-I signalling. Enable SDR12 to SDR104 and raise
max-frequency to 200 MHz, as meson-sm1-odroid.dtsi already does for the
ODROID-C4/HC4.
Tested on an ODROID-N2+ with a SanDisk 256 GB card and a v7.3-rc6 based
kernel: SDR104 at 200 MHz, reads at 86 MB/s instead of 23 MB/s in
high-speed mode. 20 warm reboots, 10 of them with the BootROM loading
the bootloader from the SD card, and 4 watchdog resets with the card
left in SDR104 at 1.8 V all booted from the SD card again. That is the
case for which commit 663bfe77b6f7 ("arm64: dts: amlogic:
gxbb-odroidc2: remove UHS capability for SD card") dropped UHS on the
ODROID-C2.
The ODROID-N2 (rev 0.4) uses an RT9179 with other divider resistors; by
the schematic its 1.8 V setting is about 1.9 V. This is not tested, so
the ODROID-N2 keeps high-speed.
Signed-off-by: Igor Velkov <iav@xxxxxx>
---
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
index ce1198ad34e4..1f49686f359d 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
@@ -15,6 +15,14 @@ / {
model = "Hardkernel ODROID-N2Plus";
};
+&sd_emmc_b {
+ max-frequency = <200000000>;
+ sd-uhs-sdr12;
+ sd-uhs-sdr25;
+ sd-uhs-sdr50;
+ sd-uhs-sdr104;
+};
+
&vddcpu_a {
regulator-min-microvolt = <680000>;
regulator-max-microvolt = <1040000>;
---
base-commit: 36f28822232ae35d36ccd2587e333db1ac961ff7
change-id: 20261125-n2plus-sd-uhs-7f4507b55364
Best regards,
--
Igor Velkov <iav@xxxxxx>