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

Commit 998dc3fd authored by Rashi Bindra's avatar Rashi Bindra Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add support for AUO 390p cmd mode panel on msm8909w



Add changes to:
1.add panel init sequence, on/off commandsand other panel properties
for AUO 390p cmd mode panel
2.configure PMIC gpio 12 as a fixed regulator and add it as panel
power supply
3.support for BACKLIGHT_EN gpio.

Change-Id: Ic3772ba83f8e072d2e716fa92b18aa027458a545
Signed-off-by: default avatarRashi Bindra <rbindra@codeaurora.org>
parent 271134ac
Loading
Loading
Loading
Loading
+89 −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.
 */

&mdss_mdp {
	dsi_auo_390p_cmd: qcom,mdss_dsi_auo_390p_cmd {
		qcom,mdss-dsi-panel-name = "AUO 390p command mode dsi panel";
		qcom,mdss-dsi-panel-type = "dsi_cmd_mode";
		qcom,mdss-dsi-panel-framerate = <60>;
		qcom,mdss-dsi-virtual-channel-id = <0>;
		qcom,mdss-dsi-stream = <0>;
		qcom,mdss-dsi-panel-width = <390>;
		qcom,mdss-dsi-panel-height = <390>;
		qcom,mdss-pan-physical-height-dimension = <29>;
		qcom,mdss-pan-physical-width-dimension = <29>;
		qcom,mdss-dsi-h-front-porch = <4>;
		qcom,mdss-dsi-h-back-porch = <4>;
		qcom,mdss-dsi-h-pulse-width = <4>;
		qcom,mdss-dsi-h-sync-skew = <0>;
		qcom,mdss-dsi-v-back-porch = <8>;
		qcom,mdss-dsi-v-front-porch = <8>;
		qcom,mdss-dsi-v-pulse-width = <8>;
		qcom,mdss-dsi-h-left-border = <0>;
		qcom,mdss-dsi-h-right-border = <0>;
		qcom,mdss-dsi-v-top-border = <0>;
		qcom,mdss-dsi-v-bottom-border = <0>;
		qcom,mdss-dsi-bpp = <24>;
		qcom,mdss-dsi-color-order = "rgb_swap_rgb";
		qcom,mdss-dsi-underflow-color = <0xff>;
		qcom,mdss-dsi-border-color = <0>;
		qcom,mdss-dsi-on-command = [
			15 01 00 00 00 00 02 fe 01
			15 01 00 00 00 00 02 0a f0
			15 01 00 00 00 00 02 fe 00
			15 01 00 00 00 00 02 35 00
			29 01 00 00 00 00 05 2a 00 04 01 89
			29 01 00 00 00 00 05 2b 00 00 01 85
			29 01 00 00 00 00 05 30 00 00 01 85
			29 01 00 00 00 00 05 31 00 04 01 89
			05 01 00 00 00 00 02 12 00
			15 01 00 00 00 00 02 53 20
			05 01 00 00 96 00 02 11 00
			05 01 00 00 00 00 02 29 00
			39 01 00 00 00 00 06 f0 55 aa 52 08 01
			39 01 00 00 00 00 07 ff 00 55 aa 52 08 01
			];
		qcom,mdss-dsi-off-command = [
			05 01 00 00 00 00 02 28 00
			05 01 00 00 78 00 02 10 00
			];
		qcom,mdss-dsi-on-command-state = "dsi_lp_mode";
		qcom,mdss-dsi-off-command-state = "dsi_hs_mode";

		qcom,mdss-dsi-idle-on-command = [
			05 01 00 00 00 00 01 39 /* Idle-Mode On */
			];
		qcom,mdss-dsi-idle-on-command-state = "dsi_hs_mode";
		qcom,mdss-dsi-idle-off-command = [
			05 01 00 00 00 00 01 38 /* Idle-Mode Off  */
			];
		qcom,mdss-dsi-traffic-mode = "burst_mode";
		qcom,mdss-dsi-lane-map = "lane_map_0123";
		qcom,mdss-dsi-bllp-eof-power-mode;
		qcom,mdss-dsi-bllp-power-mode;
		qcom,mdss-dsi-lane-0-state;
		qcom,mdss-dsi-te-pin-select = <1>;
		qcom,mdss-dsi-te-dcs-command = <1>;
		qcom,mdss-dsi-te-using-te-pin;
		qcom,mdss-dsi-te-check-enable;
		qcom,mdss-dsi-panel-timings = [5F 12 0A 00 32 34 10
			16 0F 03 04 00];
		qcom,mdss-dsi-t-clk-post = <0x05>;
		qcom,mdss-dsi-t-clk-pre = <0x11>;
		qcom,mdss-dsi-bl-min-level = <1>;
		qcom,mdss-dsi-bl-max-level = <255>;
		qcom,mdss-dsi-dma-trigger = "trigger_sw";
		qcom,mdss-dsi-mdp-trigger = "none";
		qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs";
		qcom,mdss-dsi-reset-sequence = <1 20>, <0 20>, <1 20>;
	};
};
+34 −1
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-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
@@ -22,6 +22,7 @@
#include "dsi-panel-hx8394d-480p-video.dtsi"
#include "dsi-panel-auo-qvga-cmd.dtsi"
#include "dsi-panel-auo-cx-qvga-cmd.dtsi"
#include "dsi-panel-390p-auo-cmd.dtsi"

&soc {
	dsi_panel_pwr_supply: dsi_panel_pwr_supply {
@@ -46,6 +47,38 @@
			qcom,supply-disable-load = <100>;
		};
	};

	dsi_pm660_panel_pwr_supply: dsi_pm660_panel_pwr_supply {
		#address-cells = <1>;
		#size-cells = <0>;

		qcom,panel-supply-entry@0 {
			reg = <0>;
			qcom,supply-name = "vdd";
			qcom,supply-min-voltage = <3000000>;
			qcom,supply-max-voltage = <3000000>;
			qcom,supply-enable-load = <100000>;
			qcom,supply-disable-load = <100>;
		};

		qcom,panel-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,panel-supply-entry@2 {
			reg = <2>;
			qcom,supply-name = "bklt";
			qcom,supply-min-voltage = <0>;
			qcom,supply-max-voltage = <0>;
			qcom,supply-enable-load = <0>;
			qcom,supply-disable-load = <0>;
		};
	};
};

+35 −13
Original line number Diff line number Diff line
@@ -62,19 +62,6 @@
		/delete-property/ vdd-io-supply;
	};

	qcom,mdss_dsi@0 {
		/delete-property/ vdda-supply;
		/delete-property/ vddio-supply;
		qcom,mdss_dsi_ctrl0@1ac8000 {
			/delete-property/ vdd-supply;
			/delete-property/ vddio-supply;
		};
	};

	qcom,mdss_dsi_pll@1ac8300 {
		/delete-property/ vddio-supply;
	};

	qcom,msm-thermal {
		/delete-property/ vdd-dig-supply;
	};
@@ -195,3 +182,38 @@
&pm660_haptics {
	qcom,actuator-type = "erm";
};

&dsi_auo_390p_cmd {
	qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs";
	qcom,panel-supply-entries = <&dsi_pm660_panel_pwr_supply>;
};

&mdss_dsi{
	vdda-supply = <&pm660_l5>; /*1.2V*/
	vddio-supply = <&pm660_l12>; /*1.8V*/
	qcom,mdss_dsi_ctrl0@1ac8000 {
		bklt-supply = <&bob_vreg>;
		vdd-supply = <&pm660_l18>; /*1.8*/
		vddio-supply = <&pm660_l11>;
	};
};

&mdss_dsi0{
	qcom,dsi-pref-prim-pan = <&dsi_auo_390p_cmd>;
	qcom,platform-bklight-en-gpio = <&msm_gpio 52 0>;
};

&mdss_dsi0_pll {
	vddio-supply = <&pm660_l12>; /*1.8V*/
};

&pm660_gpios {
	gpio@cb00 {
		status = "ok";
		qcom,mode = <1>;
		qcom,vin-sel = <0>;
		qcom,src-sel = <0>;
		qcom,master-en = <1>;
		qcom,out-strength = <2>;
	};
};
+9 −0
Original line number Diff line number Diff line
@@ -401,4 +401,13 @@
					<2 (-1) 2 4 6>;
		qcom,cpr-quot-adjust-scaling-factor-max = <1400>;
	};

	bob_vreg: bob_vreg {
		compatible = "regulator-fixed";
		regulator-name = "bob_vreg";
		startup-delay-us = <400>;
		enable-active-high;
		gpio = <&pm660_gpios 12 0>;
		status = "okay";
	};
};