Commit 40af5bf1 authored by Emilio Benavente's avatar Emilio Benavente Committed by Fabio Baltieri
Browse files

dts: arm: nxp: lpc: Added PWM to the peripheral node



The LPC55s3x SOC comes with 2 FlexPWM peripherals each with 4 Sub-Modules.
Each Sub-Modules has 2 channels A && B.

Signed-off-by: default avatarEmilio Benavente <emilio.benavente@nxp.com>
parent f1a8d0bc
Loading
Loading
Loading
Loading
+103 −0
Original line number Diff line number Diff line
@@ -244,6 +244,109 @@
		status = "disabled";
	};

	flexpwm0: flexpwm@400C3000 {
		compatible = "nxp,flexpwm";
		reg = <0x400C3000 0x1000>;
		interrupt-names = "INPUT-CAPTURE", "FAULT", "RELOAD-ERROR";
		interrupts = <80 0>, <81 0>, <82 0>;
		flexpwm0_pwm0: pwm0 {
			compatible = "nxp,imx-pwm";
			index = <0>;
			interrupt-names = "COMPARE-SUB0", "RELOAD-SUB0";
			interrupts = <83 0>, <84 0>;
			#pwm-cells = <2>;
			clocks = <&syscon MCUX_BUS_CLK 0 0>;
			status = "disabled";
			run-in-wait;
		};

		flexpwm0_pwm1: pwm1 {
			compatible = "nxp,imx-pwm";
			index = <1>;
			interrupt-names = "COMPARE-SUB1", "RELOAD-SUB1";
			interrupts = <85 0>, <86 0>;
			#pwm-cells = <2>;
			clocks = <&syscon MCUX_BUS_CLK 0 0>;
			status = "disabled";
			run-in-wait;
		};

		flexpwm0_pwm2: pwm2 {
			compatible = "nxp,imx-pwm";
			index = <2>;
			interrupt-names = "COMPARE-SUB2", "RELOAD-SUB2";
			interrupts = <87 0>, <88 0>;
			#pwm-cells = <2>;
			clocks = <&syscon MCUX_BUS_CLK 0 0>;
			status = "disabled";
			run-in-wait;
		};

		flexpwm0_pwm3: pwm3 {
			compatible = "nxp,imx-pwm";
			index = <3>;
			interrupt-names = "COMPARE-SUB3", "RELOAD-SUB3";
			interrupts = <89 0>, <90 0>;
			#pwm-cells = <2>;
			clocks = <&syscon MCUX_BUS_CLK 0 0>;
			status = "disabled";
			run-in-wait;
		};
	};


	flexpwm1: flexpwm@400C5000 {
		compatible = "nxp,flexpwm";
		reg = <0x400C5000 0x1000>;
		interrupt-names = "INPUT-CAPTURE", "FAULT", "RELOAD-ERROR";
		interrupts = <91 0>, <92 0>, <93 0>;
		flexpwm1_pwm0: pwm0 {
			compatible = "nxp,imx-pwm";
			index = <0>;
			interrupt-names = "COMPARE-SUB0", "RELOAD-SUB0";
			interrupts = <94 0>, <95 0>;
			#pwm-cells = <2>;
			clocks = <&syscon MCUX_BUS_CLK 0 0>;
			status = "disabled";
			run-in-wait;
		};

		flexpwm1_pwm1: pwm1 {
			compatible = "nxp,imx-pwm";
			index = <1>;
			interrupt-names = "COMPARE-SUB1", "RELOAD-SUB1";
			interrupts = <96 0>, <97 0>;
			#pwm-cells = <2>;
			clocks = <&syscon MCUX_BUS_CLK 0 0>;
			status = "disabled";
			run-in-wait;
		};

		flexpwm1_pwm2: pwm2 {
			compatible = "nxp,imx-pwm";
			index = <2>;
			interrupt-names = "COMPARE-SUB2", "RELOAD-SUB2";
			interrupts = <98 0>, <99 0>;
			#pwm-cells = <2>;
			clocks = <&syscon MCUX_BUS_CLK 0 0>;
			status = "disabled";
			run-in-wait;
		};

		flexpwm1_pwm3: pwm3 {
			compatible = "nxp,imx-pwm";
			index = <3>;
			interrupt-names = "COMPARE-SUB3", "RELOAD-SUB3";
			interrupts = <100 0>, <101 0>;
			#pwm-cells = <2>;
			clocks = <&syscon MCUX_BUS_CLK 0 0>;
			status = "disabled";
			run-in-wait;
		};
	};



};

&nvic {