]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm64: rockchip: Add new interface for rk_pinctrl
authorEmmanuel Vadot <manu@FreeBSD.org>
Thu, 16 Jan 2020 21:21:20 +0000 (21:21 +0000)
committerEmmanuel Vadot <manu@FreeBSD.org>
Thu, 16 Jan 2020 21:21:20 +0000 (21:21 +0000)
commit3ee778c15e4c7d9d62396c62fbdf3bca7c219126
treef40b6ff06c2cb10ee4756f57d4475ef9465bcc26
parent94292d7e954acbb0f81f804972a4b19170b687d5
arm64: rockchip: Add new interface for rk_pinctrl

The gpio controller in rockchips SoC in a child of the pinctrl driver
and cannot control pullups and pulldowns.
Use the new fdt_pinctrl interface for accessing pin capabilities and
setting them.
We can now report that every pins is capable of being IN or OUT function
and PULLUP PULLDOWN.
If the pin isn't in gpio mode no changes will be allowed.

Reviewed by: ganbold (previous version)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D22849
sys/arm64/rockchip/rk_gpio.c
sys/arm64/rockchip/rk_pinctrl.c