Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1e5dcaa authored by Kiran Gunda's avatar Kiran Gunda Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: qcom: add VDD_MX and CX subnodes for MMCX dependencies on lito



Add VDD_MX and VDD_CX rpmh-regulator subnodes which are used by
the VDD_MMCX regulator device.  Configure these sub nodes so that
a request for VDD_CX >= minimum operating level is present any
time that VDD_MMCX is enabled.

Change-Id: I4dfa08018ca05c0b167c42611779258c077240bd
Signed-off-by: default avatarKiran Gunda <kgunda@codeaurora.org>
parent e7e90934
Loading
Loading
Loading
Loading
+37 −1
Original line number Original line Diff line number Diff line
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * it under the terms of the GNU General Public License version 2 and
@@ -528,6 +528,8 @@
		compatible = "qcom,rpmh-arc-regulator";
		compatible = "qcom,rpmh-arc-regulator";
		mboxes = <&apps_rsc 0>;
		mboxes = <&apps_rsc 0>;
		qcom,resource-name = "mx.lvl";
		qcom,resource-name = "mx.lvl";
		pm8150l_s4_mmcx_sup_level-parent-supply =
						<&VDD_CX_MMCX_SUPPLY_LEVEL>;


		VDD_MX_LEVEL: S4C_LEVEL:
		VDD_MX_LEVEL: S4C_LEVEL:
		pm8150l_s4_level: regulator-pm8150l-s4-level {
		pm8150l_s4_level: regulator-pm8150l-s4-level {
@@ -553,6 +555,17 @@
				= <RPMH_REGULATOR_LEVEL_RETENTION>;
				= <RPMH_REGULATOR_LEVEL_RETENTION>;
		};
		};


		VDD_MX_MMCX_SUPPLY_LEVEL: regulator-pm8150l-s4-mmcx-sup-level {
			regulator-name = "pm8150l_s4_mmcx_sup_level";
			qcom,set = <RPMH_REGULATOR_SET_ALL>;
			regulator-min-microvolt =
				<RPMH_REGULATOR_LEVEL_RETENTION>;
			regulator-max-microvolt =
				<RPMH_REGULATOR_LEVEL_MAX>;
			qcom,init-voltage-level =
				<RPMH_REGULATOR_LEVEL_RETENTION>;
		};

		mx_cdev: mx-cdev-lvl {
		mx_cdev: mx-cdev-lvl {
			compatible = "qcom,regulator-cooling-device";
			compatible = "qcom,regulator-cooling-device";
			regulator-cdev-supply = <&VDD_MX_LEVEL>;
			regulator-cdev-supply = <&VDD_MX_LEVEL>;
@@ -567,6 +580,8 @@
		compatible = "qcom,rpmh-arc-regulator";
		compatible = "qcom,rpmh-arc-regulator";
		mboxes = <&apps_rsc 0>;
		mboxes = <&apps_rsc 0>;
		qcom,resource-name = "mmcx.lvl";
		qcom,resource-name = "mmcx.lvl";
		pm8150l_s5_level-parent-supply = <&VDD_MX_MMCX_SUPPLY_LEVEL>;
		proxy-supply = <&VDD_MMCX_LEVEL>;


		VDD_MMCX_LEVEL: S5C_LEVEL:
		VDD_MMCX_LEVEL: S5C_LEVEL:
		pm8150l_s5_level: regulator-pm8150l-s5-level {
		pm8150l_s5_level: regulator-pm8150l-s5-level {
@@ -578,6 +593,11 @@
				= <RPMH_REGULATOR_LEVEL_MAX>;
				= <RPMH_REGULATOR_LEVEL_MAX>;
			qcom,init-voltage-level
			qcom,init-voltage-level
				= <RPMH_REGULATOR_LEVEL_LOW_SVS>;
				= <RPMH_REGULATOR_LEVEL_LOW_SVS>;
			qcom,min-dropout-voltage-level = <(-1)>;
			qcom,proxy-consumer-enable;
			qcom,proxy-consumer-voltage
				= <RPMH_REGULATOR_LEVEL_TURBO
				   RPMH_REGULATOR_LEVEL_MAX>;
		};
		};


		VDD_MMCX_LEVEL_AO: S5C_LEVEL_AO:
		VDD_MMCX_LEVEL_AO: S5C_LEVEL_AO:
@@ -619,6 +639,7 @@
		qcom,resource-name = "cx.lvl";
		qcom,resource-name = "cx.lvl";
		pm8150l_s6_level-parent-supply = <&VDD_MX_LEVEL>;
		pm8150l_s6_level-parent-supply = <&VDD_MX_LEVEL>;
		pm8150l_s6_level_ao-parent-supply = <&VDD_MX_LEVEL_AO>;
		pm8150l_s6_level_ao-parent-supply = <&VDD_MX_LEVEL_AO>;
		proxy-supply = <&VDD_CX_MMCX_SUPPLY_LEVEL>;


		VDD_CX_LEVEL: S6C_LEVEL:
		VDD_CX_LEVEL: S6C_LEVEL:
		pm8150l_s6_level: regulator-pm8150l-s6-level {
		pm8150l_s6_level: regulator-pm8150l-s6-level {
@@ -646,6 +667,21 @@
			qcom,min-dropout-voltage-level = <(-1)>;
			qcom,min-dropout-voltage-level = <(-1)>;
		};
		};


		VDD_CX_MMCX_SUPPLY_LEVEL: regulator-pm8150l-s6-mmcx-sup-level {
			regulator-name = "pm8150l_s6_mmcx_sup_level";
			qcom,set = <RPMH_REGULATOR_SET_ALL>;
			regulator-min-microvolt =
				<RPMH_REGULATOR_LEVEL_MIN_SVS>;
			regulator-max-microvolt =
				<RPMH_REGULATOR_LEVEL_MAX>;
			qcom,init-voltage-level =
				<RPMH_REGULATOR_LEVEL_MIN_SVS>;
			qcom,proxy-consumer-enable;
			qcom,proxy-consumer-voltage
				= <RPMH_REGULATOR_LEVEL_TURBO
				   RPMH_REGULATOR_LEVEL_MAX>;
		};

		cx_cdev: regulator-cdev {
		cx_cdev: regulator-cdev {
			compatible = "qcom,rpmh-reg-cdev";
			compatible = "qcom,rpmh-reg-cdev";
			mboxes = <&qmp_aop 0>;
			mboxes = <&qmp_aop 0>;