This commit disables usb host/device on gpio pins by default during
early soc initialization.
Also update uart initialization to be devicetree-aware. uart1 and
uart2 configuration is now conditionally enabled based on dt node
status, instead of unconditionally configuring both.
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
Enable PLIC and RISC-V interrupt support for the Nitrogen platform.
Add offset of 2nd level interrupts (PLIC) and total number of IRQs.
Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
Add a "silabs nwp_version" shell command that prints the NWP firmware
version (chip_id, rom_id, major, minor, security, patch, customer_id,
build_num).
With the optional -c flag, the command also checks the version against
siwx91x_nwp_fw_expected_version and returns -EINVAL if major, minor or
security_version do not match.
The command is controlled by CONFIG_SIWX91X_VERSION_SHELL (default y)
which depends on SILABS_SIWX91X_NWP and SHELL.
Assisted-by: Copilot:claude-sonnet-4.6
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Add silabs_shell.c which owns the SHELL_SUBCMD_SET_CREATE and
SHELL_CMD_REGISTER for the "silabs" top-level shell command. This
allows multiple SoC-specific files to register subcommands independently
using SHELL_SUBCMD_ADD without duplicating the namespace registration.
Add a hidden Kconfig symbol SOC_SILABS_SHELL (selected by any feature
that registers a subcommand) that controls compilation of silabs_shell.c.
Convert siwx91x_fota_shell.c to use SHELL_SUBCMD_ADD, and make
SIWX91X_FIRMWARE_UPGRADE select SOC_SILABS_SHELL.
Assisted-by: Copilot:claude-sonnet-4.6
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Wire the on-chip Ethernet MAC and MDIO controller on the ESP32-P4
into the eth_esp32 driver. Includes the DT nodes (eth, mdio),
espressif,esp32-eth binding refresh, board pinctrl entries for
RMII and SMI, board defconfig and Kconfig fragment enabling
NET_L2_ETHERNET, and the SoC P4 Kconfig options for buffer count
and size. Adds the related pinctrl table entries and GPIO signal
map values.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
For i.MX95 M7 MCUX_LPTMR_TIMER defaults to y if COUNTER_MCUX_LPTMR
not enabled.
This prevents us on enabling CORTEX_M_SYSTICK. So refine the condition
so that MCUX_LPTMR_TIMER only defaults to enabled if COUNTER_MCUX_LPTMR
not set (as it is now) and also add condition that zephyr,system-timer
is actually set.
This also moves DT_CHOSEN_ZEPHYR_SYSTEM_TIMER,
DT_CHOSEN_ZEPHYR_SYSTEM_TIMER_PATH definitions at the top of the file.
Fixes: 0c4382ae5e ("drivers: timer: keep mcux_lptmr policy explicit")
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Specifically configure IFX_UART_ENABLED as OFF for
Zephyr's integration of tf-m for pse84.
Additionally move the pse84 specific configuration
from the tf-m CMakeLists to the soc level one.
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
Update common AIA coordinator shared by IMSIC and direct mode to
initialize based on which APLIC mode is configured in DT.
Signed-off-by: Omar Naffaa <onaffaa@qti.qualcomm.com>
- enable MONOLITHIC_NBU for NXP_IEEE802154_MAC for rw61x
- update hal_nxp ieee_802_15_4 module to 26.06.00-pvw2
Signed-off-by: Laurent Clementine <laurent.clementine@nxp.com>
Signed-off-by: George Stefan <george.stefan@nxp.com>
Replace LOG_MODULE_DECLARE with LOG_MODULE_REGISTER to properly
initialize the 'soc' log module and prevent missing log output.
Signed-off-by: Surya Prakash T <suryat@aerlync.com>
It is not called during usage and blob shall not be allowed to do that,
as it is already calibrated at boot.
Signed-off-by: Camille BAUD <mail@massdriver.space>
UART_NS16550 already defaults to y,
if it is enabled in the dt. no need to add a soc
specific default.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Add internal API header for the HPPASS_CSG_MFD sub-driver. Handles
registering individual slice callbacks for the comparator to the shared
handler in the MFD.
Assisted-by: Github Copilot:claude-opus-4.7
Signed-off-by: John Batch <john.batch@infineon.com>
This defines a custom MPU memory types according to memory being
used.
Also fix the length of vec_helpers section.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This removes xtensa_soc_mpu_ranges[]. SoC or board needing their
own memory regions should override xtensa_mpu_ranges[] in their
own layer.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
All cores should be flashed before reset is applied.
This avoids situations where appprotect is enabled
before flashing is completed.
Signed-off-by: Dag Erik Gjørvad <dag.erik.gjorvad@nordicsemi.no>
Enable the Wakeup Controller (WUC) subsystem for MCXW7xx SoCs when the
WUU (Wakeup Unit) device tree node is enabled.
Drop the SoC-local mcxw7xx_set_wakeup() shim and the
NXP_ENABLE_WAKEUP_SIGNAL() override: LPTMR0 wakeup is now configured by
the LPTMR timer driver via wuc_enable_wakeup_source_dt(), and NBU
wakeup is configured by the common NBU init code from the new
"wakeup-ctrls" property.
Add test overlay for frdm_mcxw72 board to validate WUC API.
Signed-off-by: Albort Xue <yao.xue@nxp.com>
Allow nodes with compatible "nxp,nbu" to declare a "wakeup-ctrls"
property by including wuc-device.yaml in the binding, and consume it
from the common NBU init code via wuc_enable_wakeup_source_dt().
When the property is absent, the existing NXP_ENABLE_WAKEUP_SIGNAL()
fallback path is preserved, so no in-tree user changes behavior here.
A failure from wuc_enable_wakeup_source_dt() is now logged and
propagates as an early return, which previously would have been
silently swallowed.
Signed-off-by: Albort Xue <yao.xue@nxp.com>
Currently, CONFIG_WIFI_SILABS_SIWX91X_ROAMING_USE_DEAUTH simply enables
the SL_SI91X_CUSTOM_FEAT_ROAM_WITH_DEAUTH_OR_NULL_DATA bit in
custom_feature_bit_map. However, setting that bit in the opermode
configures roaming to send a null data packet when roaming.
To configure sending a deauth, that bit must be unset.
Signed-off-by: Muzaffar Ahmed <muzaffar.ahmed@silabs.com>
These SoCs are provided with:
- Arm Cortex-A720AE application cores (8 clusters x 4 cores)
- Arm Cortex-R52 real-time cores (3 clusters x 4 cores)
- Arm Cortex-M33 system control processor
Signed-off-by: Julien Panis <jpanis@baylibre.com>
- Adapt to new MCXW7x clock control
- disable HDI pins
- use flw on non secure range
- enable lpuart1 and use it for uart-pipe, bt-c2h-uart and shell-uart
- configure sys clock to 96MHz for core0 and 48MHz for core1
- use PTA18 for LPUART0 RX pin as workaround for board issue
- fix LPTMR clock source to 32K
- place main stack at beginning of the RAM to workaround boot issue
- move shared memory to third bank (instead of the second) - last 8K
Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
WiseConnect zeros the BT half of its cached coex performance profile
on every Wi-Fi disconnect, leaving BT out of power save and preventing
the NWP from sleeping after re-association.
Delegate Wi-Fi power-save to siwx91x_nwp_apply_power_profile(), which
already owns both BT and Wi-Fi halves of the coex profile. Extend the
helper to accept an optional sl_wifi_performance_profile_v2_t override
so the Wi-Fi driver can pass its tailored profile (listen_interval,
dtim_aligned_type, monitor_interval); BT-only and init call sites pass
NULL to keep their current behaviour.
Signed-off-by: Tejus Subramanya <ters@silabs.com>
Adding missing comp3 & comp4 node to g4 (all g4 have 4 comparators).
Adding missing comp5, comp6 & comp7 to stm32g473 (all g473 and derived
types have 7 comparators).
Add configdefaults for SHARED_IRQ_MAX_NUM_CLIENTS and SHARED_INTERRUPTS
to the soc's Kconfig.defconfig.
Signed-off-by: Thomas Decker <decker@jb-lighting.de>
Add support for NXP i.MX952 SoC Cortex-M7 core:
- Add SoC configuration and Kconfig files
- Add M7 core specific initialization code
- Add pinctrl definitions for i.MX952
- Add SCMI CPU management support
- Update imx9 CMakeLists to include imx952 subdirectory
- Register imx952 series in soc.yml
Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
Add HP-core and LP-core support for the ESP32-P4 SoC: boot
init, PMP regions, IRQ and vector tables for both cores,
linker scripts (default, mcuboot, LP-core), memory map and
pinctrl SoC layer.
Register the SoC family in soc.yml with hpcore and lpcore
cpuclusters and plug it into the existing common Kconfig
fragments (ULP, console, esptool, spiram, defconfig) and the
shared bootloader loader.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Add the ESP32-P4 specific sleep configuration on top of the
common power-down support: the DCM sleep voltage and the flash
ready extra delay options, plus the clock ICG retention init and
LP clock (FOSC) narrowing in the shared sleep_retention_init().
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Manifest parsing has been moved to common/ so there is no need
to include this header anymore in sram.c.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Both CONFIG_INTEL_ADSP_(UN-)CACHED_REGION should be dependent
on whether CONFIG_INTEL_ADSP_MEMORY_IS_MIRRORED is enabled.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Correct the existing CONFIG_XTENSA_CPU_HAS_HIFI* version for
the ACE SoC to reflect the actual version of HiFi being used.
This is purely cosmetic as the current architecture code does
not distinguish between versions.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Since it unconditionally targets labels in the gpio[a-z] range,
If gpio-expander uses a label that matches this rule,
it will behave incorrectly.
For example, follows
```
gpioz: gpio {
compatible = "awinic,aw9523b-gpio";
```
We using instead of DT_NODE_HAS_STATUS_OKAY, limit it to nodes with
`st,stm32-gpio` or `st,stm32mp2-gpio` compatibility using
DT_NODE_HAS_COMPAT_STATUS.
Co-authored-by: Mathieu CHOPLAIN <mathieu.choplain-ext@st.com>
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
The Xtensa arch code can generate the linker snippet for vectors
to be included in the main linker script. So use that instead of
manually doing it in linker script. This follows the allocated
space defined in SoC automatically.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Adds public API header for the PSC3 HPPASS, with the following:
- Interrupt mask constants.
- Event callback types.
- API functions: Autonomous Controller management, HPPASS management and
status, trigger helpers, and callback registration.
Assisted-by: Github Copilot:claude-opus-4.7
Signed-off-by: John Batch <john.batch@infineon.com>
kernel.h implies kernel_structs.h via kernel_includes.h, making
explicit inclusion of kernel_structs.h unnecessary whenever kernel.h
is already included in the same translation unit.
Remove the redundant includes across arch, boards, drivers, kernel,
lib, samples, subsys, and tests trees.
in include/zephyr/kernel_structs.h:
* 2. kernel.h shall imply kernel_structs.h, such that it shall not be
* necessary to include kernel_structs.h explicitly when kernel.h is
* included.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Updates the SoC initialization to configure PSRAM IO GLB register such that
PSRAM GPIO registers (32-37) are reused for pins whose registers are
allocated for SF2 internal flash (23-28), and modifies the GPIO driver to
use those offset registers when configuring.
Signed-off-by: Dan Mangum <georgedanielmangum@gmail.com>
Co-authored-by: Camille BAUD <mail@massdriver.space>
The BICR structure has a field at the end for a CRC of the preceeding
structure. Add computation and population of the CRC field to the
bicrgen.py script, and add a check for the validity of the CRC field,
if present, when parsing a BICR structure.
Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
Add soc_secure_flash_range_is_secure() and soc_secure_flash_read().
The helpers classify a flash range against the "nordic,tz-secure"
devicetree descriptor and route reads that overlap a tagged secure
partition through soc_secure_mem_read(). Other reads stay a plain
memcpy().
The ranges are expanded from DT at build time, so contiguous
(nRF54L, nRF7120) and interleaved (nRF5340, nRF91 multi-slot
MCUboot) layouts work with the same helper. Without an okay
tz-secure node, or in secure builds, both helpers reduce to a plain
memcpy() and can be called unconditionally.
A matching stub is added to the nrf_bsim soc_secure.h.
Signed-off-by: Dag Erik Gjørvad <dag.erik.gjorvad@nordicsemi.no>
Clean up soc from unneeded HF CLK initialization which is done
using DT configuration for clocks.
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
Add support for full SMIF hardware initialization for the serial
memory flash driver when booting from internal RRAM.
On PSE84, the ROM extended boot only configures the SMIF subsystem
when the device boots from external flash. When the first application
(MCUboot or CM33 secure) runs from RRAM, the SMIF pins, clocks,
peripheral groups, and peripheral itself are left uninitialized.
Introduce CONFIG_FLASH_INFINEON_SMIF_HW_INIT to conditionally
perform these steps before mtb_serial_memory_setup() is called.
Extract the info as much as possible from DT. Some are still hardcoded
in the driver and will require additional polishing in a follow-up PR.
Assisted-by: Claude:claude-opus-4.7
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>