]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: imx8mq: Add pwm device nodes
authorGuido Günther <agx@sigxcpu.org>
Mon, 14 Jan 2019 17:03:16 +0000 (18:03 +0100)
committerShawn Guo <shawnguo@kernel.org>
Wed, 16 Jan 2019 02:23:25 +0000 (10:23 +0800)
We can reuse the pwm from fsl,imx27-pwm as with other imx SOCs.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq.dtsi

index a55b9329376bb4577555150b07d1b3ae5a7daeb2..0225eae2216e1c0db78f0ef797f095eda59625ab 100644 (file)
@@ -259,6 +259,50 @@ bus@30400000 { /* AIPS2 */
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0x30400000 0x30400000 0x400000>;
+
+                       pwm1: pwm@30660000 {
+                               compatible = "fsl,imx8mq-pwm", "fsl,imx27-pwm";
+                               reg = <0x30660000 0x10000>;
+                               interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&clk IMX8MQ_CLK_PWM1_ROOT>,
+                                        <&clk IMX8MQ_CLK_PWM1_ROOT>;
+                               clock-names = "ipg", "per";
+                               #pwm-cells = <2>;
+                               status = "disabled";
+                       };
+
+                       pwm2: pwm@30670000 {
+                               compatible = "fsl,imx8mq-pwm", "fsl,imx27-pwm";
+                               reg = <0x30670000 0x10000>;
+                               interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&clk IMX8MQ_CLK_PWM2_ROOT>,
+                                        <&clk IMX8MQ_CLK_PWM2_ROOT>;
+                               clock-names = "ipg", "per";
+                               #pwm-cells = <2>;
+                               status = "disabled";
+                       };
+
+                       pwm3: pwm@30680000 {
+                               compatible = "fsl,imx8mq-pwm", "fsl,imx27-pwm";
+                               reg = <0x30680000 0x10000>;
+                               interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&clk IMX8MQ_CLK_PWM3_ROOT>,
+                                        <&clk IMX8MQ_CLK_PWM3_ROOT>;
+                               clock-names = "ipg", "per";
+                               #pwm-cells = <2>;
+                               status = "disabled";
+                       };
+
+                       pwm4: pwm@30690000 {
+                               compatible = "fsl,imx8mq-pwm", "fsl,imx27-pwm";
+                               reg = <0x30690000 0x10000>;
+                               interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&clk IMX8MQ_CLK_PWM4_ROOT>,
+                                        <&clk IMX8MQ_CLK_PWM4_ROOT>;
+                               clock-names = "ipg", "per";
+                               #pwm-cells = <2>;
+                               status = "disabled";
+                       };
                };
 
                bus@30800000 { /* AIPS3 */