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

Commit 1a97b5c7 authored by Anirudh Ghayal's avatar Anirudh Ghayal Committed by Devdutt Patnaik
Browse files

ARM: dts: msm: Add stub regulator for sdxpoorwills



Add stub regulator device nodes for SMPS and LDO
supported by PMIC pmxpoorwills. Consumers can use these
regulators to request the required voltage values.

Change-Id: Ie518a4394b57a8189065206ad26d859a18068ea5
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 7574ff02
Loading
Loading
Loading
Loading
+114 −0
Original line number Diff line number Diff line
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
 *
 * 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
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <dt-bindings/regulator/qcom,rpmh-regulator.h>

/* Stub regulators */
/ {
	pmxpoorwills_s1: regualtor-pmxpoorwills-s1 {
		compatible = "qcom,stub-regulator";
		regulator-name = "pmxpoorwills_s1";
		qcom,hpm-min-load = <100000>;
		regulator-min-microvolt = <752000>;
		regulator-max-microvolt = <752000>;
	};

	/* VDD CX supply */
	pmxpoorwills_s5_level: regualtor-pmxpoorwills-s5-level {
		compatible = "qcom,stub-regulator";
		regulator-name = "pmxpoorwills_s5_level";
		qcom,hpm-min-load = <100000>;
		regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>;
		regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>;
	};

	pmxpoorwills_s5_level_ao: regualtor-pmxpoorwills-s5-level-ao {
		compatible = "qcom,stub-regulator";
		regulator-name = "pmxpoorwills_s5_level_ao";
		qcom,hpm-min-load = <100000>;
		regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>;
		regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>;
	};

	pmxpoorwills_l1: regualtor-pmxpoorwills-11 {
		compatible = "qcom,stub-regulator";
		regulator-name = "pmxpoorwills_l1";
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <1200000>;
		regulator-max-microvolt = <1200000>;
	};

	pmxpoorwills_l3: regualtor-pmxpoorwills-l3 {
		compatible = "qcom,stub-regulator";
		regulator-name = "pmxpoorwills_l3";
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <800000>;
		regulator-max-microvolt = <800000>;
	};

	pmxpoorwills_l4: regualtor-pmxpoorwills-l4 {
		compatible = "qcom,stub-regulator";
		regulator-name = "pmxpoorwills_l4";
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <872000>;
		regulator-max-microvolt = <872000>;
	};

	pmxpoorwills_l5: regualtor-pmxpoorwills-l5 {
		compatible = "qcom,stub-regulator";
		regulator-name = "pmxpoorwills_l5";
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
	};

	pmxpoorwills_l6: regualtor-pmxpoorwills-l6 {
		compatible = "qcom,stub-regulator";
		regulator-name = "pmxpoorwills_l6";
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
	};

	pmxpoorwills_l8: regualtor-pmxpoorwills-l8 {
		compatible = "qcom,stub-regulator";
		regulator-name = "pmxpoorwills_l8";
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <800000>;
		regulator-max-microvolt = <800000>;
	};

	/* VDD MX supply */
	pmxpoorwills_l9_level: regualtor-pmxpoorwills-l9-level {
		compatible = "qcom,stub-regulator";
		regulator-name = "pmxpoorwills_l9_level";
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>;
		regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>;
	};

	pmxpoorwills_l9_level_ao: regualtor-pmxpoorwills-l9-level_ao {
		compatible = "qcom,stub-regulator";
		regulator-name = "pmxpoorwills_l9_level_ao";
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>;
		regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>;
	};

	pmxpoorwills_l10: regualtor-pmxpoorwills-l10 {
		compatible = "qcom,stub-regulator";
		regulator-name = "pmxpoorwills_l10";
		qcom,hpm-min-load = <10000>;
		regulator-min-microvolt = <3088000>;
		regulator-max-microvolt = <3088000>;
	};
};
+2 −0
Original line number Diff line number Diff line
@@ -180,3 +180,5 @@
		status = "ok";
	};
};

#include "sdxpoorwills-regulator.dtsi"