Commit aeebe484 authored by Manuel Argüelles's avatar Manuel Argüelles Committed by Carles Cufi
Browse files

soc: arm: nxp_s32: s32k1: add FlexTimer support



Add support for FlexTimer (FTM) module on S32K1xx devices.

Signed-off-by: default avatarManuel Argüelles <manuel.arguelles@nxp.com>
parent 35e267d6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@
};

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

&nvic {
	arm,num-irq-priority-bits = <4>;
+80 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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.
+1 −1
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ manifest:
      groups:
        - hal
    - name: hal_nxp
      revision: ed3efff426ce56230be189d99ce985ceafece4a4
      revision: 4605f6715c6a55121da8fcbff060e01c4383c1e9
      path: modules/hal/nxp
      groups:
        - hal