public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/1] arm64: dts: imx93: Add FlexSPI support
@ 2023-02-27 10:43 Alexander Stein
  2023-02-27 10:57 ` Marco Felsch
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Stein @ 2023-02-27 10:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Shawn Guo, Sascha Hauer,
	Fabio Estevam
  Cc: Alexander Stein, Pengutronix Kernel Team, NXP Linux Team,
	devicetree, linux-arm-kernel

Add FlexSPI node for i.MX93.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
This is mainly taken from the downstream kernel with the clock order
fixed and 'nxp,imx93-fspi' compatible removed.
I do not know if it makes sense to add an imx93 specific compatible or
not. imx8mn uses imx8mm only, but imx8mp has it's own. But the latter
uses the same device data in the driver.

 arch/arm64/boot/dts/freescale/imx93.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
index 3c3d3d570d8c..1d71ca8d1f5a 100644
--- a/arch/arm64/boot/dts/freescale/imx93.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
@@ -458,6 +458,21 @@ flexcan2: can@425b0000 {
 				status = "disabled";
 			};
 
+			flexspi1: spi@425e0000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				compatible = "nxp,imx8mm-fspi";
+				reg = <0x425e0000 0x10000>, <0x28000000 0x10000000>;
+				reg-names = "fspi_base", "fspi_mmap";
+				interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&clk IMX93_CLK_FLEXSPI1_GATE>,
+					 <&clk IMX93_CLK_FLEXSPI1_GATE>;
+				clock-names = "fspi_en", "fspi";
+				assigned-clocks = <&clk IMX93_CLK_FLEXSPI1>;
+				assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1>;
+				status = "disabled";
+			};
+
 			lpuart7: serial@42690000 {
 				compatible = "fsl,imx93-lpuart", "fsl,imx7ulp-lpuart";
 				reg = <0x42690000 0x1000>;
-- 
2.34.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 1/1] arm64: dts: imx93: Add FlexSPI support
  2023-02-27 10:43 [PATCH 1/1] arm64: dts: imx93: Add FlexSPI support Alexander Stein
@ 2023-02-27 10:57 ` Marco Felsch
  2023-02-27 11:34   ` Alexander Stein
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Felsch @ 2023-02-27 10:57 UTC (permalink / raw)
  To: Alexander Stein
  Cc: Rob Herring, Krzysztof Kozlowski, Shawn Guo, Sascha Hauer,
	Fabio Estevam, devicetree, NXP Linux Team,
	Pengutronix Kernel Team, linux-arm-kernel

Hi Alexander,

On 23-02-27, Alexander Stein wrote:
> Add FlexSPI node for i.MX93.
> 
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> This is mainly taken from the downstream kernel with the clock order
> fixed and 'nxp,imx93-fspi' compatible removed.
> I do not know if it makes sense to add an imx93 specific compatible or
> not. imx8mn uses imx8mm only, but imx8mp has it's own. But the latter
> uses the same device data in the driver.
> 
>  arch/arm64/boot/dts/freescale/imx93.dtsi | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
> index 3c3d3d570d8c..1d71ca8d1f5a 100644
> --- a/arch/arm64/boot/dts/freescale/imx93.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
> @@ -458,6 +458,21 @@ flexcan2: can@425b0000 {
>  				status = "disabled";
>  			};
>  
> +			flexspi1: spi@425e0000 {
> +				#address-cells = <1>;
> +				#size-cells = <0>;
> +				compatible = "nxp,imx8mm-fspi";
> +				reg = <0x425e0000 0x10000>, <0x28000000 0x10000000>;

The compatible should always be the first entry, followed by reg.

Regards,
  Marco

> +				reg-names = "fspi_base", "fspi_mmap";
> +				interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
> +				clocks = <&clk IMX93_CLK_FLEXSPI1_GATE>,
> +					 <&clk IMX93_CLK_FLEXSPI1_GATE>;
> +				clock-names = "fspi_en", "fspi";
> +				assigned-clocks = <&clk IMX93_CLK_FLEXSPI1>;
> +				assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1>;
> +				status = "disabled";
> +			};
> +
>  			lpuart7: serial@42690000 {
>  				compatible = "fsl,imx93-lpuart", "fsl,imx7ulp-lpuart";
>  				reg = <0x42690000 0x1000>;
> -- 
> 2.34.1
> 
> 
> 

_______________________________________________
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 1/1] arm64: dts: imx93: Add FlexSPI support
  2023-02-27 10:57 ` Marco Felsch
@ 2023-02-27 11:34   ` Alexander Stein
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Stein @ 2023-02-27 11:34 UTC (permalink / raw)
  To: Marco Felsch
  Cc: Rob Herring, Krzysztof Kozlowski, Shawn Guo, Sascha Hauer,
	Fabio Estevam, devicetree, NXP Linux Team,
	Pengutronix Kernel Team, linux-arm-kernel

Hi Marco,

Am Montag, 27. Februar 2023, 11:57:10 CET schrieb Marco Felsch:
> Hi Alexander,
> 
> On 23-02-27, Alexander Stein wrote:
> > Add FlexSPI node for i.MX93.
> > 
> > Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> > ---
> > This is mainly taken from the downstream kernel with the clock order
> > fixed and 'nxp,imx93-fspi' compatible removed.
> > I do not know if it makes sense to add an imx93 specific compatible or
> > not. imx8mn uses imx8mm only, but imx8mp has it's own. But the latter
> > uses the same device data in the driver.
> > 
> >  arch/arm64/boot/dts/freescale/imx93.dtsi | 15 +++++++++++++++
> >  1 file changed, 15 insertions(+)
> > 
> > diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi
> > b/arch/arm64/boot/dts/freescale/imx93.dtsi index
> > 3c3d3d570d8c..1d71ca8d1f5a 100644
> > --- a/arch/arm64/boot/dts/freescale/imx93.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
> > @@ -458,6 +458,21 @@ flexcan2: can@425b0000 {
> > 
> >  				status = "disabled";
> >  			
> >  			};
> > 
> > +			flexspi1: spi@425e0000 {
> > +				#address-cells = <1>;
> > +				#size-cells = <0>;
> > +				compatible = "nxp,imx8mm-fspi";
> > +				reg = <0x425e0000 0x10000>, 
<0x28000000 0x10000000>;
> 
> The compatible should always be the first entry, followed by reg.

Thanks for the feedback. I was wondering about this, but there is no 
consistency within this file :(

Best regards,
Alexander

> Regards,
>   Marco
> 
> > +				reg-names = "fspi_base", "fspi_mmap";
> > +				interrupts = <GIC_SPI 55 
IRQ_TYPE_LEVEL_HIGH>;
> > +				clocks = <&clk 
IMX93_CLK_FLEXSPI1_GATE>,
> > +					 <&clk 
IMX93_CLK_FLEXSPI1_GATE>;
> > +				clock-names = "fspi_en", "fspi";
> > +				assigned-clocks = <&clk 
IMX93_CLK_FLEXSPI1>;
> > +				assigned-clock-parents = <&clk 
IMX93_CLK_SYS_PLL_PFD1>;
> > +				status = "disabled";
> > +			};
> > +
> > 
> >  			lpuart7: serial@42690000 {
> >  			
> >  				compatible = "fsl,imx93-lpuart", 
"fsl,imx7ulp-lpuart";
> >  				reg = <0x42690000 0x1000>;


-- 
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/



_______________________________________________
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:[~2023-02-27 11:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-27 10:43 [PATCH 1/1] arm64: dts: imx93: Add FlexSPI support Alexander Stein
2023-02-27 10:57 ` Marco Felsch
2023-02-27 11:34   ` Alexander Stein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox