* [PATCH] arm64: dts: amlogic: meson-g12b-odroid-n2-plus: enable SD UHS modes
@ 2026-11-25 6:17 Igor Velkov via B4 Relay
0 siblings, 0 replies; only message in thread
From: Igor Velkov via B4 Relay @ 2026-11-25 6:17 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl
Cc: devicetree, linux-arm-kernel, linux-amlogic, linux-kernel,
Valerio Setti, Dongjin Kim, Christian Hewitt, Igor Velkov
From: Igor Velkov <iav@iav.lv>
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@iav.lv>
---
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@iav.lv>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-25 6:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 6:17 [PATCH] arm64: dts: amlogic: meson-g12b-odroid-n2-plus: enable SD UHS modes Igor Velkov via B4 Relay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®