riscv: sophgo: Add pinctrl support for SG2042
Status from this message: Applied to for-next, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest8 patches 6 repliesApplied
- v13 patches 6 repliesSuperseded
Changes in v2 from the cover letter
- https://lore.kernel.org/all/[email protected]/
1. Fix the binding documentation error.
2. Refactor the cv18xx code so SG2042 can uses the same code.
3. Add SG2044 pinctrl support as it has the same layout.
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | pinctrl: sophgo: avoid to modify untouched bit when setting cv1800 pinconfdrivers/ | +23 | 0 replies | |
| 2/8 | pinctrl: sophgo: introduce generic data structure for cv18xx pinctrl driverdrivers/ drivers/ drivers/ +4 more | +270 | 0 replies | |
| 3/8 | pinctrl: sophgo: generalize shareable code of cv18xx pinctrl driverdrivers/ drivers/ drivers/ +7 more | +545 | 0 replies | |
| 4/8 | pinctrl: sophgo: introduce generic probe functiondrivers/ drivers/ drivers/ +5 more | +86 | 0 replies | |
| 5/8 | dt-bindings: pinctrl: Add pinctrl for Sophgo SG2042 series SoCDocumentation/ include/ include/ | +546 | 1 reply | |
| 6/8 | pinctrl: sophgo: add support for SG2042 SoCdrivers/ drivers/ drivers/ +2 more | +1017 | 0 replies | |
| 7/8 | pinctrl: sophgo: add support for SG2044 SoCdrivers/ drivers/ drivers/ | +731 | 0 replies | |
| 8/8 | riscv: dts: sophgo: sg2042: add pinctrl supportarch/ arch/ | +78 | 0 replies |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Rob Herring (Arm) |
|---|---|
| 1/8 | |
| 2/8 | |
| 3/8 | |
| 4/8 | |
| 5/8 | R-b |
| 6/8 | |
| 7/8 | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/8] riscv: sophgo: Add pinctrl support for SG2042
SG2042 has a simple pinctrl device for all configurable pins. It supports setting pull up/down, drive strength and input schmitt trigger.
Add support for SG2042 and SG2044 pinctrl device.
Changed from v1:
- https://lore.kernel.org/all/[email protected]/
1. Fix the binding documentation error.
2. Refactor the cv18xx code so SG2042 can uses the same code.
3. Add SG2044 pinctrl support as it has the same layout.
Inochi Amaoto (8):
pinctrl: sophgo: avoid to modify untouched bit when setting cv1800
pinconf
pinctrl: sophgo: introduce generic data structure for cv18xx pinctrl
driver
pinctrl: sophgo: generalize shareable code of cv18xx pinctrl driver
pinctrl: sophgo: introduce generic probe function
dt-bindings: pinctrl: Add pinctrl for Sophgo SG2042 series SoC
pinctrl: sophgo: add support for SG2042 SoC
pinctrl: sophgo: add support for SG2044 SoC
riscv: dts: sophgo: sg2042: add pinctrl support
.../pinctrl/sophgo,sg2042-pinctrl.yaml | 129 ++++ .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 72 ++ arch/riscv/boot/dts/sophgo/sg2042.dtsi | 6 + drivers/pinctrl/sophgo/Kconfig | 46 +- drivers/pinctrl/sophgo/Makefile | 8 +- drivers/pinctrl/sophgo/pinctrl-cv1800b.c | 27 +- drivers/pinctrl/sophgo/pinctrl-cv1812h.c | 27 +- drivers/pinctrl/sophgo/pinctrl-cv18xx.c | 602 ++++----------- drivers/pinctrl/sophgo/pinctrl-cv18xx.h | 66 +- drivers/pinctrl/sophgo/pinctrl-sg2000.c | 27 +- drivers/pinctrl/sophgo/pinctrl-sg2002.c | 27 +- drivers/pinctrl/sophgo/pinctrl-sg2042-ops.c | 296 ++++++++ drivers/pinctrl/sophgo/pinctrl-sg2042.c | 655 ++++++++++++++++ drivers/pinctrl/sophgo/pinctrl-sg2042.h | 49 ++ drivers/pinctrl/sophgo/pinctrl-sg2044.c | 718 ++++++++++++++++++ .../pinctrl/sophgo/pinctrl-sophgo-common.c | 451 +++++++++++ drivers/pinctrl/sophgo/pinctrl-sophgo.h | 136 ++++ include/dt-bindings/pinctrl/pinctrl-sg2042.h | 196 +++++ include/dt-bindings/pinctrl/pinctrl-sg2044.h | 221 ++++++ 19 files changed, 3217 insertions(+), 542 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/sophgo,sg2042-pinctrl.yaml create mode 100644 drivers/pinctrl/sophgo/pinctrl-sg2042-ops.c create mode 100644 drivers/pinctrl/sophgo/pinctrl-sg2042.c create mode 100644 drivers/pinctrl/sophgo/pinctrl-sg2042.h create mode 100644 drivers/pinctrl/sophgo/pinctrl-sg2044.c create mode 100644 drivers/pinctrl/sophgo/pinctrl-sophgo-common.c create mode 100644 drivers/pinctrl/sophgo/pinctrl-sophgo.h create mode 100644 include/dt-bindings/pinctrl/pinctrl-sg2042.h create mode 100644 include/dt-bindings/pinctrl/pinctrl-sg2044.h
--
2.48.1