Commit Graph

91877 Commits

Author SHA1 Message Date
Erwan Gouriou 81670db2e9 boards: Convert legend to HWM v2
Port the board to HWMv2.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-01 14:17:11 +00:00
Erwan Gouriou 8980430aad boards: Convert google_kukui to HWM v2
Port the board to HWMv2.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-01 14:17:11 +00:00
Erwan Gouriou ac020f66e0 dts: stm32f0: fix few warnings
Fixes following warnings:
- zephyr.dts:419.10-426.5: Warning (simple_bus_reg): /soc/clocks:
missing or empty reg/ranges property
- zephyr.dts:477.27-484.5: Warning (simple_bus_reg): /soc/serial@40011C00:
simple-bus unit address format error, expected "40011c00"

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-01 14:17:11 +00:00
Erwan Gouriou 5140e4551a boards: v2: doc: Add vendors
Minimum modification to make boards doc visible in v2 model.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-01 14:17:10 +00:00
Erwan Gouriou 77d640e0c9 soc: v2: stm32: Migrate STM32F0 series
Port STM32F0 series to HW model V2

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-01 14:17:10 +00:00
Erwan Gouriou 0131e1c159 soc: v2: Add st_stm32 structure and common folder
Add minimum and common structure to start using STM32 on HW model V2.
Duplicated from soc/arm/st_stm32/common with minor modifications:
- common/Kconfig.soc moved to Kconfig as Kconfig.soc should now
be restricted to _SOC_FOO) related symbols
- "depends on LOG_BACKEND_SWO" LOG_BACKEND_SWO_REF_FREQ_HZ instead of if ..
- Symbols depending on series are not present, they'll have to be
introduced when converting respective series.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-01 14:17:10 +00:00
Jamie McCrae 36b63787a7 boards: v2: Add documentation index for converted boards
Adds documentation pages for rp2040-converted boards

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:10 +00:00
Jamie McCrae ae02fc5047 boards: sparc: qemu_leon3: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:10 +00:00
Jamie McCrae f38f7bb223 boards: sparc: gr716a: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:10 +00:00
Jamie McCrae d3cca3580e soc: gr716a: Port to HWMv2
Ports the gr716a SoC configuration to hardware model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:10 +00:00
Jamie McCrae 6a8a0c1647 boards: sparc: generic_leon3: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:10 +00:00
Jamie McCrae faf22185ce soc: leon3: Port to HWMv2
Ports the leon3 SoC configuration to hardware model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:10 +00:00
Jamie McCrae e94762ecdc tests: Update board names for hwmv2
Updates tests that use board names which have changed with boards v2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:10 +00:00
Jamie McCrae 9afcc27e05 boards: xtensa: qemu_xtensa: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:10 +00:00
Jamie McCrae 3e4a17018f soc: dc233c: Port to HWMv2
Ports the dc233c SoC configuration to hardware model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:10 +00:00
Jamie McCrae 9188fdcd78 boards: xtensa: xt-sim: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:10 +00:00
Jamie McCrae fcaa41cb5d soc: xtensa_sample_controller: Port to HWMv2
Ports the xtensa_sample_controller SoC configuration to hardware
model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:10 +00:00
Erwan Gouriou dbc413f7f7 scripts: board_v1_to_v2: Fix CONFIG_SOC_SERIES_ exclusion
Testing r"(?!SERIES_).*$" was not correct as we need to consider
lines not starting by SERIES.
Fix this and make the condition globally more simple.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-01 14:17:10 +00:00
Torsten Rasmussen 6be3d4bc80 kconfig: remove Kconfig BOARD_RPI_PICO_W safe guard.
Boards are defining two Kconfigs, `BOARD_<board_name>` and
`BOARD_<board_name>_<identifier>`.

For the raspberry pi pico, this is then BOARD_RPI_PICO and
BOARD_RPI_PICO_RP2040 / BOARD_RPI_PICO_RP2040_W.

Thus there is no BOARD_RPI_PICO_W.
As all occurences with BOARD_RPI_PICO_W, is done as:
BOARD_RPI_PICO || BOARD_RPI_PICO_W, then simply remove BOARD_RPI_PICO_W.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-03-01 14:17:10 +00:00
Jamie McCrae f4442fa698 boards: v2: Add documentation index for converted boards
Adds documentation pages for nios2-converted boards

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae ec5fbd67f7 boards: nios2: qemu_nios2: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae d3ef220460 soc: nios2-qemu: Port to HWMv2
Ports the nios2-qemu SoC configuration to hardware model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae a223f284b5 boards: nios2: altera_max10: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae c381edcb73 soc: nios2f-zephyr: Port to HWMv2
Ports the nios2f-zephyr SoC configuration to hardware model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae 97401c7d2a boards: mips: qemu_malta: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae e7a3243a24 soc: qemu_malta: Port to HWMv2
Ports the qemu-malta SoC configuration to hardware model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae bec82c690d boards: v2: Add documentation index for converted boards
Adds documentation pages for rp2040-converted boards

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae 94f6f9b636 boards: arm: w5500_evb_pico: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae 209235ab6e boards: arm: sparkfun_pro_micro_rp2040: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae e5b1885907 boards: arm: adafruit_qt_py_rp2040: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae 4c750818f9 boards: arm: adafruit_kb2040: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae 8d3896caa4 boards: arm: rpi_pico: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:09 +00:00
Jamie McCrae 42cff42c42 soc: rpi_pico: Port to HWMv2
Ports the rpi_pico SoC configuration to hardware model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:08 +00:00
Torsten Rasmussen c2df4ca9cb scripts: improve yaml schema and board.yml validation for revisions
Make 'default' and 'revisions' fields optional for custom revisions.
When using custom revision format, then board author must create a
revision.cmake file for revision handling, in which case revisions
don't need to be specified in the board.yml file.

Therefore make 'default' and 'revisions' fields optional in the schema
and implement custom yaml validation which can validate that 'default'
and 'revisions' are specified for all other revision formats.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-03-01 14:17:08 +00:00
Torsten Rasmussen 3970f90f71 cmake: clear BOARD_CACHE when invalid board identifier is given
Clear BOARD_CACHE when no or an invalid board identifier is provided
on first CMake invocation.

This allows users to re-run CMake and provide a valid board identifier
as well as avoiding `BOARD` to be replaced with an invalid BOARD_CACHED
value.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-03-01 14:17:08 +00:00
Torsten Rasmussen 3a70ee9ccd cmake: improve board revision handling
In old hw model, board revisions was handled by creation of a
revisions.cmake file. In the new hw model, board revisions are defined
as integral part of board.yml, and revision.cmake is only needed and
used for custom revision format.

Users familiar with revision.cmake in old hw model may not be aware of
this difference, therefore provide warnings if developers create a
revision.cmake that is ignored by the build system.

Also fail a build if users specify a board revision for a board which
doesn't support revision. Such scenario can easily occur in the case
where a board developer may be creating a revisions.cmake file and
then try to build for a revision specified in that file.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-03-01 14:17:08 +00:00
Erwan Gouriou 3cda715fae scripts: board_v1_to_v2: Don't add select CONFIG_SOC_SERIES_FOO
SOC_SERIES_FOO selection is done at soc/ level it should
not be added as part of board description

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-01 14:17:08 +00:00
Erwan Gouriou dc56a543f3 scripts: board_v1_to_v2: Add License + copyright
When creating file Kconfig.<board>, get the copyright from
old Kconfig.board file and use it in the new file.
Add the License as well.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-01 14:17:08 +00:00
Torsten Rasmussen 87147f88c4 cmake: prefer cache BOARD_IDENTIFIER over extracting from BOARD
The BOARD_IDENTIFIER is extracted from the BOARD argument provided by
the user.

Thereafter the BOARD_IDENTIFIER is compared to the list of valid board
identifiers returned by list_boards.py, and expanded with optional
fields as required.

Thereafter the expanded and full BOARD_IDENTIFIER is place as internal
variable in the CMake cache.

This means subsequent CMake invocations should use the expanded
BOARD_IDENTIFIER from the CMake cache instead of extracting it from the
BOARD variable.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-03-01 14:17:08 +00:00
Torsten Rasmussen 65f5dc5b8c cmake: fail when board identifier is applied in legacy hw model
Board is looked up without identifier string, which means a legacy
board may actually be found but later fails when board identifier is
included.

Thus test for HWMv1 and fail CMake is board identifier is provided for
board using HWMv1.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-03-01 14:17:08 +00:00
Torsten Rasmussen 7db2b6efd8 cmake: cache BOARD_IDENTIFIER to preserve it between CMake invocations
A CMake rerun would not extract or determine the BOARD_IDENTIFIER
correctly because `list_boards.py` is only invoked for first CMake
invocation.

Therefore cache the BOARD_IDENTIFIER so that it's preserved between
CMake re-runs.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-03-01 14:17:08 +00:00
Torsten Rasmussen 85dddac5a2 scripts: using extend in list_boards for variant list
Using extend instead of append to correctly extend the list of valid
board identifiers.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-03-01 14:17:08 +00:00
Gerard Marull-Paretas 6ae5c4e7fd scripts: utils: add board v1->v2 conversion utility
Assists on converting boards from hwmv1 to hwmv2.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-01 14:17:08 +00:00
Gerard Marull-Paretas ef834a12d0 maintainers: update Renesas RZT2M path
SoC has been converted to v2.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-01 14:17:08 +00:00
Gerard Marull-Paretas 3ab7830625 boards: renesas: add documentation entry
Add a new entry for Renesas boards.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-01 14:17:08 +00:00
Gerard Marull-Paretas a0c2ca0491 boards: arm: add documentation entry
Add a new entry for ARM Holdings plc boards.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-01 14:17:08 +00:00
Gerard Marull-Paretas 27ff3654b7 boards: gigadevice: add documentation entry
Add an entry for Gigadevice boards.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-01 14:17:08 +00:00
Gerard Marull-Paretas 6e02f43c0a maintainers: update GD32 paths
Some SoC/board files have been moved, use new paths.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-01 14:17:08 +00:00
Gerard Marull-Paretas 1bfcf1d974 boards: gd32l233r_eval: convert to HWMv2
Convert the board to HWMv2.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-01 14:17:08 +00:00
Gerard Marull-Paretas 6e621ee43f boards: gd32f470i_eval: convert to HWMv2
Convert the board to HWMv2.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-01 14:17:07 +00:00