Skip to content

Commit 8dfe51c

Browse files
ericwoudAngeloGioacchino Del Regno
authored andcommitted
arm64: dts: mt7986: fix emmc hs400 mode without uboot initialization
Eric reports errors on emmc with hs400 mode when booting linux on bpi-r3 without uboot [1]. Booting with uboot does not show this because clocks seem to be initialized by uboot. Fix this by adding assigned-clocks and assigned-clock-parents like it's done in uboot [2]. [1] https://forum.banana-pi.org/t/bpi-r3-kernel-fails-setting-emmc-clock-to-416m-depends-on-u-boot/15170 [2] https://github.com/u-boot/u-boot/blob/master/arch/arm/dts/mt7986.dtsi#L287 Cc: stable@vger.kernel.org Fixes: 513b49d ("arm64: dts: mt7986: add mmc related device nodes") Signed-off-by: Eric Woudstra <ericwouds@gmail.com> Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20231025170832.78727-2-linux@fw-web.de Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
1 parent 8980c30 commit 8dfe51c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

arch/arm64/boot/dts/mediatek/mt7986a.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@
374374
reg = <0 0x11230000 0 0x1000>,
375375
<0 0x11c20000 0 0x1000>;
376376
interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
377+
assigned-clocks = <&topckgen CLK_TOP_EMMC_416M_SEL>,
378+
<&topckgen CLK_TOP_EMMC_250M_SEL>;
379+
assigned-clock-parents = <&apmixedsys CLK_APMIXED_MPLL>,
380+
<&topckgen CLK_TOP_NET1PLL_D5_D2>;
377381
clocks = <&topckgen CLK_TOP_EMMC_416M_SEL>,
378382
<&infracfg CLK_INFRA_MSDC_HCK_CK>,
379383
<&infracfg CLK_INFRA_MSDC_CK>,

0 commit comments

Comments
 (0)