Add support for Battery Status & Battery Caps AMS in TCPM
Get series with b4
b4 am [email protected] change-id 20250311-batt_ops-be1bd71ca254Versions newest first
- v2 Latest5 patches 15 repliesIn review
- v15 patches 17 repliesSuperseded
Changes in v2 from the cover letter
- Instead of introducing new "fixed-batteries" property to pass reference to FG, use OF graph by extending "ports" property definition. (suggested by Krzysztof).
- Demonstration of binding usage in gs101-oriole will be in a different patchset.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | dt-bindings: connector: extend ports property to model power connectionsDocumentation/ Documentation/ | +38 | 8 replies | |
| 2/5 | power: supply: core: add helper to get power supply given a fwnodedrivers/ include/ | +33 | 2 replies | |
| 3/5 | usb: typec: tcpm: Add support for Battery Status response messagedrivers/ include/ | +150 | 2 replies | |
| 4/5 | power: supply: core: add vendor and product id propertiesDocumentation/ Documentation/ drivers/ +1 more | +30 | 2 replies | |
| 5/5 | usb: typec: tcpm: Add support for Battery Cap response messagedrivers/ include/ | +123 | 1 reply |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Badhri Jagan Sridharan | Kyle Tso |
|---|---|---|
| 1/5 | ||
| 2/5 | ||
| 3/5 | R-b | R-b |
| 4/5 | ||
| 5/5 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/5] Add support for Battery Status & Battery Caps AMS in TCPM
Support for Battery Status & Battery Caps messages in response to Get_Battery_Status & Get_Battery_Cap request is required by USB PD devices powered by battery, as per "USB PD R3.1 V1.8 Spec", "6.13 Message Applicability" section. This patchset adds support for these AMSes to achieve greater compliance with the spec.
---
Changes in v2:
- Instead of introducing new "fixed-batteries" property to pass reference to FG, use OF graph by extending "ports" property definition. (suggested by Krzysztof).
- Demonstration of binding usage in gs101-oriole will be in a different patchset.
---
Amit Sunil Dhamne (5):
dt-bindings: connector: extend ports property to model power connections
power: supply: core: add helper to get power supply given a fwnode
usb: typec: tcpm: Add support for Battery Status response message
power: supply: core: add vendor and product id properties
usb: typec: tcpm: Add support for Battery Cap response message
Documentation/ABI/testing/sysfs-class-power | 19 +- .../bindings/connector/usb-connector.yaml | 20 +- .../devicetree/bindings/usb/maxim,max33359.yaml | 25 +++ Documentation/power/power_supply_class.rst | 11 ++ drivers/power/supply/power_supply_core.c | 30 +++ drivers/power/supply/power_supply_sysfs.c | 2 + drivers/usb/typec/tcpm/tcpm.c | 208 ++++++++++++++++++++- include/linux/power_supply.h | 5 + include/linux/usb/pd.h | 65 +++++++ 9 files changed, 371 insertions(+), 14 deletions(-)
---
base-commit: 80e54e84911a923c40d7bee33a34c1b4be148d7a
change-id: 20250311-batt_ops-be1bd71ca254
Best regards,
Signature · 1 line
Amit Sunil Dhamne <[email protected]>