devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add optional properties to MAX17040
@ 2023-07-30 17:26 Svyatoslav Ryhel
  2023-07-30 17:26 ` [PATCH v2 1/3] dt-bindings: power: supply: maxim,max17040: update properties Svyatoslav Ryhel
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Svyatoslav Ryhel @ 2023-07-30 17:26 UTC (permalink / raw)
  To: Iskren Chernev, Krzysztof Kozlowski, Marek Szyprowski,
	Matheus Castello, Sebastian Reichel, Rob Herring, Conor Dooley,
	Svyatoslav Ryhel
  Cc: linux-pm, devicetree, linux-kernel

Extend properties supported by max17040 fuel gauge if it is accompanied
by different devices.

If max17040 is coupled with a charger, pass charger status since it should
match and max17040 has no dedicated status detection ability.

max17040_get_online can be reused for PRESENT property since if it is
online it must be present.

Finally, max17040 may be coupled with a dedicated thermal sensor which
monitors battery temperature so lets add support for iio channel to match
hw setup.

---
Changes from v1:
- documentation dropped monitored-battery and power-supplies (inherited
  from inclusion)
- dropped passing charger health as battery health
- dropped patch for simple battery cell support
- switched iio_read_channel_raw to iio_read_channel_processed_scale
- switched iio_channel_get to devm_iio_channel_get
- re-organized implementation of temp channel (implemented in way 
  *_get_optional functions usually act)
---

Svyatoslav Ryhel (3):
  dt-bindings: power: supply: maxim,max17040: update properties
  power: max17040: pass status property from supplier
  power: max17040: get thermal data from adc if available

 .../bindings/power/supply/maxim,max17040.yaml | 31 +++++++++++++++++++
 drivers/power/supply/max17040_battery.c       | 27 ++++++++++++++++
 2 files changed, 58 insertions(+)

-- 
2.39.2


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

end of thread, other threads:[~2023-07-30 20:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-30 17:26 [PATCH v2 0/3] Add optional properties to MAX17040 Svyatoslav Ryhel
2023-07-30 17:26 ` [PATCH v2 1/3] dt-bindings: power: supply: maxim,max17040: update properties Svyatoslav Ryhel
2023-07-30 18:08   ` Krzysztof Kozlowski
2023-07-30 17:26 ` [PATCH v2 2/3] power: max17040: pass status property from supplier Svyatoslav Ryhel
2023-07-30 17:26 ` [PATCH v2 3/3] power: max17040: get thermal data from adc if available Svyatoslav Ryhel
2023-07-30 19:43   ` kernel test robot
2023-07-30 19:43   ` kernel test robot
2023-07-30 20:14   ` kernel test robot

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).