mbox series

[v5,0/3] power: supply: twl6030/32 charger

Message ID 20241016080314.222674-1-andreas@kemnade.info
Headers show
Series power: supply: twl6030/32 charger | expand

Message

Andreas Kemnade Oct. 16, 2024, 8:03 a.m. UTC
Add basic support for the charger in the TWL6030/32. Supported is the USB
path. AC path is not handled yet, also there is no entry yet
in /sys/class/power_supply with type battery yet.

Without this series, devices will happily drain battery when running
on mainline.

Changes in v5:
- set fwnode
- drop mfd patch as it is already applied

Changes in v4:
- require compatible in charger node

Changes in v3:
- define charger in toplevel
- s/bci/charger for twl4030

Changes in v2:
- s/bci/charger in mfd schema
- additionalProperties for charger node
- extended example in mfd schema
- no quotes for compatibles in charger schema
- no example in charger schema
- interrupt description in charger schema
- replace device_is_compatible by driver data
- clang compile fix
- removed alias
- style fixes

Andreas Kemnade (3):
  dt-bindings: power: supply: Add TI TWL603X charger
  power: supply: initial support for TWL6030/32
  ARM: dts: ti/omap: use standard node name for twl4030 charger

 .../power/supply/ti,twl6030-charger.yaml      |  48 ++
 arch/arm/boot/dts/ti/omap/twl4030.dtsi        |   2 +-
 drivers/power/supply/Kconfig                  |  10 +
 drivers/power/supply/Makefile                 |   1 +
 drivers/power/supply/twl6030_charger.c        | 581 ++++++++++++++++++
 5 files changed, 641 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/power/supply/ti,twl6030-charger.yaml
 create mode 100644 drivers/power/supply/twl6030_charger.c

Comments

Sebastian Reichel Oct. 16, 2024, 9:41 p.m. UTC | #1
On Wed, 16 Oct 2024 10:03:11 +0200, Andreas Kemnade wrote:
> Add basic support for the charger in the TWL6030/32. Supported is the USB
> path. AC path is not handled yet, also there is no entry yet
> in /sys/class/power_supply with type battery yet.
> 
> Without this series, devices will happily drain battery when running
> on mainline.
> 
> [...]

Applied, thanks!

[1/3] dt-bindings: power: supply: Add TI TWL603X charger
      commit: 421aadd19a622852172ccc15ad4049201fd1f80b
[2/3] power: supply: initial support for TWL6030/32
      commit: b45cdceba64d79a2538aeb36926fd9a065f0f753

Best regards,