[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240615203352.164234-1-dima.fedrau@gmail.com>
Date: Sat, 15 Jun 2024 22:33:48 +0200
From: Dimitri Fedrau <dima.fedrau@...il.com>
To:
Cc: Dimitri Fedrau <dima.fedrau@...il.com>,
Sebastian Reichel <sre@...nel.org>,
linux-kernel@...r.kernel.org,
linux-pm@...r.kernel.org
Subject: [PATCH v3 0/2] power: supply: add support for MAX1720x standalone fuel
Changes to max1721x_battery.c:
- reading manufacturer, model name and serial number is only possible
when SBS functions of the IC are enabled.(nNVCfg0.enSBS) Factory
default is off. Manufacturer is "Maxim Integrated" and the model name
can be derived by register MAX172XX_DEV_NAME. Serial number is not
available anymore.
- According to the datasheet MAX172XX_BAT_PRESENT is at BIT(3) not
BIT(4). Furthermore the naming is misleading, when BIT(3) is set the
battery is not present.
- Removed DeviceName, ManufacturerName and SerialNumber from struct
max17211_device_info
Changes in V2:
- Changed E-Mail in Patch (2/2) Signed-Off
Changes in V3:
- Changed E-Mail in Patch (2/2) Author
- Sorry for the confusion
Dimitri Fedrau (2):
dt-bindings: power: supply: add support for MAX17201/MAX17205 fuel
gauge
power: supply: add support for MAX1720x standalone fuel gauge
.../bindings/power/supply/maxim,max1720x.yaml | 51 +++
drivers/power/supply/Kconfig | 12 +
drivers/power/supply/Makefile | 1 +
drivers/power/supply/max1720x_battery.c | 324 ++++++++++++++++++
4 files changed, 388 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/supply/maxim,max1720x.yaml
create mode 100644 drivers/power/supply/max1720x_battery.c
--
2.39.2
Powered by blists - more mailing lists