Commit graph zephyr/soc
Author SHA1 Message Date
Arkadiusz Grzelka
1e8506e632 soc: st: stm32h5x: keep dead-battery CC pull-downs for the UDC stack
soc_early_init_hook() disables the USB Type-C dead-battery CC
pull-downs (PWR->UCPDR.DBDIS = 1) whenever there is no devicetree UCPD
node and CONFIG_USB_DEVICE_DRIVER is not enabled. That condition only
knows about the legacy USB device stack.

A board on the new usbd/UDC stack (CONFIG_USB_DEVICE_STACK_NEXT ->
CONFIG_UDC_DRIVER, e.g. CONFIG_UDC_STM32) has neither a UCPD node nor
the legacy driver, so the hook wrongly classifies it as "no USB
present" and removes the pull-downs. Without an Rd on CC a Type-C
source never applies VBUS, so the device port stays dead no matter
what the UDC driver does afterwards. This affects every STM32H5 board
using the new USB device stack.

Extend the condition so the pull-downs are only disabled when neither
USB device stack is in use.

Verified on stm32h5f5j_dk: with the stock condition PWR->UCPDR read
back 0x1 (DBDIS set) on a booted application using CONFIG_UDC_STM32,
sampled over SWD; with this change the port is no longer disabled by
the SoC init hook.

Signed-off-by: Arkadiusz Grzelka <devitwise@gmail.com>
2026-08-04 06:51:21 -04:00
Sylvio Alves
0c2db4107e soc: espressif: init irq stack with 0xaa on riscv
Espressif RISC-V SoCs enter through their own __start in
soc/espressif/common/start.S rather than the common
arch/riscv __initialize. That entry exists because the ROM
hands over on a stack that can overlap .bss, so gp, the
stack and the vector table must be set up before any
compiler-generated prologue runs. As a side effect the
0xaa painting of z_interrupt_stacks done by the common
reset code was never executed.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-08-03 15:07:29 -04:00
Benjamin Cabé
dfafa1f4f9 build: cmake: deprecate zephyr_file_copy()
zephyr_file_copy() only existed because file(COPY_FILE ...) was not
available with CMake 3.20. With the minimum required CMake version now
being 3.28.3, call the native command directly everywhere in-tree and
deprecate the wrapper, which is kept for out-of-tree users.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-08-03 15:03:35 -04:00
Benjamin Cabé
a119dbf957 build: bump minimum CMake version to 3.28.0
Raise the minimum required CMake version from 3.20.0 (documented as
3.20.5) to 3.28.0, which is satisfied by the CMake 3.28.3 package
shipped in the Ubuntu 24.04 LTS repositories. Ubuntu 24.04 is the
current Ubuntu LTS release targeted by the Zephyr getting started
guide, and by the time of the next Zephyr release, Ubuntu 22.04 will be
within months of its end of standard support. Users of distributions
shipping an older CMake can use the Kitware APT repository or a
pip-installed CMake, as the documentation already suggests.

Raising the floor to 3.28 unlocks a range of modern CMake features for
the build system, among which the cmake_file_api() command (3.27),
file(COPY_FILE) (3.21), block()/endblock() (3.25), and allows removal
of several version-conditional workarounds.

The tree-wide cmake_minimum_required() occurrences in samples, tests
and boards are updated accordingly, together with the documentation
and the sysbuild CMake presets. The IAR C-STAT integration keeps its
own higher requirement (4.1.0).

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-08-03 15:03:35 -04:00
Jacob Wienecke
0b31526711 soc: nxp: rw: pull wakeup pads to inactive level
config_wakeup_gpio_pins() re-muxes the AON wakeup pads with no bias on
every low power entry, clearing their pull. Sleep-force drive is also
skipped for these pads (GPIO 22-27), so the SoC no longer holds them in
sleep and, absent an external pull, they drift low. With a low-level
wakeup that is the active level and wakes the SoC immediately.

Apply a pull opposing the wakeup-level so the SoC holds the pad at the
inactive level.

Signed-off-by: Jacob Wienecke <jacob.wienecke@nxp.com>
2026-08-03 15:00:20 -04:00
Elie Carrot
baecfddded drivers: pinctrl: add WCH CH570 pin controller driver
Add a pin controller driver for the WCH CH570 SoC.
Implements `pinctrl_configure_pins` to enable GPIO initialization and
alternate function configuration.

Update hal_wch revision in west.yml and hal_ch32fun.h to sync with
changes merged in zephyrproject-rtos/hal_wch#6

Signed-off-by: Elie Carrot <elie.carrot@smile.fr>
2026-08-03 15:00:06 -04:00
Elie Carrot
98601c8b3a soc: add wch_ch57x soc files
This commit adds the soc support for WCH CH570 and CH572.

Signed-off-by: Elie Carrot <elie.carrot@smile.fr>
2026-08-03 15:00:06 -04:00
Michał Jurek
fe69955d6d soc: nordic: Extend anomaly coverage to nRF71 series
Add support for nRF71 series anomaly by using solution
made for nRF54L.

Signed-off-by: Michał Jurek <michal.jurek@nordicsemi.no>
2026-08-03 08:50:57 -04:00
Lars Thalian Morstad
0adb311ca8 soc: ti: cc23x0: always compile power.c regardless of CONFIG_PM
power.c calls PMCTLSetVoltageRegulator() from a SYS_INIT() hook that
is meant to always run, but CMakeLists.txt only compiled the file
when CONFIG_PM was enabled. With CONFIG_PM=n, the file was skipped
entirely and the DC-DC regulator was never selected.

Compile power.c unconditionally. Its own "#ifdef CONFIG_PM" guard
already excludes the PM-only code when CONFIG_PM is disabled.

Verified by checking that power_initialize is run
with CONFIG_PM=n.

Signed-off-by: Min Xu <m-xu@ti.com>
Signed-off-by: Lars Thalian Morstad <l-morstad@ti.com>
Assisted-by: Claude:claude-sonnet-5
2026-08-03 08:46:52 -04:00
Julian Paul
2cd829933e soc: nxp: mcxa: add MCXA537 Kconfig symbols
Add Kconfig symbols for the MCXA537 SoC and MCXA537VLL part-number
variant. Select the MCXAXX7 SoC series for MCXA537.

Signed-off-by: Julian Paul <julian.paul@siemens.com>
2026-07-31 14:57:53 -04:00
Julian Paul
6476aee0af soc: nxp: mcx: enable MCXA537 SoC support
Register the MCXA537 SoC in the MCX SoC metadata and runner
configuration.

Signed-off-by: Julian Paul <julian.paul@siemens.com>
2026-07-31 14:57:53 -04:00
Silesh C V
6bc4ed0f85 soc: alif: ensemble: add support for AE822FA0E5597BS0
Add support for the AE822FA0E5597BS0 SoC from the Ensemble
E8 series. The SoC contains two Cortex-M55 CPU clusters:
RTSS-HP (Real Time SubSystem - High performance), RTSS-HE
(Real Time SubSystem - High Efficiency) and a Cortex-A32
CPU cluster: APSS (Application Processor SubSystem). Support
for all three clusters has been added.

Signed-off-by: Silesh C V <silesh@alifsemi.com>
2026-07-31 13:25:32 -04:00
Raffael Rostagno
c300b3b271 soc: espressif: Reserve RTC timer retention memory
Keep the RTC timer retention state in RTC FAST memory,
so time reads remain safe when flash is unavailable during sleep.

Carve CONFIG_RESERVE_RTC_MEM from the end of usable LP RAM on
C5/C6/P4 so the timer retention slot sits before retainedmem/mbox,
add the missing C6 guard, and assert the reserved section fits.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-07-31 13:20:18 -04:00
Etienne Carriere
c44a7f1ba3 soc: realtek: use diamond include for non-local header files
Use #include <> instead of #include "" to include a header file which path
is not relative to the directory path of the file emitting the #include
directive.

This change was made running scripts/check_quoted_includes.py script
proposed in https://github.com/zephyrproject-rtos/zephyr/pull/112135
with the Linux shell command below and manually selecting the applicable
changes:
$ scripts/check_quoted_includes.py -w soc/realtek

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-07-31 13:02:33 -04:00
Sylvio Alves
25f062f8a5 soc: espressif: add hidden appcpu target kconfig symbol
Add SOC_ESP32_APPCPU_TARGET, a hidden symbol set whenever the
build targets the APPCPU image of a dual-core SoC. Replace all
places that checked SOC_ESP32_APPCPU and SOC_ESP32S3_APPCPU
together with the new symbol.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-07-30 17:40:08 -04:00
Perry Naseck
ba7ef6af4d soc: esp32p4: Check frequency based on rev at compile time
This commit adds a compile time check to ensure that the ESP32 P4
only builds with supported frequencies. The later revisions go up
to 400 MHz, but the earlier revision stops at 360 MHz.

Assisted-by: Claude:claude-opus-4.8

Signed-off-by: Perry Naseck <pnaseck@media.mit.edu>
2026-07-30 17:39:02 -04:00
Lucien Zhao
2a4e835c60 soc: nxp: mcxe31x: add SAI support
Replace the placeholder sai nodes, which carried a compatible with
no binding or driver, with real nxp,mcux-i2s nodes: MC_CGM clocks,
eDMA channels and requests (SAI0 on DMAMUX0, SAI1 on DMAMUX1), and
the bus clock as bit clock source since this SoC has no audio PLL
or MCLK routing. For the same reason, default I2S_HAS_PLL_SETTING
to n so the driver derives the bit clock from the module clock.
The nodes stay disabled; the existing delete-node entries of the
smaller derivatives are unaffected.

Verified with tests/drivers/i2s/i2s_speed on frdm_mcxe31b.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-07-30 17:37:07 -04:00
Cristian Bulacu
65b4747dcb soc: nxp: mcxw: Extend conditions for enabling RF IMU support
NXP_RF_IMU was already selected by default when CONFIG_IEEE802154 is
enabled. Extend this to also cover CONFIG_NXP_IEEE802154_MAC, which
uses the NBU co-processor for 802.15.4 without going through the
standard IEEE 802.15.4 driver.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2026-07-30 07:46:38 -05:00
Etienne Carriere
6eada7b937 soc: Include include/zephyr/sys/clock.h
Header file include/zephyr/sys_clock.h is deprecated and will be removed
someday. Update the whole file tree to include zephyr/sys/clock.h
straight instead of zephyr/sys_clock.h.

This change was made running the sed shell command below:
$ sed -i 's/zephyr\/sys_clock\.h/zephyr\/sys\/clock\.h/' \
      `grep -rsl "zephyr/sys_clock\.h" soc/`

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-07-30 07:45:05 -05:00
Scott Worley
95551bb1f9 drivers: clock-control: microchip: xec: Port to MEC174x/5x
We updated the XEC clock control driver to support MEC174x/5x
and move away from hard to maintain CMSIS register structures.
Addition device tree properties were added for tuning the driver's
XTAL configuration sequence. Note: MEC15xx does not have the
clock monitor hardware for checking XTAL health and no way to
fallback if the XTAL fails.
Many MEC15xx/MEC172x legacy Zephyr drivers are using XEC specific
clock control driver PCR sleep and reset APIs. Until all old
drivers are converted to use the same functionality from the MEC SoC
layer we must keep these APIs. We converted them to call the SoC
layer. Once all drivers have been converted we can removed these
custom APIs from the clock control driver.
The domain clock-cells parameter was renamed to clkid matching usage
in the DW I2C driver and many other clock control drivers.
We changed domain to clkid in the only two drivers remaining that
use it, interrupt-controller and crypto.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-07-30 07:43:54 -05:00
Scott Worley
8dd4e82a9e soc: microchip: mec: Port clock control driver reg updates
We added register defines and macros required to port the
XEC clock control driver to MEC174x/5x and remove CMSIS
register structures. Only specific SoC families and variants
include I3C hardware with a specific I3C PLL clock of 192MHz.
We added HAS_MCHP_MEC_I3C to MEC175x and MEC165xB. The clock
control driver will use this to detemine if it should response
to queries and control of the 192MHz I3C clock.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-07-30 07:43:54 -05:00
Duy Nguyen
032f7b68a0 soc: renesas: Enable ARM MPU on RA8
This enable ARM MPU feature on RA8T1 which will allow for caching
support

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2026-07-30 09:40:28 +02:00
Liam Girdwood
4ef973a2f3 soc: intel_adsp: cavs: use native window spill in D3 powerdown
pm_state_set() called xthal_window_spill(), the Cadence Xtensa
HAL's register window spill routine, before saving core context
for PM_STATE_SOFT_OFF (D3). Zephyr has its own native equivalent,
xtensa_spill_reg_windows, meant to be entered directly via CALL0
ABI (only A0 needs to be saved/restored by the caller). Use it
instead of pulling in the HAL routine.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2026-07-29 08:19:53 -07:00
Etienne Carriere
7935ac423a soc: espressif: use diamond include for non-local header files
Use #include <> instead of #include "" to include a header file which path
is not relative to the directory path of the file emitting the #include
directive.

This change was made running scripts/check_quoted_includes.py script
proposed in https://github.com/zephyrproject-rtos/zephyr/pull/112135
with the Linux shell command below and manually selecting the applicable
changes:
$ ./scripts/check_quoted_includes.py -w soc/espressif

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-07-29 08:13:57 -07:00
Laurie Fay
53755e7eb9 soc: arm: enable USE_SWITCH for corstone300 and corstone320
In order to stabilise USE_SWITCH, it is best if we can
test it in the CI to avoid regressions. This commit
enables USE_SWITCH for corstone300 and corstone320.

USE_SWITCH is left off for corstone310/315 so that
the CI tests both the feature being enabled and disabled.

Signed-off-by: Laurie Fay <Laurie.Fay@arm.com>
2026-07-29 10:50:06 +02:00
Hong Nguyen
a8d155ee61 boards: adafruit: add support for Adafruit Feather ESP32C6
Add support for the Adafruit Feather ESP32C6 board.

Signed-off-by: Hong Nguyen <hong.nguyen.k54@gmail.com>
2026-07-28 20:50:51 -04:00
Andrej Butok
a5ea846582 soc: nxp: lpc55s36: enable CTIMER clock divider
Enables CTIMER clock divider that is halted out of reset.
As with the divider halted, the CTIMER receives
no functional clock, so the first register access made
by HAL CTIMER_Init() hanged the system during driver initialization.

Tested on LPCXpresso55s36.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2026-07-28 18:10:55 -04:00
Adam Kondraciuk
ec77f7ba1f soc: nordic: Add RAM3 region for memory retention management
Some nrf devices has additional RAM3 region.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2026-07-28 18:10:19 -04:00
Daniel Leung
b8f8e422ba soc: intel_adsp: remove deprecated CONFIG_INTEL_ADSP_IPC
SOF has removed their use of CONFIG_INTEL_ADSP_IPC so we can
remove this deprecated kconfig.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-07-28 18:09:32 -04:00
Appana Durga Kedareswara rao
0b8e005e57 soc: xlnx: remove duplicate per-SoC GIC MMU region entries
Commit 3953f4b43d ("arch: arm64: mmu: map the GIC regions in the
arch core") added automatic mapping of every reg bank of the "arm,gic"
DT node in arch/arm64/core/mmu.c (mmu_gic_regions[]), explicitly to
let individual SoCs stop repeating those entries in their own
arm_mmu_regions.c. versal, versal2 and versalnet were not updated
when that landed, so their GIC reg banks were mapped twice: once by
the SoC's own mmu_regions[], and again by the generic
mmu_gic_regions[] pass in setup_page_tables().

Remove the redundant per-SoC GIC entries; the generic mapping in
arch/arm64/core/mmu.c already covers them with identical attributes
and addresses. versal's arm_mmu_regions.c had no other entries, so
with the GIC ones gone it maps nothing at all - delete the file
entirely and let arch/arm64/core/mmu_default_config.c's __weak empty
mmu_config apply instead, rather than keep a source file whose only
content is an empty array. versalnet's file is in the same state in
this tree and gets the same treatment. versal2 keeps its file, since
it still maps several other device regions.

Fixes: 3953f4b43d
("arch: arm64: mmu: map the GIC regions in the arch core")
Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
2026-07-28 12:39:47 -07:00
Tom Burdick
fa3c2981db soc: infineon: edge: Only --erase once
When flashing this AMP part and running firmware built for the M55 with
--sysbuild using west flash --erase would erase twice leaving the part
in a non-bootable state.

Add the needed soc.yml runner options to only run --erase once
regardless of how many images were being flashed.

Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
2026-07-28 12:38:09 -07:00
Fin Maaß
745cdd10c7 drivers: ethernet: dwc_mac: esp32: add support
add support for the esp32 in the generic
dwc_mac driver.
esp32 specific code is based
the init of the original esp32 eth driver in zephyr.

The esp32 uses HW version 3.70.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-07-28 12:31:19 -07:00
Manimaran A
81538a9ada soc: microchip: mec172x: preserve I2C wake source in deep sleep
For I2C target wake, the SMB controller must stay enabled during
suspend-to-ram so it can sample SCL/SDA and wake on a START from an
external master. Skip disabling a controller whose START-bit wake is
enabled in the deep-sleep block save; others are disabled as before.

Signed-off-by: Manimaran A <manimaran.a@microchip.com>
2026-07-28 12:30:42 -07:00
Johnny Chuang
facf2869b6 drivers: pinctrl: Add PINCTRL driver for ELAN EM32 series
Add the initial pinctrl driver support for the ELAN EM32 SoC family.
This driver provides basic pin multiplexing and electrical configuration
support. Device tree bindings are included for pin function definitions.

Signed-off-by: Johnny Chuang <johnny.chuang@emc.com.tw>
2026-07-28 12:28:40 -07:00
Johnny Chuang
eeee9c6c5e dts: elan: em32fxxx: add infoctrl syscon node
Add the infoctrl syscon register block to the EM32Fxxx SoC DTSI.

The block contains oscillator trim and device information registers.
Add register offsets and field masks in soc_infoctrl.h for driver use.

Signed-off-by: Johnny Chuang <johnny.chuang@emc.com.tw>
2026-07-28 12:28:40 -07:00
Fin Maaß
8fad8ef39b soc: renesas: ra: add missing endif
add missing endif, forgotten in
fbd79da3b6

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-07-28 08:17:31 -05:00
Jeremy Dick
fbd79da3b6 soc: renesas: ra: don't emit option settings when chain-loaded by MCUboot
Emit the option settings sections only when the image is a standalone
app or MCUboot. Don't emit the option settings when the image is an
app being chain-loaded by MCUboot.

This avoids populating addresses outside of the code-partition area
in the app image.

Signed-off-by: Jeremy Dick <jdick@pivotint.com>
2026-07-28 11:35:32 +01:00
Hongquan Li
5604cc44f0 soc: espressif: esp32p4: fix CLIC mcause restore on trap exit
On ESP32-P4, an mret whose mcause.interrupt does not match the trap
entry type corrupts the CLIC state: after an exception-entered trap
(e.g. ecall context switch) exits with mcause.interrupt forced set,
the illegal-instruction exception is never delivered again.

Match mcause.interrupt to the trap entry type instead of forcing it,
clearing mpil for exception-saved frames so they resume at level 0.

Fixes #114028

Signed-off-by: Hongquan Li <hongquan.li@processmission.com>
2026-07-28 11:32:47 +01:00
Tony Han
e884f5c152 soc: microchip: sama7d6: fix the config of peripheral clock for MCAN
Correct the value written to the PMC_PCR register when configuring the
MCAN peripheral clock. Previously, incorrect GCLKDIV or GCLKCSS values
might be written if the MCAN clocks had already been configured before
Zephyr started.

Fixes: e79081f444 ("soc: microchip: sama7d6: update MMU and config
generic clocks for MCAN")

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-07-28 11:30:04 +01:00
Lucien Zhao
e53429127d soc: nxp: rt118x: add 1187/1185/118C dual-core, 1182/1181 single-core
Add SoC layer support for the i.MX RT118x derivative parts that were
missing in Zephyr:

- MIMXRT1187 (CM33 + CM7)
- MIMXRT1185 (CM33 + CM7)
- MIMXRT118C (CM33 + CM7)
- MIMXRT1182 (single-core CM33)
- MIMXRT1181 (single-core CM33)

All CM33 cores in the family share the XCACHE controller and all CM7
cores share the ARM L1 I/D cache, so the existing cache select pattern
is reused.

The single-core RT1182/RT1181 parts are excluded from
SECOND_CORE_MCUX, and from the "_cm33" MCUX_CORE_SUFFIX since their
HAL device files carry no core suffix (MIMXRT1182.h, not
MIMXRT1182_cm33.h).

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-07-28 11:24:19 +01:00
Tobias Meyer
ddb68d0319 soc: st: stm32n6: add backup SRAM support
Describe the STM32N6 8 KiB backup SRAM and enable the driver with
STM32_BACKUP_PROTECTION selected. Extract the retention logic into a
dedicated helper, use the correct device-tree SRAM address, and wait
for standby retention acknowledgement on STM32N6.

Assisted-by: opencode:openai/gpt-5.6

Signed-off-by: Tobias Meyer <tobias.meyer@hula.earth>
2026-07-27 11:44:03 -07:00
Liam Girdwood
e5a5c0ad97 soc: intel: adsp: cavs: add HiFi3 capability for cAVS 2.5
Select XTENSA_CPU_HAS_HIFI3 for the CAVS 2.5 (TGL) SOC series so that
the XTENSA_HIFI_SHARING infrastructure knows the coprocessor is present.
Without this the HiFi AE register file is never saved/restored across
context switches, corrupting the state of any thread that uses HiFi
instructions.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2026-07-27 11:41:05 -07:00
Soumya Tripathy
03f79d7f81 drivers: rtc: counter: drop manual RTC_INIT_PRIORITY overrides
All board and SoC Kconfig.defconfig overrides setting
CONFIG_RTC_INIT_PRIORITY=70 were workarounds to ensure the RTC counter
wrapper initialized after the underlying counter driver.

Signed-off-by: Soumya Tripathy <s-tripathy@ti.com>
2026-07-27 11:37:43 -07:00
Liu Changjie
16405ef6d9 soc: wch: add CH32H41X series (CH32H417 dual-core)
Add the CH32H41X SoC series under the ch32v family. The CH32H417 is
an asymmetric dual-core (AMP) RISC-V part with a QingKe V3F boot
core and a QingKe V5F application core.

Model the two cores as cpuclusters with separate CPU descriptions,
runtime-idle power states, interrupt entry, vector handling, and
non-overlapping memory. Keep the external HSE frequency
board-specific.

The optional SOC_CH32H417_BOOT_V5F setting lets the V3F early-init
hook wake the V5F image at its real flash address, 0x08010000, while
allowing standalone V3F applications to disable that behavior.

Signed-off-by: Liu Changjie <liucj1228@outlook.com>
2026-07-27 11:36:23 -07:00
Tony Han
3d70862481 soc: microchip: sama7d65: override GMAC register definitions
Include "dfp_override.h" for overriding the definitions of GMAC
registers for reusing "drivers/ethernet/eth_sam_gmac.c" with
minimum changes.

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-07-27 11:35:45 -07:00
Tony Han
e3f371eee5 soc: microchip: sama7d6: initialize generic clock for GMAC0
Initialize ETHPLL to 625MHz, divids it by 5 to 125MHz to GMAC0's
generic clock and enable the clock.

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-07-27 11:35:45 -07:00
Mike J. Chen
3177dd4fb5 xtensa: change how XTENSA_ENABLE_BACKTRACE is enabled
Instead of every new xtensa core having to modify xtensa_backtrace.c
and provide a header file with custom functions needed by the common
xtensa backtrace functions to validate stack and code addresses, now
xtensa_backtrace.c uses default weak functions that the soc can replace
with their own implementations.

Modify the current in-tree instances that used to have custom helper
functions to provide the standardize weak replacements.

Signed-off-by: Mike J. Chen <mjchen@google.com>
Co-authored-by: Filip Kokosinski <fkokosinski@antmicro.com>
Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2026-07-27 14:41:22 +02:00
Sylvio Alves
bc460feabe soc: espressif: include devicetree.h in start.S
DRAM_STACK_START resolves to a devicetree-derived expression when
CONFIG_NOCACHE_MEMORY is enabled. Without devicetree.h the DT_REG_SIZE
and DT_NODELABEL macros reach the assembler unexpanded and fail. Add
the include so the early stack pointer resolves in all configurations.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-07-24 22:33:15 -07:00
Sylvio Alves
1e260c957a soc: espressif: move riscv boot entry to assembly
The entry point set the stack pointer from inline asm inside a C
function, so the compiler was free to emit a prologue that spilled
through the stack inherited from ROM before the switch happened.
Where that stack overlaps .bss it corrupts statics arch_bss_zero()
has already cleared.

Do the gp, stack and vector table setup in assembly instead, then
hand off to C. Gate it on RISCV rather than RISCV_GP, as only the
gp setup depends on gp being used for addressing.

On esp32p4 v1.3 the early stack address came from devicetree macros,
which the assembler cannot evaluate. Derive it from plain literals
instead.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-07-24 15:36:23 -04:00
Sunil Abraham
5cf1866014 drivers: clock_control: PIC32CM_SG_GC: Add clock control driver
Add clock control driver
Implement bootup clock initialization, on, off, configure and get_rate API

Signed-off-by: Sunil Abraham <Sunil.Abraham@microchip.com>
2026-07-24 15:34:12 -04:00