public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] rtc: max77686: convert to i2c_new_ancillary_device
@ 2026-03-12  8:52 Svyatoslav Ryhel
  2026-03-12  8:52 ` [PATCH v4 1/5] regulator: dt-bindings: regulator-max77620: convert to DT schema Svyatoslav Ryhel
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Svyatoslav Ryhel @ 2026-03-12  8:52 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Lee Jones, Liam Girdwood,
	Mark Brown, Rafael J. Wysocki, Daniel Lezcano, Zhang Rui,
	Lukasz Luba, Chanwoo Choi, Alexandre Belloni, Svyatoslav Ryhel
  Cc: linux-gpio, devicetree, linux-kernel, linux-pm, linux-rtc

Convert RTC I2C device creation from devm_i2c_new_dummy_device() to
i2c_new_ancillary_device() to enable the use of a device tree-specified
RTC address instead of a hardcoded value. If the device tree does not
provide an address, use hardcoded values as a fallback.

This addresses an issue with the MAX77663 PMIC, which can have the RTC at
different I2C positions (either 0x48, like the MAX77714, or 0x68, like
the MAX77620). The MAX77620 value is used as the default. The I2C position
of the MAX77663 is factory-set and cannot be detected from the chip
itself.

I have tested this patch on LG Optimus Vu P895 with max77663 PMIC and
non-default RTC position. RTC is registered correctly.

---
Changes in v4
- adjusted pinconfig node naming
- changed interrupt in the example
- fixed indentation in the example
- corrected pinconfig node name in the example
- commit "dt-bindings: gpio: trivial-gpio: remove max77620 compatible"
  squashed with the converting patch for this compatible

Changes in v3
- max77620 files converted to DT schema.

Changes in v2
- dropped patch that changes max77686 and adjusted max77620 where max77663
  is described.
---

Svyatoslav Ryhel (5):
  regulator: dt-bindings: regulator-max77620: convert to DT schema
  dt-bindings: pinctrl: pinctrl-max77620: convert to DT schema
  dt-bindings: mfd: max77620: convert to DT schema
  dt-bindings: mfd: max77620: document optional RTC address for MAX77663
  rtc: max77686: convert to i2c_new_ancillary_device

 .../bindings/gpio/trivial-gpio.yaml           |   2 -
 .../devicetree/bindings/mfd/max77620.txt      | 162 -------
 .../bindings/mfd/maxim,max77620.yaml          | 444 ++++++++++++++++++
 .../pinctrl/maxim,max77620-pinctrl.yaml       |  97 ++++
 .../bindings/pinctrl/pinctrl-max77620.txt     | 127 -----
 .../regulator/maxim,max77620-regulator.yaml   |  99 ++++
 .../bindings/regulator/regulator-max77620.txt | 222 ---------
 .../bindings/thermal/max77620_thermal.txt     |  70 ---
 drivers/rtc/rtc-max77686.c                    |  14 +-
 9 files changed, 652 insertions(+), 585 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/mfd/max77620.txt
 create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max77620.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/maxim,max77620-pinctrl.yaml
 delete mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-max77620.txt
 create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77620-regulator.yaml
 delete mode 100644 Documentation/devicetree/bindings/regulator/regulator-max77620.txt
 delete mode 100644 Documentation/devicetree/bindings/thermal/max77620_thermal.txt

-- 
2.51.0


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

end of thread, other threads:[~2026-03-19 18:27 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-12  8:52 [PATCH v4 0/5] rtc: max77686: convert to i2c_new_ancillary_device Svyatoslav Ryhel
2026-03-12  8:52 ` [PATCH v4 1/5] regulator: dt-bindings: regulator-max77620: convert to DT schema Svyatoslav Ryhel
2026-03-12 15:18   ` Rob Herring (Arm)
2026-03-12  8:52 ` [PATCH v4 2/5] dt-bindings: pinctrl: pinctrl-max77620: " Svyatoslav Ryhel
2026-03-12 15:20   ` Rob Herring
2026-03-12 15:33     ` Svyatoslav Ryhel
2026-03-12 15:39       ` Rob Herring
2026-03-12 16:26         ` Svyatoslav Ryhel
2026-03-12  8:52 ` [PATCH v4 3/5] dt-bindings: mfd: max77620: " Svyatoslav Ryhel
2026-03-12 15:22   ` Rob Herring (Arm)
2026-03-16 15:03   ` Daniel Lezcano
2026-03-19 18:23   ` (subset) " Lee Jones
2026-03-12  8:52 ` [PATCH v4 4/5] dt-bindings: mfd: max77620: document optional RTC address for MAX77663 Svyatoslav Ryhel
2026-03-12 15:31   ` Rob Herring (Arm)
2026-03-19 18:26   ` (subset) " Lee Jones
2026-03-12  8:52 ` [PATCH v4 5/5] rtc: max77686: convert to i2c_new_ancillary_device Svyatoslav Ryhel
2026-03-12 16:56 ` (subset) [PATCH v4 0/5] " Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox