summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-02-12 20:59:13 +0200
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-02-17 20:21:27 +0200
commit747003fcb63b5910cfce5cd179d3412a278ecb47 (patch)
tree163fdacf6488d9070a5e50706eb5e418cc032cad
parentadcd696fe6a65dd8ed23ae2b6e93c4fc051ec676 (diff)
overlays: apalis-imx8x: add dsi-hdmi overlay
The LT8912 DSI-HDMI bridge and related subsystems remain disabled in the main devicetree. Add the overlay to let the system use an HDMI output. Related-to: ELB-3426, ELB-3395 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--overlays/Makefile1
-rw-r--r--overlays/apalis-imx8x_dsihdmi_overlay.dts63
2 files changed, 64 insertions, 0 deletions
diff --git a/overlays/Makefile b/overlays/Makefile
index f04ea1d..09e44c6 100644
--- a/overlays/Makefile
+++ b/overlays/Makefile
@@ -34,6 +34,7 @@ dtb-y += apalis-imx8_ov5640_overlay.dtbo
dtb-y += apalis-imx8_ov5640-2_overlay.dtbo
dtb-y += apalis-imx8x_ad7879_overlay.dtbo
dtb-y += apalis-imx8x_atmel-mxt_overlay.dtbo
+dtb-y += apalis-imx8x_dsihdmi_overlay.dtbo
dtb-y += apalis-imx8x_lvds_overlay.dtbo
dtb-y += apalis-imx8x_parallel-rgb_overlay.dtbo
dtb-y += colibri-imx6-aster_atmel-mxt_overlay.dtbo
diff --git a/overlays/apalis-imx8x_dsihdmi_overlay.dts b/overlays/apalis-imx8x_dsihdmi_overlay.dts
new file mode 100644
index 0000000..a68613d
--- /dev/null
+++ b/overlays/apalis-imx8x_dsihdmi_overlay.dts
@@ -0,0 +1,63 @@
+// Turn on a an HDMI interface on Apalis-iMX8X
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+ compatible = "toradex,apalis-imx8x";
+};
+
+&lt8912_hdmi {
+ status = "okay";
+
+ port {
+ lt8912_in: endpoint {
+ remote-endpoint = <&mipi1_dsi_host_out>;
+ };
+ };
+};
+
+&mipi1_dphy {
+ status = "okay";
+};
+
+&mipi1_dsi_host {
+ status = "okay";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@1 {
+ reg = <1>;
+
+ mipi1_dsi_host_out: endpoint {
+ remote-endpoint = <&lt8912_in>;
+ };
+ };
+ };
+};
+
+&i2c0_mipi_lvds1 {
+ status = "okay";
+};
+
+/* On-module GPIO Expander */
+&pcal6416_1 {
+ /*
+ * This gpio-hog drives a muxing device. With that we can choose
+ * if LVDS1_B pins are active or if DVI signals are active. Those
+ * signals are then muxed to MIPI_DSI1 PADs.
+ *
+ * output-high; muxes to DVI signals
+ * output-low; muxes to LVDS1_B signals
+ */
+ LVDS1B_HDMI_MUX {
+ gpio-hog;
+ gpios = <14 GPIO_ACTIVE_HIGH>;
+ output-high;
+ line-name = "LVDS1_HDMI_MUX";
+ };
+};