Giter VIP home page Giter VIP logo

Comments (9)

aallan avatar aallan commented on June 1, 2024

On Pi 5 GPIO is controlled via the RP1. See the RP1 Peripherals document, https://datasheets.raspberrypi.com/rp1/rp1-peripherals.pdf.

from documentation.

cleverca22 avatar cleverca22 commented on June 1, 2024

@aallan i know most gpio is controlled by the RP1, and in this use-case, i didnt want an RP1 register
i was after the old ST_CLO register in the VPU timer, which i did find after some brute-forcing

but that does raise an interesting problem
with how the pi5 has re-arranged all of the SoC registers, and moved most stuff the user wants to the RP1, the old bcm_host_get_peripheral_address() is kind of useless
any offsets you would have done from there are now going to be wrong, no matter which base it returns

from documentation.

aallan avatar aallan commented on June 1, 2024

@pelwell thoughts here?

from documentation.

pelwell avatar pelwell commented on June 1, 2024

The source code for the bcm_host library lived in the userland repo, the README for which states:

This repo is ancient and deprecated.

It largely contains code using proprietary APIs to interface to the VideoCore firmware. We have since move to standard linux APIs.

V4L2, DRM/KMS and Mesa are the APIs you should be using.

The few useful tools from here (dtoverlay, dtmerge, vcmailbox, vcgencmd) have been moved to the raspberrypi/utils repo.

Code from here is no longer installed on latest RPiOS Bookworm images.

If you are using code from here you should rethink your solution.

Consider this repo closed.

There is no correct return value for bcm_host_get_peripheral_address() on Pi 5 other than NULL, but updating it would imply that the library still has a life.

from documentation.

aallan avatar aallan commented on June 1, 2024

@pelwell At that point I'm presuming this section https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#peripheral-addresses needs rewriting?

from documentation.

pelwell avatar pelwell commented on June 1, 2024

I think we should just delete it. What do you think, @popcornmix ?

from documentation.

popcornmix avatar popcornmix commented on June 1, 2024

I agree. The repo the code is from has been closed, and I don't think the code is useful enough to resurrect it
(especially as most uses are unlikely to be applicable to Pi5 which uses RP1 for many equivalent peripherals).

from documentation.

aallan avatar aallan commented on June 1, 2024

Okay, I'll yank that entire section.

from documentation.

aallan avatar aallan commented on June 1, 2024

Removed entire section in ddfba6d. Will go to the live site next time I push to production.

from documentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.