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

Commit 75a826c9 authored by Dhaval Patel's avatar Dhaval Patel Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add mdss pll driver resources for MSM8974



Mdss pll driver handles the resources for output interfaces
such as eDP, HDMI and DSI through dts configuration. These
resource management includes the power supply entries, clocks,
IO register range and other pll specific entires. This change
defines the resources for MSM8974 target.

Change-Id: I4ee424bfc1d4cf90ad87f7735e019f95fb6de897
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 8a21c9c9
Loading
Loading
Loading
Loading
+129 −0
Original line number Diff line number Diff line
/* Copyright (c) 2014, 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.
 */

&soc {
	mdss_dsi0_pll: qcom,mdss_dsi_pll@fd922a00 {
		compatible = "qcom,mdss_dsi_pll";
		label = "MDSS DSI 0 PLL";
		cell-index = <0>;

		reg = <0xfd922a00 0xd4>;
		reg-names = "pll_base";

		gdsc-supply = <&gdsc_mdss>;
		vddio-supply = <&pm8941_l12>;

		clock-names = "iface_clk";
		clock-rate = <0>;

		qcom,platform-supply-entries {
			#address-cells = <1>;
			#size-cells = <0>;

			qcom,platform-supply-entry@0 {
				reg = <0>;
				qcom,supply-name = "gdsc";
				qcom,supply-min-voltage = <0>;
				qcom,supply-max-voltage = <0>;
				qcom,supply-enable-load = <0>;
				qcom,supply-disable-load = <0>;
			};

			qcom,platform-supply-entry@1 {
				reg = <1>;
				qcom,supply-name = "vddio";
				qcom,supply-min-voltage = <1800000>;
				qcom,supply-max-voltage = <1800000>;
				qcom,supply-enable-load = <100000>;
				qcom,supply-disable-load = <100>;
				qcom,supply-post-on-sleep = <20>;
			};
		};
	};

	mdss_edp_pll: qcom,mdss_edp_pll@fd923a00 {
		compatible = "qcom,mdss_edp_pll";
		label = "MDSS EDP PLL";

		reg = <0xfd923a00 0xd4>;
		reg-names = "pll_base";

		gdsc-supply = <&gdsc_mdss>;
		vddio-supply = <&pm8941_l12>;

		clock-names = "iface_clk";
		clock-rate = <0>;

		qcom,platform-supply-entries {
			#address-cells = <1>;
			#size-cells = <0>;

			qcom,platform-supply-entry@0 {
				reg = <0>;
				qcom,supply-name = "gdsc";
				qcom,supply-min-voltage = <0>;
				qcom,supply-max-voltage = <0>;
				qcom,supply-enable-load = <0>;
				qcom,supply-disable-load = <0>;
			};

			qcom,platform-supply-entry@1 {
				reg = <1>;
				qcom,supply-name = "vddio";
				qcom,supply-min-voltage = <1800000>;
				qcom,supply-max-voltage = <1800000>;
				qcom,supply-enable-load = <100000>;
				qcom,supply-disable-load = <100>;
				qcom,supply-post-on-sleep = <20>;
			};
		};
	};

	mdss_hdmi_pll: qcom,mdss_hdmi_pll@fd922700 {
		compatible = "qcom,mdss_hdmi_pll";
		label = "MDSS HDMI PLL";

		reg = <0xfd922700 0xd4>,
			<0xfd922500 0x7c>;
		reg-names = "pll_base", "phy_base";

		gdsc-supply = <&gdsc_mdss>;
		vddio-supply = <&pm8941_l12>;

		clock-names = "iface_clk", "alt_iface_clk";
		clock-rate = <0>, <0>;

		qcom,platform-supply-entries {
			#address-cells = <1>;
			#size-cells = <0>;

			qcom,platform-supply-entry@0 {
				reg = <0>;
				qcom,supply-name = "gdsc";
				qcom,supply-min-voltage = <0>;
				qcom,supply-max-voltage = <0>;
				qcom,supply-enable-load = <0>;
				qcom,supply-disable-load = <0>;
			};

			qcom,platform-supply-entry@1 {
				reg = <1>;
				qcom,supply-name = "vddio";
				qcom,supply-min-voltage = <1800000>;
				qcom,supply-max-voltage = <1800000>;
				qcom,supply-enable-load = <100000>;
				qcom,supply-disable-load = <100>;
				qcom,supply-post-on-sleep = <20>;
			};
		};
	};
};