Commit graph

85,247 commits

Author SHA1 Message Date
Daniel Leung
ce4e3206fb doc: release-notes/3.2: about new PCIE shell subcommands
This mentions the new PCIE shell commands.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2022-09-21 15:16:55 -05:00
Daniel Leung
8242739aa5 doc: release-notes/3.2: about new API on MM drivers
This adds the bits about new API in the memory management drivers.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2022-09-21 15:16:55 -05:00
Daniel Leung
9bd51614ff doc: release-notes/3.2: add a few bits on IPM
This adds a few bits on changes about IPM.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2022-09-21 15:16:55 -05:00
Daniel Leung
a72b44fd11 doc: release-notes/3.2: add bits on Xtensa
This adds a few bits about changes on Xtensa.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2022-09-21 15:16:55 -05:00
Daniel Leung
6f141a92ab doc: release-notes/3.2: add bits related to I3C
This adds a few bits about the new I3C controller API,
a new controller driver, and about extending an existing
sensor driver for I3C.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2022-09-21 15:16:55 -05:00
Fabio Baltieri
7b64f63139 drivers: kscan_ite_it8xxx2 fix wrong comment reference
The note refers to the wrong API, that has been replaced by a pinctrl
call, update the comment.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2022-09-21 13:54:54 -05:00
Fabio Baltieri
c19c5a99cf boards: drop few stale CONFIG_PINMUX entries
The one in esp32_net_defconfig is redundant and lpcxpresso51u68 is not
really using any of the pinmux api, so that can go as well.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2022-09-21 13:54:54 -05:00
Daniel DeGrasse
5980aa0196 drivers: gpio: gpio_mcux_igpio: handle gpio-reserved-ranges property
Add code to handle parsing the gpio-reserved-ranges property present on
iMX GPIO controllers, so that gpio controllers with gaps in their pin
indexing can still have pinmux settings applied correctly.

Fixes #50142

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-09-21 13:50:26 -05:00
Daniel DeGrasse
3e99bd1e46 dts: arm: nxp: add gpio-reserved-ranges property to RT10xx devices
Add gpio-reserved-ranges property to gpio controllers on RT10xx devices
that have gaps in their GPIO numbering.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-09-21 13:50:26 -05:00
Daniel Leung
b820cde7a9 soc: esp32: use Z_KERNEL_STACK_BUFFER instead of...
...Z_THREAD_STACK_BUFFER.

This is currently a symbolic change as Z_THREAD_STACK_BUFFER
is simply an alias to Z_KERNEL_STACK_BUFFER without userspace,
and Xtensa does not support userspace at the moment.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2022-09-21 18:47:13 +00:00
Daniel Leung
74df88d8f5 soc: intel_adsp: use Z_KERNEL_STACK_BUFFER instead of...
...Z_THREAD_STACK_BUFFER.

This is currently a symbolic change as Z_THREAD_STACK_BUFFER
is simply an alias to Z_KERNEL_STACK_BUFFER without userspace,
and Xtensa does not support userspace at the moment.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2022-09-21 18:47:13 +00:00
Ruud Derwig
9bccb5cc4b ARC: fx possible memory corruption with userspace
Use  Z_KERNEL_STACK_BUFFER instead of
Z_THREAD_STACK_BUFFER for initial stack.

Fixes #50467

Signed-off-by: Ruud Derwig <Ruud.Derwig@synopsys.com>
2022-09-21 18:46:06 +00:00
Chen Peng1
4c85c84ec2 x86: Kconfig: update dependency for X86_FP_USE_SOFT_FLOAT
Update Kconfig dependency for X86_FP_USE_SOFT_FLOAT.

Signed-off-by: Chen Peng1 <peng1.chen@intel.com>
2022-09-21 18:43:11 +00:00
Chen Peng1
02f5e14b65 test: timer: behavior: Enhancement for running this test
Zephyr timer is based on system ticks, there usually exists some time drift
due to round up/down errors between cycles, ticks and time delay, we
need to add those expected time drift into the bound calculation for
running this test.
Add a new config TIMER_TEST_PERIOD_MAX_DRIFT_PERCENT for users to set
expected maximum drift percentage for the timer period.

Signed-off-by: Chen Peng1 <peng1.chen@intel.com>
2022-09-21 18:43:11 +00:00
Antoniu Miclaus
9dda350e24 drivers: sensor: adxl372: update driver
Handle SPI/I2c interface in the dts.

Support multiple instances.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
2022-09-21 18:40:06 +00:00
Erwan Gouriou
9293222d25 tests: kernel: tickless: Don't run on nucleo_l073rz
Tickless test enables PM which implies use of LPTIM as ticker on STM32
platforms.
Specifically on nucleo_l073rz, this configuration is fragile as only
LSI(37KHz) could be used as LPTIM tick source, whith a huge accuracy
tolerance (20%).
This works on most cases, when a specific tick freq (4000 ticks/sec),
but this tests explicitly requires tick frequency set to 100.

Excludes nucleo_l073rz for this test.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-09-21 18:39:07 +00:00
Erwan Gouriou
2d740d42e0 drivers: timer: stm32_lptim: Change clock source config check sanction
A specific check is implemented lptim driver in order to ensure global
platform clock/tick configuration is in line with recommendations.
To respect portability principles, don't error out when a config
conflict is detected but generates a warning instead.
Also, since these are only recommendations, provide an option to override
the check. Besides automatically override when ZTEST is enabled, as some
kernel tests specifically configure tick freq to 100.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2022-09-21 18:39:07 +00:00
Enjia Mai
bafc258025 tests: kernel: common: remove the nop test case
The test case was originally designed for the coverage of
nop()/arch_nop() function. It is not very meaningful for
testing something but causing lots of false alarms on the
kernel/common test so far. Suggest removing this test case.

Signed-off-by: Enjia Mai <enjia.mai@intel.com>
2022-09-21 13:38:09 -05:00
Anas Nashif
b3ead37efa twister: temporarily disable mec15xx boards
A workaround to exclude boards from twister. Other solutions do not work,
setting twister fields to false in the board yaml file is not enough,
given that this board has many associated samples and tests, so it can't
be disabled on its own.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-09-21 18:05:51 +00:00
Gerard Marull-Paretas
920ad1fff1 drivers: pinmux: deprecate pinmux
Pinctrl API has taken over pinmux. As planned, pinmux is going to be
deprecated for the next release (3.2). This patch flags all pinmux APIs
as deprecated.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-09-21 18:05:51 +00:00
Jay Vasanth
3bab0081dd samples: espi: add pinctrl in mec1501 board overlay
update mec1501modular board overlay to include pinctrl
properties for spi

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Jay Vasanth
a4ad4a2914 boards: microchip: mec15xx: delete pinmux.c files
remove pinmux support in mec15xxevb and mec1501modular
boards. pinmux API is deprecated in 3.2 release.

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Jay Vasanth
d6ba6a5fac spi: mec15xx: add pinctrl for mec15xx/mec1501 qmspi
Remove pinmux calls and add pinctrl support for mec15xx
and mec1501 qmspi. Update board dts, pinmux and driver files.

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Jay Vasanth
a2de15e5cc adc: mec15xx: add pinctrl for mec15xx/mec1501 adc
Remove pinmux calls and add pinctrl support for mec15xx
and mec1501 adc. Update board dts, pinmux and driver files.

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Jay Vasanth
53e6da72d4 mec15xx: enable pinctrl for mec15xx/mec1501 boards
enable CONFIG_PINCTRL for mec15xx and mec1501 boards

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Jay Vasanth
d684425d4d i2c: mec15xx: add pinctrl for mec15xx/mec1501 i2c
Remove pinmux calls and add pinctrl support for mec15xx
and mec1501 pwm. Update board dts, pinmux and driver files.

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Jay Vasanth
e46c56e117 espi: mec15xx: add pinctrl for mec15xx/mec1501 espi
Remove pinmux calls and add pinctrl support for mec15xx
and mec1501 espi. Update board dts, pinmux and espi driver
files.

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Jay Vasanth
64eeef9d57 soc: arm: microchip: update mec1501 soc header
update mec1501 soc.h to include soc_dt.h for pinctrl
related macros

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Jay Vasanth
473c098af6 tach: mec15xx: add pinctrl for mec15xx/mec1501 tach
Remove pinmux calls and add pinctrl support for mec15xx
and mec1501 tach. Update board dts and pinmux files.

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Jay Vasanth
4f9eceafc8 peci: mec15xx: add pinctrl for mec15xx/mec1501 peci
Remove pinmux calls and add pinctrl support for mec15xx
and mec1501 peci. Update board dts and pinmux files.

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Jay Vasanth
a209dd4864 pwm: mec15xx: add pinctrl for mec15xx/mec1501 pwm
Remove pinmux calls and add pinctrl support for mec15xx
and mec1501 pwm. Update board dts and pinmux files.

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Jay Vasanth
0a18452dc8 kscan: mec15xx: add pinctrl for mec15xx/mec1501 kscan
Remove pinmux calls and add pinctrl support for mec15xx
and mec1501 kscan. Update board dts and pinmux files.

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Jay Vasanth
c29823aa1f ps2: mec15xx: add pinctrl for mec15xx/mec1501 ps2
Remove pinmux calls and add pinctrl support for mec15xx
and mec1501 ps2. Update board dts and pinmux files.

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2022-09-21 18:05:32 +00:00
Tom Burdick
db372f8eaa doc: releases: update RTIO release notes for 3.2
Update RTIO release notes with changes since the 3.1 release

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2022-09-21 18:20:18 +02:00
Tom Burdick
e5b76065c3 doc: releases: update I2C release notes for 3.2
Update I2C release notes with changes since the 3.1 release

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2022-09-21 18:20:18 +02:00
Tom Burdick
184f8108a9 doc: releases: update DMA release notes for 3.2
Update the DMA release notes with changes since the 3.1 release

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2022-09-21 18:20:18 +02:00
Jamie McCrae
1489104ddb mgmt: mcumgr: img_mgmt: Fix slot3 if check
Fixes an issue with img_mgmt whereby the if check for a slot3
partition is using the wrong case for the partition name.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2022-09-21 18:18:18 +02:00
Thomas Stranger
4dc093f464 doc: release: 3.2.0: Add release notes for w1 (1-wire)
Add 1-wire release notes for zephyr v3.2.0.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2022-09-21 15:55:45 +00:00
Maureen Helm
16c07e71e5 doc: release: Add sensor release notes for v3.2.0
Added comments about new drivers, bug fixes, and enhancements made to
sensor drivers since the last release.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-09-21 17:49:33 +02:00
Martí Bolívar
22012894c0 dtlib: error out on duplicate node names
Attempts to define two nodes with the same name within a single set of
curly brackets should fail.

For example, this is invalid DTS according to dtc:

    / { foo {}; foo {}; };

By contrast, this is valid since the node named 'foo' appears twice in
two different sets of curly brackets:

    / { foo {}; };
    / { foo {}; };

Zephyr's dtlib currently does not error out on the invalid condition.

Now that Zephyr itself has been updated to not include such nodes (to
the best of my ability), we can fix this divergence from current dtc
behavior and add a regression test in dtlib.

Fixes: #49590
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-09-21 07:55:40 -07:00
Martí Bolívar
55f4075f92 dts: intel: cavs25: hack around awkward DT representation
Apparently, downstream drivers are allocating devices using
DT_NODELABEL(alh0) and DT_NODELABEL(alh1) on a node with compatible
intel,alh-dai. These represent something like "channels" within the
device.

This is a strange choice. It would be better to do something like have
a property with the count of "channels", or one child node per
channel.

It is also a dtc error to have duplicate node names like this, and
will be an error in Zephyr's dtlib soon.

For now, work around this representation issue by replacing it with
something equivalent that doesn't have duplicate nodes. The
representation should be addressed at some point, but not by me.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-09-21 07:55:40 -07:00
Martí Bolívar
79060be913 west.yml: update stm32 HAL
Bring in updated pinctrl files. These include fixes which remove
duplicate nodes.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-09-21 07:55:40 -07:00
Martí Bolívar
00240a81a3 boards: atmel SAM: pinctrl fixes
Various boards are incorrectly specifying two pin control groups named
'group1' in the same parent node. Fix this by splitting them into two
groups, replacing redundant 'group1' with 'group2'.

Suggested-by: Gerson Fernando Budke <nandojve@gmail.com>
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-09-21 07:55:40 -07:00
Martí Bolívar
0e4f13bfba boards: arduino_nicla_sense_me: pinctrl fixes
Two pinctrl node labels for this board are referring to nodes that are
already defined higher in the file with different pinmux property
values.

This looks like a clear copy/paste error. Fix it by renaming the nodes
to create two distinct nodes in each case instead of overriding the
previous node definition. This will also make the file compile in dtc,
which regards duplicate node definitions as errors, and will be a
required fix for when Zephyr's dtlib does the same.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-09-21 07:55:40 -07:00
Martí Bolívar
22e8283992 dts: mec172x: pinctrl fixes
Two issues:

- The nsmi_gpio107 node is being defined twice with the same pinmux
  property value. This is an error when compiling the file with dtc.
  Zephyr's dtlib doesn't currently error out on this, but it will soon.

  Fix this by removing one of the redundant definitions.

- The eeprom_clk_gpio117 node label is referring to a node named
  gpspi_clk_gpio117, which is already defined in the same file, but
  with a different pinmux property value. This looks like a clear
  copy/paste error causing invalid pinmux settings for the
  gpspi_clk_gpio117 node.

  Fix it by aligning the node name with the node label to create
  a separate node with its own pinmux value.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-09-21 07:55:40 -07:00
Martí Bolívar
d23b3e81c2 boards: it8xxx2_evb: fix invalid DTS
The duplicated aliases node in this board's DTS file is an error when
compiling it with dtc. Zephyr's dtlib doesn't report the error yet,
but it will soon, so rearrange the alias definitions under a single
node. No functional changes expected.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-09-21 07:55:40 -07:00
Martí Bolívar
4d9fdc46a7 boards: hifive1: fix PWM pinctrl
A likely copy/paste error is making the pwm2_1_default pinmux setting
override the value for pwm1_1_default. Fix it.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-09-21 07:55:40 -07:00
Martí Bolívar
387b16a3a5 dts: nxp: rt11xx: fix lpuart12 base addresses
The correct address is 0x40c28000 on these SoCs.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-09-21 07:55:40 -07:00
Gerard Marull-Paretas
695313cfc6 maintainers: split documentation area
By including `doc/` under the "Documentation" area we put documentation
content and infrastucture in the same basket, however, people
maintaining infrastructure is often not interested in reviewing
documentation content. This patch creates a new "Documentation
Infrastructure" area and limits its scope to infrastructure-only files
(CMake, Sphinx, extensions, etc.). I've assigned myself as a maintainer
as I've been working on such areas for a long time now. @utzig removed
from the list of collaborators as it is no longer active in this area.
Core documentation, e.g. getting started, contribute, etc. is kept under
the "Documentation" area.

Subsystem specific documentation folders/files should be added in the
respective areas (many already do).

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-09-21 16:43:04 +02:00
Yves Vandervennet
bf93255d03 boards: nxp: Update NXP board cmake files for the flash loader flag
This commit updates the board cmake files for the following
NXP boards:
 - mimxrt1060_evk and mimxrt1060_evkb
 - mimxrt1050_evk_qspi

The change adds the loader information for these boards

Signed-off-by: Yves Vandervennet <yves.vandervennet@nxp.com>
2022-09-21 09:33:42 -05:00