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

Commit 211036f9 authored by Raghavendra Ambadas's avatar Raghavendra Ambadas Committed by Nirmal Abraham
Browse files

ARM: dts: msm: Add SPI st7789v2 320p cmd mode panel



Add new SPI panel to support st7789v2 320P cmd panel.

Change-Id: Ie52dc88d655dbb24a8640cf97ec75a0685759de2
Signed-off-by: default avatarRaghavendra Ambadas <rambad@codeaurora.org>
parent 1593b765
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2020, 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
@@ -659,7 +659,7 @@
			<0x7884000 0x1f000>;
		interrupt-names = "spi_irq", "spi_bam_irq";
		interrupts = <0 97 0>, <0 238 0>;
		spi-max-frequency = <19200000>;
		spi-max-frequency = <50000000>;
		pinctrl-names = "spi_default", "spi_sleep";
		pinctrl-0 = <&spi3_default &spi3_cs0_active>;
		pinctrl-1 = <&spi3_sleep &spi3_cs0_sleep>;
+66 −0
Original line number Diff line number Diff line
/* Copyright (c) 2020, 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_spi_panel {
	spi_st7789v2_320p_cmd: qcom,mdss_spi_st7789v2_320p_cmd {
		qcom,mdss-spi-panel-name =
			"st7789v2 320p command mode spi panel";
		qcom,mdss-spi-panel-destination = "display_1";
		qcom,mdss-spi-panel-controller = <&mdss_spi>;
		qcom,mdss-spi-panel-framerate = <30>;
		qcom,mdss-spi-panel-te-per-vsync = <2>;
		qcom,mdss-spi-panel-width = <240>;
		qcom,mdss-spi-panel-height = <320>;
		qcom,mdss-spi-h-front-porch = <10>;
		qcom,mdss-spi-h-back-porch = <20>;
		qcom,mdss-spi-h-pulse-width = <2>;
		qcom,mdss-spi-v-back-porch = <20>;
		qcom,mdss-spi-v-front-porch = <10>;
		qcom,mdss-spi-v-pulse-width = <2>;
		qcom,mdss-spi-h-left-border = <0>;
		qcom,mdss-spi-h-right-border = <0>;
		qcom,mdss-spi-v-top-border = <0>;
		qcom,mdss-spi-v-bottom-border = <0>;
		qcom,mdss-spi-bpp = <16>;
		qcom,mdss-spi-on-command = [78 01 11
				00 02 35 00
				00 03 44 00 20
				00 02 36 00
				00 02 3A 05
				00 06 B2 0C 0C 00 33 33
				00 02 B7 35
				00 02 BB 35
				00 02 C0 2C
				00 02 C2 01
				00 02 C3 0B
				00 02 C4 20
				00 02 C6 0F
				00 03 D0 A4 A1
				00 0F E0 D0 00 02 07 0B 1A 31
					54 40 29 12 12 12 17
				00 0F E1 D0 00 02 07 05 25 2D
					44 45 1C 18 16 1C 1D
				78 01 29
				20 01 2C];
		qcom,mdss-spi-off-command = [20 01 28
				20 01 10];
		qcom,mdss-spi-bl-min-level = <1>;
		qcom,mdss-spi-bl-max-level = <255>;
		qcom,mdss-spi-bl-pmic-control-type = "bl_gpio_pulse";
		qcom,mdss-spi-reset-sequence = <1 20>, <0 1>, <1 20>;
		qcom,mdss-spi-panel-status-check-mode = "reg_read";
		qcom,mdss-spi-panel-status-reg = /bits/ 8 <0x0a>;
		qcom,mdss-spi-panel-status-read-length = <1>;
		qcom,mdss-spi-panel-max-error-count = <1>;
		qcom,mdss-spi-panel-status-value = /bits/ 8 <0x9c>;
	};
};