]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
arm64: dts: allwinner: A64: Limit MMC2 bus frequency to 150 MHz
authorAndre Przywara <andre.przywara@arm.com>
Wed, 13 Jan 2021 15:26:28 +0000 (15:26 +0000)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Mar 2021 14:08:53 +0000 (15:08 +0100)
commitdfc969f5f8c965546a287461861a9e911de3ba7f
tree0352c9de312196be1f0592c3e7784cfdfe279c1c
parenta83d29cfd6025868f40584639461f92b99c2c970
arm64: dts: allwinner: A64: Limit MMC2 bus frequency to 150 MHz

[ Upstream commit 948c657cc45e8ce48cb533d4e2106145fa765759 ]

In contrast to the H6 (and later) manuals, the A64 datasheet does not
specify any limitations in the maximum possible frequency for eMMC
controllers.
However experimentation has found that a 150 MHz limit similar to other
SoCs and also the MMC0 and MMC1 controllers on the A64 seems to exist
for the MMC2 controller.

Limit the frequency for the MMC2 controller to 150 MHz in the SoC .dtsi.
The Pinebook seems to be the an odd exception, since it apparently seems
to work with 200 MHz as well, so overwrite this in its board .dts file.

Tested on a Pine64-LTS: 200 MHz HS-200 fails, 150 MHz HS-200 works.

Fixes: 22be992faea7 ("arm64: allwinner: a64: Increase the MMC max frequency")
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20210113152630.28810-7-andre.przywara@arm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi