]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
arm64: dts: rockchip: add sdmmc UHS support for roc-rk3328-cc
authorLevin Du <djw@t-chip.com.cn>
Tue, 31 Jul 2018 05:59:22 +0000 (13:59 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 27 Aug 2018 04:16:48 +0000 (06:16 +0200)
commit99165b93dafe4f2a821b5dae106f2ef6b4ceff7e
tree8408a86370515f95a18ebed7ddf7279cee4695dd
parent692ff61efab62fde4ae43d611e9c0cdb060dacbd
arm64: dts: rockchip: add sdmmc UHS support for roc-rk3328-cc

In roc-rk3328-cc board, the signal voltage of sdmmc is supplied by the
vcc_sdio regulator, which is a mux between 1.8V and 3.3V, controlled by
a special output only gpio pin labeled "gpiomut_pmuio_iout",
corresponding bit 1 of the syscon GRF_SOC_CON10.

This special pin can now be reference as <&grf_gpio 0>, thanks to the
gpio-syscon driver, which makes writing regulator-gpio possible.

If the signal voltage changes, the io domain needs to change
correspondingly.

To use this feature, the following options are required in kernel config:
 - CONFIG_GPIO_SYSCON=y
 - CONFIG_POWER_AVS=y
 - CONFIG_ROCKCHIP_IODOMAIN=y

Signed-off-by: Levin Du <djw@t-chip.com.cn>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts