Commit Graph

92425 Commits

Author SHA1 Message Date
Torsten Rasmussen 338f6f2bf1 doc: update board porting guide to match new hardware model
Update board porting guide to the design changes in the new hw model.

New section added:
- board.yml file description

Updated sections:
- Board on SoCs example table updated to new format and extra examples
  added.
- Board directory description and its files
- Writing devicetree file section updated to match new lookup patterns
- Writing Kconfig file section updated to match new lookup patterns
- Board revision handling updated

In getting started guide a note has been added with short description
of the new board and board identifier scheme.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jérôme Pouiller 9639a1b5dc soc: silabs: drop useless defconfigs
Currently, some soc subdirectories contains Kconfig.defconfig.<soc-name>
and Kconfig.defconfig. However:
  - Kconfig.defconfig.<soc-name> is included unconditionally by
    Kconfig.defconfig
  - each subdirectory only contains one SoC

So, it does not make sense to keep these two files.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2024-03-01 15:50:08 +01:00
Jérôme Pouiller 981807444e soc: silabs: introduce SOC_GECKO_SDID
Silabs hardware layer uses Silicon Die ID (SDID) for conditional
code. This patch defines SDID directly from Kconfig so Silabs HAL does
not have define it.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2024-03-01 15:50:08 +01:00
Jérôme Pouiller 5d07e82485 soc: silabs: SOC_FAMILY_* replace SOC_GECKO_SERIES*
SOC_GECKO_SERIES* is now redundant with SOC_FAMILY_*.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2024-03-01 15:50:08 +01:00
Jérôme Pouiller 2fd081ac86 soc: silabs: align comments with soc tree
Cosmetics changes to reflect the tree organisation.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2024-03-01 15:50:08 +01:00
Jérôme Pouiller 66d425f571 soc: silabs: split in families
EXX32 does not really makes sense. Silabs tends to talk about "series
0", "series 1" and "series 2".

Note all Silabs chipsets (whatever their family) tend to share
components. So this PR introduces SOC_VENDOR_SILABS to match these
common parts.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2024-03-01 15:50:08 +01:00
Jamie McCrae 5bd38f47a9 arch: arch: kconfig: Fix wrong placement of endmenu
Fixes a bug whereby endmenu was placed before the end of the file
causes what should be ARC-only Kconfig choices to bleed into
every other architecture

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae 00c6ef25be tests/samples: Rename overlay files for renamed boards
These overlay files were not being used after board name changes
in hwmv2, rename them to have them used

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae 0c639b8378 boards: Fix bools and selections
Fixes issues with some outstanding bools being defined and wrong
usage of soc selection

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae c2ef907d1d drivers: flash: it8xxx2: Add missing Kconfigs
The original hwmv1 Kconfigs for this flash driver were in the
complete wrong place and should not have been merged, which then
caused confusion when porting to hwmv2, this adds in the missing
Kconfigs to where they should have been in the first place

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae 553de2ebc9 soc: ite: ec: it8xxx2: Fix SOC_SERIES being in wrong file
Fixes this line being in the wrong file

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae b8ec0080c2 boards: Documentation link fixes
Fixes missing or broken documentation links

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae eb7025e50f tests: Update board names for hwmv2
Updates names used in tests for hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae 10ef3d4bd2 boards: silab: Add documentation index file
Adds a file with the vendor name for documentation indexing

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae ba9fdaa1d6 boards: arm: efr32_radio: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae 86c8d4a0ca boards: arm: efm32pg_stk3402a: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae 575ac5cafb manifest: Update hal_silabs
Updates the repo to include hwmv2 changes

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae 87b2907304 boards: arm: efr32_thunderboard: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae 14b30055ab boards: arm: efr32mg_sltb004a: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae 0012bfc15d boards: arm: efr32xg24_dk2601b: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae f526225ead boards: arm: efm32wg_stk3800: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae 19e7df29df boards: arm: efm32pg_stk3401a: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:08 +01:00
Jamie McCrae 0bd7d963d6 boards: arm: efm32hg_slstk3400a: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Jamie McCrae 795a90f9bf boards: arm: efm32gg_stk3701a: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Jamie McCrae 43d5540be7 boards: arm: efm32gg_slwstk6121a: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Jamie McCrae 065148d856 boards: arm: efm32gg_sltb009a: Convert to v2
Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Jamie McCrae 1dc9a8aa17 soc: silabs_exx32: Port to HWMv2
Ports the SoC configuration to hardware model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Jamie McCrae 763571e878 tests: Expand names
Expands names to include identifiers

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Jamie McCrae dae301b8a3 boards: xen: xenvm: Expand name
Expands name to include identifier

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Jamie McCrae 19e60eef36 boards: qemu: qemu_cortex_a53: Expand names
Expands names to include the SoC

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Jamie McCrae a0a7c30f28 soc: intel: intel_adsp: Fix issues
Fixes issues with missing protection guards and selections in
wrong files, and one case of missing bools on 2 fields

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Torsten Rasmussen df9a4223fe scripts: ci: introduce soc name check in check_compliance
soc.yml files define SoC names which are used in board.yml.
All SoC names and directories are exported to the build system and
can be referenced using the SoC name as identifier.

Kconfig defines a CONFIG_SOC setting with the same name which can be
used in build system and is selected by the board.

Thus the CONFIG_SOC value can be used to lookup the details of the SoC.

This commit introduces a new compliance check which ensures the SoC name
and the CONFIG_SOC name value are in sync.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Torsten Rasmussen ed401abaff soc: emsdsp: align SoC name defined in soc.yml to Kconfig SOC setting
This commit aligns the SoC name for emsdp_em4 SoC defined in Kconfig.soc
to to name in soc.yml

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Filip Kokosinski fc78e5eaa4 MAINTAINERS: update RISC-V arch area paths
This commit updates the paths assigned to the RISC-V area of maintenance to
include targets based on the SiFive Freedom SoC family.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Filip Kokosinski 4e586958ff boards: convert QEMU RISC-V 64 bit board to Zephyr HWMv2
This commit converts the QEMU RISCV-V 64 bit board to Zephyr HWMvW. This
includes the following former targets:
* qemu_riscv64
* qemu_riscv64_smp

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Filip Kokosinski f4c31a2b86 boards: convert QEMU RV32E board to Zephyr HWMv2
This commit converts the QEMU RV32E board to Zephyr HWMvW. This includes
the following former target: qemu_riscv32e.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Filip Kokosinski 5b2ffc652b boards: convert QEMU RISC-V 32 bit board to Zephyr HWMv2
This commit converts the QEMU RISCV-V 32 bit board to Zephyr HWMvW. This
includes the following former targets:
* qemu_riscv32
* qemu_riscv32_smp
* qemu_riscv32_xip

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Filip Kokosinski 5db061a4c6 soc/riscv: convert the QEMU virt RISCV-32 SoC to HWMv2
This commit converts the virt SoC (generic virt machine) to the Zephyr
HWMv2.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Filip Kokosinski 6547845e9d boards: convert SparkFun RED-V Things Plus to Zephyr HWMv2
This commit converts the SparkFun RED-V Things Plus board
(`sparkfun_red_v_things_plus` target) to the Zephyr Hardware Model v2.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Filip Kokosinski 95a1f96399 boards: convert SiFive HiFive Unmatched to Zephyr HWMv2
This commit converts the SiFive HiFive Unmatched board (`hifive_unmatched`
target) to the Zephyr Hardware Model v2.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Filip Kokosinski e563eb0a62 soc/sifive/sifive_freedom: add SiFive Freedom FU740 SoC
This commit adds support for the SiFive Freedom U740 SoC for the Zephyr
Hardware Model v2.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Filip Kokosinski 8914bc58b6 boards: convert SiFive HiFive Unleashed to Zephyr HWMv2
This commit converts the SiFive HiFive Unleashed board (`hifive_unleashed`
target) to the Zephyr Hardware Model v2.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Filip Kokosinski 7e8de1e781 soc/sifive/sifive_freedom: add SiFive Freedom U540 SoC
This commit adds support for the SiFive Freedom U540 SoC for the Zephyr
Hardware Model v2.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Filip Kokosinski bfcc2ed18f boards: convert SiFive HiFive1 Rev. B to Zephyr HWMv2
This commit converts the SiFive HiFive1 Rev. B board (`hifive1_revb`
target) to the Zephyr Hardware Model v2.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Filip Kokosinski 330fc38f9f boards: convert SiFive HiFive1 to Zephyr HWMv2
This commit converts the SiFive HiFive1 board (`hifive1` target) to the
Zephyr Hardware Model v2.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Filip Kokosinski b9e06f4c38 soc/sifive/sifive_freedom: add SiFive Freedom E310 SoC
This commit adds support for the SiFive Freedom E310 SoC for the Zephyr
Hardware Model v2.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2024-03-01 15:50:07 +01:00
Jamie McCrae 4b90b30b9d scripts: west_commands: completion: Add hwmv2 complete to fish
Adds hwmv2 board completetion support to fish

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Jamie McCrae 0f6842e2fa scripts: west_commands: completion: Add hwmv2 complete to zsh
Adds hwmv2 board completetion support to zsh

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Jamie McCrae b2af1e1737 scripts: west: list_boards: Fix hwmv2 output
Fixes the output of list_boards to be in csv format rather than
python array format

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00
Jamie McCrae 686a4b78b8 scripts: west_commands: completion: Add hwmv2 complete to bash
Adds hwmv2 board completetion support to bash

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 15:50:07 +01:00