I’m asking for help setting up an LVDS touch display.
The display works with an adapter on the Apalis’ LVDS2.
I’d now like to add touch functionality.
I’m afraid the HYCON touch controller is connected to Apalis SPI0 I2C0 … that is, to pins 132 and 126, and in parallel to pins 211 and 209.
The carrier board is based on the Ixora carrier board.
My attempts to copy a dto together have failed.
Here is my attempt, which compiles and deploys but has no effect:
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
* Copyright 2020-2021 Toradex
*/
// Enable a generic LVDS display on port 2.
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
/dts-v1/;
/plugin/;
/ {
compatible = "toradex,apalis-imx8";
};
/* I2C Bus, an dem der Touchcontroller angeschlossen ist (z.B. i2c1) */
&i2c1 {
status = "okay";
hycon_touch: touch@38 {
compatible = "hycon,hy46xx"; // Replace with your controller's compatible string
reg = <0x38>; // 0111 000 0|1 0x38 OK?
interrupt-parent = <&lsio_gpio2>;
interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&lsio_gpio2 29 GPIO_ACTIVE_LOW>;
touchscreen-size-x = <800>;
touchscreen-size-y = <480>;
};
};
&ldb2 {
...
...
...
tdx-info
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 5.15.148-6.7.0-devel+git.f437ddb7191d #1-TorizonCore SMP PREEMPT Mon Jul 1 08:03:31 UTC 2024
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.1/torizon/9a5da750768d3006a86133f6bd7f2a2ee54a44dd2fca5f2e52ccb086cdf86784/0
Distro name: NAME="TorizonCore"
Distro version: VERSION_ID=6.7.0-devel-20240701080203-build.0
Distro variant: VARIANT="Docker"
Hostname: apalis-imx8-07279028
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Apalis iMX8QM V1.1 on Apalis Ixora V1.2 Carrier Board
Toradex version: 0037 V1.1E
Serial number: 07279028
Processor arch: aarch64
------------------------------------------------------------
Best
Gerald