linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v10 0/8] spacemit: introduce P1 PMIC support
@ 2025-07-26 13:09 Alex Elder
  2025-07-26 13:09 ` [PATCH v10 1/8] dt-bindings: mfd: add support the SpacemiT P1 PMIC Alex Elder
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Alex Elder @ 2025-07-26 13:09 UTC (permalink / raw)
  To: lee, lgirdwood, broonie, alexandre.belloni, robh, krzk+dt,
	conor+dt
  Cc: mat.jonczyk, dlan, paul.walmsley, palmer, aou, alex, linux.amoon,
	troymitchell988, guodong, linux-rtc, devicetree, linux-riscv,
	spacemit, linux-kernel

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.

This version makes a few minor changes to DTS files suggested by
Yixun Lan.  It also reworks the function that determines the
regmap_config structure to use, and adds a function that frees
that structure when it's no longer needed (if it was dynamically
allocated).

					-Alex

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

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/20250724202511.499288-1-elder@riscstar.com/

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/20250710175107.1280221-1-elder@riscstar.com/

More complete history is available at that link.

Alex Elder (8):
  dt-bindings: mfd: add support the SpacemiT P1 PMIC
  mfd: simple-mfd-i2c: specify max_register
  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                           |  11 ++
 drivers/mfd/simple-mfd-i2c.c                  |  57 +++++-
 drivers/mfd/simple-mfd-i2c.h                  |   5 +-
 drivers/regulator/Kconfig                     |  12 ++
 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 ++++++++++++++++++
 13 files changed, 653 insertions(+), 9 deletions(-)
 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: d7af19298454ed155f5cf67201a70f5cf836c842
-- 
2.48.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-07-31 13:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-26 13:09 [PATCH v10 0/8] spacemit: introduce P1 PMIC support Alex Elder
2025-07-26 13:09 ` [PATCH v10 1/8] dt-bindings: mfd: add support the SpacemiT P1 PMIC Alex Elder
2025-07-26 13:09 ` [PATCH v10 2/8] mfd: simple-mfd-i2c: specify max_register Alex Elder
2025-07-31 13:18   ` Lee Jones
2025-07-31 13:28     ` Alex Elder
2025-07-31 13:41       ` Lee Jones
2025-07-26 13:09 ` [PATCH v10 3/8] mfd: simple-mfd-i2c: add SpacemiT P1 support Alex Elder
2025-07-26 13:09 ` [PATCH v10 4/8] regulator: spacemit: support SpacemiT P1 regulators Alex Elder
2025-07-28  7:37   ` kernel test robot
2025-07-28 16:43     ` Alex Elder
2025-07-26 13:09 ` [PATCH v10 5/8] rtc: spacemit: support the SpacemiT P1 RTC Alex Elder
2025-07-26 13:10 ` [PATCH v10 6/8] riscv: dts: spacemit: enable the i2c8 adapter Alex Elder
2025-07-26 13:10 ` [PATCH v10 7/8] riscv: dts: spacemit: define fixed regulators Alex Elder
2025-07-26 13:10 ` [PATCH v10 8/8] riscv: dts: spacemit: define regulator constraints Alex Elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).