Skip to content

Conversation

@yonsch
Copy link
Contributor

@yonsch yonsch commented Jun 3, 2023

The DW driver used by the RP2040 boards uses a Kconfig symbol to determine the clock speed of the board. This value was set incorrectly by the pico board to 100MHz (instead of 125). For the other boards, it wasn't set at all.
This commit fixes the kconfig defaults. In the future, this value should be taken directly from the devicetree. This is not currently possible as there is no clock control driver for the RP2040 (see #52901).

Fixes #56230

The DW driver used by the RP2040 boards uses a Kconfig symbol
to determine the clock speed of the board. This value was
set incorrectly by the pico board to 100MHz (instead of 125).
For the other boards, it wasn't set at all.
This commit fixes the kconfig defaults. In the future, this
value should be taken directly from the devicetree. This is
not currently possible as there is no clock control driver
for the RP2040 (see zephyrproject-rtos#52901).

Signed-off-by: Yonatan Schachter <[email protected]>
@yonsch yonsch requested review from MaureenHelm and galak as code owners June 3, 2023 21:19
@zephyrbot zephyrbot added the platform: Raspberry Pi Pico Raspberry Pi Pico (RPi Pico) label Jun 3, 2023
@zephyrbot zephyrbot requested a review from soburi June 3, 2023 21:19
@carlescufi carlescufi requested a review from pdgendt June 5, 2023 09:00
@pdgendt pdgendt removed their request for review June 5, 2023 10:30
@nashif nashif merged commit 9007990 into zephyrproject-rtos:main Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: Raspberry Pi Pico Raspberry Pi Pico (RPi Pico)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RP2040, i2c : wrong clock frequency

4 participants