* [PATCH] arm64: dts: imx8mq: Add pwm
@ 2019-01-14 16:30 Guido Günther
2019-01-14 16:45 ` Lucas Stach
0 siblings, 1 reply; 3+ messages in thread
From: Guido Günther @ 2019-01-14 16:30 UTC (permalink / raw)
To: Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
NXP Linux Team, Rob Herring, Mark Rutland, linux-arm-kernel,
devicetree
We can reuse the pwm from fsl,imx27-pwm as with other imx SOCs.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
This is against linux-next (next-20190114)
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 44 +++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
index 8e9d6d5ed7b2..53ed0bdfc06a 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
@@ -252,6 +252,50 @@
clocks = <&clk IMX8MQ_CLK_WDOG3_ROOT>;
status = "disabled";
};
+
+ 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@30400000 { /* AIPS2 */
--
2.20.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] arm64: dts: imx8mq: Add pwm
2019-01-14 16:30 [PATCH] arm64: dts: imx8mq: Add pwm Guido Günther
@ 2019-01-14 16:45 ` Lucas Stach
2019-01-14 17:02 ` Guido Günther
0 siblings, 1 reply; 3+ messages in thread
From: Lucas Stach @ 2019-01-14 16:45 UTC (permalink / raw)
To: Guido Günther, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Rob Herring, Mark Rutland, linux-arm-kernel, devicetree
Hi Guido,
Am Montag, den 14.01.2019, 17:30 +0100 schrieb Guido Günther:
> We can reuse the pwm from fsl,imx27-pwm as with other imx SOCs.
>
> > Signed-off-by: Guido Günther <agx@sigxcpu.org>
> ---
> This is against linux-next (next-20190114)
>
> arch/arm64/boot/dts/freescale/imx8mq.dtsi | 44 +++++++++++++++++++++++
> 1 file changed, 44 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> index 8e9d6d5ed7b2..53ed0bdfc06a 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> @@ -252,6 +252,50 @@
> > clocks = <&clk IMX8MQ_CLK_WDOG3_ROOT>;
> > status = "disabled";
> > };
> +
> > > + 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>;
Please align the second entry with the first one,as with all the other
nodes in this file.
> + 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";
> + };
All those addresses are within the AIPS2 bus range, so this patch adds
them to the wrong bus.
Regards,
Lucas
> };
>
> > bus@30400000 { /* AIPS2 */
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] arm64: dts: imx8mq: Add pwm
2019-01-14 16:45 ` Lucas Stach
@ 2019-01-14 17:02 ` Guido Günther
0 siblings, 0 replies; 3+ messages in thread
From: Guido Günther @ 2019-01-14 17:02 UTC (permalink / raw)
To: Lucas Stach
Cc: Mark Rutland, devicetree, Sascha Hauer, Rob Herring,
NXP Linux Team, Pengutronix Kernel Team, Fabio Estevam, Shawn Guo,
linux-arm-kernel
Hi,
On Mon, Jan 14, 2019 at 05:45:31PM +0100, Lucas Stach wrote:
> Hi Guido,
>
> Am Montag, den 14.01.2019, 17:30 +0100 schrieb Guido Günther:
> > We can reuse the pwm from fsl,imx27-pwm as with other imx SOCs.
> >
> > > Signed-off-by: Guido Günther <agx@sigxcpu.org>
> > ---
> > This is against linux-next (next-20190114)
> >
> > arch/arm64/boot/dts/freescale/imx8mq.dtsi | 44 +++++++++++++++++++++++
> > 1 file changed, 44 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> > index 8e9d6d5ed7b2..53ed0bdfc06a 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> > @@ -252,6 +252,50 @@
> > > clocks = <&clk IMX8MQ_CLK_WDOG3_ROOT>;
> > > status = "disabled";
> > > };
> > +
> > > > + 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>;
>
> Please align the second entry with the first one,as with all the other
> nodes in this file.
Emacs mode fighting with me. I'll send a v2 with that fixed and moved to
the AIPS2 bus.
Thanks,
-- Guido
>
> > + 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";
> > + };
>
> All those addresses are within the AIPS2 bus range, so this patch adds
> them to the wrong bus.
>
> Regards,
> Lucas
>
> > };
> >
> > > bus@30400000 { /* AIPS2 */
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-01-14 17:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-14 16:30 [PATCH] arm64: dts: imx8mq: Add pwm Guido Günther
2019-01-14 16:45 ` Lucas Stach
2019-01-14 17:02 ` Guido Günther
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox