-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are there examples of device tree for a SPI slave device? #37
Comments
Hi, you probably need to describe how CS (chip select) is connected - see https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g.dtsi#l158 |
Thanks. I have tried that, pls see my device tree for SPI slaves below, that but not working. My success criteria is that I have made reading of chip ID (I modified the driver so that it will try to read 5 times) and I know it is not reading correct chip ID. &spi {
}; and my SPI Chip selects lines are connected to the Lima SoC as shown below: And I believe my issue is with SPI CS lines are not driven correctly. Thanks! |
GPIO[0-3] have JTAG interface by default, you need to disable it to use these pins as GPIO. See: https://github.com/openwrt/openwrt/blob/207bfee855320dc938f39e179b1d2e3b008140cb/target/linux/ath79/dts/qca9531_glinet_gl-xe300.dts#L36 |
Thanks, I think I have put it in leds block before, but I will try again.
|
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";
};
I am wondering are there device tree examples of how to connect a SPI slave to Lima module. Thanks!
The text was updated successfully, but these errors were encountered: