From fb1368b7ad91567d5a3cfc02c2fda84142f2d4f9 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 30 Jul 2021 15:31:06 +0800 Subject: [PATCH] arch/dts: add usb-pdhandle and pd current max iio for charging dlkm For add PD charging(include PPS/Fixed) policy in DLKM for single charge path(only pmic charging), so need add usb-pdhandle and pd current max iio in dtsi Change-Id: I07d8b98ecfd8c9e6bd91f08656ac119e209af6b9 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2029005 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 3 +++ qcom/holi-pm6125-moto-common-overlay.dtsi | 3 +++ 2 files changed, 6 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index cb6a9cbcdce3..737eea261a77 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -425,6 +425,7 @@ <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, <&pm7250b_charger PSY_IIO_RERUN_AICL>, <&pm7250b_charger PSY_IIO_SW_JEITA_ENABLED>, + <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, <&pm7250b_qg PSY_IIO_CURRENT_NOW>, <&pm7250b_qg PSY_IIO_TEMP>, @@ -442,6 +443,7 @@ "usb_input_current_settled", "battery_rerun_aicl", "battery_sw_jeita_enabled", + "usb_pd_current_max", "voltage_now", "current_now", "temp", @@ -460,6 +462,7 @@ qcom,iterm-ma = <242>; qcom,vfloat-comp-uv = <20000>; qcom,force-hvdcp-5v; + qcom,usbpd-phandle = <&pm7250b_pdphy>; }; }; diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 80ce151a02f3..161992bf0e04 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -248,6 +248,7 @@ <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, <&pm7250b_charger PSY_IIO_RERUN_AICL>, <&pm7250b_charger PSY_IIO_SW_JEITA_ENABLED>, + <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, <&pm7250b_qg PSY_IIO_CURRENT_NOW>, <&pm7250b_qg PSY_IIO_TEMP>, @@ -265,6 +266,7 @@ "usb_input_current_settled", "battery_rerun_aicl", "battery_sw_jeita_enabled", + "usb_pd_current_max", "voltage_now", "current_now", "temp", @@ -283,6 +285,7 @@ qcom,iterm-ma = <242>; qcom,vfloat-comp-uv = <20000>; qcom,force-hvdcp-5v; + qcom,usbpd-phandle = <&pm7250b_pdphy>; }; }; };