From 2361e5d31fcb6f5e675a00303d1e4699fa2fcbe8 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 fe0a2a63..8975b3d1 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 1b053dcc..d1f2a9f4 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 a8838d52..cf82a418 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>;