[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230730172648.71578-1-clamor95@gmail.com>
Date: Sun, 30 Jul 2023 20:26:45 +0300
From: Svyatoslav Ryhel <clamor95@...il.com>
To: Iskren Chernev <me@...ren.info>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Matheus Castello <matheus@...tello.eng.br>,
Sebastian Reichel <sre@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Svyatoslav Ryhel <clamor95@...il.com>
Cc: linux-pm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/3] Add optional properties to MAX17040
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
Powered by blists - more mailing lists