diff options
-rw-r--r-- | overlays/Makefile | 1 | ||||
-rw-r--r-- | overlays/apalis-imx8x_dsihdmi_overlay.dts | 63 |
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"; +}; + +<8912_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 = <<8912_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"; + }; +}; |