// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /* * Copyright 2025 Uros Majstorovic */ // adapted from: https://git.toradex.com/cgit/device-tree-overlays.git/tree/overlays/verdin-imx8mp_panel-cap-touch-10inch-lvds_overlay.dts?h=toradex_6.6-2.2.x-imx // Verdin iMX8M Plus single-channel LVDS /dts-v1/; /plugin/; #include #include #include #include "freescale/imx8mp-pinfunc.h" / { compatible = "toradex,verdin-imx8mp"; }; &{/} { backlight_lvds: backlight-lvds { compatible = "pwm-backlight"; pinctrl-names = "default"; brightness-levels = <0 45 63 88 119 158 203 255>; default-brightness-level = <0>; /* Verdin PWM_1 (SODIMM 15) */ pwms = <&pwm1 0 6666667 0>; }; lvds0_panel: panel-lvds-focuslcds { compatible = "panel-lvds"; backlight = <&backlight_lvds>; data-mapping = "vesa-24"; width-mm = <62>; height-mm = <110>; panel-timing { clock-frequency = <26250000>; hfront-porch = <8>; hsync-len = <4>; hback-porch = <8>; hactive = <480>; vfront-porch = <7>; vsync-len = <7>; vback-porch = <7>; vactive = <854>; hsync-active = <0>; vsync-active = <0>; de-active = <1>; // pixelclk-active = <0>; }; port { panel_lvds_in: endpoint { remote-endpoint = <&lvds_out>; }; }; }; dmux { compatible = "mikrophone,dmux"; dmux-gpio = <&gpio1 1 0>; ctp-dev-name = "3-005d"; status = "okay"; }; }; /* Verdin I2C_1 */ &i2c4 { #address-cells = <1>; #size-cells = <0>; status = "okay"; gt911@5d { compatible = "goodix,gt911"; reg = <0x5d>; interrupts = <5 IRQ_TYPE_LEVEL_LOW>; interrupt-parent = <&gpio1>; irq-gpio = <&gpio1 5 0>; reset-gpio = <&gpio1 6 0>; defer-init; status = "okay"; }; }; &lcdif2 { status = "okay"; }; &ldb { #address-cells = <1>; #size-cells = <0>; status = "okay"; lvds-channel@0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; fsl,data-mapping = "spwg"; fsl,data-width = <24>; status = "okay"; port@1 { reg = <1>; lvds_out: endpoint { remote-endpoint = <&panel_lvds_in>; }; }; }; }; &ldb_phy { status = "okay"; }; &pwm1 { status = "okay"; }; /* &media_blk_ctrl { assigned-clock-rates = <500000000>, <200000000>, <0>, <0>, <183750000>; }; */