Skip to content

Commit a29d8e9

Browse files
inochisalinusw
authored andcommitted
pinctrl: sophgo: add support for CV1800B SoC
Sophgo CV1800 series SoCs share common control logic but have different register mapping. For maintenance, split the driver and pin definition of the SoC. Add base driver for CV1800 series SoC and pin definition of CV1800B. Signed-off-by: Inochi Amaoto <[email protected]> Link: https://lore.kernel.org/IA1PR20MB4953B260E04EC53F6A01EB30BBB32@IA1PR20MB4953.namprd20.prod.outlook.com Signed-off-by: Linus Walleij <[email protected]>
1 parent 64aa494 commit a29d8e9

File tree

7 files changed

+1409
-0
lines changed

7 files changed

+1409
-0
lines changed

drivers/pinctrl/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ source "drivers/pinctrl/qcom/Kconfig"
583583
source "drivers/pinctrl/realtek/Kconfig"
584584
source "drivers/pinctrl/renesas/Kconfig"
585585
source "drivers/pinctrl/samsung/Kconfig"
586+
source "drivers/pinctrl/sophgo/Kconfig"
586587
source "drivers/pinctrl/spear/Kconfig"
587588
source "drivers/pinctrl/sprd/Kconfig"
588589
source "drivers/pinctrl/starfive/Kconfig"

drivers/pinctrl/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ obj-y += qcom/
7373
obj-$(CONFIG_ARCH_REALTEK) += realtek/
7474
obj-$(CONFIG_PINCTRL_RENESAS) += renesas/
7575
obj-$(CONFIG_PINCTRL_SAMSUNG) += samsung/
76+
obj-y += sophgo/
7677
obj-$(CONFIG_PINCTRL_SPEAR) += spear/
7778
obj-y += sprd/
7879
obj-$(CONFIG_SOC_STARFIVE) += starfive/

drivers/pinctrl/sophgo/Kconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
#
3+
# Sophgo SoC PINCTRL drivers
4+
#
5+
6+
config PINCTRL_SOPHGO_CV18XX
7+
bool
8+
select GENERIC_PINCTRL_GROUPS
9+
select GENERIC_PINMUX_FUNCTIONS
10+
select GENERIC_PINCONF
11+
12+
config PINCTRL_SOPHGO_CV1800B
13+
tristate "Sophgo CV1800B SoC Pinctrl driver"
14+
depends on ARCH_SOPHGO || COMPILE_TEST
15+
depends on OF
16+
select PINCTRL_SOPHGO_CV18XX
17+
help
18+
Say Y to select the pinctrl driver for CV1800B SoC.
19+
This pin controller allows selecting the mux function for
20+
each pin. This driver can also be built as a module called
21+
pinctrl-cv1800b.

drivers/pinctrl/sophgo/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
obj-$(CONFIG_PINCTRL_SOPHGO_CV18XX) += pinctrl-cv18xx.o
4+
obj-$(CONFIG_PINCTRL_SOPHGO_CV1800B) += pinctrl-cv1800b.o

0 commit comments

Comments
 (0)