Skip to content

Question: Activating/using SPI on SOQuartz #32

@hughsheehy

Description

@hughsheehy

Just realized I should probably be commenting/asking here

Discussion was here. https://www.reddit.com/r/PINE64official/comments/122qcyv/comment/jenpkh2/?utm_source=share&utm_medium=web2x&context=3

Argh. Confusion reigns.

The devices I'd like to use are "normal" devices and don't seem to need or have fancy drivers in other hardware like Pis. (Or where there's a standard Qualcomm driver).

And when I look in the Linux kernel, I see things like this.
https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/rockchip/rk3566-soquartz-cm4.dts

Which shows the board for the SOQuartz, but with SPI "disabled". If I set that to "okay" then i still don't see any SPI devices in /dev (which is what I naively expect).

And there's https://github.com/torvalds/linux/blob/master/drivers/spi/spi-rockchip.c, which seems to be the SPI config for the underlying chip.
And this, https://github.com/torvalds/linux/blob/master/drivers/spi/spidev.c , which is the definition of spidev which (again naively) I expected to use with the generic devices I'm aiming to use. spiidev might be hacky, but many code examples use it.

So I'm not sure what i need to add...what I'd put in a device tree overlay. I just want to get a Pine64 SOQuartz running SPI in the same (simple) way that a Pi CM4 does.

If there's something I can do to help support this, I would be happy to. But now I'm just confused.

With Plebian, it seems like a great start to be able to use SOQuartz in a fairly normal way as if it was a Pi CM4. But with SPI I'm stuck.

H

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions