Skip to content

Are there examples of device tree for a SPI slave device? #37

@codan-soea

Description

@codan-soea

Hello

I am trying to create a device tree for a SPI slave device for Linux OpenWRT 6.6.58, my SPI device will be interfaced to Lima module
via SPI. I have used "target/linux/ath79/dts/qca9531_8dev_lima.dts" as template. However, I found that by just putting another client
as follows will not work.

&spi {
status = "okay";

/* Winbond W25Q256 SPI flash */
flash@0 {
    .....
    };

    /* more clients */
    bmi160: bmi160@1 {
	compatible = "bosch,bmi160";
	reg = <1>;
	spi-max-frequency = <7500000>;
     };

};

I am wondering are there device tree examples of how to connect a SPI slave to Lima module. Thanks!

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