summaryrefslogtreecommitdiff
path: root/overlays/verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts')
-rw-r--r--overlays/verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts95
1 files changed, 95 insertions, 0 deletions
diff --git a/overlays/verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts b/overlays/verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts
new file mode 100644
index 0000000..178b2c2
--- /dev/null
+++ b/overlays/verdin-am62_mezzanine_panel-lvds-dual-channel-1080p_overlay.dts
@@ -0,0 +1,95 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2023 Toradex
+ */
+
+// Verdin AM62 Mezzanine with LG LP156WF1 dual-channel LVDS Panel
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pwm/pwm.h>
+
+#include "verdin-am62_mezzanine_backlight.dtsi"
+
+&{/} {
+ compatible = "toradex,verdin-am62";
+
+ panel-lvds-mez {
+ compatible = "panel-lvds";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ backlight = <&backlight_mezzanine>;
+ data-mapping = "jeida-24";
+ height-mm = <194>;
+ width-mm = <345>;
+
+ panel-timing {
+ clock-frequency = <138500000>;
+ hactive = <1920>;
+ hback-porch = <40>;
+ hfront-porch = <24>;
+ hsync-len = <16>;
+ pixelclk-active = <0>;
+ vactive = <1080>;
+ vback-porch = <23>;
+ vfront-porch = <3>;
+ vsync-len = <5>;
+ };
+
+ /*
+ * Note that the OLDI TX 0 transmits the odd set of pixels
+ * while the OLDI TX 1 transmits the even set. This is a
+ * fixed configuration in the IP integration and is not
+ * changeable. The properties, "dual-lvds-odd-pixels" and
+ * "dual-lvds-even-pixels" have been used to merely
+ * identify if a Dual Link configuration is required.
+ * Swapping them will not make any difference.
+ */
+ port@0 {
+ reg = <0>;
+ dual-lvds-odd-pixels;
+
+ panel_lvds_in0: endpoint {
+ remote-endpoint = <&oldi_out0>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+ dual-lvds-even-pixels;
+
+ panel_lvds_in1: endpoint {
+ remote-endpoint = <&oldi_out1>;
+ };
+ };
+ };
+};
+
+&dss {
+ status = "okay";
+};
+
+&dss_ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ /* VP1: LVDS Output (OLDI TX 0) */
+ port@0 {
+ reg = <0>;
+
+ oldi_out0: endpoint {
+ remote-endpoint = <&panel_lvds_in0>;
+ };
+ };
+
+ /* VP1: LVDS Output (OLDI TX 1) */
+ port@2 {
+ reg = <2>;
+
+ oldi_out1: endpoint {
+ remote-endpoint = <&panel_lvds_in1>;
+ };
+ };
+};