summaryrefslogtreecommitdiff
path: root/overlays/apalis-imx8_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2022-12-21 18:00:35 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2023-01-03 16:21:16 +0100
commitadb8b9638b6de3a641f00b4c607ed9dd6293a19e (patch)
tree9eb4172f7cb91a4cae78a2134e2a7edd140e0025 /overlays/apalis-imx8_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts
parent1a731fa90a9f46f969e8810ed49b1768eda43ed9 (diff)
apalis-imx8: lvds: move to one overlay per panel
- Move to use only one overlay file for each panel/connection variant - Move lvds overlays to new naming - Adapt to dtb changes used in BSP6, 5.15-2.1.x kernel - Rename *mezzanine-can* to *mezzanine_can* Related-to: ELB-4896 ELB-4901 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'overlays/apalis-imx8_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts')
-rw-r--r--overlays/apalis-imx8_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts98
1 files changed, 98 insertions, 0 deletions
diff --git a/overlays/apalis-imx8_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts b/overlays/apalis-imx8_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts
new file mode 100644
index 0000000..84f485b
--- /dev/null
+++ b/overlays/apalis-imx8_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts
@@ -0,0 +1,98 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2020-2022 Toradex
+ */
+
+/*
+ * Apalis iMX8 driving the Capacitive Touch Display 10.1" LVDS connected to
+ * the Apalis Evaluation board Mezzanine.
+ */
+#include <dt-bindings/gpio/gpio.h>
+
+/dts-v1/;
+/plugin/;
+/ {
+ compatible = "toradex,apalis-imx8", "toradex,apalis-imx8-v1.1";
+};
+
+&ldb1 {
+ status = "okay";
+
+ lvds-channel@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ fsl,data-mapping = "spwg";
+ fsl,data-width = <24>;
+ status = "okay";
+
+ port@1 {
+ reg = <1>;
+
+ lvds2_out: endpoint {
+ remote-endpoint = <&panel2_lvds_in>;
+ };
+ };
+ };
+};
+
+&ldb1_phy {
+ status = "okay";
+};
+
+&{/} {
+ panel2_lvds: panel2-lvds {
+ compatible = "panel-lvds";
+ data-mapping = "vesa-24";
+ height-mm = <136>;
+ width-mm = <217>;
+ status = "okay";
+
+ panel-timing {
+ clock-frequency = <68900000 71100000 73400000>;
+ de-active = <1>;
+ hactive = <1280 1280 1280>;
+ hback-porch = <23 60 71>;
+ hfront-porch = <23 60 71>;
+ hsync-len = <15 40 47>;
+ pixelclk-active = <1>; /* positive edge */
+ vactive = <800 800 800>;
+ vback-porch = <5 7 10>;
+ vfront-porch = <5 7 10>;
+ vsync-len = <6 9 12>;
+ };
+
+ port {
+ panel2_lvds_in: endpoint {
+ remote-endpoint = <&lvds2_out>;
+ };
+ };
+ };
+};
+
+/* Enable 10" LVDS backlight LVDS_0_BKL1_ON */
+&lsio_gpio1 {
+ LVDS_0_BKL1_ON {
+ gpio-hog;
+ gpios = <22 GPIO_ACTIVE_HIGH>;
+ line-name = "LVDS_0_BKL1_ON";
+ output-high;
+ };
+};
+
+/*
+ * Put LVDS_0_PWM_BKL1 (GPIO8) low. GPIO8 is shared with gpio-fan.
+ * JP20 should be set to 1-2 (automatic) instead of GPIO8 (2-3).
+ */
+&lsio_gpio3 {
+ PWM_BKL1 {
+ gpio-hog;
+ gpios = <28 GPIO_ACTIVE_HIGH>;
+ line-name = "LVDS_0_PWM_BKL1";
+ output-low;
+ };
+};
+
+&gpio_fan {
+ status = "disabled";
+};