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

Commit 39912f2f authored by anisha agarwal's avatar anisha agarwal Committed by Ken Zhang
Browse files

ARM: dts: msm: Add qpic pinctrl and hvga panel to zirc



This is for display support on zirc. zirc uses ili9488
hvga panel. Add relative gpio pinctrls for zirc.

Change-Id: I8d10352ebf8f238cad95e35e4cb753279f1868f5
Signed-off-by: default avataranisha agarwal <anishaa@codeaurora.org>
Signed-off-by: default avatarKen Zhang <kenz@codeaurora.org>
parent 6136fdda
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -12,6 +12,8 @@

#include "msmzirc.dtsi"
#include "msmzirc-pinctrl.dtsi"
#include "msmzirc-display.dtsi"
#include "qpic-panel-ili-hvga.dtsi"

&soc {
	usb_detect {
@@ -274,3 +276,13 @@
	pinctrl-7 = <&qdsd_clk_spmi &qdsd_cmd_spmi
		    &qdsd_data0_spmi &qdsd_data3_spmi>;
};

/* Display */
&mdss_qpic {
        pinctrl-names= "mdss_default", "mdss_sleep";
        pinctrl-0 = <&mdss_cs_active &mdss_te_active &mdss_rs_active
                        &mdss_ad_active &mdss_bl_active>;
        pinctrl-1 = <&mdss_cs_suspend &mdss_te_suspend
                &mdss_rs_suspend &mdss_ad_suspend &mdss_bl_suspend>;
};
+36 −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.
 */

/ {
	mdss_qpic: qcom,msm_qpic@7980000 {
		compatible = "qcom,mdss_qpic";
		reg = <0x7980000 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 = <&pmd9635_l6>;
		avdd-supply = <&pmd9635_l12>;

		clock-names = "core_a_clk";
		clocks = <&clock_rpm clk_qpic_a_clk>;

	};
};
+77 −0
Original line number Diff line number Diff line
@@ -837,5 +837,82 @@
				bias-disable;
			};
		};

		mdss_cs: mdss_cs {
			label = "mdss-cs-pins";
			qcom,num-grp-pins = <1>;
			qcom,pins = <&gp 21>;
			qcom,pin-func = <2>;
			mdss_cs_active: active {
				drive-strength = <10>; /* 10 mA */
				bias-disable; /* NO pull */
			};
			mdss_cs_suspend: suspend {
				drive-strength = <2>; /* 2 mA */
				bias-disable; /* NO pull */
			};
		};

		mdss_te: mdss_te {
			label = "mdss-te-pins";
			qcom,num-grp-pins = <1>;
			qcom,pins = <&gp 22>;
			qcom,pin-func = <2>;
			mdss_te_active: active {
				drive-strength = <10>; /* 10 mA */
				bias-disable; /* NO pull */
			};
			mdss_te_suspend: suspend {
				drive-strength = <2>; /* 2 mA */
				bias-disable; /* NO pull */
			};
		};

		mdss_rs: mdss_rs {
			label = "mdss-rs-pins";
			qcom,num-grp-pins = <1>;
			qcom,pins = <&gp 23>;
			qcom,pin-func = <2>;
			mdss_rs_active: active {
				drive-strength = <10>; /* 10 mA */
				bias-disable; /* NO pull */
			};
			mdss_rs_suspend: suspend {
				drive-strength = <2>; /* 2 mA */
				bias-disable; /* NO pull */
			};
		};

		mdss_ad: mdss_ad {
			label = "mdss-ad-pins";
			qcom,num-grp-pins = <1>;
			qcom,pins = <&gp 20>;
			qcom,pin-func = <2>;
			mdss_ad_active: active {
				drive-strength = <10>; /* 10 mA */
				bias-disable; /* NO pull */
			};
			mdss_ad_suspend: suspend {
				drive-strength = <2>; /* 2 mA */
				bias-disable; /* NO pull */
			};
		};

		mdss_bl: mdss_bl {
			label = "mdss-bl-pins";
			qcom,num-grp-pins = <1>;
			qcom,pins = <&gp 68>;
			qcom,pin-func = <0>;
			mdss_bl_active: active {
				drive-strength = <10>; /* 10 mA */
				bias-pull-none; /* pull none */
				output-high;
			};
			mdss_bl_suspend: suspend {
				drive-strength = <2>; /* 2 mA */
				bias-disable; /* NO pull */
				output-low;
			};
		};
	};
};
+21 −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 {
	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>;
	};
};