summaryrefslogtreecommitdiffstats
path: root/bsp/meta-rcar/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0041-arm64-dts-renesas-ulcb-kf-Move-panel-configuration-t.patch
blob: d640d26ef63a1aa077bbd5fb3225fea877138692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
From 4345b900761a169590891eb1946aae7d55b0c749 Mon Sep 17 00:00:00 2001
From: Valentine Barshak <valentine.barshak@cogentembedded.com>
Date: Mon, 17 Dec 2018 16:47:51 +0300
Subject: [PATCH 032/122] arm64: dts: renesas: ulcb-kf: Move panel
 configuration to ulcb-kf-panel.dtsi

This moves LVDS panel configuration from ulcb-kf.dtsi
to ulcb-kf-panel.dtsi. This various LVDS panel setup
a bit easier.

Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
---
 arch/arm64/boot/dts/renesas/ulcb-kf-panel.dtsi | 41 ++++++++++++++++++++++++++
 arch/arm64/boot/dts/renesas/ulcb-kf.dtsi       | 34 +++------------------
 2 files changed, 45 insertions(+), 30 deletions(-)
 create mode 100644 arch/arm64/boot/dts/renesas/ulcb-kf-panel.dtsi

diff --git a/arch/arm64/boot/dts/renesas/ulcb-kf-panel.dtsi b/arch/arm64/boot/dts/renesas/ulcb-kf-panel.dtsi
new file mode 100644
index 0000000..b54c935
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/ulcb-kf-panel.dtsi
@@ -0,0 +1,41 @@
+/*
+ * Device Tree Source for the Kingfisher (ULCB extension) LVDS panel
+ *
+ * Copyright (C) 2018 Renesas Electronics Corp.
+ * Copyright (C) 2018 Cogent Embedded, Inc.
+ *
+ * This file is licensed under the terms of the GNU General Public License
+ * version 2.  This program is licensed "as is" without any warranty of any
+ * kind, whether express or implied.
+ */
+
+&lvds {
+	compatible = "panel-lvds";
+
+	width-mm = <210>;
+	height-mm = <158>;
+
+	data-mapping = "jeida-24";
+
+	panel-timing {
+		/* 1280x800 @60Hz Boundary Devices BD101LCC1 compatible panel */
+		clock-frequency = <65000000>;
+		hactive = <1280>;
+		vactive = <800>;
+		hsync-len = <40>;
+		hfront-porch = <80>;
+		hback-porch = <40>;
+		vfront-porch = <14>;
+		vback-porch = <14>;
+		vsync-len = <4>;
+	};
+};
+
+&gpio2 {
+	bl_pwm {
+		gpio-hog;
+		gpios = <3 GPIO_ACTIVE_HIGH>;
+		output-high;
+		line-name = "BL PWM 100%";
+	};
+};
diff --git a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
index a70636e..4ab8d60 100644
--- a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
+++ b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
@@ -171,27 +171,7 @@
 		dais = <&rsnd_port3>;
 	};
 
-	lvds {
-		compatible = "panel-lvds";
-
-		width-mm = <210>;
-		height-mm = <158>;
-
-		data-mapping = "jeida-24";
-
-		panel-timing {
-			/* 1280x800 @60Hz */
-			clock-frequency = <65000000>;
-			hactive = <1280>;
-			vactive = <800>;
-			hsync-len = <40>;
-			hfront-porch = <80>;
-			hback-porch = <40>;
-			vfront-porch = <14>;
-			vback-porch = <14>;
-			vsync-len = <4>;
-		};
-
+	lvds: lvds {
 		port {
 			lvds_in: endpoint {
 				remote-endpoint = <&lvds0_out>;
@@ -337,15 +317,6 @@
 	status = "okay";
 };
 
-&gpio2 {
-	bl_pwm {
-		gpio-hog;
-		gpios = <3 GPIO_ACTIVE_HIGH>;
-		output-high;
-		line-name = "BL PWM 100%";
-	};
-};
-
 &gpio4 {
 	most_rst {
 		gpio-hog;
@@ -1457,5 +1428,8 @@
 	status = "okay";
 };
 
+/* set LVDS panel timings and pins */
+#include "ulcb-kf-panel.dtsi"
+
 
 
-- 
2.7.4