Skip to content

Commit 447976a

Browse files
jianlonghuanglinusw
authored andcommitted
pinctrl: starfive: Add StarFive JH7110 sys controller driver
Add pinctrl driver for StarFive JH7110 SoC sys pinctrl controller. Co-developed-by: Emil Renner Berthing <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Jianlong Huang <[email protected]> Signed-off-by: Hal Feng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 716129d commit 447976a

File tree

6 files changed

+1526
-1
lines changed

6 files changed

+1526
-1
lines changed

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19896,7 +19896,7 @@ M: Jianlong Huang <[email protected]>
1989619896
1989719897
S: Maintained
1989819898
F: Documentation/devicetree/bindings/pinctrl/starfive,jh71*.yaml
19899-
F: drivers/pinctrl/starfive/
19899+
F: drivers/pinctrl/starfive/pinctrl-starfive-jh71*
1990019900
F: include/dt-bindings/pinctrl/pinctrl-starfive-jh7100.h
1990119901
F: include/dt-bindings/pinctrl/starfive,jh7110-pinctrl.h
1990219902

drivers/pinctrl/starfive/Kconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,24 @@ config PINCTRL_STARFIVE_JH7100
1616
This also provides an interface to the GPIO pins not used by other
1717
peripherals supporting inputs, outputs, configuring pull-up/pull-down
1818
and interrupts on input changes.
19+
20+
config PINCTRL_STARFIVE_JH7110
21+
bool
22+
select GENERIC_PINCTRL_GROUPS
23+
select GENERIC_PINMUX_FUNCTIONS
24+
select GENERIC_PINCONF
25+
select GPIOLIB
26+
select GPIOLIB_IRQCHIP
27+
select OF_GPIO
28+
29+
config PINCTRL_STARFIVE_JH7110_SYS
30+
tristate "System pinctrl and GPIO driver for the StarFive JH7110 SoC"
31+
depends on SOC_STARFIVE || COMPILE_TEST
32+
depends on OF
33+
select PINCTRL_STARFIVE_JH7110
34+
default SOC_STARFIVE
35+
help
36+
Say yes here to support system pin control on the StarFive JH7110 SoC.
37+
This also provides an interface to the GPIO pins not used by other
38+
peripherals supporting inputs, outputs, configuring pull-up/pull-down
39+
and interrupts on input changes.

drivers/pinctrl/starfive/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22

33
obj-$(CONFIG_PINCTRL_STARFIVE_JH7100) += pinctrl-starfive-jh7100.o
4+
5+
obj-$(CONFIG_PINCTRL_STARFIVE_JH7110) += pinctrl-starfive-jh7110.o
6+
obj-$(CONFIG_PINCTRL_STARFIVE_JH7110_SYS) += pinctrl-starfive-jh7110-sys.o

0 commit comments

Comments
 (0)