diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2023-02-25 00:26:41 +0100 |
---|---|---|
committer | Francesco Dolcini <francesco.dolcini@toradex.com> | 2023-04-11 13:32:14 +0200 |
commit | 2cd1acc84996005bf41d9261cd54b2c308b5d03e (patch) | |
tree | bb22191312f874d40ed83af7acc0da8684dad4e5 /overlays/verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts | |
parent | 297338222460faaf0f17750afcf366890f066ba4 (diff) |
verdin-am62: add native lvds overlays
Add overlays for native LVDS being MSP.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'overlays/verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts')
-rw-r--r-- | overlays/verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/overlays/verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts b/overlays/verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts new file mode 100644 index 0000000..8b1a674 --- /dev/null +++ b/overlays/verdin-am62_mezzanine_panel-cap-touch-10inch-lvds_overlay.dts @@ -0,0 +1,89 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2023 Toradex + */ + +// Verdin AM62 Mezzanine single-channel LVDS + +/dts-v1/; +/plugin/; + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/pwm/pwm.h> + +#include "verdin-am62_mezzanine_backlight.dtsi" + +&{/} { + compatible = "toradex,verdin-am62"; + + panel-lvds-mez { + compatible = "panel-lvds"; + backlight = <&backlight_mezzanine>; + data-mapping = "vesa-24"; + height-mm = <136>; + width-mm = <217>; + + panel-timing { + clock-frequency = <68900000 71100000 73400000>; + de-active = <1>; + hactive = <1280 1280 1280>; + hback-porch = <23 60 71>; + hfront-porch = <23 60 71>; + hsync-active = <0>; + hsync-len = <15 40 47>; + pixelclk-active = <1>; /* positive edge */ + vactive = <800 800 800>; + vback-porch = <5 7 10>; + vfront-porch = <5 7 10>; + vsync-active = <0>; + vsync-len = <6 9 12>; + }; + + port { + panel_lvds_in: endpoint { + remote-endpoint = <&oldi_out0>; + }; + }; + }; +}; + +&dss { + status = "okay"; +}; + +&dss_ports { + #address-cells = <1>; + #size-cells = <0>; + + /* VP1: LVDS Output (OLDI TX 0) */ + port@0 { + reg = <0>; + + oldi_out0: endpoint { + remote-endpoint = <&panel_lvds_in>; + }; + }; +}; + +/* Verdin I2C_2_DSI */ +&main_i2c2 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + touch-mezzanine@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + /* + * Already muxed as GPIOs in k3-am625-verdin-dev.dtsi + * pinctrl-names = "default"; + * pinctrl-0 = <&pinctrl_gpio_2 &pinctrl_gpio_3>; + */ + /* Verdin GPIO_3 (SODIMM 210) */ + interrupt-parent = <&mcu_gpio0>; + interrupts = <3 IRQ_TYPE_EDGE_FALLING>; + /* Verdin GPIO_2 (SODIMM 208) */ + reset-gpios = <&mcu_gpio0 2 GPIO_ACTIVE_LOW>; + }; +}; |