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

Documentation of available RP1 GPCLK features #3285

Open
pavhofman opened this issue Nov 20, 2023 · 9 comments
Open

Documentation of available RP1 GPCLK features #3285

pavhofman opened this issue Nov 20, 2023 · 9 comments
Assignees
Labels
backlog We'll be getting to it eventually pi5 5️⃣ It's the everything computer. optimised. rp1 Something to do with RP1

Comments

@pavhofman
Copy link

Based on https://forums.raspberrypi.com/viewtopic.php?p=2158890#p2159063 , I would like to ask for exposing information on the GPCLK feature shortly mentioned in the existing RP1 docs draft, and partly introduced in clk_rp1.c, especially the clk <-> GPIO matrix available for general use.

Specifically I am interested in MCLK GPCLK input/output/output tap for I2S which is important for connecting external ADC/DAC chips with MCLK input pin (i.e. all ADC/DAC chips without an internal BCLK -> MCLK PLL).

@aallan aallan added question pi5 5️⃣ It's the everything computer. optimised. rp1 Something to do with RP1 pdf issue dealing with pdf documentation labels Nov 20, 2023
@pavhofman
Copy link
Author

pavhofman commented Jan 14, 2024

Hi please any chances? The RPi5 boards are already available, vendors could start building new hats and the MCLK signal for 8ch DAC/ADC would be very handy, especially considering the dedicated audio PLL can be integer multiple of standard audio frequencies, avoiding jittery fractional division. Thank a lot in advance!

@aallan
Copy link
Contributor

aallan commented Jan 16, 2024

Unfortunately, it's unlikely we'll be adding further detail to the draft RP1 Peripherals book in the near to medium term.

@aallan aallan closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2024
@P33M
Copy link
Contributor

P33M commented Jan 17, 2024

@aallan the clock infrastructure is a user-facing feature, and has been explicitly designed with the intent of supporting a wide range of use-cases.

This issue should not be closed.

@aallan
Copy link
Contributor

aallan commented Jan 17, 2024

This issue should not be closed.

Who should I be looking at to write the requested documentation?

@aallan aallan added backlog We'll be getting to it eventually and removed question pdf issue dealing with pdf documentation not planned labels Jan 17, 2024
@aallan aallan reopened this Jan 17, 2024
@P33M
Copy link
Contributor

P33M commented Jan 17, 2024

Me.

But I need to
a) find time to do so
b) refresh my knowledge of what non-functional (test, debug, ATE) clocks were added to the already enormous functional clock table that need to be omitted.

@introspektor
Copy link

introspektor commented Jan 28, 2024

Well thats disappointing. I bet (I know) there are a number of developers that rushed out to buy some RP5 based on the pre-release documentation and pinout for multichannel audio. this feature was sorely lacking in previous rpi hardware and I know we breathed a sigh of relief and excitement when reading the RP1 document and rushed out to buy some boards for development immediately. To have the hardware to complete the task in hand, knowing it has the capability and be left waiting is a bit frustrating. I appreciate things take time and we are all busy, so dont take me the wrong way.

We will be using an external MCLK driving the RP1 for the ideal case, so perhaps more detail is not required to get started, but all the same, to create a more complete picture would be nice. Anyway, I appreciate the work you are doing guys.

I shall wait with baited breath.

@cleverca22
Copy link

another question ive got, is if the PIO block can be fed by an external clock, or only internal clock sources

@P33M
Copy link
Contributor

P33M commented Feb 16, 2024

PIO's only clock source is the system clock, i.e. the same as the M3s.

@cleverca22
Copy link

how can the system clock divider be changed? can it source from an external input like the rp2040?
what else is running on the system clock, other then the stuff that is clearly a child in linux's clk_summary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog We'll be getting to it eventually pi5 5️⃣ It's the everything computer. optimised. rp1 Something to do with RP1
Projects
None yet
Development

No branches or pull requests

5 participants