Commit graph

136,983 commits

Author SHA1 Message Date
Declan Snyder
bc9869851b drivers: eth_nxp_enet: Fix power mode control
The driver should not take the whole interface down and re-initialize on
every low power entry and exit. This is a lot of latency for no real gain
as far as I can tell. We can just do as the reference manual actually says
which is to set the sleep enable bit to put the module to sleep while still
being able to detect magic packets for wake on LAN.

Also, the only platform that this power action was "enabled" for was
kinetis, but that platform does not have any power management enabled in
Zephyr.  Which means this code was never getting called even with all the
PM configs on.  So basically this code is dead code. But it could be useful
for other platform, such as RT, so there's no reason not to remove the
dependency on kinetis and let it be used for any of the platform as long as
PM_DEVICE is enabled (hence the imply).

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-10-21 12:24:16 -04:00
Mohamed Azhar
5d7035ab68 boards: microchip: add PIC32CZ CA80 Curiosity Ultra Dev Board support
Add initial support for the PIC32CZ CA80 Curiosity Ultra Development Board
Product page: https://www.microchip.com/en-us/development-tool/ev51s73a

Signed-off-by: Mohamed Azhar <mohamed.azhar@microchip.com>
2025-10-21 12:24:04 -04:00
Mohamed Azhar
83092a114a soc: microchip: add support for PIC32CZ CA SoC series
Adds initial SoC-level support for the Microchip
PIC32CZ CA80/9x series, including SoC definition files.

Signed-off-by: Mohamed Azhar <mohamed.azhar@microchip.com>
2025-10-21 12:24:04 -04:00
Mohamed Azhar
a9b253dfd2 dts: arm: microchip: add dtsi files for Microchip PIC32CZ CA SoC series
Adds common and SoC-specific .dtsi files for the Microchip
PIC32CZ CA80 CA90 and CA91 family. These files define core
peripherals, address maps, and interrupt controller structure
shared across the PIC32CZ CA80 9x variants.

Signed-off-by: Mohamed Azhar <mohamed.azhar@microchip.com>
2025-10-21 12:24:04 -04:00
Benjamin Santon
e69ae4e5aa drivers: spi: spi_max32: Fix QSPI and half duplex, support hold on CS
Fix QSPI and half duplex
Support hold on CS flag
Create functions to assert and deassert CS

Signed-off-by: Benjamin Santon <benjamin.santon@analog.com>
2025-10-21 12:23:51 -04:00
Tim Pambor
fff32576b6 samples: canopennode: no_storage: disable program download
Boards that use MCUboot to start XIP from external flash default to
CONFIG_CANOPENNODE_PROGRAM_DOWNLOAD=y. However, in the no_storage
sample, dependencies such as CONFIG_FLASH are disabled. This causes
build errors. Work around this by explicitly disabling program download
in the no_storage sample configuration.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-21 12:23:06 -04:00
Mathieu Choplain
41513d7813 dts: arm: st: stm32wl: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
f72b0c7989 dts: arm: st: stm32wba: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
58331dd596 dts: arm: st: stm32wb: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
53ed2119f2 dts: arm: st: stm32u5: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
e7dbaaaed8 dts: arm: st: stm32u3: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
1b45342af7 dts: arm: st: stm32u0: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
273d4ef86a dts: arm: st: stm32n6: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
94219699ba dts: arm: st: stm32l5: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
5a7c028041 dts: arm: st: stm32l4: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
0a26950285 dts: arm: st: stm32l1: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
535c056d3e dts: arm: st: stm32l0: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
4581596a16 dts: arm: st: stm32h7rs: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
2a14f656ca dts: arm: st: stm32h7: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
20136226eb dts: arm: st: stm32h5: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
4413b3b170 dts: arm: st: stm32g4: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
817632a8c9 dts: arm: st: stm32g0: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
a6a5793c87 dts: arm: st: stm32f7: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
445fe1be66 dts: arm: st: stm32f4: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
2f983bc9c7 dts: arm: st: stm32f3: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
0b68eb1d60 dts: arm: st: stm32f2: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
00d1308013 dts: arm: st: stm32f1: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
4ae7819b0c dts: arm: st: stm32f0: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant. This avoids the
current situation where the same #include directive is duplicated among
many files, and where the file is sometimes included multiple times when
walking up the inclusion chain up until the root DTSI file.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Mathieu Choplain
c0ac2199ee dts: arm: st: stm32c0: include <mem.h> from series' root DTSI
Include <mem.h> from the series' root DTSI file and remove inclusion of
the file from other levels since it becomes redundant.

There is no consistency about which level of the DTSI inclusion hierarchy
the macros from this header start being used, so including it from the root
file ensures they are always visible and available without headache. Today,
there are places where the header is included twice or more at different
DTSI inclusion hierarchy levels because of this ambiguity - this commit
solves the issue once and for all.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-21 12:22:30 -04:00
Alberto Escolar Piedras
499aa995f6 net: lib: shell: dns: Fix field precission specifier type
Explicitly cast down the string width to int, as otherwise it is
size_t which may have a bigger size.

Avoids the following build error:

subsys/net/lib/shell/dns.c:496:67: error: field precision specifier
‘.*’ expects argument of type ‘int’, but argument 4 has type ‘size_t’
{aka ‘long unsigned int’}

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-10-21 12:21:37 -04:00
Fin Maaß
43084fe77d doc: samples: drivers: clock_control: fix dts include
fix dts include for doc

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-10-21 17:20:33 +01:00
Tony Han
bbfd206a47 boards: microchip: sama7g5: add DMA to sama7g54-ek dts and yaml files
Add DMA nodes to sama7g54_ek.dts files.
Add DMA to sama7g54_ek.yaml support list.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:20 +03:00
Tony Han
30b4e678ca drivers: dma: sam: implement finite state machine for DMA channel
Add state machine for config/start/stop/resume/suspend for DMA channels.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:20 +03:00
Tony Han
a7f1b709d3 drivers: dma: sam: add DMA channel suspend and resume support
Add support for XDMA channel read write suspend and read write resume.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:20 +03:00
Tony Han
56bc90bd68 drivers: dma: sam: update to support sama7g5 XDMAC peripheral
Update the driver to support sama7g5 XDMAC peripheral.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:20 +03:00
Tony Han
cb8e055a4d drivers: dma: sam: support different num of channels for each instance
As the number of DMA channels could be different between DMA instances,
get the number from "XDMAC Global Type Register" and validate the
channel used.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:20 +03:00
Tony Han
bb69252ccf drivers: dma: sam: update to support multiple DMA instances
This update xdmac driver to support multiple DMA instancess.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:20 +03:00
Tony Han
7715e14efe soc: microchip: sam: update MMU for sama7g5 XDMAC
When the XDMAC is activated in the DT, configure it's register region
with strong ordered, read and write access.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:20 +03:00
Tony Han
0f8698ccbc soc: microchip: sam: enable CACHE_MANAGEMENT for sama7g5 series
Enable cache manamegent for sama7g5 series.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:20 +03:00
Tony Han
fc42cc662f dts: arm: microchip: sama7g5: add DMA Controller (XDMAC) support
Add dma nodes to sama7g5.dtsi file.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:20 +03:00
Tony Han
7df7d8bcf1 boards: microchip: add new board sama7d65 Curiosity Kit
Product URL: https://www.microchip.com/en-us/development-tool/EV63J76A

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:09 +03:00
Tony Han
778232cf50 soc: microchip: sam: register clocks for sama7d65
Register sama7d65 clocks in sam_pmc_setup() which will be called by
the PMC driver.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:09 +03:00
Tony Han
be03792d3d include: dt-bindings: sam_pmc: add PMC clocks for SAMA7D65
Add LVDSPLL, MCK3 and MCK5 clock definitions for microchip SAMA7D65.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:09 +03:00
Tony Han
7b08b91f62 soc: microchip: sam: add new SoC sama7d65
Product URL: https://www.microchip.com/en-us/product/SAMA7D65

The files under 'soc/microchip/sam/sama7/' will be used for both
sama7d5 and sama7d65 SoCs after the directory structure for sama7g5
is reorganized.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:09 +03:00
Tony Han
f373992271 dts: microchip: add the DTSI file for sama7d6 SoCs
Add the base DTSI file for Microchip sama7d6 SoCs.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:09 +03:00
Tony Han
d7e355de73 soc: microchip: sam: optimize array size for sama7g5 registered clocks
Replace the array size for sama7g5 registered clocks with macros and
put the macros to soc.h with descriptions.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:09 +03:00
Tony Han
4c6aa7da31 soc: microchip: sam: optimize name for sama7g5 programmable clock
Change the location of the names for programable clocks from the
stack to "static struct clk_programmable" array.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-10-21 17:26:09 +03:00
Cla Mattia Galliard
630a496096 samples: net: QoS: Add quality of service sample
Add a sample, that shows the power of quality of service in Zephyr.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
2025-10-21 17:25:56 +03:00
Cla Mattia Galliard
f3b6d77ad4 net: shell: filter: Update table
Adjust table to print newly available information.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
2025-10-21 17:25:56 +03:00
Cla Mattia Galliard
4e3024b110 net: tc: allow to spread threads by more then 1 priority level
Allow to spread tc threads by more then one priority level and cleanup the
computation of the priority.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
2025-10-21 17:25:56 +03:00