From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregory CLEMENT To: Miquel Raynal Cc: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , Rob Herring , Mark Rutland , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Russell King , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Eric Miao , Catalin Marinas , Will Deacon , Ezequiel Garcia , Thomas Petazzoni , devicetree@vger.kernel.org, Antoine Tenart , Nadav Haklai , linux-mtd@lists.infradead. org, Neta Zur Hershkovits , Hanna Hawa , Ofer Heifetz , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 12/12] ARM64: dts: marvell: use reworked NAND controller driver on Armada 8K References: <20171207201814.30411-1-miquel.raynal@free-electrons.com> <20171207201814.30411-13-miquel.raynal@free-electrons.com> Date: Fri, 15 Dec 2017 11:29:49 +0100 In-Reply-To: <20171207201814.30411-13-miquel.raynal@free-electrons.com> (Miquel Raynal's message of "Thu, 7 Dec 2017 21:18:14 +0100") Message-ID: <87y3m4l1wi.fsf@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Miquel, =20 On jeu., d=C3=A9c. 07 2017, Miquel Raynal wrote: > Use the new bindings of the reworked Marvell NAND controller driver. > Also adapt the nand controller node organization to distinguish which > property is relevant for the controller, and which one is NAND chip > specific. Expose the partitions as a subnode of the NAND chip. > > Remove the 'marvell,nand-enable-arbiter' property, not needed anymore as > the driver activates the arbiter by default for all boards (either > needed or harmless). > > Signed-off-by: Miquel Raynal Applied on mvebu/dt64 Thanks, Gregory > --- > arch/arm64/boot/dts/marvell/armada-8040-db.dts | 46 +++++++++++++---= ------ > .../arm64/boot/dts/marvell/armada-cp110-slave.dtsi | 10 ++--- > 2 files changed, 32 insertions(+), 24 deletions(-) > > diff --git a/arch/arm64/boot/dts/marvell/armada-8040-db.dts b/arch/arm64/= boot/dts/marvell/armada-8040-db.dts > index b1f6cccc5081..c25ac3fa9aec 100644 > --- a/arch/arm64/boot/dts/marvell/armada-8040-db.dts > +++ b/arch/arm64/boot/dts/marvell/armada-8040-db.dts > @@ -272,27 +272,35 @@ > * Proper NAND usage will require DPR-76 to be in position 1-2, which di= sables > * MDIO signal of CP1. > */ > -&cps_nand { > - num-cs =3D <1>; > +&cps_nand_controller { > pinctrl-0 =3D <&nand_pins>, <&nand_rb>; > pinctrl-names =3D "default"; > - nand-ecc-strength =3D <4>; > - nand-ecc-step-size =3D <512>; > - marvell,nand-enable-arbiter; > - marvell,system-controller =3D <&cps_syscon0>; > - nand-on-flash-bbt; > - > - partition@0 { > - label =3D "U-Boot"; > - reg =3D <0 0x200000>; > - }; > - partition@200000 { > - label =3D "Linux"; > - reg =3D <0x200000 0xe00000>; > - }; > - partition@1000000 { > - label =3D "Filesystem"; > - reg =3D <0x1000000 0x3f000000>; > + > + nand@0 { > + reg =3D <0>; > + marvell,rb =3D <0>; > + nand-on-flash-bbt; > + nand-ecc-strength =3D <4>; > + nand-ecc-step-size =3D <512>; > + > + partitions { > + compatible =3D "fixed-partitions"; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + > + partition@0 { > + label =3D "U-Boot"; > + reg =3D <0 0x200000>; > + }; > + partition@200000 { > + label =3D "Linux"; > + reg =3D <0x200000 0xe00000>; > + }; > + partition@1000000 { > + label =3D "Filesystem"; > + reg =3D <0x1000000 0x3f000000>; > + }; > + }; > }; > }; >=20=20 > diff --git a/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi b/arch/a= rm64/boot/dts/marvell/armada-cp110-slave.dtsi > index cb1fb49ccf81..8610163bb1a4 100644 > --- a/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi > +++ b/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi > @@ -310,20 +310,20 @@ > status =3D "disabled"; > }; >=20=20 > - cps_nand: nand@720000 { > + cps_nand_controller: nand@720000 { > /* > * Due to the limiation of the pin available > * this controller is only usable on the CPM > * for A7K and on the CPS for A8K. > */ > - compatible =3D "marvell,armada370-nand", > - "marvell,armada-8k-nand"; > + compatible =3D "marvell,armada-8k-nand-controller", > + "marvell,armada370-nand-controller"; > reg =3D <0x720000 0x54>; > #address-cells =3D <1>; > - #size-cells =3D <1>; > + #size-cells =3D <0>; > interrupts =3D ; > clocks =3D <&cps_clk 1 2>; > - marvell,system-controller =3D <&cpm_syscon0>; > + marvell,system-controller =3D <&cps_syscon0>; > status =3D "disabled"; > }; >=20=20 > --=20 > 2.11.0 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --=20 Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com