ADS7846 Driver error in dmesg:
Touchscreen dtbo file:
/dts-v1/;
/plugin/;
/ {
compatible = "radxa,radxa-cm3-io", "rockchip,rk3566";
fragment@0 {
target = <&spi3>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
ads7846@0 {
compatible = "ti,ads7846";
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <&spi3m0_cs0 &spi3m0_pins>;
spi-max-frequency = <50000000>;
interrupts = <255 2>;
interrupt-parent = <&gpio0>;
pendown-gpio = <&gpio0 18 0>;
ti,x-min = [00 00];
ti,y-min = [00 00];
ti,x-max = [0f ff];
ti,y-max = [0f ff];
ti,pressure-min = [00 00];
ti,pressure-max = [ff ff];
ti,x-plate-ohms = [01 90];
};
};
};
};
IRQ is connected to pin GPIO0_C2 (or pin 37 on 40 pin header found on CM4IO)
CS is connected to pin GPIO4_A6 (SPI3_CS0_M0, or pin 24)
Dtoverlays enabled:
my touchscreen dtbo
rk3568-spi3-m0-cs0-spidev.dtbo