-
Notifications
You must be signed in to change notification settings - Fork 8.2k
clock_control: Added clock controller driver for Raspberry Pi Pico #62186
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
Merged
carlescufi
merged 20 commits into
zephyrproject-rtos:main
from
soburi:pico_clock_control
Dec 20, 2023
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
089c245
drivers: clock_control: Added clock driver for Raspberry Pi Pico
andrei-edward-popa f0aecbf
drivers: clock_control: rpi_pico: Configure GPOUT/GPIN pins
soburi 7a339f0
drivers: watchdog: Changed how to get xtal frequency for Raspberry Pi…
andrei-edward-popa 2817f35
drivers: serial: Removed all function calls from Raspberry Pi Pico SDK
andrei-edward-popa 66b2041
drivers: spi: Changed how to get clock frequency for PL022
andrei-edward-popa 0ff36cf
drivers: spi: pl022: Reset device on initializing
soburi d342c38
driver: pwm: rpi_pico: Change to use clock controller
soburi 95c2c2b
drivers: pwm: rpi_pico: Reset device on init
soburi e7f7ec1
drivers: adc: rpi_pico: Turn on clock and reset device on init
soburi a24712a
drivers: misc: pio_rpi_pico: Turn on clock and reset device on init
soburi b8ffb90
drivers: usb: rpi_pico: Turn on clock on initializing
soburi de27520
drivers: counter: rpi_pico: Turn on clock and reset device on init
soburi 2ae441a
driver: spi: spi_rpi_pico_pio: Change to use clock controller
soburi cbc2b31
boards: arm: rpi_pico: Added clock support in documentation
soburi 6d65246
boards: arm: adafruit_kb2040: Added clock support in docs
soburi f280bb4
boards: arm: sparkfun_pro_micro_rp2040: Added clock support in docs
soburi a31739d
boards: arm: rpi_pico_w: Added counter support in docs
soburi 2b081cb
boards: arm: adafruit_kb2040: Added counter support in docs
soburi 6df5554
boards: arm: sparkfun_pro_micro_rp2040: Added counter support in docs
soburi d6f8d17
modules: hal_rpi_pico: Remove unused drivers
soburi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,4 +47,7 @@ | |
| input-enable; | ||
| }; | ||
| }; | ||
|
|
||
| clocks_default: clocks_default { | ||
| }; | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,3 +19,5 @@ supported: | |
| - pwm | ||
| - flash | ||
| - dma | ||
| - counter | ||
| - clock | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,4 +46,7 @@ | |
| input-enable; | ||
| }; | ||
| }; | ||
|
|
||
| clocks_default: clocks_default { | ||
| }; | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,3 +20,4 @@ supported: | |
| - flash | ||
| - dma | ||
| - counter | ||
| - clock | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,3 +20,5 @@ supported: | |
| - flash | ||
| - dma | ||
| - pio | ||
| - counter | ||
| - clock | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,4 +46,7 @@ | |
| input-enable; | ||
| }; | ||
| }; | ||
|
|
||
| clocks_default: clocks_default { | ||
| }; | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,3 +19,5 @@ supported: | |
| - pwm | ||
| - flash | ||
| - dma | ||
| - counter | ||
| - clock | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Raspberry Pi Pico Clock Controller Driver configuration options | ||
|
|
||
| # Copyright (c) 2022 Andrei-Edward Popa | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config CLOCK_CONTROL_RPI_PICO | ||
| bool "Raspberry Pi Pico Clock Controller Driver" | ||
| default y | ||
| depends on DT_HAS_RASPBERRYPI_PICO_CLOCK_CONTROLLER_ENABLED | ||
|
|
||
| if CLOCK_CONTROL_RPI_PICO | ||
|
|
||
| config RPI_PICO_ROSC_USE_MEASURED_FREQ | ||
| bool "Use measured frequency for ring oscillator" | ||
| help | ||
| Instead of the dts value, use the value measured by | ||
| the frequency counter as the rosc frequency. | ||
|
|
||
| endif # CLOCK_CONTROL_RPI_PICO |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.