lkml.org 
[lkml]   [2022]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 5/8] arm64: dts: qcom: msm8996-xiaomi-*: Enable SMBCHG
Date
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
\
 
 \ /
  Last update: 2022-08-08 09:37    [W:0.108 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site