diff mbox

arm64: dts: exynos: Add support for s6e3ha2 panel device for TM2

Message ID 1480400182-4485-1-git-send-email-hoegeun.kwon@samsung.com (mailing list archive)
State Changes Requested
Headers show

Commit Message

Hoegeun Kwon Nov. 29, 2016, 6:16 a.m. UTC
From: Hyungwon Hwang <human.hwang@samsung.com>

This patch adds the Panel Device Tree node for s6e3ha2 display
controller to Exynos5433 SoC dts.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
---
 arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 35 +++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Comments

Marek Szyprowski Nov. 29, 2016, 7:12 a.m. UTC | #1
Hi Hyungwon,


On 2016-11-29 07:16, Hoegeun Kwon wrote:
> From: Hyungwon Hwang <human.hwang@samsung.com>
>
> This patch adds the Panel Device Tree node for s6e3ha2 display
> controller to Exynos5433 SoC dts.
>
> Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
> Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
> ---
>   arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 35 +++++++++++++++++++++++++++
>   1 file changed, 35 insertions(+)

Please send an updated driver with dt binding description first, then 
this patch.

> diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
> index db879f4..d27f27d 100644
> --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
> +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
> @@ -252,11 +252,46 @@
>   			reg = <1>;
>   
>   			dsi_out: endpoint {
> +				remote-endpoint = <&dsi_in>;
>   				samsung,burst-clock-frequency = <512000000>;
>   				samsung,esc-clock-frequency = <16000000>;
>   			};
>   		};
>   	};
> +
> +	panel@0 {
> +		compatible = "samsung,s6e3ha2";
> +		reg = <0>;
> +		vdd3-supply = <&ldo27_reg>;
> +		vci-supply = <&ldo28_reg>;
> +		reset-gpios = <&gpg0 0 0>;

Typically reset gpio is used with GPIO_ACTIVE_LOW flag, so handling this 
pin should be changed in the panel driver.

> +		panel-en-gpios = <&gpf1 5 0>;

This should be renamed to "enable-gpios", as pointed in 
https://patchwork.kernel.org/patch/5714111/

> +		te-gpios = <&gpf1 3 1>;
> +		power-on-delay= <5>;
> +		init-delay = <120>;
> +		panel-width-mm = <71>;
> +		panel-height-mm = <125>;
> +
> +		display-timings {
> +			timing-0 {
> +				clock-frequency = <14874444>;
> +				hactive = <1440>;
> +				vactive = <2560>;
> +				hfront-porch = <1>;
> +				hback-porch = <1>;
> +				hsync-len = <1>;
> +				vfront-porch = <1>;
> +				vback-porch = <15>;
> +				vsync-len = <1>;
> +			};
> +		};
> +
> +		port {
> +			dsi_in: endpoint {
> +				remote-endpoint = <&dsi_out>;
> +			};
> +		};
> +	};
>   };
>   
>   &hsi2c_0 {

Best regards
diff mbox

Patch

diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
index db879f4..d27f27d 100644
--- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
+++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
@@ -252,11 +252,46 @@ 
 			reg = <1>;
 
 			dsi_out: endpoint {
+				remote-endpoint = <&dsi_in>;
 				samsung,burst-clock-frequency = <512000000>;
 				samsung,esc-clock-frequency = <16000000>;
 			};
 		};
 	};
+
+	panel@0 {
+		compatible = "samsung,s6e3ha2";
+		reg = <0>;
+		vdd3-supply = <&ldo27_reg>;
+		vci-supply = <&ldo28_reg>;
+		reset-gpios = <&gpg0 0 0>;
+		panel-en-gpios = <&gpf1 5 0>;
+		te-gpios = <&gpf1 3 1>;
+		power-on-delay= <5>;
+		init-delay = <120>;
+		panel-width-mm = <71>;
+		panel-height-mm = <125>;
+
+		display-timings {
+			timing-0 {
+				clock-frequency = <14874444>;
+				hactive = <1440>;
+				vactive = <2560>;
+				hfront-porch = <1>;
+				hback-porch = <1>;
+				hsync-len = <1>;
+				vfront-porch = <1>;
+				vback-porch = <15>;
+				vsync-len = <1>;
+			};
+		};
+
+		port {
+			dsi_in: endpoint {
+				remote-endpoint = <&dsi_out>;
+			};
+		};
+	};
 };
 
 &hsi2c_0 {