Skip to content

usb: misc: usb251xb: add DT battery charging configuration

Jhon Wilker Rodrigues Aquino linux-devicetree linux-usb lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Only parse battery-charging-enable when the chip variant supports battery charging.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: usb: microchip,usb251xb: add battery-charging-enable propertyDocumentation/devicetree/bindings/usb/usb251xb.yaml+7 -01 reply
2/2usb: misc: usb251xb: configure battery charging from DTdrivers/usb/misc/usb251xb.c+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] usb: misc: usb251xb: add DT battery charging configuration

From: Jhon Wilker Rodrigues Aquino <[email protected]>

Add a Device Tree property to configure battery charging on selected downstream ports of Microchip USB251x hubs.

The first patch documents the battery-charging-enable property and adds an example enabling charging on ports 1 and 2. The second parses the port list and sets the corresponding hub configuration bits. Charging remains disabled on all ports when the property is omitted.

Changes in v2:
- Only parse battery-charging-enable when the chip variant supports battery charging.

Jhon Wilker Rodrigues Aquino (2):
dt-bindings: usb: microchip,usb251xb: add battery-charging-enable
property
usb: misc: usb251xb: configure battery charging from DT

 Documentation/devicetree/bindings/usb/usb251xb.yaml | 7 +++++++
 drivers/usb/misc/usb251xb.c                         | 6 +++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

--
2.43.0