diff mbox series

[2/4] riscv: dts: Add QSPI NAND device node

Message ID 20221019145322.2274420-3-padmarao.begari@microchip.com
State Superseded
Delegated to: Andes
Headers show
Series Update Microchip PolarFire SoC | expand

Commit Message

Padmarao Begari Oct. 19, 2022, 2:53 p.m. UTC
Add QSPI NAND device node to the Microchip PolarFire SoC
Icicle kit device tree

Signed-off-by: Padmarao Begari <padmarao.begari@microchip.com>
---
 arch/riscv/dts/microchip-mpfs-icicle-kit.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

Comments

Tudor Ambarus Oct. 19, 2022, 3:28 p.m. UTC | #1
On 10/19/22 17:53, Padmarao Begari wrote:
> +       flash0: spi-nand@0 {

the node should have generic name according to the dt specification,
so please s/spi-nand/flash.
Conor Dooley Oct. 19, 2022, 3:59 p.m. UTC | #2
On Wed, Oct 19, 2022 at 08:23:20PM +0530, Padmarao Begari wrote:

> riscv: dts: Add QSPI NAND device node

I didn't notice this on 1/3, but I think we need to mention which board
that this is being added for in the shortlog.
Thanks,
Conor.

> Add QSPI NAND device node to the Microchip PolarFire SoC
> Icicle kit device tree
> 
> Signed-off-by: Padmarao Begari <padmarao.begari@microchip.com>
> ---
>  arch/riscv/dts/microchip-mpfs-icicle-kit.dts | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/arch/riscv/dts/microchip-mpfs-icicle-kit.dts b/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
> index 876c475069..679221e13f 100644
> --- a/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
> +++ b/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
> @@ -18,6 +18,7 @@
>  	aliases {
>  		serial1 = &uart1;
>  		ethernet0 = &mac1;
> +		spi0 = &qspi;
>  	};
>  
>  	chosen {
> @@ -113,3 +114,17 @@
>  		ti,fifo-depth = <0x1>;
>  	};
>  };
> +
> +&qspi {
> +	status = "okay";
> +	num-cs = <1>;
> +	flash0: spi-nand@0 {
> +		compatible = "spi-nand";
> +		reg = <0x0>;
> +		spi-tx-bus-width = <4>;
> +		spi-rx-bus-width = <4>;
> +		spi-max-frequency = <20000000>;
> +		spi-cpol;
> +		spi-cpha;
> +	};
> +};
> -- 
> 2.25.1
>
Padmarao Begari Oct. 20, 2022, 5:22 a.m. UTC | #3
Hi Tudor,

> On Wed, 2022-10-19 at 15:28 +0000, Tudor Ambarus - M18064 wrote:
> On 10/19/22 17:53, Padmarao Begari wrote:
> > +       flash0: spi-nand@0 {
> 
> the node should have generic name according to the dt specification,
> so please s/spi-nand/flash.
> 

Ok, will use "flash"

Regards
Padmarao
> -- 
> Cheers,
> ta
>
Padmarao Begari Oct. 20, 2022, 5:24 a.m. UTC | #4
Hi Conor,

> On Wed, 2022-10-19 at 16:59 +0100, Conor Dooley wrote:
> 
> On Wed, Oct 19, 2022 at 08:23:20PM +0530, Padmarao Begari wrote:
> 
> > riscv: dts: Add QSPI NAND device node
> 
> I didn't notice this on 1/3, but I think we need to mention which
> board
> that this is being added for in the shortlog.

Ok, will board details.

Regards
Padmarao
> Thanks,
> Conor.
> 
> > Add QSPI NAND device node to the Microchip PolarFire SoC
> > Icicle kit device tree
> > 
> > Signed-off-by: Padmarao Begari <padmarao.begari@microchip.com>
> > ---
> >  arch/riscv/dts/microchip-mpfs-icicle-kit.dts | 15 +++++++++++++++
> >  1 file changed, 15 insertions(+)
> > 
> > diff --git a/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
> > b/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
> > index 876c475069..679221e13f 100644
> > --- a/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
> > +++ b/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
> > @@ -18,6 +18,7 @@
> >       aliases {
> >               serial1 = &uart1;
> >               ethernet0 = &mac1;
> > +             spi0 = &qspi;
> >       };
> > 
> >       chosen {
> > @@ -113,3 +114,17 @@
> >               ti,fifo-depth = <0x1>;
> >       };
> >  };
> > +
> > +&qspi {
> > +     status = "okay";
> > +     num-cs = <1>;
> > +     flash0: spi-nand@0 {
> > +             compatible = "spi-nand";
> > +             reg = <0x0>;
> > +             spi-tx-bus-width = <4>;
> > +             spi-rx-bus-width = <4>;
> > +             spi-max-frequency = <20000000>;
> > +             spi-cpol;
> > +             spi-cpha;
> > +     };
> > +};
> > --
> > 2.25.1
> >
diff mbox series

Patch

diff --git a/arch/riscv/dts/microchip-mpfs-icicle-kit.dts b/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
index 876c475069..679221e13f 100644
--- a/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
+++ b/arch/riscv/dts/microchip-mpfs-icicle-kit.dts
@@ -18,6 +18,7 @@ 
 	aliases {
 		serial1 = &uart1;
 		ethernet0 = &mac1;
+		spi0 = &qspi;
 	};
 
 	chosen {
@@ -113,3 +114,17 @@ 
 		ti,fifo-depth = <0x1>;
 	};
 };
+
+&qspi {
+	status = "okay";
+	num-cs = <1>;
+	flash0: spi-nand@0 {
+		compatible = "spi-nand";
+		reg = <0x0>;
+		spi-tx-bus-width = <4>;
+		spi-rx-bus-width = <4>;
+		spi-max-frequency = <20000000>;
+		spi-cpol;
+		spi-cpha;
+	};
+};