pinctrl: canaan: Add support for k230 SoC
authorZe Huang <18771902331@163.com>
Thu, 26 Sep 2024 15:57:44 +0000 (23:57 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 1 Oct 2024 12:23:46 +0000 (14:23 +0200)
commit545887eab6f6776a7477fe7e83860eab57138b03
treed529faa665dedab7da0e7260d6ac24ead517e726
parent561f3e9d21a16df0148f5f209bdc26db3d86632b
pinctrl: canaan: Add support for k230 SoC

Configuration of the K230 is similar to that of the K210. However, in
K210, the 256 functions for each pin are shared, whereas in K230,
multiplex functions are different for every pin.

`drv_data` of `pinctrl_pin_desc` is pointing to currently activated
group, which is used to print the name of current function of pin in
`pin_dbg_show` and will be updated in `set_mux`, so they are not set
const.

Signed-off-by: Ze Huang <18771902331@163.com>
Link: https://lore.kernel.org/20240926-k230-pinctrl-v2-2-a9a36fba4b34@163.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Kconfig
drivers/pinctrl/Makefile
drivers/pinctrl/pinctrl-k230.c [new file with mode: 0644]