gpio: syscon: rockchip: add GRF GPIO support for rk3328
authorLevin Du <djw@t-chip.com.cn>
Tue, 31 Jul 2018 05:59:19 +0000 (13:59 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 6 Aug 2018 21:46:55 +0000 (23:46 +0200)
commitcf2ff877a4eea5f5ad959050284eb93d5d2f803a
tree9bc792a851fe0f965bf1b530dbe12082ea45f818
parent442af1403a2886f8f6d43f2f67f8a8b001e048d8
gpio: syscon: rockchip: add GRF GPIO support for rk3328

In Rockchip RK3328, the output only GPIO_MUTE pin, originally for codec
mute control, can also be used for general purpose. It is manipulated by
the GRF_SOC_CON10 register in GRF. Aside from the GPIO_MUTE pin, the HDMI
pins can also be set in the same way.

Currently this GRF GPIO controller only supports the mute pin. If needed
in the future, the HDMI pins support can also be added.

Signed-off-by: Levin Du <djw@t-chip.com.cn>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.txt [new file with mode: 0644]
drivers/gpio/gpio-syscon.c