diff options
Diffstat (limited to 'overlays/toradex-smarc-imx8mp_panel-cap-touch-7inch-dsi_overlay.dts')
-rw-r--r-- | overlays/toradex-smarc-imx8mp_panel-cap-touch-7inch-dsi_overlay.dts | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/overlays/toradex-smarc-imx8mp_panel-cap-touch-7inch-dsi_overlay.dts b/overlays/toradex-smarc-imx8mp_panel-cap-touch-7inch-dsi_overlay.dts new file mode 100644 index 0000000..258819b --- /dev/null +++ b/overlays/toradex-smarc-imx8mp_panel-cap-touch-7inch-dsi_overlay.dts @@ -0,0 +1,100 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright (C) 2025 Toradex + * + * Capacitive Touch Display 7" DSI. + * + * https://developer.toradex.com/hardware/accessories/displays/capacitive-touch-display-7inch-dsi + * https://www.toradex.com/accessories/capacitive-touch-display-7-inch-dsi + */ + +/dts-v1/; +/plugin/; + +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/pwm/pwm.h> + +#include "display-rvt70hslnwca0_overlay.dtsi" +#include "toradex-smarc_backlight-lcd1_overlay.dtsi" + +/ { + compatible = "toradex,smarc-imx8mp"; +}; + +/* I2C on DSI Connector Pins 52/54 */ +&i2c_dsi_1 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + bridge@2c { + compatible = "ti,sn65dsi83"; + reg = <0x2c>; + /* SMARC LCD1_BKLT_EN */ + enable-gpios = <&som_gpio_expander 7 GPIO_ACTIVE_HIGH>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + dsi_lvds_bridge_in: endpoint { + data-lanes = <1 2 3 4>; + remote-endpoint = <&mipi_dsi_bridge1_out>; + }; + }; + + port@2 { + reg = <2>; + + dsi_lvds_bridge_out: endpoint { + remote-endpoint = <&panel_in_rvt70hslnwca0>; + }; + }; + }; + }; + + touch@41 { + compatible = "ilitek,ili2132"; + reg = <0x41>; + /* SMARC GPIO8 */ + interrupt-parent = <&gpio1>; + interrupts = <1 IRQ_TYPE_EDGE_RISING>; + }; +}; + +&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_lvds_bridge_in>; + }; + }; + }; +}; + +&panel_rvt70hslnwca0 { + backlight = <&backlight_lcd1>; + + port { + panel_in_rvt70hslnwca0: endpoint { + remote-endpoint = <&dsi_lvds_bridge_out>; + }; + }; +}; |