linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: defconfig: enable Rockchip io-domain driver
@ 2018-03-08 21:35 Enric Balletbo i Serra
  2018-03-09 12:49 ` Robin Murphy
  0 siblings, 1 reply; 2+ messages in thread
From: Enric Balletbo i Serra @ 2018-03-08 21:35 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Heiko Stuebner
  Cc: linux-arm-kernel, linux-kernel, kernel

Heiko Stübner justified pretty well the change in commit e330eb86ba0
'ARM: multi_v7_defconfig: enable Rockchip io-domain driver'. This change
is also needed for arm64 rockchip boards, so, do the same for arm64.

The io-domain driver is necessary to notify the soc about voltages
changes happening on supplying regulators. Probably the most important
user right now is the mmc tuning code, where the soc needs to get
notified when the voltage is dropped to the 1.8V point.

As this option is necessary to successfully tune UHS cards etc, it
should get built in. Otherwise, tunning will fail with,

   dwmmc_rockchip fe320000.dwmmc: All phases bad!
   mmc0: tuning execution failed: -5

Cc: Heiko Stübner <heiko@sntech.de>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index ba859709c2d4..d65d53b1ff77 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -313,6 +313,8 @@ CONFIG_GPIO_XGENE_SB=y
 CONFIG_GPIO_PCA953X=y
 CONFIG_GPIO_PCA953X_IRQ=y
 CONFIG_GPIO_MAX77620=y
+CONFIG_POWER_AVS=y
+CONFIG_ROCKCHIP_IODOMAIN=y
 CONFIG_POWER_RESET_MSM=y
 CONFIG_POWER_RESET_XGENE=y
 CONFIG_POWER_RESET_SYSCON=y
-- 
2.16.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm64: defconfig: enable Rockchip io-domain driver
  2018-03-08 21:35 [PATCH] arm64: defconfig: enable Rockchip io-domain driver Enric Balletbo i Serra
@ 2018-03-09 12:49 ` Robin Murphy
  0 siblings, 0 replies; 2+ messages in thread
From: Robin Murphy @ 2018-03-09 12:49 UTC (permalink / raw)
  To: Enric Balletbo i Serra, Catalin Marinas, Will Deacon, Heiko Stuebner
  Cc: kernel, linux-kernel, linux-arm-kernel

On 08/03/18 21:35, Enric Balletbo i Serra wrote:
> Heiko Stübner justified pretty well the change in commit e330eb86ba0
> 'ARM: multi_v7_defconfig: enable Rockchip io-domain driver'. This change
> is also needed for arm64 rockchip boards, so, do the same for arm64.
> 
> The io-domain driver is necessary to notify the soc about voltages
> changes happening on supplying regulators. Probably the most important
> user right now is the mmc tuning code, where the soc needs to get
> notified when the voltage is dropped to the 1.8V point.
> 
> As this option is necessary to successfully tune UHS cards etc, it
> should get built in. Otherwise, tunning will fail with,
> 
>     dwmmc_rockchip fe320000.dwmmc: All phases bad!
>     mmc0: tuning execution failed: -5

It also causes ethernet to fail in a rather odd manner if your board 
needs RGMII at <3.3v but you're using firmware which leaves the relevant 
IO domain set inappropriately (I guess the parts expecting to be driven 
by the external phy clock just lock up). Given the several hours I spent 
scratching my head over that one,

Acked-by: Robin Murphy <robin.murphy@arm.com>

> Cc: Heiko Stübner <heiko@sntech.de>
> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> ---
>   arch/arm64/configs/defconfig | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index ba859709c2d4..d65d53b1ff77 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -313,6 +313,8 @@ CONFIG_GPIO_XGENE_SB=y
>   CONFIG_GPIO_PCA953X=y
>   CONFIG_GPIO_PCA953X_IRQ=y
>   CONFIG_GPIO_MAX77620=y
> +CONFIG_POWER_AVS=y
> +CONFIG_ROCKCHIP_IODOMAIN=y
>   CONFIG_POWER_RESET_MSM=y
>   CONFIG_POWER_RESET_XGENE=y
>   CONFIG_POWER_RESET_SYSCON=y
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-09 12:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-08 21:35 [PATCH] arm64: defconfig: enable Rockchip io-domain driver Enric Balletbo i Serra
2018-03-09 12:49 ` Robin Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).