From 855deed457e0457cf2bc1bccfdf84b8bc44ca4a3 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 7 Sep 2022 09:54:54 +0200 Subject: apalis-imx6: move to one overlay per accessory Move the existing overlays to dtsi files and include them into one accessory dts. Provide data-mapping timings appropriately for each machine instead of the hardcoding and use a single overlay per SoC to avoid code duplication. Set the bus-format via toradex specific data-mapping property in the machine specifig overlay. Make sure the panel-dpi compatible is set correctly in the display specific overlay. While at it use new lines consistently and set sensible width and height dimension for a fullHD analog RGB monitor. Signed-off-by: Max Krummenacher --- overlays/Makefile | 11 +++-- overlays/apalis-imx6_atmel-mxt_overlay.dts | 21 --------- overlays/apalis-imx6_atmel-mxt_overlay.dtsi | 15 ++++++ .../apalis-imx6_display-vga-640x480_overlay.dtsi | 34 +++++++++++++ overlays/apalis-imx6_lvds_overlay.dts | 32 ------------- overlays/apalis-imx6_lvds_overlay.dtsi | 25 ++++++++++ .../apalis-imx6_panel-cap-touch-10inch_overlay.dts | 18 +++++++ .../apalis-imx6_panel-cap-touch-7inch_overlay.dts | 18 +++++++ overlays/apalis-imx6_panel-edt-5.7inch_overlay.dts | 18 +++++++ overlays/apalis-imx6_panel-edt-7inch_overlay.dts | 18 +++++++ .../apalis-imx6_panel-res-touch-7inch_overlay.dts | 18 +++++++ overlays/apalis-imx6_parallel-rgb_overlay.dts | 29 ------------ overlays/apalis-imx6_parallel-rgb_overlay.dtsi | 24 ++++++++++ overlays/apalis-imx6_stmpe-ts_overlay.dts | 17 ------- overlays/apalis-imx6_stmpe-ts_overlay.dtsi | 11 +++++ overlays/apalis-imx6_vga-640x480_overlay.dts | 18 +++++++ overlays/apalis-imx6_vga_overlay.dts | 25 ---------- overlays/apalis-imx6_vga_overlay.dtsi | 55 ++++++++++++++++++++++ overlays/display-edt5.7_overlay.dts | 38 --------------- overlays/display-edt5.7_overlay.dtsi | 26 ++++++++++ overlays/display-edt7_overlay.dts | 38 --------------- overlays/display-edt7_overlay.dtsi | 26 ++++++++++ overlays/display-fullhd_overlay.dts | 38 --------------- overlays/display-fullhd_overlay.dtsi | 28 +++++++++++ overlays/display-lt170410_overlay.dtsi | 30 ++++++++++++ overlays/display-vga_overlay.dts | 37 --------------- 26 files changed, 388 insertions(+), 280 deletions(-) delete mode 100644 overlays/apalis-imx6_atmel-mxt_overlay.dts create mode 100644 overlays/apalis-imx6_atmel-mxt_overlay.dtsi create mode 100644 overlays/apalis-imx6_display-vga-640x480_overlay.dtsi delete mode 100644 overlays/apalis-imx6_lvds_overlay.dts create mode 100644 overlays/apalis-imx6_lvds_overlay.dtsi create mode 100644 overlays/apalis-imx6_panel-cap-touch-10inch_overlay.dts create mode 100644 overlays/apalis-imx6_panel-cap-touch-7inch_overlay.dts create mode 100644 overlays/apalis-imx6_panel-edt-5.7inch_overlay.dts create mode 100644 overlays/apalis-imx6_panel-edt-7inch_overlay.dts create mode 100644 overlays/apalis-imx6_panel-res-touch-7inch_overlay.dts delete mode 100644 overlays/apalis-imx6_parallel-rgb_overlay.dts create mode 100644 overlays/apalis-imx6_parallel-rgb_overlay.dtsi delete mode 100644 overlays/apalis-imx6_stmpe-ts_overlay.dts create mode 100644 overlays/apalis-imx6_stmpe-ts_overlay.dtsi create mode 100644 overlays/apalis-imx6_vga-640x480_overlay.dts delete mode 100644 overlays/apalis-imx6_vga_overlay.dts create mode 100644 overlays/apalis-imx6_vga_overlay.dtsi delete mode 100644 overlays/display-edt5.7_overlay.dts create mode 100644 overlays/display-edt5.7_overlay.dtsi delete mode 100644 overlays/display-edt7_overlay.dts create mode 100644 overlays/display-edt7_overlay.dtsi delete mode 100644 overlays/display-fullhd_overlay.dts create mode 100644 overlays/display-fullhd_overlay.dtsi create mode 100644 overlays/display-lt170410_overlay.dtsi delete mode 100644 overlays/display-vga_overlay.dts diff --git a/overlays/Makefile b/overlays/Makefile index 28d6c2f..dfea6af 100644 --- a/overlays/Makefile +++ b/overlays/Makefile @@ -20,16 +20,17 @@ HOSTCC := gcc $(DTS_INCLUDES) PWD := $(shell pwd) dtb-y += apalis-imx6_adv7280_overlay.dtbo -dtb-y += apalis-imx6_atmel-mxt_overlay.dtbo dtb-y += apalis-imx6_hdmi_overlay.dtbo -dtb-y += apalis-imx6_lvds_overlay.dtbo dtb-y += apalis-imx6_ov5640-v11a_overlay.dtbo dtb-y += apalis-imx6_ov5640_overlay.dtbo -dtb-y += apalis-imx6_parallel-rgb_overlay.dtbo +dtb-y += apalis-imx6_panel-cap-touch-7inch_overlay.dtbo +dtb-y += apalis-imx6_panel-cap-touch-10inch_overlay.dtbo +dtb-y += apalis-imx6_panel-edt-5.7inch_overlay.dtbo +dtb-y += apalis-imx6_panel-edt-7inch_overlay.dtbo +dtb-y += apalis-imx6_panel-res-touch-7inch_overlay.dtbo dtb-y += apalis-imx6_spi1_spidev_overlay.dtbo dtb-y += apalis-imx6_spi2_spidev_overlay.dtbo -dtb-y += apalis-imx6_stmpe-ts_overlay.dtbo -dtb-y += apalis-imx6_vga_overlay.dtbo +dtb-y += apalis-imx6_vga-640x480_overlay.dtbo dtb-y += colibri-imx6_hdmi_overlay.dtbo dtb-y += colibri-imx6_panel-cap-touch-7inch_adapter_overlay.dtbo dtb-y += colibri-imx6_panel-cap-touch-7inch_overlay.dtbo diff --git a/overlays/apalis-imx6_atmel-mxt_overlay.dts b/overlays/apalis-imx6_atmel-mxt_overlay.dts deleted file mode 100644 index 245e82e..0000000 --- a/overlays/apalis-imx6_atmel-mxt_overlay.dts +++ /dev/null @@ -1,21 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/* - * Copyright 2020-2021 Toradex - */ - -// Atmel MXT touchscreen for the 7inch and 10inch display orderable at Toradex. - -/dts-v1/; -/plugin/; - -/ { - compatible = "toradex,apalis_imx6q"; -}; - -&i2c1 { - status = "okay"; -}; - -&atmel_mxt_ts { - status = "okay"; -}; diff --git a/overlays/apalis-imx6_atmel-mxt_overlay.dtsi b/overlays/apalis-imx6_atmel-mxt_overlay.dtsi new file mode 100644 index 0000000..fd25ffc --- /dev/null +++ b/overlays/apalis-imx6_atmel-mxt_overlay.dtsi @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2020-2022 Toradex + */ + +// Atmel MXT capacitive touch controller for the 7" and 10.1" displays +// orderable at Toradex. Compatible with a Capacitive Touch Connector. + +&i2c1 { + status = "okay"; +}; + +&atmel_mxt_ts { + status = "okay"; +}; diff --git a/overlays/apalis-imx6_display-vga-640x480_overlay.dtsi b/overlays/apalis-imx6_display-vga-640x480_overlay.dtsi new file mode 100644 index 0000000..d9b36db --- /dev/null +++ b/overlays/apalis-imx6_display-vga-640x480_overlay.dtsi @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +// VGA Signal 640x480@60Hz Industry standard timing, display-enable +// polarity set as required by the resistor ladder video DAC on the +// Apalis iMX6. + +&{/vga-panel} { + compatible = "panel-dpi"; + status = "okay"; + + /* for 0.3mm pixels */ + width-mm = <192>; + height-mm = <144>; + + panel-timing { + clock-frequency = <25175000>; + hactive = <640>; + vactive = <480>; + hsync-len = <96>; + hfront-porch = <16>; + hback-porch = <48>; + vsync-len = <2>; + vfront-porch = <10>; + vback-porch = <33>; + + de-active = <0>; + hsync-active = <0>; + vsync-active = <0>; + pixelclk-active = <0>; + }; +}; diff --git a/overlays/apalis-imx6_lvds_overlay.dts b/overlays/apalis-imx6_lvds_overlay.dts deleted file mode 100644 index 1e68898..0000000 --- a/overlays/apalis-imx6_lvds_overlay.dts +++ /dev/null @@ -1,32 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/* - * Copyright 2020-2021 Toradex - */ - -// Enable the LVDS interface on the Apalis iMX6Q. Make sure to also select a valid display configuration. - -/dts-v1/; -/plugin/; - -/ { - compatible = "toradex,apalis_imx6q"; -}; - -&backlight { - status = "okay"; -}; - -&ldb { - #address-cells = <1>; - #size-cells = <0>; - - status = "okay"; - - lvds-channel@0 { - status = "okay"; - }; -}; - -&pwm4 { - status = "okay"; -}; diff --git a/overlays/apalis-imx6_lvds_overlay.dtsi b/overlays/apalis-imx6_lvds_overlay.dtsi new file mode 100644 index 0000000..e1b0ddb --- /dev/null +++ b/overlays/apalis-imx6_lvds_overlay.dtsi @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2020-2022 Toradex + */ + +// LVDS interface on the Apalis iMX6. + +&backlight { + status = "okay"; +}; + +&ldb { + #address-cells = <1>; + #size-cells = <0>; + + status = "okay"; + + lvds-channel@0 { + status = "okay"; + }; +}; + +&pwm4 { + status = "okay"; +}; diff --git a/overlays/apalis-imx6_panel-cap-touch-10inch_overlay.dts b/overlays/apalis-imx6_panel-cap-touch-10inch_overlay.dts new file mode 100644 index 0000000..f900b1a --- /dev/null +++ b/overlays/apalis-imx6_panel-cap-touch-10inch_overlay.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +// Enable the LVDS interface on the Apalis iMX6 with a connected +// capacitive touch 10.1" LVDS display. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,apalis_imx6q"; +}; + +#include "apalis-imx6_atmel-mxt_overlay.dtsi" +#include "apalis-imx6_lvds_overlay.dtsi" +#include "display-lt170410_overlay.dtsi" diff --git a/overlays/apalis-imx6_panel-cap-touch-7inch_overlay.dts b/overlays/apalis-imx6_panel-cap-touch-7inch_overlay.dts new file mode 100644 index 0000000..e2c3142 --- /dev/null +++ b/overlays/apalis-imx6_panel-cap-touch-7inch_overlay.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +// Enable the parallel RGB interface on the Apalis iMX6 with a +// connected capacitive touch 7" display. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,apalis_imx6q"; +}; + +#include "apalis-imx6_atmel-mxt_overlay.dtsi" +#include "apalis-imx6_parallel-rgb_overlay.dtsi" +#include "display-lt161010_overlay.dtsi" diff --git a/overlays/apalis-imx6_panel-edt-5.7inch_overlay.dts b/overlays/apalis-imx6_panel-edt-5.7inch_overlay.dts new file mode 100644 index 0000000..cbe2b6e --- /dev/null +++ b/overlays/apalis-imx6_panel-edt-5.7inch_overlay.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +// Enable the parallel RGB interface on the Apalis iMX6 with a +// connected EDT 5.7" display. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,apalis_imx6q"; +}; + +#include "apalis-imx6_stmpe-ts_overlay.dtsi" +#include "apalis-imx6_parallel-rgb_overlay.dtsi" +#include "display-edt5.7_overlay.dtsi" diff --git a/overlays/apalis-imx6_panel-edt-7inch_overlay.dts b/overlays/apalis-imx6_panel-edt-7inch_overlay.dts new file mode 100644 index 0000000..623119e --- /dev/null +++ b/overlays/apalis-imx6_panel-edt-7inch_overlay.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +// Enable the parallel RGB interface on the Apalis iMX6 with a +// connected EDT 7" display. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,apalis_imx6q"; +}; + +#include "apalis-imx6_stmpe-ts_overlay.dtsi" +#include "apalis-imx6_parallel-rgb_overlay.dtsi" +#include "display-edt7_overlay.dtsi" diff --git a/overlays/apalis-imx6_panel-res-touch-7inch_overlay.dts b/overlays/apalis-imx6_panel-res-touch-7inch_overlay.dts new file mode 100644 index 0000000..caf4943 --- /dev/null +++ b/overlays/apalis-imx6_panel-res-touch-7inch_overlay.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +// Enable the parallel RGB interface on the Apalis iMX6 with a +// connected resistive touch 7" display. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,apalis_imx6q"; +}; + +#include "apalis-imx6_stmpe-ts_overlay.dtsi" +#include "apalis-imx6_parallel-rgb_overlay.dtsi" +#include "display-lt161010_overlay.dtsi" diff --git a/overlays/apalis-imx6_parallel-rgb_overlay.dts b/overlays/apalis-imx6_parallel-rgb_overlay.dts deleted file mode 100644 index 30a1f6f..0000000 --- a/overlays/apalis-imx6_parallel-rgb_overlay.dts +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/* - * Copyright 2020-2021 Toradex - */ - -// Enable the parallel RGB interface on the Apalis iMX6Q. Make sure to also select a valid display configuration. - -/dts-v1/; -/plugin/; - -/ { - compatible = "toradex,apalis_imx6q"; -}; - -&backlight { - status = "okay"; -}; - -&lcd_display { - status = "okay"; -}; - -&panel_dpi { - status = "okay"; -}; - -&pwm4 { - status = "okay"; -}; diff --git a/overlays/apalis-imx6_parallel-rgb_overlay.dtsi b/overlays/apalis-imx6_parallel-rgb_overlay.dtsi new file mode 100644 index 0000000..3800f9c --- /dev/null +++ b/overlays/apalis-imx6_parallel-rgb_overlay.dtsi @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2020-2022 Toradex + */ + +// Enable the parallel RGB interface on the Apalis iMX6. + +&backlight { + status = "okay"; +}; + +&lcd_display { + interface-pix-fmt = ""; + status = "okay"; +}; + +&panel_dpi { + data-mapping = "rgb24"; + status = "okay"; +}; + +&pwm4 { + status = "okay"; +}; diff --git a/overlays/apalis-imx6_stmpe-ts_overlay.dts b/overlays/apalis-imx6_stmpe-ts_overlay.dts deleted file mode 100644 index dc07a6d..0000000 --- a/overlays/apalis-imx6_stmpe-ts_overlay.dts +++ /dev/null @@ -1,17 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/* - * Copyright 2020-2021 Toradex - */ - -// Resitive STMPE touchscreen touchscreen for the 7inch display orderable at Toradex. - -/dts-v1/; -/plugin/; - -/ { - compatible = "toradex,apalis_imx6q"; -}; - -&stmpe_ts { - status = "okay"; -}; diff --git a/overlays/apalis-imx6_stmpe-ts_overlay.dtsi b/overlays/apalis-imx6_stmpe-ts_overlay.dtsi new file mode 100644 index 0000000..f75fd83 --- /dev/null +++ b/overlays/apalis-imx6_stmpe-ts_overlay.dtsi @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2020-2022 Toradex + */ + +// Resistive STMPE touch controller for the 7" display orderable +// at Toradex. + +&stmpe_ts { + status = "okay"; +}; diff --git a/overlays/apalis-imx6_vga-640x480_overlay.dts b/overlays/apalis-imx6_vga-640x480_overlay.dts new file mode 100644 index 0000000..81a2761 --- /dev/null +++ b/overlays/apalis-imx6_vga-640x480_overlay.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +// Enable the parallel RGB controller as used by the resistor ladder +// video DAC on the Apalis iMX6 to provide the analog RGB signal on +// the VGA connector. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,apalis_imx6q"; +}; + +#include "apalis-imx6_vga_overlay.dtsi" +#include "apalis-imx6_display-vga-640x480_overlay.dtsi" diff --git a/overlays/apalis-imx6_vga_overlay.dts b/overlays/apalis-imx6_vga_overlay.dts deleted file mode 100644 index ed86d6b..0000000 --- a/overlays/apalis-imx6_vga_overlay.dts +++ /dev/null @@ -1,25 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/* - * Copyright 2020-2021 Toradex - */ - -// Enable the VGA interface on the Apalis iMX6Q. Make sure to also select a valid display configuration. - -/dts-v1/; -/plugin/; - -/ { - compatible = "toradex,apalis_imx6q"; -}; - -&vgaconnector { - status = "okay"; -}; - -&vgabridge { - status = "okay"; -}; - -&vgadisplay { - status = "okay"; -}; diff --git a/overlays/apalis-imx6_vga_overlay.dtsi b/overlays/apalis-imx6_vga_overlay.dtsi new file mode 100644 index 0000000..6fa6bac --- /dev/null +++ b/overlays/apalis-imx6_vga_overlay.dtsi @@ -0,0 +1,55 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +// Parallel RGB controller as used by the resistor ladder video DAC on +// the Apalis iMX6. + +&{/} { + vga_display: disp1 { + compatible = "fsl,imx-parallel-display"; + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ipu2_vdac>; + status = "okay"; + + port@0 { + reg = <0>; + + vga_display_in: endpoint { + remote-endpoint = <&ipu2_di0_disp0>; + }; + }; + + port@1 { + reg = <1>; + + vga_display_out: endpoint { + remote-endpoint = <&vga_bridge_in>; + }; + }; + }; + + vga-panel { + data-mapping = "rgb565"; + + port { + vga_bridge_in: endpoint { + remote-endpoint = <&vga_display_out>; + }; + }; + }; +}; + +&ipu2 { + #address-cells = <1>; + #size-cells = <0>; + + port@2 { + ipu2_di0_disp0: endpoint@0 { + remote-endpoint = <&vga_display_in>; + }; + }; +}; diff --git a/overlays/display-edt5.7_overlay.dts b/overlays/display-edt5.7_overlay.dts deleted file mode 100644 index d191687..0000000 --- a/overlays/display-edt5.7_overlay.dts +++ /dev/null @@ -1,38 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/* - * Copyright 2020-2021 Toradex - */ - -// EDT5.7 display with a resolution of 640x480 pixel - -/dts-v1/; -/plugin/; - -/ { - compatible = "toradex,apalis_imx6q", - "toradex,apalis-imx8x", - "toradex,colibri_imx6dl", - "toradex,colibri-imx6ull-emmc", - "toradex,colibri-imx7d", - "toradex,colibri-imx7s", - "toradex,colibri-imx8x"; -}; - -&{/panel-dpi} { - status = "okay"; - - width-mm = <116>; - height-mm = <86>; - - panel-timing { - clock-frequency = <25175000>; - hactive = <640>; - vactive = <480>; - hsync-len = <30>; - hfront-porch = <16>; - hback-porch = <114>; - vsync-len = <3>; - vfront-porch = <10>; - vback-porch = <32>; - }; -}; diff --git a/overlays/display-edt5.7_overlay.dtsi b/overlays/display-edt5.7_overlay.dtsi new file mode 100644 index 0000000..aff45e3 --- /dev/null +++ b/overlays/display-edt5.7_overlay.dtsi @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2020-2022 Toradex + */ + +// EDT 5.7" panel with a resolution of 640x480 pixel + +&panel_dpi { + compatible = "panel-dpi"; + status = "okay"; + + width-mm = <116>; + height-mm = <86>; + + panel-timing { + clock-frequency = <25175000>; + hactive = <640>; + vactive = <480>; + hsync-len = <30>; + hfront-porch = <16>; + hback-porch = <114>; + vsync-len = <3>; + vfront-porch = <10>; + vback-porch = <32>; + }; +}; diff --git a/overlays/display-edt7_overlay.dts b/overlays/display-edt7_overlay.dts deleted file mode 100644 index e89f29e..0000000 --- a/overlays/display-edt7_overlay.dts +++ /dev/null @@ -1,38 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/* - * Copyright 2020-2021 Toradex - */ - -// EDT7 display with a resolution of 800x480 pixel - -/dts-v1/; -/plugin/; - -/ { - compatible = "toradex,apalis_imx6q", - "toradex,apalis-imx8x", - "toradex,colibri_imx6dl", - "toradex,colibri-imx6ull-emmc", - "toradex,colibri-imx7d", - "toradex,colibri-imx7s", - "toradex,colibri-imx8x"; -}; - -&{/panel-dpi} { - status = "okay"; - - width-mm = <155>; - height-mm = <91>; - - panel-timing { - clock-frequency = <33230769>; - hactive = <800>; - vactive = <480>; - hsync-len = <128>; - hfront-porch = <40>; - hback-porch = <88>; - vsync-len = <1>; - vfront-porch = <10>; - vback-porch = <33>; - }; -}; diff --git a/overlays/display-edt7_overlay.dtsi b/overlays/display-edt7_overlay.dtsi new file mode 100644 index 0000000..24b48e7 --- /dev/null +++ b/overlays/display-edt7_overlay.dtsi @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2020-2022 Toradex + */ + +// EDT 7" panel with a resolution of 800x480 pixel + +&panel_dpi { + compatible = "panel-dpi"; + status = "okay"; + + width-mm = <155>; + height-mm = <91>; + + panel-timing { + clock-frequency = <33230769>; + hactive = <800>; + vactive = <480>; + hsync-len = <128>; + hfront-porch = <40>; + hback-porch = <88>; + vsync-len = <1>; + vfront-porch = <10>; + vback-porch = <33>; + }; +}; diff --git a/overlays/display-fullhd_overlay.dts b/overlays/display-fullhd_overlay.dts deleted file mode 100644 index fb0ebd7..0000000 --- a/overlays/display-fullhd_overlay.dts +++ /dev/null @@ -1,38 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/* - * Copyright 2020-2021 Toradex - */ - -// FullHD VGA monitor in mode 1920x1080p60. Standard: SMPTE 274M - -/dts-v1/; -/plugin/; - -/ { - compatible = "toradex,apalis_imx6q", - "toradex,apalis-imx8x", - "toradex,colibri_imx6dl", - "toradex,colibri-imx6ull-emmc", - "toradex,colibri-imx7d", - "toradex,colibri-imx7d-emmc", - "toradex,colibri-imx7s", - "toradex,colibri-imx8x"; -}; - -&{/panel-dpi} { - status = "okay"; - width-mm = <155>; - height-mm = <91>; - panel-timing { - clock-frequency = <148500000>; - hactive = <1920>; - hback-porch = <148>; - hfront-porch = <88>; - hsync-len = <44>; - vactive = <1080>; - vback-porch = <36>; - vfront-porch = <4>; - vsync-len = <5>; - pixelclk-active = <0>; - }; -}; diff --git a/overlays/display-fullhd_overlay.dtsi b/overlays/display-fullhd_overlay.dtsi new file mode 100644 index 0000000..3519f16 --- /dev/null +++ b/overlays/display-fullhd_overlay.dtsi @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2020-2022 Toradex + */ + +// FullHD VGA monitor in mode 1920x1080p60. Standard: SMPTE 274M + +&panel_dpi { + compatible = "panel-dpi"; + status = "okay"; + + /* for 0.15mm pixels */ + width-mm = <288>; + height-mm = <162>; + + panel-timing { + clock-frequency = <148500000>; + hactive = <1920>; + hback-porch = <148>; + hfront-porch = <88>; + hsync-len = <44>; + vactive = <1080>; + vback-porch = <36>; + vfront-porch = <4>; + vsync-len = <5>; + pixelclk-active = <0>; + }; +}; diff --git a/overlays/display-lt170410_overlay.dtsi b/overlays/display-lt170410_overlay.dtsi new file mode 100644 index 0000000..b505109 --- /dev/null +++ b/overlays/display-lt170410_overlay.dtsi @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +// LT170410 panel with a resolution of 1280x800 pixel. + +&panel_lvds { + status = "okay"; + + data-mapping = "vesa-24"; + width-mm = <217>; + height-mm = <136>; + + panel-timing { + clock-frequency = <68930000>; + hactive = <1280>; + vactive = <800>; + hback-porch = <64>; + hfront-porch = <64>; + vback-porch = <5>; + vfront-porch = <5>; + hsync-len = <40>; + vsync-len = <6>; + + hsync-active = <0>; + vsync-active = <0>; + pixelclk-active = <0>; + }; +}; diff --git a/overlays/display-vga_overlay.dts b/overlays/display-vga_overlay.dts deleted file mode 100644 index d85d647..0000000 --- a/overlays/display-vga_overlay.dts +++ /dev/null @@ -1,37 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/* - * Copyright 2020-2021 Toradex - */ - -// VGA display with a resolution of 640x480 pixel. VGA Signal 640x480@60Hz Industry standard timing - -/dts-v1/; -/plugin/; - -/ { - compatible = "toradex,apalis_imx6q", - "toradex,apalis-imx8x", - "toradex,colibri_imx6dl", - "toradex,colibri-imx6ull-emmc", - "toradex,colibri-imx7d", - "toradex,colibri-imx7s", - "toradex,colibri-imx8x"; -}; - -&{/panel-dpi} { - status = "okay"; - /* for 0.3mm pixels */ - width-mm = <192>; - height-mm = <144>; - panel-timing { - clock-frequency = <25175000>; - hactive = <640>; - vactive = <480>; - hsync-len = <96>; - hfront-porch = <16>; - hback-porch = <48>; - vsync-len = <2>; - vfront-porch = <10>; - vback-porch = <33>; - }; -}; -- cgit v1.2.3