Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: sunxi: h6-r: Add s_rsb pin functions

As there is an RSB controller in the H6 SoC, there should be some pin
configuration for it. While no such configuration is documented, the
"s_i2c" pins are suspiciously on the "alternate" function 3, with no
primary function 2 given. This suggests the primary function for these
pins is actually RSB, and that is indeed the case.

Add the "s_rsb" pin functions so the RSB controller can be used.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20210103100007.32867-3-samuel@sholland.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Samuel Holland and committed by
Linus Walleij
b071a124 43878eb7

+2
+2
drivers/pinctrl/sunxi/pinctrl-sun50i-h6-r.c
··· 24 24 SUNXI_PIN(SUNXI_PINCTRL_PIN(L, 0), 25 25 SUNXI_FUNCTION(0x0, "gpio_in"), 26 26 SUNXI_FUNCTION(0x1, "gpio_out"), 27 + SUNXI_FUNCTION(0x2, "s_rsb"), /* SCK */ 27 28 SUNXI_FUNCTION(0x3, "s_i2c"), /* SCK */ 28 29 SUNXI_FUNCTION_IRQ_BANK(0x6, 0, 0)), /* PL_EINT0 */ 29 30 SUNXI_PIN(SUNXI_PINCTRL_PIN(L, 1), 30 31 SUNXI_FUNCTION(0x0, "gpio_in"), 31 32 SUNXI_FUNCTION(0x1, "gpio_out"), 33 + SUNXI_FUNCTION(0x2, "s_rsb"), /* SDA */ 32 34 SUNXI_FUNCTION(0x3, "s_i2c"), /* SDA */ 33 35 SUNXI_FUNCTION_IRQ_BANK(0x6, 0, 1)), /* PL_EINT1 */ 34 36 SUNXI_PIN(SUNXI_PINCTRL_PIN(L, 2),