The gpio controller in rockchips SoC in a child of the pinctrl driver and cannot control
pullups and pulldowns. Add an 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.
Details
Details
- Reviewers
mmel ganbold gonzo - Group Reviewers
arm64 - Commits
- rS356807: arm64: rockchip: Add new interface for rk_pinctrl
Tested ok rk3328 and rk3399.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
imho, some bits of this should be implemented as part of generic fdt_pinctr interface.
We should have at least
FDT_PINCTRL_IS_GPIO()
FDT_PINCTRL_SWITCH_TO__GPIO()
FDT_PINCTRL_SET_GPIO_FLAGS()
FDT_PINCTRL_GET_GPIO_FLAGS()
Major issue is how to get right reference to appropriate pinctrl instance(within gpoio driver) and how to convert pin numbers from gipo nomenclature to pinctrl nomenclature. This should be covered by "gpio-range = <>" property, but world is not ideal :(