Skip to content

Add ADC, eMMC and VGA pinctrl for StarFive JHB100 SoC

Changhuang Liang linux-devicetree linux-gpio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/28 patches 1 replyIn review
  2. v1 posting 1/28 patches 8 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8dt-bindings: pinctrl: Add starfive,jhb100-adc0-pinctrlDocumentation/devicetree/bindings/pinctrl/starfive,jhb100-adc0-pinctrl.yaml+168 -00 replies
2/8pinctrl: starfive: Add StarFive JHB100 adc0 controller driverdrivers/pinctrl/starfive/Kconfig drivers/pinctrl/starfive/Makefile drivers/pinctrl/starfive/pinctrl-starfive-jhb100-adc0.c+97 -00 replies
3/8dt-bindings: pinctrl: Add starfive,jhb100-adc1-pinctrlDocumentation/devicetree/bindings/pinctrl/starfive,jhb100-adc1-pinctrl.yaml+168 -00 replies
4/8pinctrl: starfive: Add StarFive JHB100 adc1 controller driverdrivers/pinctrl/starfive/Kconfig drivers/pinctrl/starfive/Makefile drivers/pinctrl/starfive/pinctrl-starfive-jhb100-adc1.c+97 -00 replies
5/8dt-bindings: pinctrl: Add starfive,jhb100-emmc-pinctrlDocumentation/devicetree/bindings/pinctrl/starfive,jhb100-emmc-pinctrl.yaml+129 -00 replies
6/8pinctrl: starfive: Add StarFive JHB100 emmc controller driverdrivers/pinctrl/starfive/Kconfig drivers/pinctrl/starfive/Makefile drivers/pinctrl/starfive/pinctrl-starfive-jhb100-emmc.c+89 -00 replies
7/8dt-bindings: pinctrl: Add starfive,jhb100-vga-pinctrlDocumentation/devicetree/bindings/pinctrl/starfive,jhb100-vga-pinctrl.yaml+163 -00 replies
8/8pinctrl: starfive: Add StarFive JHB100 vga controller driverdrivers/pinctrl/starfive/Kconfig drivers/pinctrl/starfive/Makefile drivers/pinctrl/starfive/pinctrl-starfive-jhb100-vga.c+98 -00 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by.

PatchRob Herring (Arm)
1/8R-b
2/8
3/8R-b
4/8
5/8R-b
6/8
7/8R-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 RESEND 0/8] Add ADC, eMMC and VGA pinctrl for StarFive JHB100 SoC

The JHB100 SoC has 13 pinctrl domains - sys0, sys0h, sys1, sys2, per0, per1, per2, per2pok, per3, adc0, adc1, emmc, and vga.

Series [1] completed the submission of the first 9 domains; the current series provides pinctrl implementation support for the remaining parts.

This is a resend of series [2], requested by Linus to be sent after v7.4-rc1 is released. PATCH 1/3/5/7 in series [2] have received Reviewed-by tags from Rob, which are included in this resend. No other content changes.

[1]: https://lore.kernel.org/all/[email protected]/
[2]: https://lore.kernel.org/all/[email protected]/

This part of the pinctrl has some special aspects:
1. adc0 and adc1 have different function select configurations.
2. Both adc0 and adc1 require 1 clock and 2 resets.
3. emmc only supports the input-debounce-ns pin configuration.
4. The drive-strength supported by adc0, adc1, and vga has 8 selectable values.

Changhuang Liang (8):
dt-bindings: pinctrl: Add starfive,jhb100-adc0-pinctrl
pinctrl: starfive: Add StarFive JHB100 adc0 controller driver
dt-bindings: pinctrl: Add starfive,jhb100-adc1-pinctrl
pinctrl: starfive: Add StarFive JHB100 adc1 controller driver
dt-bindings: pinctrl: Add starfive,jhb100-emmc-pinctrl
pinctrl: starfive: Add StarFive JHB100 emmc controller driver
dt-bindings: pinctrl: Add starfive,jhb100-vga-pinctrl
pinctrl: starfive: Add StarFive JHB100 vga controller driver

 .../pinctrl/starfive,jhb100-adc0-pinctrl.yaml | 168 ++++++++++++++++++
 .../pinctrl/starfive,jhb100-adc1-pinctrl.yaml | 168 ++++++++++++++++++
 .../pinctrl/starfive,jhb100-emmc-pinctrl.yaml | 129 ++++++++++++++
 .../pinctrl/starfive,jhb100-vga-pinctrl.yaml  | 163 +++++++++++++++++
 drivers/pinctrl/starfive/Kconfig              |  44 +++++
 drivers/pinctrl/starfive/Makefile             |   4 +
 .../starfive/pinctrl-starfive-jhb100-adc0.c   |  85 +++++++++
 .../starfive/pinctrl-starfive-jhb100-adc1.c   |  85 +++++++++
 .../starfive/pinctrl-starfive-jhb100-emmc.c   |  77 ++++++++
 .../starfive/pinctrl-starfive-jhb100-vga.c    |  86 +++++++++
 10 files changed, 1009 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/starfive,jhb100-adc0-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/starfive,jhb100-adc1-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/starfive,jhb100-emmc-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/starfive,jhb100-vga-pinctrl.yaml
 create mode 100644 drivers/pinctrl/starfive/pinctrl-starfive-jhb100-adc0.c
 create mode 100644 drivers/pinctrl/starfive/pinctrl-starfive-jhb100-adc1.c
 create mode 100644 drivers/pinctrl/starfive/pinctrl-starfive-jhb100-emmc.c
 create mode 100644 drivers/pinctrl/starfive/pinctrl-starfive-jhb100-vga.c

--
2.25.1