diff mbox series

[5/8] arm64: dts: qcom: msm8996-xiaomi-*: Enable SMBCHG

Message ID 20220808073459.396278-6-y.oudjana@protonmail.com (mailing list archive)
State Handled Elsewhere, archived
Headers show
Series power: supply: Add driver for Qualcomm SMBCHG | expand

Commit Message

Yassine Oudjana Aug. 8, 2022, 7:34 a.m. UTC
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 mbox series

Patch

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;