From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Brezillon Date: Wed, 24 Jan 2018 09:18:23 +0100 Subject: [U-Boot] [PATCH 8/8] sunxi: dts: Enable NAND on NES classic In-Reply-To: <20180124004454.5759-9-miquel.raynal@free-electrons.com> References: <20180124004454.5759-1-miquel.raynal@free-electrons.com> <20180124004454.5759-9-miquel.raynal@free-electrons.com> Message-ID: <20180124091823.2af0e69b@bbrezillon> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 24 Jan 2018 01:44:54 +0100 Miquel Raynal wrote: > Let the Nintendo NES Classic use the Macronix NAND chip on it. > > Signed-off-by: Miquel Raynal > --- > arch/arm/dts/sun8i-r16-nintendo-nes-classic-edition.dts | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/arch/arm/dts/sun8i-r16-nintendo-nes-classic-edition.dts b/arch/arm/dts/sun8i-r16-nintendo-nes-classic-edition.dts > index dce688ec8e..b8535d3dac 100644 > --- a/arch/arm/dts/sun8i-r16-nintendo-nes-classic-edition.dts > +++ b/arch/arm/dts/sun8i-r16-nintendo-nes-classic-edition.dts > @@ -61,3 +61,17 @@ > pinctrl-0 = <&uart0_pins_a>; > status = "okay"; > }; > + > +&nfc { > + pinctrl-names = "default"; > + pinctrl-0 = <&nand_pins_a &nand_cs0_pins_a &nand_rb0_pins_a>; > + status = "okay"; > + > + nand at 0 { > + #address-cells = <2>; > + #size-cells = <2>; I'm pretty sure size and address cells can be set to 1 (the NAND is less 4GB). > + reg = <0>; > + allwinner,rb = <0>; > + nand-ecc-mode = "hw"; > + }; > +};