[PATCH v3 00/12] Enable Qualcomm VBUS block on PMI8998 and PM660

David Heidelberg via B4 Relay posted 12 patches 1 day, 11 hours ago
.../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(-)
[PATCH v3 00/12] Enable Qualcomm VBUS block on PMI8998 and PM660
Posted by David Heidelberg via B4 Relay 1 day, 11 hours ago
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>