MIPI DBI/ST7789

    1. Modify the DTS file corresponding to your board form factor, enable spi0, and configure the relevant pins and driver. If you need to use the SPI display as a framebuffer, you may refer to this device tree configuration (using the FBTFT driver). As for the tinydrm driver you mentioned, I have not used it before, and I am unsure whether it will conflict with Rockchip's driver (which requires the display to be bound to a VOP).

      Code: Select all

      /**********spi0**********/
      &spi0 {
      	status = "okay";
      	pinctrl-0 = <&rm_io1_spi0_clk &rm_io4_spi0_mosi &rm_io3_spi0_csn0>;
      	#address-cells = <1>;
      	#size-cells = <0>;
      
      	fbtft@0{
      		status = "okay";
      		compatible = "sitronix,st7789v";
      		reg = <0>;
      		spi-max-frequency = <50000000>;
      		fps = <60>;
      		buswidth = <8>;
      		debug = <0x7>;
      		dc-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;      //DC
      		reset-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;    //RES
      	};
      };
    2. After running ./build.sh config, select Kernel and set the defconfig fragments to empty. This will prevent the kernel configuration from being overwritten.
    3. config.txt is a mechanism specific to the Raspberry Pi. On the Luckfox Lyra, the initialization sequence and resolution must be properly configured directly in the driver source code.