MHS-3.5inch RPi Display

Hi,

I have been trying to get the MHS-3.5inch display to work with my Radxa Zero 3w but so far it hasn’t worked. I am using a Debian image on the radxa. I have followed the instructions set out in these repos:


I have installed the rk3568-spi3-m1-cs0-waveshare35 overlay on the radxa-overlays repo and this is the output when I run the commands: “sudo dmesg | grep ili”, “sudo dmesg | grep spi”, “sudo dmesg | grep ads”

“sudo dmesg | grep ili”: " [ 14.319929] Built 1 zonelists, mobility grouping on. Total pages: 515592
[ 23.694771] systemd[1]: Configuration file /lib/systemd/system/rkaiq_3A.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[ 23.940157] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 24.410886] systemd[1]: Condition check resulted in Virtual Machine and Container Storage (Compatibility) being skipped.
[ 25.842847] fb_ili9486: module is from the staging directory, the quality is unknown, you have been warned.
[ 25.843623] fb_ili9486 spi3.0: fbtft_property_value: regwidth = 16
[ 25.843639] fb_ili9486 spi3.0: fbtft_property_value: buswidth = 8
[ 25.843646] fb_ili9486 spi3.0: fbtft_property_value: debug = 0
[ 25.843653] fb_ili9486 spi3.0: fbtft_property_value: rotate = 90
[ 25.843659] fb_ili9486 spi3.0: fbtft_property_value: fps = 30
[ 25.843665] fb_ili9486 spi3.0: fbtft_property_value: txbuflen = 32768
[ 26.440473] graphics fb0: fb_ili9486 frame buffer, 480x320, 300 KiB video memory, 32 KiB buffer memory, fps=30, spi3.0 at 16 MHz"

“sudo dmesg | grep spi”: “[ 16.625780] rockchip-spi fe640000.spi: probed, poll=0, rsd=0
[ 25.797223] ads7846 spi3.1: Looking up vcc-supply from device tree
[ 25.800924] ads7846 spi3.1: touchscreen, irq 96
[ 25.802228] input: ADS7846 Touchscreen as /devices/platform/fe640000.spi/spi_master/spi3/spi3.1/input/input6
[ 25.843623] fb_ili9486 spi3.0: fbtft_property_value: regwidth = 16
[ 25.843639] fb_ili9486 spi3.0: fbtft_property_value: buswidth = 8
[ 25.843646] fb_ili9486 spi3.0: fbtft_property_value: debug = 0
[ 25.843653] fb_ili9486 spi3.0: fbtft_property_value: rotate = 90
[ 25.843659] fb_ili9486 spi3.0: fbtft_property_value: fps = 30
[ 25.843665] fb_ili9486 spi3.0: fbtft_property_value: txbuflen = 32768
[ 26.440473] graphics fb0: fb_ili9486 frame buffer, 480x320, 300 KiB video memory, 32 KiB buffer memory, fps=30, spi3.0 at 16 MHz”

“sudo dmesg | grep ads”: “[ 25.797223] ads7846 spi3.1: Looking up vcc-supply from device tree
[ 25.800924] ads7846 spi3.1: touchscreen, irq 96”

Only fb0 is available under /dev. I added a configuration file /etc/X11/xorg.conf.d/20-modesetting.conf specifying the driver as fbdev, an option as “/dev/fb0” and another option as “DRI 2”. I also added "Option “TransformationMatrix” “-1 0 1 0 1 0 0 0 1"” to the 99-touchscreen-calibration.conf file. I followed the instructions as set out in these instructions on the radxa website:

Please could someone advise me on how I would get this display to work?