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

Initial support for more current Raspberry Pi models (i.e. 5) #65

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

cloudkucooland
Copy link
Contributor

This PR is mostly me checking to see if work is already being done on this front.

I've been unable to determine how to get the GPIO/SPI on my Pi5 to work properly with this module. Before I put actual work in, I want to make sure the work isn't already being done elsewhere.

Copy link

codecov bot commented Dec 28, 2024

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Project coverage is 27.2%. Comparing base (63e6b8c) to head (2764615).

Files with missing lines Patch % Lines
bcm283x/gpio.go 0.0% 10 Missing ⚠️
rpi/rpi.go 0.0% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main     #65     +/-   ##
=======================================
- Coverage   27.3%   27.2%   -0.0%     
=======================================
  Files         96      96             
  Lines      11815   11822      +7     
=======================================
  Hits        3220    3220             
- Misses      8460    8467      +7     
  Partials     135     135             

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cloudkucooland
Copy link
Contributor Author

scot@birdhouse:/home/scot/AlarmClock/ledserver % dmesg | grep -i gpio
[ 0.424898] sdhci-brcmstb 1000fff000.mmc: Got CD GPIO
[ 2.413069] rpi-gpiomem 107d508500.gpiomem: window base 0x107d508500 size 0x00000040
[ 2.413138] rpi-gpiomem 107d508500.gpiomem: initialised 1 regions as /dev/gpiomem1
[ 2.413745] rpi-gpiomem 107d517c00.gpiomem: window base 0x107d517c00 size 0x00000040
[ 2.414159] rpi-gpiomem 107d517c00.gpiomem: initialised 1 regions as /dev/gpiomem2
[ 2.414194] rpi-gpiomem 107d504100.gpiomem: window base 0x107d504100 size 0x00000020
[ 2.414231] rpi-gpiomem 107d504100.gpiomem: initialised 1 regions as /dev/gpiomem3
[ 2.414253] rpi-gpiomem 107d510700.gpiomem: window base 0x107d510700 size 0x00000020
[ 2.414344] rpi-gpiomem 107d510700.gpiomem: initialised 1 regions as /dev/gpiomem4
[ 2.414393] rpi-gpiomem 1f000d0000.gpiomem: window base 0x1f000d0000 size 0x00030000
[ 2.414440] rpi-gpiomem 1f000d0000.gpiomem: initialised 1 regions as /dev/gpiomem0

@cloudkucooland
Copy link
Contributor Author

scot@birdhouse:/home/scot/AlarmClock/ledserver % sudo ~/go/bin/periph-info
Drivers loaded and their dependencies, if any:

  • bcm283x-gpio : [ioctl-gpio]
  • ioctl-gpio
  • rpi : optional: [bcm283x-gpio]
  • sysfs-gpio : [ioctl-gpio]
  • sysfs-i2c
  • sysfs-led
  • sysfs-spi
  • sysfs-thermal
    Drivers skipped and the reason why:
  • allwinner-gpio-pl: no A64 CPU detected
  • allwinner-gpio : no Allwinner CPU detected
  • netlink-onewire : no onewire buses found
  • pine64 : pine64 board not detected
    Drivers failed to load and the error:
  • bcm283x-dma: pmem: mapping at 0xfe007000 failed: pmem: failed to memory map: invalid argument

Copy link
Member

@maruel maruel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@maruel maruel merged commit ad2a966 into periph:main Jan 9, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants