Jump to content

Recommended Posts

Posted

Hello

I am using:
Linux nanopineo 6.12.74-current-sunxi #10 SMP Thu Feb 19 15:29:56 UTC 2026 armv7l GNU/Linux
PRETTY_NAME="Armbian_community 26.2.0-trunk.464 trixie"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.3
ARMBIAN_PRETTY_NAME="Armbian_community 26.2.0-trunk.464 trixie"

i am tring to bind spi1 to fbdev.

Here are the configurations:

/boot/armbianEnv.txt:

Quote

verbosity=1
bootlogo=false
console=serial
overlay_prefix=sun8i-h3
rootdev=UUID=3184f3f7-027a-4d4c-81be-8e60c20d8a4a
rootfstype=ext4
overlays=i2c2 uart1 uart2 usbhost1 usbhost2
user_overlays=spi1-st7789
extraargs=usbcore.nousb=1 spidev.bufsiz=16384
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u


/boot/overlay-user/spi1-st7789.dts:

Quote

 

/dts-v1/;
/plugin/;
/ {
    compatible = "allwinner,sun8i-h3";

    fragment@0 {
        target = <&pio>;
        __overlay__ {
            st7789_pins: st7789_pins {
                pins = "PA7", "PG11", "PA6";
                function = "gpio_out";
            };
        };
    };

    fragment@1 {
        target = <&spi1>;
        __overlay__ {
            status = "okay";
            #address-cells = <1>;
            #size-cells = <0>;
            st7789@0 {
                compatible = "sitronix,st7789v";
                reg = <0>;
                pinctrl-names = "default";
                pinctrl-0 = <&st7789_pins>;
                spi-max-frequency = <4000000>;
                rotate = <270>;
                fps = <60>;
                buswidth = <8>;
                width = <240>;
                height = <320>;
                dc-gpios    = <&pio 0 7 0>;
                reset-gpios = <&pio 6 11 0>;
                led-gpios   = <&pio 0 6 0>;
                debug = <7>;
            };
        };
    };
};

 


SPI1 is not generating any CLK or MOSI signals on the physical pins.

Looking forward for any help
Best regards, Genadi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines