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

Commit e3de3339 authored by Lei Chen's avatar Lei Chen Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Enable display on sdxprairie CDP



Enabling QPIC display on CDP by adding the display
construct to CDP dtsi.

Change-Id: I3ee8ba9f20b33e866698bef8dc243654c2e3928c
Signed-off-by: default avatarLei Chen <chenlei@codeaurora.org>
parent 2b16b0cf
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
/* Copyright (c) 2018-2019, 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 {
	qcom,mdss_lcdc_ili_hvga {
		compatible = "qcom,mdss-qpic-panel";
		label = "ili9488 hvga lcdc panel";
		qcom,mdss-pan-res = <320 480>;
		qcom,mdss-pan-bpp = <18>;
		qcom,refresh_rate = <60>;
	};
};
+2 −0
Original line number Diff line number Diff line
@@ -14,6 +14,8 @@

#include "sdxprairie.dtsi"
#include "sdxprairie-cdp.dtsi"
#include "sdxprairie-display.dtsi"
#include "qpic-panel-ili-hvga.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. SDXPRAIRIE CDP";
+46 −0
Original line number Diff line number Diff line
/* Copyright (c) 2019, 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.
 */

/ {
	mdss_qpic: qcom,msm_qpic@1b00000 {
		compatible = "qcom,mdss_qpic";
		reg = <0x1B00000 0x24000>;
		reg-names = "qpic_base";
		interrupts = <0 251 0>;

		qcom,msm-bus,name = "mdss_qpic";
		qcom,msm-bus,num-cases = <2>;
		qcom,msm-bus,num-paths = <1>;

		qcom,msm-bus,vectors-KBps =
			<91 512 0 0>,
			/* Voting for max b/w on PNOC bus for now */
			<91 512 400000 800000>;

		vdd-supply = <&pmxprairie_l6>;

		qcom,rst-gpio = <&tlmm 23 0>;
		qcom,cs-gpio = <&tlmm 21 0>;
		qcom,ad8-gpio = <&tlmm 20 0>;
		qcom,te-gpio = <&tlmm 22 0>;
		qcom,bl-gpio = <&pmxprairie_gpios 1 0>;

		clock-names = "core_clk";
		clocks = <&clock_rpmh RPMH_QPIC_CLK>;

		pinctrl-names= "mdss_default", "mdss_sleep";
		pinctrl-0 = <&mdss_cs_active &mdss_te_active
			&mdss_rs_active &mdss_ad_active>;
		pinctrl-1 = <&mdss_cs_sleep &mdss_te_sleep
			&mdss_rs_sleep &mdss_ad_sleep>;
	};
};
+105 −0
Original line number Diff line number Diff line
@@ -698,6 +698,111 @@
				};
			};
		};

		mdss_cs_active: mdss_cs_active {
				mux {
					pins = "gpio21";
					function = "ebi2_lcd";
				};

				config {
					pins = "gpio21";
					drive-strength = <10>; /* 10 mA */
					bias-disable; /* NO pull */
				};
		};

		mdss_cs_sleep: mdss_cs_sleep {
				mux {
					pins = "gpio21";
					function = "ebi2_lcd";
				};

				config {
					pins = "gpio21";
					drive-strength = <2>; /* 2 mA */
					bias-disable; /* NO pull */
				};
		};

		mdss_te_active: mdss_te_active {
				mux {
					pins = "gpio22";
					function = "ebi2_lcd";
				};

				config {
					pins = "gpio22";
					drive-strength = <10>; /* 10 mA */
					bias-disable; /* NO pull */
				};
		};

		mdss_te_sleep: mdss_te_sleep {
				mux {
					pins = "gpio22";
					function = "ebi2_lcd";
				};

				config {
					pins = "gpio22";
					drive-strength = <2>; /* 2 mA */
					bias-disable; /* NO pull */
				};
		};

		mdss_rs_active: mdss_rs_active {
				mux {
					pins = "gpio23";
					function = "ebi2_lcd";
				};

				config {
					pins = "gpio23";
					drive-strength = <10>; /* 10 mA */
					bias-disable; /* NO pull */
				};
		};

		mdss_rs_sleep: mdss_rs_sleep {
				mux {
					pins = "gpio23";
					function = "ebi2_lcd";
				};

				config {
					pins = "gpio23";
					drive-strength = <2>; /* 2 mA */
					bias-disable; /* NO pull */
				};
		};

		mdss_ad_active: mdss_ad_active {
				mux {
					pins = "gpio20";
					function = "ebi2_a";
				};

				config {
					pins = "gpio20";
					drive-strength = <10>; /* 10 mA */
					bias-disable; /* NO pull */
				};
		};

		mdss_ad_sleep: mdss_ad_sleep {
				mux {
					pins = "gpio20";
					function = "ebi2_a";
				};

				config {
					pins = "gpio20";
					drive-strength = <2>; /* 2 mA */
					bias-disable; /* NO pull */
				};
		};

		pmx_sec_mi2s_aux_din {
			sec_din_sleep: sec_din_sleep {
				mux {