From: Yassine Oudjana <y.oudjana@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx> --- 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