diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2022-09-07 09:54:54 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2022-10-03 16:23:30 +0200 |
commit | 855deed457e0457cf2bc1bccfdf84b8bc44ca4a3 (patch) | |
tree | bd563792837242c2c55977f3e73a93bce56a47bb /overlays/apalis-imx6_display-vga-640x480_overlay.dtsi | |
parent | 943af5413b7521723a3a80a11e9e1e438846ac9b (diff) |
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 <max.krummenacher@toradex.com>
Diffstat (limited to 'overlays/apalis-imx6_display-vga-640x480_overlay.dtsi')
-rw-r--r-- | overlays/apalis-imx6_display-vga-640x480_overlay.dtsi | 34 |
1 files changed, 34 insertions, 0 deletions
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>; + }; +}; |