Messages in this thread Patch in this message | | | From | Yassine Oudjana <> | Subject | [PATCH 5/8] arm64: dts: qcom: msm8996-xiaomi-*: Enable SMBCHG | Date | Mon, 8 Aug 2022 08:34:56 +0100 |
| |
From: Yassine Oudjana <y.oudjana@protonmail.com>
Enable pmi8994_smbchg, and set usb-psy-name in dwc3 to point to its USB charge path supply, allowing it to configure the input current limit when plugged into a SDP.
Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com> --- arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi index 022ecbcd965a..a18c9a9baacf 100644 --- a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi @@ -304,6 +304,12 @@ &pm8994_resin { linux,code = <KEY_VOLUMEDOWN>; }; +&pmi8994_smbchg { + status = "okay"; + + monitored-battery = <&battery>; +}; + &slpi_pil { status = "okay"; @@ -324,6 +330,8 @@ &usb3_dwc3 { phys = <&hsusb_phy1>; phy-names = "usb2-phy"; + usb-psy-name = "qcom-smbchg-usb"; + maximum-speed = "high-speed"; snps,is-utmi-l1-suspend; snps,usb2-gadget-lpm-disable; -- 2.37.1
| |