Skip to content

Commit

Permalink
soc: arm: nxp_s32: s32k1: add FlexTimer support
Browse files Browse the repository at this point in the history
Add support for FlexTimer (FTM) module on S32K1xx devices.

Signed-off-by: Manuel Argüelles <[email protected]>
  • Loading branch information
manuargue committed Dec 26, 2023
1 parent 929e546 commit 0a717e1
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dts/arm/nxp/nxp_s32k146.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
};

/delete-node/ &lpi2c1;
/delete-node/ &ftm6;
/delete-node/ &ftm7;

&nvic {
arm,num-irq-priority-bits = <4>;
Expand Down
80 changes: 80 additions & 0 deletions dts/arm/nxp/nxp_s32k1xx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,85 @@
nxp,kinetis-port = <&porte>;
status = "disabled";
};

ftm0: ftm@40038000 {
compatible = "nxp,kinetis-ftm";
reg = <0x40038000 0x1000>;
interrupts = <99 0>, <100 0>, <101 0>, <102 0>, <104 0>;
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
clocks = <&clock NXP_S32_RTC_CLK>;
prescaler = <1>;
status = "disabled";
};

ftm1: ftm@40039000 {
compatible = "nxp,kinetis-ftm";
reg = <0x40039000 0x1000>;
interrupts = <105 0>, <106 0>, <107 0>, <108 0>, <110 0>;
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
clocks = <&clock NXP_S32_RTC_CLK>;
prescaler = <1>;
status = "disabled";
};

ftm2: ftm@4003a000 {
compatible = "nxp,kinetis-ftm";
reg = <0x4003a000 0x1000>;
interrupts = <111 0>, <112 0>, <113 0>, <114 0>, <116 0>;
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
clocks = <&clock NXP_S32_RTC_CLK>;
prescaler = <1>;
status = "disabled";
};

ftm3: ftm@40026000 {
compatible = "nxp,kinetis-ftm";
reg = <0x40026000 0x1000>;
interrupts = <117 0>, <118 0>, <119 0>, <120 0>, <122 0>;
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
clocks = <&clock NXP_S32_RTC_CLK>;
prescaler = <1>;
status = "disabled";
};

ftm4: ftm@4006e000 {
compatible = "nxp,kinetis-ftm";
reg = <0x4006e000 0x1000>;
interrupts = <123 0>, <124 0>, <125 0>, <126 0>, <128 0>;
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
clocks = <&clock NXP_S32_RTC_CLK>;
prescaler = <1>;
status = "disabled";
};

ftm5: ftm@4006f000 {
compatible = "nxp,kinetis-ftm";
reg = <0x4006f000 0x1000>;
interrupts = <129 0>, <130 0>, <131 0>, <132 0>, <134 0>;
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
clocks = <&clock NXP_S32_RTC_CLK>;
prescaler = <1>;
status = "disabled";
};

ftm6: ftm@40070000 {
compatible = "nxp,kinetis-ftm";
reg = <0x40070000 0x1000>;
interrupts = <135 0>, <136 0>, <137 0>, <138 0>, <140 0>;
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
clocks = <&clock NXP_S32_RTC_CLK>;
prescaler = <1>;
status = "disabled";
};

ftm7: ftm@40071000 {
compatible = "nxp,kinetis-ftm";
reg = <0x40071000 0x1000>;
interrupts = <141 0>, <142 0>, <143 0>, <144 0>, <146 0>;
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
clocks = <&clock NXP_S32_RTC_CLK>;
prescaler = <1>;
status = "disabled";
};
};
};
1 change: 1 addition & 0 deletions soc/arm/nxp_s32/s32k1/Kconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ config SOC_SERIES_S32K1XX
select HAS_MCUX_LPUART
select HAS_MCUX_LPI2C
select HAS_MCUX_LPSPI
select HAS_MCUX_FTM
help
Enable support for NXP S32K1XX MCU series.
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ manifest:
groups:
- hal
- name: hal_nxp
revision: ed3efff426ce56230be189d99ce985ceafece4a4
revision: 4605f6715c6a55121da8fcbff060e01c4383c1e9
path: modules/hal/nxp
groups:
- hal
Expand Down

0 comments on commit 0a717e1

Please sign in to comment.