Hello,
I’m trying to use the Waveshare 4inch_HDMI_LCD_(H) with a Radxa CM3, on a RPI-CM4-IO board.
This is the .dts file we created to compile the .dtbo :
dtc -O dtb -o ads7846-touchscreen.dtbo ads7846-touchscreen.dts
/dts-v1/;
/plugin/;
/ {
compatible = “radxa,radxa-cm3-io”, “rockchip,rk3566”;
fragment@0 {
target = <&spi3>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
ads7846: ads7846@0 {
compatible = "ti,ads7846";
reg = <1>; /* cs */
pinctrl-names = "default";
pinctrl-0 = <&spi3m0_cs1 &spi3m0_pins>; /* penirq penirq_pull */
spi-max-frequency = <50000>; /* speed */
interrupts = <255 2>; /* penirq */
interrupt-parent = <&gpio3>;
pendown-gpio = <&gpio3 118 0>; /* penirq */
ti,x-min = [00 c8]; /* xmin */
ti,y-min = [00 c8]; /* ymin */
ti,x-max = [0f 3c]; /* xmax */
ti,y-max = [0f 3c]; /* ymax */
ti,pressure-min = [00 00]; /* pmin */
ti,pressure-max = [00 ff]; /* pmax */
ti,x-plate-ohms = [00 96]; /* xohms */
};
};
};
};
To make the changes,we added it to the config.txt and made an update_extlinux.sh and the dtbo files dissapears, so we tried to add it directly to the extlinux.conf.
We don’t see anything in the dmesg.
The device tree overlay doesn’t seem to be taken into account.
The rk3568-spi3-m0-cs0-spidev.dtbo is activated.
We are on Linux radxa-cm3-io 4.19.193-58.