ARM: dts: imx7: add ftm nodes for Flex Timers
authorThomas Perrot <thomas.perrot@bootlin.com>
Thu, 5 Aug 2021 15:06:33 +0000 (17:06 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 9 Aug 2021 08:11:13 +0000 (16:11 +0800)
The i.MX7 has two possible Flex Timers, disabled by default. Moreover, the
block is the same as LS1021a, then the drivers can be used as-is.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7s.dtsi

index a22d41e0cf314adf262c019898d0b7be6e3aff21..1843fc0538709d4660d86ad858d03ea42715682b 100644 (file)
                                status = "disabled";
                        };
 
+                       ftm1: pwm@30640000 {
+                               compatible = "fsl,vf610-ftm-pwm";
+                               reg = <0x30640000 0x10000>;
+                               #pwm-cells = <3>;
+                               interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
+                               clock-names = "ftm_sys", "ftm_ext",
+                               "ftm_fix", "ftm_cnt_clk_en";
+                               clocks = <&clks IMX7D_FLEXTIMER1_ROOT_CLK>,
+                                       <&clks IMX7D_FLEXTIMER1_ROOT_CLK>,
+                                       <&clks IMX7D_FLEXTIMER1_ROOT_CLK>,
+                                       <&clks IMX7D_FLEXTIMER1_ROOT_CLK>;
+                               status = "disabled";
+                       };
+
+                       ftm2: pwm@30650000 {
+                               compatible = "fsl,vf610-ftm-pwm";
+                               reg = <0x30650000 0x10000>;
+                               #pwm-cells = <3>;
+                               interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
+                               clock-names = "ftm_sys", "ftm_ext",
+                               "ftm_fix", "ftm_cnt_clk_en";
+                               clocks = <&clks IMX7D_FLEXTIMER2_ROOT_CLK>,
+                                       <&clks IMX7D_FLEXTIMER2_ROOT_CLK>,
+                                       <&clks IMX7D_FLEXTIMER2_ROOT_CLK>,
+                                       <&clks IMX7D_FLEXTIMER2_ROOT_CLK>;
+                               status = "disabled";
+                       };
+
                        pwm1: pwm@30660000 {
                                compatible = "fsl,imx7d-pwm", "fsl,imx27-pwm";
                                reg = <0x30660000 0x10000>;