All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/12] Enable Qualcomm VBUS block on PMI8998 and PM660
@ 2026-11-21 22:37 ` David Heidelberg via B4 Relay
  0 siblings, 0 replies; 27+ messages in thread
From: David Heidelberg @ 2026-11-21 22:37 UTC (permalink / raw)
  To: Abel Vesa, Alexey Minnekhanov, Bjorn Andersson, Casey Connolly,
	Conor Dooley, Konrad Dybcio, Krzysztof Kozlowski, Liam Girdwood,
	Mark Brown, Markus Rathgeb, Rob Herring, Robin Snyders,
	Sebastian Reichel, Wesley Cheng
  Cc: Richard Acayan, Sebastian Reichel, devicetree, linux-arm-msm,
	linux-kernel, linux-pm, phone-devel, David Heidelberg

Includes basic vbus regulator support for:
 - SHIFT 6MQ
 - Pixel 3 / 3a / 3 XL / 3a XL
 - OnePlus 6 / 6T
 - Xiaomi Poco F1
 - LG G7 / V35

All devices we support using default range 0.5 - 1.5 A in downstream
sources.

Validated by looking for `qcom,otg-cl-ua` and default values when
property is not set in the driver.

This series shouldn't change existing behaviour (except register write
execution order). Without Type-C driver this merely replace the write of
the SMB charger to manually control the OTG block.

As a follow-up with the latest upstreamed Type-C driver, this change
will allow setting USB OTG, thus power devices connected to the phone.

Signed-off-by: David Heidelberg <david@ixit.cz>
---
Changes in v3:
- Limit OTG current from 3A / 500mA step to the 2A / 250mA step. (Markus)
- s/pm8998/pmi8998/ typo. (Sashiko)
- Reworded commit messages.
- Link to v2: https://patch.msgid.link/20261118-pmi8998-vbus-v2-0-3c77a72b280a@ixit.cz

Changes in v2:
- pmi8998 and pm660 belongs into the different generation than pm8150b.
  Adjust the device-tree, code, and commit msg accordingly. (Konrad)
- Link to v1: https://patch.msgid.link/20261031-pmi8998-vbus-v1-0-4d805e5a0f27@ixit.cz

---
David Heidelberg (12):
      regulator: dt-bindings: qcom,usb-vbus-regulator: Add pmi8998 and pm660
      regulator: qcom_usb_vbus: Fix the MODULE_LICENSE() string
      regulator: qcom_usb_vbus: Add support for pmi8998
      power: supply: qcom_smbx: Stop clearing software control select
      arm64: dts: qcom: pmi8998: Add node for PMIC VBUS booster
      arm64: dts: qcom: pm660: Add node for PMIC VBUS booster
      arm64: dts: qcom: sdm845-google: Enable vbus support
      arm64: dts: qcom: sdm845-oneplus: Enable vbus support
      arm64: dts: qcom: sdm845-shift-axolotl: Enable vbus support
      arm64: dts: qcom: sdm845-lg: Enable vbus support
      arm64: dts: qcom: sdm845-xiaomi-beryllium: Enable vbus support
      arm64: dts: qcom: sdm670-google: Enable vbus support

 .../regulator/qcom,usb-vbus-regulator.yaml         | 56 ++++++++++++++++++++--
 arch/arm64/boot/dts/qcom/pm660.dtsi                |  7 +++
 arch/arm64/boot/dts/qcom/pmi8998.dtsi              |  7 +++
 arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi |  7 +++
 arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi |  7 +++
 arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi     |  7 +++
 .../arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi |  7 +++
 arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts  |  7 +++
 .../dts/qcom/sdm845-xiaomi-beryllium-common.dtsi   |  7 +++
 drivers/power/supply/qcom_smbx.c                   | 14 ------
 drivers/regulator/qcom_usb_vbus-regulator.c        | 24 ++++++++--
 11 files changed, 128 insertions(+), 22 deletions(-)
---
base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726
change-id: 20261027-pmi8998-vbus-227837a4dfa0

Best regards,
--  
David Heidelberg <david@ixit.cz>


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2026-12-02  5:46 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-21 22:37 [PATCH v3 00/12] Enable Qualcomm VBUS block on PMI8998 and PM660 David Heidelberg
2026-11-21 22:37 ` David Heidelberg via B4 Relay
2026-11-21 22:37 ` [PATCH v3 01/12] regulator: dt-bindings: qcom,usb-vbus-regulator: Add pmi8998 and pm660 David Heidelberg
2026-11-21 22:37   ` David Heidelberg via B4 Relay
2026-11-21 22:37 ` [PATCH v3 02/12] regulator: qcom_usb_vbus: Fix the MODULE_LICENSE() string David Heidelberg
2026-11-21 22:37   ` David Heidelberg via B4 Relay
2026-11-21 22:37 ` [PATCH v3 03/12] regulator: qcom_usb_vbus: Add support for pmi8998 David Heidelberg
2026-11-21 22:37   ` David Heidelberg via B4 Relay
2026-11-21 22:37 ` [PATCH v3 04/12] power: supply: qcom_smbx: Stop clearing software control select David Heidelberg
2026-11-21 22:37   ` David Heidelberg via B4 Relay
2026-12-02  2:56   ` Sebastian Reichel
2026-11-21 22:37 ` [PATCH v3 05/12] arm64: dts: qcom: pmi8998: Add node for PMIC VBUS booster David Heidelberg
2026-11-21 22:37   ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 06/12] arm64: dts: qcom: pm660: " David Heidelberg
2026-11-21 22:38   ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 07/12] arm64: dts: qcom: sdm845-google: Enable vbus support David Heidelberg
2026-11-21 22:38   ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 08/12] arm64: dts: qcom: sdm845-oneplus: " David Heidelberg
2026-11-21 22:38   ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 09/12] arm64: dts: qcom: sdm845-shift-axolotl: " David Heidelberg
2026-11-21 22:38   ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 10/12] arm64: dts: qcom: sdm845-lg: " David Heidelberg
2026-11-21 22:38   ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 11/12] arm64: dts: qcom: sdm845-xiaomi-beryllium: " David Heidelberg
2026-11-21 22:38   ` David Heidelberg via B4 Relay
2026-11-21 22:38 ` [PATCH v3 12/12] arm64: dts: qcom: sdm670-google: " David Heidelberg
2026-11-21 22:38   ` David Heidelberg via B4 Relay

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.