Jump to content
  • 0

How to enable SPI with Armbian 23.0.2/22.11.1?


Arun B

Question

I've tried two releases of Armbian for the Jetson Nano and was struggling to get SPI enabled on the Jetson. To check if SPI is enabled, I've been reading its status is through: cat /proc/device-tree/spi@7000d400/status which just returns disabled

 

Here's what I tried:

- enabling spi-spidev through armbian-config, but this option doesn't exist in armbian-config as it does for other releases for devices

- making a custom device tree dts file and pointing extlinux.conf to it (below is the relevant snippet):
 

spi@7000d400 {
        compatible = "nvidia,tegra210-spi\0nvidia,tegra114-spi";
        reg = <0x00 0x7000d400 0x00 0x200>;
        interrupts = <0x00 0x3b 0x04>;
        #address-cells = <0x01>;
        #size-cells = <0x00>;
        clocks = <0x03 0x29>;
        clock-names = "spi";
        resets = <0x03 0x29>;
        reset-names = "spi";
        dmas = <0x24 0x0f 0x24 0x0f>;
        dma-names = "rx\0tx";
        status = "okay";

        num-chipselects = <5>;
        cs-gpios = <0x22 0x13 0>, <0x22 0x14 0>, <0x22 0x95 0>, <0x22 0xc8 0>, <0x22 0x26 0>;

        spidev@0 {
            compatible = "spidev";
            reg = <0>;
            spi-max-frequency = <0x1f78a40>;
            status = "okay";
        };

        spidev@1 {
            compatible = "spidev";
            reg = <1>;
            spi-max-frequency = <0x1f78a40>;
                status = "okay";
        };

        spidev@2 {
            compatible = "spidev";
            reg = <2>;
            spi-max-frequency = <0x1f78a40>;
                status = "okay";
        };

        spidev@3 {
            compatible = "spidev";
            reg = <3>;
            spi-max-frequency = <0x1f78a40>;
                status = "okay";
        };

        spidev@4 {
            compatible = "spidev";
            reg = <4>;
            spi-max-frequency = <0x1f78a40>;
                status = "okay";
        };
    };

- looking at device tree overlays as explained here (https://docs.armbian.com/User-Guide_Allwinner_overlays/#using-custom-overlays) but armbian-add-overlay doesn't exist and there is no /boot/dtb/nvidia/overlay/ folder

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
Answer this question...

×   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