phy: rockchip-emmc: output tap delay dt property
authorChris Ruehl <chris.ruehl@gtsys.com.hk>
Wed, 2 Dec 2020 08:25:06 +0000 (16:25 +0800)
committerVinod Koul <vkoul@kernel.org>
Sat, 5 Dec 2020 08:10:48 +0000 (13:40 +0530)
commita8cef928276bbf8254d0067cda21dbe6210ea1aa
tree451d7ac15b2f76c6946291c1b6d28dc32f9641ca
parent31de313dfdcf6971b0a1c30f86eabaa1eede74b3
phy: rockchip-emmc: output tap delay dt property

Update the rockchip-emmc phy to set the otapdlysec register with
a dt property. This was mentioned from Brian Norris when he sent
the path to set the default value in the driver.
This patch add a dt property 'output-tapdelay-select' u32 and allow
to set the 0x0-0xf. If not set in dts, the old default 0x4 applies.

Tested with our customized rk3399 to tune the eMMC.

Signed-off-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
Link: https://lore.kernel.org/r/20201202082507.3536-2-chris.ruehl@gtsys.com.hk
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-emmc.c