On Wed, 24 Jan 2018 01:44:54 +0100
Miquel Raynal <miquel.ray...@free-electrons.com> wrote:

> Let the Nintendo NES Classic use the Macronix NAND chip on it.
> 
> Signed-off-by: Miquel Raynal <miquel.ray...@free-electrons.com>
> ---
>  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@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";
> +     };
> +};

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to