Enable USB support (peripheral mode) for Xiaomi Redmi 5A (riva)
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected] change-id 20260912-riva-usb-ec9ef25c885cVersions newest first
- v2 Latest2 patches 4 repliesApplied
- v12 patches 0 repliesSuperseded
Changes in v2 from the cover letter
- Make extcon feature optional
- Link to v1: https://patch.msgid.link/[email protected]
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | power: supply: bq256xx: Expose VBUS state through extcondrivers/ drivers/ | +89 | 0 replies | |
| 2/2 | arm64: dts: qcom: msm8917-xiaomi-riva: Enable USB support (peripheral mode)arch/ | +16 | 2 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Konrad Dybcio | Dmitry Baryshkov |
|---|---|---|
| 1/2 | ||
| 2/2 | 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/2] Enable USB support (peripheral mode) for Xiaomi Redmi 5A (riva)
The purpose of this series is to enable the device to act as a USB peripheral. It enables USB-related DT nodes (controller and PHY) and modifies the charger driver (BQ256XX) to expose its VBUS state through extcon.
Driver change is required since the device has its VBUS connected to the charger IC, which means cable connection/disconnection events must be fed from the charger IC, to the controller driver to dynamically enable/disable the USB gadget functionality.
---
Changes in v2:
- Make extcon feature optional
- Link to v1: https://patch.msgid.link/[email protected]
To: Sebastian Reichel <[email protected]>
To: Bjorn Andersson <[email protected]>
To: Konrad Dybcio <[email protected]>
To: Abel Vesa <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
Reza Kurniawan (2):
power: supply: bq256xx: Expose VBUS state through extcon
arm64: dts: qcom: msm8917-xiaomi-riva: Enable USB support (peripheral mode)
arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts | 17 ++++- drivers/power/supply/Kconfig | 1 + drivers/power/supply/bq256xx_charger.c | 96 ++++++++++++++++++++++-- 3 files changed, 105 insertions(+), 9 deletions(-)
---
base-commit: 68142f986ff04b2b70b31db00f719bf690f64a9a
change-id: 20260912-riva-usb-ec9ef25c885c
Best regards,
Signature · 1 line
Reza Kurniawan <[email protected]>