Skip to content

spacemit: introduce P1 PMIC support

Alex Elder linux-devicetree linux-riscv linux-rtc lkml oe-kbuild-all spacemit 13 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v13 Latest7 patches 11 repliesApplied
  2. v127 patches 6 repliesSuperseded
  3. v117 patches 0 repliesSuperseded
Earlier versions · 10
VersionPostedPatchesRepliesStatus
v108 patches4 repliesSuperseded
v98 patches3 repliesSuperseded
v88 patches5 repliesSuperseded
v78 patches4 repliesSuperseded
v68 patches3 repliesSuperseded
v57 patches1 replySuperseded
v47 patches5 repliesSuperseded
v37 patches5 repliesSuperseded
v26 patches1 replySuperseded
v16 patches15 repliesSuperseded

Patches in v13 Applied

#Subject and filesSizeRepliesApplied
1/7dt-bindings: mfd: add support the SpacemiT P1 PMICDocumentation/devicetree/bindings/mfd/spacemit,p1.yaml+86 -00 replies
2/7mfd: simple-mfd-i2c: add SpacemiT P1 supportdrivers/mfd/Kconfig drivers/mfd/simple-mfd-i2c.c+30 -00 replies
3/7regulator: spacemit: support SpacemiT P1 regulatorsdrivers/regulator/Kconfig drivers/regulator/Makefile drivers/regulator/spacemit-p1.c+171 -00 replies
4/7rtc: spacemit: support the SpacemiT P1 RTCdrivers/rtc/Kconfig drivers/rtc/Makefile drivers/rtc/rtc-spacemit-p1.c+178 -01 reply
5/7riscv: dts: spacemit: enable the i2c8 adapterarch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi arch/riscv/boot/dts/spacemit/k1.dtsi+32 -00 replies
6/7riscv: dts: spacemit: define fixed regulatorsarch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts+19 -00 replies
7/7riscv: dts: spacemit: define regulator constraintsarch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts+104 -00 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchRob Herring (Arm)Troy MitchellMark BrownAlexandre Belloni
1/7R-b A-b
2/7
3/7R-b
4/7A-b
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v13 thread

Cover letter [PATCH v13 0/7] spacemit: introduce P1 PMIC support

The SpacemiT P1 is an I2C-controlled PMIC that implements 6 buck converters and 12 LDOs. It contains a load switch, ADC channels, GPIOs, a real-time clock, and a watchdog timer.

This series introduces a multifunction driver for the P1 PMIC as well as drivers for its regulators and RTC.

In this version I updated Troy Mitchell's e-mail address, and modified the definition of the MFD_SPACEMIT_P1 config option so it enables I2C_K1, to allow it to be usable. The series is now based on net-next rather than linux-v6.17-rc1.

-Alex

This series is available here:
https://github.com/riscstar/linux/tree/outgoing/pmic-v13

Between version 12 and version 13:
- Rebased onto August 25 linux-next
- Updated Troy Mitchell's e-mail address in patch 1
- Add Troy Mitchell's Acked-by in patch 1
- In patch 2, have MFD_SPACEMIT_P1 select I2C_K1 and depend on ARCH_SPACEMIT as suggested (privately) by Yixun Lan

Here is version 12 of this series:
https://lore.kernel.org/lkml/[email protected]/

Between version 11 and version 12:
- Simple rebase

Here is version 11 of this series:
https://lore.kernel.org/lkml/[email protected]/

Between version 10 and version 11:
- Abandon trying to implement a simple_mfd_data->max_register field
- Fix a missing dependency pointed out by the kernel test robot

Here is version 10 of this series:
https://lore.kernel.org/lkml/[email protected]/

Between version 9 and version 10:
- The #address-cells and #size-cells for the i2c8 DTS node were moved into its primary definition in "k1.dtsi".
- The interrupts property for the i2c8 DTS node was moved below its clock-related properties.
- The status property in the pmic@41 DTS node was dropped.
- The function that provides the regmap_config structure to use was reworked a bit.
- A new function was added to free the regmap_config structure after it's no longer needed.

Here is version 9 of this series:
https://lore.kernel.org/lkml/[email protected]/

Between version 8 and version 9:
- The max_config value is always used if it is provided with the simple_mfd_data structure.
- The regmap_config structure used is allocated dynamically if necessary; otherwise regmap_config_8r_8v is used.
- A small duplicated comment is removed

Here is version 8 of this series:
https://lore.kernel.org/lkml/[email protected]/

More complete history is available at that link.

Alex Elder (7):
dt-bindings: mfd: add support the SpacemiT P1 PMIC
mfd: simple-mfd-i2c: add SpacemiT P1 support
regulator: spacemit: support SpacemiT P1 regulators
rtc: spacemit: support the SpacemiT P1 RTC
riscv: dts: spacemit: enable the i2c8 adapter
riscv: dts: spacemit: define fixed regulators
riscv: dts: spacemit: define regulator constraints

 .../devicetree/bindings/mfd/spacemit,p1.yaml  |  86 +++++++++
 .../boot/dts/spacemit/k1-bananapi-f3.dts      | 135 ++++++++++++++
 arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi  |   7 +
 arch/riscv/boot/dts/spacemit/k1.dtsi          |  13 ++
 drivers/mfd/Kconfig                           |  13 ++
 drivers/mfd/simple-mfd-i2c.c                  |  17 ++
 drivers/regulator/Kconfig                     |  13 ++
 drivers/regulator/Makefile                    |   1 +
 drivers/regulator/spacemit-p1.c               | 157 ++++++++++++++++
 drivers/rtc/Kconfig                           |  10 ++
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-spacemit-p1.c                 | 167 ++++++++++++++++++
 12 files changed, 620 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/spacemit,p1.yaml
 create mode 100644 drivers/regulator/spacemit-p1.c
 create mode 100644 drivers/rtc/rtc-spacemit-p1.c

base-commit: 6c68f4c0a147c025ae0b25fab688c7c47964a02f

Signature · 1 line
2.48.1