-
Notifications
You must be signed in to change notification settings - Fork 7.6k
soc: rp2350: Add basic Asymmetric Multiprocessing (AMP) support #90922
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* | ||
* Copyright (c) 2024 Andrew Featherstone | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
/* The build system assumes that there's a cpucluster-specific file. | ||
* | ||
* This file provides composition of the device tree: | ||
* 1. The common features of the SoC | ||
* 2. Core-specific configuration. | ||
* 3. Board-specific configuration. | ||
*/ | ||
#include <raspberrypi/rpi_pico/rp2350a.dtsi> | ||
#include <raspberrypi/rpi_pico/m33.dtsi> | ||
|
||
#include "rpi_pico2.dtsi" | ||
#include "../common/rpi_pico-led.dtsi" | ||
|
||
/ { | ||
chosen { | ||
zephyr,sram = &sram0_cpu0; | ||
zephyr,flash = &flash0; | ||
zephyr,console = &uart0; | ||
zephyr,shell-uart = &uart0; | ||
zephyr,code-partition = &code_partition_cpu0; | ||
}; | ||
|
||
aliases { | ||
watchdog0 = &wdt0; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
current-speed = <115200>; | ||
status = "okay"; | ||
pinctrl-0 = <&uart0_default>; | ||
pinctrl-names = "default"; | ||
}; | ||
|
||
gpio0_lo: &gpio0 { | ||
status = "okay"; | ||
}; | ||
|
||
&spi0 { | ||
clock-frequency = <DT_FREQ_M(8)>; | ||
pinctrl-0 = <&spi0_default>; | ||
pinctrl-names = "default"; | ||
}; | ||
|
||
&i2c0 { | ||
clock-frequency = <I2C_BITRATE_STANDARD>; | ||
pinctrl-0 = <&i2c0_default>; | ||
pinctrl-names = "default"; | ||
status = "okay"; | ||
}; | ||
|
||
&i2c1 { | ||
clock-frequency = <I2C_BITRATE_STANDARD>; | ||
pinctrl-0 = <&i2c1_default>; | ||
pinctrl-names = "default"; | ||
status = "okay"; | ||
}; | ||
|
||
&adc { | ||
pinctrl-0 = <&adc_default>; | ||
pinctrl-names = "default"; | ||
status = "okay"; | ||
}; | ||
|
||
&pwm { | ||
pinctrl-0 = <&pwm_ch4b_default>; | ||
pinctrl-names = "default"; | ||
divider-int-0 = <255>; | ||
}; | ||
|
||
&timer0 { | ||
status = "okay"; | ||
}; | ||
|
||
&wdt0 { | ||
status = "okay"; | ||
}; | ||
|
||
zephyr_udc0: &usbd { | ||
status = "okay"; | ||
}; | ||
|
||
pico_serial: &uart0 {}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
identifier: rpi_pico2/rp2350a/m33_cpu1 | ||
name: Raspberry Pi Pico 2 (Cortex-M33 CPU1) | ||
type: mcu | ||
arch: arm | ||
flash: 4096 | ||
ram: 264 | ||
This comment was marked as resolved.
Sorry, something went wrong. |
||
toolchain: | ||
- zephyr | ||
- gnuarmemb | ||
supported: | ||
- adc | ||
- clock | ||
- counter | ||
- dma | ||
- gpio | ||
- hwinfo | ||
- i2c | ||
- pwm | ||
- spi | ||
- uart |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This configuration is orthogonal to whether the Cortex-M33 or Hazard3 cores | ||
# are in use, but Zephyr does not support providing a qualifier-agnostic | ||
# _defconfig file. | ||
CONFIG_BUILD_OUTPUT_HEX=y | ||
CONFIG_BUILD_OUTPUT_UF2=y | ||
CONFIG_CLOCK_CONTROL=y | ||
CONFIG_CONSOLE=y | ||
CONFIG_GPIO=y | ||
CONFIG_RESET=y | ||
CONFIG_SERIAL=y | ||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=150000000 | ||
CONFIG_UART_CONSOLE=y | ||
CONFIG_UART_INTERRUPT_DRIVEN=y | ||
CONFIG_USE_DT_CODE_PARTITION=y |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,10 @@ config RPI_PICO_ROSC_USE_MEASURED_FREQ | |
Instead of the dts value, use the value measured by | ||
the frequency counter as the rosc frequency. | ||
|
||
config RPI_PICO_SKIP_CLOCK_INIT | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps needs some more DT-centric approach as I've discussed in Discord There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because there are other parts like clock and reset controllers for peripherals |
||
bool | ||
help | ||
Skip clock initialisation - which is needed when running Zephyr | ||
on the second CPU core. | ||
|
||
endif # CLOCK_CONTROL_RPI_PICO |
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.