summaryrefslogtreecommitdiff
path: root/overlays/verdin-imx8mp_panel-cap-touch-10inch-dsi_overlay.dts
diff options
context:
space:
mode:
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>2023-09-26 19:30:52 +0200
committerEmanuele Ghidoli <emanuele.ghidoli@toradex.com>2023-09-27 23:12:49 +0200
commit3dfb87f1966ee63be3c00268eaf7797f4d2bc1d5 (patch)
tree809a8373fc5473369d38424ad4af3c413ea58ca8 /overlays/verdin-imx8mp_panel-cap-touch-10inch-dsi_overlay.dts
parent86b688e0483f1f8986f6a039effb88b27a7c3e0b (diff)
verdin-imx8mp: add Riverdi 10.1 inch dsi panel overlay
Add overlay for Riverdi 10.1 inch capacitive touch panel connected via DSI. It can be directly connected to Mallow carrier board and, using Verdin DSI display adapter, it can be connected to Dev and Dahlia carrier boards. Related-to: ELB-5365 Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Diffstat (limited to 'overlays/verdin-imx8mp_panel-cap-touch-10inch-dsi_overlay.dts')
-rw-r--r--overlays/verdin-imx8mp_panel-cap-touch-10inch-dsi_overlay.dts103
1 files changed, 103 insertions, 0 deletions
diff --git a/overlays/verdin-imx8mp_panel-cap-touch-10inch-dsi_overlay.dts b/overlays/verdin-imx8mp_panel-cap-touch-10inch-dsi_overlay.dts
new file mode 100644
index 0000000..cecf3a6
--- /dev/null
+++ b/overlays/verdin-imx8mp_panel-cap-touch-10inch-dsi_overlay.dts
@@ -0,0 +1,103 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2023 Toradex
+ */
+
+// Verdin with connected Capacitive Touch Display 10.1" DSI.
+
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "toradex,verdin-imx8mp";
+};
+
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/gpio/gpio.h>
+
+&{/} {
+ panel_lvds: panel-lvds {
+ };
+};
+
+&backlight {
+ pwms = <&pwm3 0 6666667 0>;
+ status = "okay";
+};
+
+/* Verdin I2C_2_DSI */
+&i2c2 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ bridge@2c {
+ compatible = "ti,sn65dsi83";
+ reg = <0x2c>;
+ /* IRQ not connected */
+ /* Verdin GPIO_10_DSI (SODIMM 21) */
+ enable-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_gpio_10_dsi>;
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ dsi_riv_in: endpoint {
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&mipi_dsi_bridge1_out>;
+ };
+ };
+
+ port@2 {
+ reg = <2>;
+
+ lvds_out_panel_riv: endpoint {
+ remote-endpoint = <&panel_in_lvds_riv>;
+ };
+ };
+ };
+ };
+
+ touch@41 {
+ compatible = "ilitek,ili2132";
+ reg = <0x41>;
+ /* Verdin DSI_1_INT# (TOUCH_INT#, SODIMM 17) */
+ interrupt-parent = <&gpio4>;
+ interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_gpio_9_dsi>, <&pinctrl_i2s_2_bclk_touch_reset>;
+ /* Verdin I2S_2_BCLK (TOUCH_RESET#, SODIMM 42) */
+ reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
+ };
+};
+
+/* LCDIF to MIPI-DSI */
+&lcdif1 {
+ status = "okay";
+};
+
+&mipi_dsi {
+ samsung,esc-clock-frequency = <16000000>;
+ status = "okay";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@1 {
+ reg = <1>;
+
+ mipi_dsi_bridge1_out: endpoint {
+ attach-bridge;
+ remote-endpoint = <&dsi_riv_in>;
+ };
+ };
+ };
+};
+
+#include "display-rvt101hvdwc00b_overlay.dtsi"