Skip to content

Commit

Permalink
pinctrl: Add RTL8231 pin control and GPIO support
Browse files Browse the repository at this point in the history
This driver implements the GPIO and pin muxing features provided by the
RTL8231. The device should be instantiated as an MFD child, where the
parent device has already configured the regmap used for register
access.

Debouncing is only available for the six highest GPIOs, and must be
emulated when other pins are used for (button) inputs. Although
described in the bindings, drive strength selection is currently not
implemented.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
  • Loading branch information
svanheule authored and intel-lab-lkp committed Jun 3, 2021
1 parent ed5a0c8 commit 9c3e2b6
Show file tree
Hide file tree
Showing 3 changed files with 450 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/pinctrl/Kconfig
Expand Up @@ -221,6 +221,17 @@ config PINCTRL_ROCKCHIP
help
This support pinctrl and gpio driver for Rockchip SoCs.

config PINCTRL_RTL8231
tristate "Realtek RTL8231 GPIO expander's pin controller"
depends on MFD_RTL8231
default MFD_RTL8231
select GPIO_REGMAP
select GENERIC_PINCONF
select GENERIC_PINMUX_FUNCTIONS
help
Support for RTL8231 expander's GPIOs and pin controller.
When built as a module, the module will be called pinctrl-rtl8231.

config PINCTRL_SINGLE
tristate "One-register-per-pin type device tree based pinctrl driver"
depends on OF
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/Makefile
Expand Up @@ -30,6 +30,7 @@ obj-$(CONFIG_PINCTRL_PALMAS) += pinctrl-palmas.o
obj-$(CONFIG_PINCTRL_PIC32) += pinctrl-pic32.o
obj-$(CONFIG_PINCTRL_PISTACHIO) += pinctrl-pistachio.o
obj-$(CONFIG_PINCTRL_ROCKCHIP) += pinctrl-rockchip.o
obj-$(CONFIG_PINCTRL_RTL8231) += pinctrl-rtl8231.o
obj-$(CONFIG_PINCTRL_SINGLE) += pinctrl-single.o
obj-$(CONFIG_PINCTRL_SX150X) += pinctrl-sx150x.o
obj-$(CONFIG_ARCH_TEGRA) += tegra/
Expand Down

0 comments on commit 9c3e2b6

Please sign in to comment.