ARM: dts: Add LCD type 28 support to LogicPD Torpedo DM3730 devkit
authorAdam Ford <aford173@gmail.com>
Fri, 10 May 2019 20:22:56 +0000 (15:22 -0500)
committerTony Lindgren <tony@atomide.com>
Mon, 10 Jun 2019 12:03:28 +0000 (05:03 -0700)
There are two LCD device released by Logic PD for the Torpedo,
type 15 and Type 28.  The stock dts file supports the older LCD,
so this patch enables support for the newer one.

For details between these different LCD's see
https://support.logicpd.com/DesktopModules/Bring2mind/DMX/Download.aspx?portalid=0&EntryId=2777

Signed-off-by: Adam Ford <aford173@gmail.com>
[tony@atomide.com: removed extra blank line for checkpatch]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/logicpd-torpedo-37xx-devkit-28.dts [new file with mode: 0644]

diff --git a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit-28.dts b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit-28.dts
new file mode 100644 (file)
index 0000000..07ac99b
--- /dev/null
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: GPL-2.0
+
+/dts-v1/;
+
+/*
+ * There are two types of 4.3" LCD, Type 15 and Type 28.
+ * By default, type 15 was used.  This device tree file
+ * uses the timing for the type 28 LCD
+ */
+
+#include "logicpd-torpedo-37xx-devkit.dts"
+
+&lcd0 {
+
+       label = "28";
+
+       panel-timing {
+               clock-frequency = <9000000>;
+               hactive = <480>;
+               vactive = <272>;
+               hfront-porch = <3>;
+               hback-porch = <2>;
+               hsync-len = <42>;
+               vback-porch = <3>;
+               vfront-porch = <2>;
+               vsync-len = <11>;
+               hsync-active = <1>;
+               vsync-active = <1>;
+               de-active = <1>;
+               pixelclk-active = <0>;
+       };
+};