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

Commit ab02f973 authored by Wenjun Zhang's avatar Wenjun Zhang Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: enable SPI display for MSM8909w



Add ST7789 CMD file and modify panel power supply for SPI panel.

Change-Id: Ib28d2e30f782d02ea529e8afe67ac4634962f4f7
Signed-off-by: default avatarWenjun Zhang <wjzhan@codeaurora.org>
parent 42befc6f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
/* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2018, 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
@@ -23,6 +23,7 @@
#include "dsi-panel-auo-qvga-cmd.dtsi"
#include "dsi-panel-auo-cx-qvga-cmd.dtsi"
#include "dsi-panel-390p-auo-cmd.dtsi"
#include "spi-panel-st7789v2-qvga-cmd.dtsi"

&soc {
	dsi_panel_pwr_supply: dsi_panel_pwr_supply {
@@ -55,8 +56,8 @@
		qcom,panel-supply-entry@0 {
			reg = <0>;
			qcom,supply-name = "vdd";
			qcom,supply-min-voltage = <3000000>;
			qcom,supply-max-voltage = <3000000>;
			qcom,supply-min-voltage = <2850000>;
			qcom,supply-max-voltage = <2850000>;
			qcom,supply-enable-load = <100000>;
			qcom,supply-disable-load = <100>;
		};
+24 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2016,2018 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
@@ -153,6 +153,29 @@
				00 c0 00 00 00 00 00 01 bb];
		};
	};

	mdss_spi: qcom,mdss_spi {
			compatible = "qcom,mdss-spi-display";
			label = "mdss spi panel";

			qcom,mdss-fb-map = <&mdss_fb0>;
			qcom,mdss-mdp = <&mdss_mdp>;
			vdd-supply = <&pm8909_l17>;
			vddio-supply = <&pm8909_l6>;

			qcom,panel-supply-entries {
			#address-cells = <1>;
			#size-cells = <0>;
				qcom,panel-supply-entry@0 {
					reg = <0>;
					qcom,supply-name = "vdd";
					qcom,supply-min-voltage = <2850000>;
					qcom,supply-max-voltage = <2850000>;
					qcom,supply-enable-load = <100000>;
					qcom,supply-disable-load = <100>;
				};
			};
	};
};

#include "msm8909-mdss-panels.dtsi"
+2 −2
Original line number Diff line number Diff line
@@ -289,7 +289,7 @@
		pmx_mdss {
			mdss_dsi_active: mdss_dsi_active {
				mux {
					pins = "gpio25", "gpio37";
					pins = "gpio25", "gpio37", "gpio59";
					function = "gpio";
				};

@@ -302,7 +302,7 @@

			mdss_dsi_suspend: mdss_dsi_suspend {
				mux {
					pins = "gpio25", "gpio37";
					pins = "gpio25", "gpio37", "gpio59";
					function = "gpio";
				};

+2 −2
Original line number Diff line number Diff line
@@ -1339,7 +1339,7 @@
		status = "disabled";
	};

	spi_4: spi@78B8000{ /* BLSP1 QUP4 */
	spi_4: spi@78b8000{ /* BLSP1 QUP4 */
		compatible = "qcom,spi-qup-v2";
		#address-cells = <1>;
		#size-cells = <0>;
@@ -1362,7 +1362,7 @@
		qcom,bam-consumer-pipe-index = <10>;
		qcom,bam-producer-pipe-index = <11>;
		qcom,master-id = <86>;
		status = "disabled";
		status = "ok";
	};

	dma_blsp1: qcom,sps-dma@7884000 { /* BLSP1 */
+30 −0
Original line number Diff line number Diff line
@@ -20,6 +20,16 @@
		/delete-property/ qcom,mipi-csi-vdd-supply;
	};

	spi_4 {
		qcom,mdss_spi_client {
			reg = <0>;
			compatible = "qcom,mdss-spi-client";
			label = "MDSS SPI QUP4 CLIENT";
			dc-gpio = <&msm_gpio 59 0>;
			spi-max-frequency = <50000000>;
		};
	};

	i2c@78b9000 {
		synaptics@20 {
			/delete-property/ avdd-supply;
@@ -192,6 +202,26 @@
	qcom,panel-supply-entries = <&dsi_pm660_panel_pwr_supply>;
};

&spi_st7789v2_qvga_cmd {
	qcom,panel-supply-entries = <&dsi_pm660_panel_pwr_supply>;
	qcom,mdss-spi-bl-pmic-pwm-frequency = <100>;
	qcom,mdss-spi-bl-pmic-bank-select = <0>;
};

&mdss_spi {
	qcom,spi-pref-prim-pan = <&spi_st7789v2_qvga_cmd>;
	pinctrl-names = "mdss_default", "mdss_sleep";
	pinctrl-0 = <&mdss_te_active>;
	pinctrl-1 = <&mdss_te_suspend>;

	qcom,platform-te-gpio = <&msm_gpio 24 0>;
	qcom,platform-reset-gpio = <&msm_gpio 25 0>;
	qcom,platform-spi-dc-gpio = <&msm_gpio 59 0>;

	vdd-supply = <&pm660_l18>;
	vddio-supply = <&pm660_l11>;
};

&mdss_dsi{
	vdda-supply = <&pm660_l5>; /*1.2V*/
	vddio-supply = <&pm660_l12>; /*1.8V*/
Loading