Skip to content

Add the STM and the SWT nodes for the s32g2 and s32g3

Daniel Lezcano imx linux-arm-kernel linux-devicetree lkml 2 versions – Applied

Status from this message: Applied all, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 1 replyApplied
  2. v18 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Replace the 'description' word usage by 'node
- Reordered the nodes in DT regarding the address ranges
- Modified the change description to leave the ambiguity regarding the architected timers

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8arm64: dts: s32g2: Add the System Timer Module nodesarch/arm64/boot/dts/freescale/s32g2.dtsi+63 -00 replies
2/8arm64: dts: s32g274-rd2: Enable the STM timersarch/arm64/boot/dts/freescale/s32g274a-rdb2.dts+16 -00 replies
3/8arm64: dts: s32g3: Add the System Timer Module nodesarch/arm64/boot/dts/freescale/s32g3.dtsi+99 -00 replies
4/8arm64: dts: s32g399a-rdb3: Enable the STM timersarch/arm64/boot/dts/freescale/s32g399a-rdb3.dts+32 -00 replies
5/8arm64: dts: s32g2: Add the Software Timer Watchdog (SWT) nodesarch/arm64/boot/dts/freescale/s32g2.dtsi+56 -00 replies
6/8arm64: dts: s32g274-rd2: Enable the SWT watchdogarch/arm64/boot/dts/freescale/s32g274a-rdb2.dts+4 -00 replies
7/8arm64: dts: s32g3: Add the Software Timer Watchdog (SWT) nodesarch/arm64/boot/dts/freescale/s32g3.dtsi+96 -00 replies
8/8arm64: dts: s32g399a-rdb3: Enable the SWT watchdogarch/arm64/boot/dts/freescale/s32g399a-rdb3.dts+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] Add the STM and the SWT nodes for the s32g2 and s32g3

The NXP S32 SoC family includes timers and watchdogs that can be dedicated to the CPUs present in the system. The documentation refers to them as the System Timer Module (STM) and the Software Watchdog Timer (SWT). This design originates from the automotive domain, where the SoC can be partitioned, and a group of CPUs may run different operating systems or firmware.

On the S32G2, we found 8 timers and 7 watchdogs. On the S32G3, there are 12 timers and 12 watchdogs. Please note that the 8th timer (STM_07) is not described here, as it is coupled with a specific STM instance used for timestamping. This makes it somewhat special and requires custom handling in the driver. It will be added later.

All timers and watchdogs are disabled by default, and are selectively enabled depending on the platform configuration, which may include different combinations of Cortex-M7 and Cortex-A53 cores.

This patch series introduces support for the SoC and enables both the s32g274a-rdb2 and s32g399a-rdb3 platforms.

Testing was done only on the s32g274a-rdb2, as I do not have access to a s32g399a-rdb3 board.

Changelog:
v2:
- Replace the 'description' word usage by 'node
- Reordered the nodes in DT regarding the address ranges
- Modified the change description to leave the ambiguity regarding the architected timers

Daniel Lezcano (8):
arm64: dts: s32g2: Add the System Timer Module nodes
arm64: dts: s32g274-rd2: Enable the STM timers
arm64: dts: s32g3: Add the System Timer Module nodes
arm64: dts: s32g399a-rdb3: Enable the STM timers
arm64: dts: s32g2: Add the Software Timer Watchdog (SWT) nodes
arm64: dts: s32g274-rd2: Enable the SWT watchdog
arm64: dts: s32g3: Add the Software Timer Watchdog (SWT) nodes
arm64: dts: s32g399a-rdb3: Enable the SWT watchdog

 arch/arm64/boot/dts/freescale/s32g2.dtsi      | 119 +++++++++++
 .../boot/dts/freescale/s32g274a-rdb2.dts      |  20 ++
 arch/arm64/boot/dts/freescale/s32g3.dtsi      | 195 ++++++++++++++++++
 .../boot/dts/freescale/s32g399a-rdb3.dts      |  36 ++++
 4 files changed, 370 insertions(+)
Signature · 1 line
2.43.0