From ee2c0b633efaa7f5652cb172d0e48534c7bc53a9 Mon Sep 17 00:00:00 2001 From: Sarthak Garg Date: Wed, 25 Jan 2023 22:21:18 +0530 Subject: [PATCH] ARM: dts: msm: Device tree support for muticard tray removal FR Add L24B_PBS and L28B_PBS regulators to support multicard tray removal FR84471 for ravelin which may be needed for all the chipsets where PMIC doesn't have PBS ram sequence to turn off the regulators asap the tray is removed. Need to vote for enable / disable on the above new handles provided and rest for voltage and mode need to vote on old handles. Change-Id: I862e792eeb89fb13ad6c4181f6761229f5b2fe39 --- qcom/ravelin-atp.dtsi | 12 ++++++++++++ qcom/ravelin-idp.dtsi | 12 ++++++++++++ qcom/ravelin-qrd.dtsi | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/qcom/ravelin-atp.dtsi b/qcom/ravelin-atp.dtsi index a0a3f8bb..305a2f7b 100644 --- a/qcom/ravelin-atp.dtsi +++ b/qcom/ravelin-atp.dtsi @@ -56,10 +56,22 @@ qcom,vdd-voltage-level = <2960000 2960000>; qcom,vdd-current-level = <0 800000>; + /* + * min/max voltages are voted on L24B/L28B and L24B/L28B_PBS + * regulators will only be voted for enabling/disabling conditions + * to support FR84471 for chipsets where PMIC doesn't support + * PBS ram sequence to turn OFF regulators automatically on + * multicard tray removal and these new regulator resources are + * exposed by PMIC team as part of this FR. + */ + vdd-en-dis-supply = <&L24B_PBS>; + vdd-io-supply = <&L28B>; qcom,vdd-io-voltage-level = <1800000 2960000>; qcom,vdd-io-current-level = <0 22000>; + vdd-io-en-dis-supply = <&L28B_PBS>; + pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc2_on>; pinctrl-1 = <&sdc2_off>; diff --git a/qcom/ravelin-idp.dtsi b/qcom/ravelin-idp.dtsi index 8cb3e18f..4763e6a4 100644 --- a/qcom/ravelin-idp.dtsi +++ b/qcom/ravelin-idp.dtsi @@ -105,10 +105,22 @@ qcom,vdd-voltage-level = <2960000 2960000>; qcom,vdd-current-level = <0 800000>; + /* + * min/max voltages are voted on L24B/L28B and L24B/L28B_PBS + * regulators will only be voted for enabling/disabling conditions + * to support FR84471 for chipsets where PMIC doesn't support + * PBS ram sequence to turn OFF regulators automatically on + * multicard tray removal and these new regulator resources are + * exposed by PMIC team as part of this FR. + */ + vdd-en-dis-supply = <&L24B_PBS>; + vdd-io-supply = <&L28B>; qcom,vdd-io-voltage-level = <1800000 2960000>; qcom,vdd-io-current-level = <0 22000>; + vdd-io-en-dis-supply = <&L28B_PBS>; + pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc2_on>; pinctrl-1 = <&sdc2_off>; diff --git a/qcom/ravelin-qrd.dtsi b/qcom/ravelin-qrd.dtsi index f562c547..5064e44f 100644 --- a/qcom/ravelin-qrd.dtsi +++ b/qcom/ravelin-qrd.dtsi @@ -56,10 +56,22 @@ qcom,vdd-voltage-level = <2960000 2960000>; qcom,vdd-current-level = <0 800000>; + /* + * min/max voltages are voted on L24B/L28B and L24B/L28B_PBS + * regulators will only be voted for enabling/disabling conditions + * to support FR84471 for chipsets where PMIC doesn't support + * PBS ram sequence to turn OFF regulators automatically on + * multicard tray removal and these new regulator resources are + * exposed by PMIC team as part of this FR. + */ + vdd-en-dis-supply = <&L24B_PBS>; + vdd-io-supply = <&L28B>; qcom,vdd-io-voltage-level = <1800000 2960000>; qcom,vdd-io-current-level = <0 22000>; + vdd-io-en-dis-supply = <&L28B_PBS>; + pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc2_on>; pinctrl-1 = <&sdc2_off>;