Skip to content
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

SPI1 on RazPi Zero 2 W doesn't exist #438

Open
cjfman opened this issue Jan 9, 2022 · 6 comments
Open

SPI1 on RazPi Zero 2 W doesn't exist #438

cjfman opened this issue Jan 9, 2022 · 6 comments

Comments

@cjfman
Copy link

cjfman commented Jan 9, 2022

I don't think the Zero 2 W has a second SPI controller. I just got RaspberryPi 2 W, fresh install of Raspberry Pi OS and updated. I used this library to send data over SPI. When I went to open controller 1, I got a file handle error. I looked in/dev/ there were file handles for SPI0 device 0 and 1, but nothing for SPI1.

@lurch
Copy link
Contributor

lurch commented Jan 10, 2022

The Raspberry Pi Zero 2 W uses the same SoC (internally) as the Raspberry Pi 3 https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#spi-overview

If you're not seeing the devices you expect in /dev/ you've probably not got the right DT overlays set up? See https://github.com/raspberrypi/linux/blob/rpi-5.10.y/arch/arm/boot/dts/overlays/README#L3137 for more info.

@hotrungnhan
Copy link

hotrungnhan commented Mar 8, 2022

@lurch how about adding a specific layout for Zero 2 ư?

@lurch
Copy link
Contributor

lurch commented Mar 8, 2022

@hotrungnhan I'm not sure what you're asking for, but https://pinout.xyz/ applies to the Pi Zero 2 W, exactly the same as it does for the Pi Zero, Pi 2B, Pi 3A+, etc. etc.

@hotrungnhan
Copy link

hotrungnhan commented Mar 9, 2022

@hotrungnhan I'm not sure what you're asking for, but https://pinout.xyz/ applies to the Pi Zero 2 W, exactly the same as it does for the Pi Zero, Pi 2B, Pi 3A+, etc. etc.

oh im sorry , i show the issue in wrong github repo <> i mean this lib https://gpiozero.readthedocs.io/en/stable/cli_tools.html

@lurch
Copy link
Contributor

lurch commented Mar 9, 2022

Ahhh! The pinout command has nothing to do with this repo, and actually comes from https://github.com/gpiozero/gpiozero - see https://gpiozero.readthedocs.io/en/stable/cli_tools.html#pinout

Support for the Raspberry Pi Zero 2 W has been added there gpiozero/gpiozero#1004 but unfortunately there's not been a packaged release of GPIO Zero for ages.

@lurch
Copy link
Contributor

lurch commented Mar 9, 2022

There's now an issue at gpiozero/gpiozero#1031 , if anyone else comes across the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants