AxizY
November 2, 2025, 9:51pm
1
I was using this module:
https://www.amazon.com/gp/product/B09QG49MG8?smid=A50C560NZEBBE&psc=1
I’m not too sure how to draw something on it, the raspberry PI code doesn’t work but I tried using sudo ldto enable spicc-st7789v-240x240
But I’m unsure where to go now or if my pin setup is even correct. Does anyone have anything to help with this direction?
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2022 Da Xue
* Author: Da Xue <da@libre.computer>
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/gpio/meson-gxl-gpio.h>
/ {
compatible = "libretech,aml-s905x-cc", "amlogic,s905x", "amlogic,meson-gxl";
fragment@0 {
target = <&spicc>;
__overlay__ {
st7789v@0 {
This file has been truncated. show original
Besides the normal SPI pins, the other pins are defined above. You need to match it to the proper GPIOs . The framebuffer should then be exposed as /dev/fb0 or /dev/fb1 depending on if you have HDMI connected.
Ignore any Raspberry Pi instructions. Do not follow any of them or try to run any instructions/commands from those tutorials.
Also see:
It seems to be working with the new overlay you guys put up “spicc-st7789v-240x320-legacy.dts”, but here is the picture of the front and back of the display in case you mean something more specific that I am missing. Thank you!
[IMG-4120]
[IMG-4119]