[PATCH] ARM: dts: at91: at91sam9263: fix NAND chip selects

Alexandre Belloni alexandre.belloni at bootlin.com
Tue Apr 8 07:36:10 PDT 2025


On 02/04/2025 23:04:46+0200, Wolfram Sang wrote:
> NAND did not work on my USB-A9263. I discovered that the offending
> commit converted the PIO bank for chip selects wrongly, so all A9263
> boards need to be fixed.
> 
> Fixes: 1004a2977bdc ("ARM: dts: at91: Switch to the new NAND bindings")
> Signed-off-by: Wolfram Sang <wsa+renesas at sang-engineering.com>

Reviewed-by: Alexandre Belloni <alexandre.belloni at bootlin.com>

> ---
>  arch/arm/boot/dts/microchip/at91sam9263ek.dts | 2 +-
>  arch/arm/boot/dts/microchip/tny_a9263.dts     | 2 +-
>  arch/arm/boot/dts/microchip/usb_a9263.dts     | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/microchip/at91sam9263ek.dts b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
> index 471ea25296aa..93c5268a0845 100644
> --- a/arch/arm/boot/dts/microchip/at91sam9263ek.dts
> +++ b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
> @@ -152,7 +152,7 @@ nand_controller: nand-controller {
>  				nand at 3 {
>  					reg = <0x3 0x0 0x800000>;
>  					rb-gpios = <&pioA 22 GPIO_ACTIVE_HIGH>;
> -					cs-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
> +					cs-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
>  					nand-bus-width = <8>;
>  					nand-ecc-mode = "soft";
>  					nand-on-flash-bbt;
> diff --git a/arch/arm/boot/dts/microchip/tny_a9263.dts b/arch/arm/boot/dts/microchip/tny_a9263.dts
> index 3dd48b3e06da..fd8244b56e05 100644
> --- a/arch/arm/boot/dts/microchip/tny_a9263.dts
> +++ b/arch/arm/boot/dts/microchip/tny_a9263.dts
> @@ -64,7 +64,7 @@ nand_controller: nand-controller {
>  				nand at 3 {
>  					reg = <0x3 0x0 0x800000>;
>  					rb-gpios = <&pioA 22 GPIO_ACTIVE_HIGH>;
> -					cs-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
> +					cs-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
>  					nand-bus-width = <8>;
>  					nand-ecc-mode = "soft";
>  					nand-on-flash-bbt;
> diff --git a/arch/arm/boot/dts/microchip/usb_a9263.dts b/arch/arm/boot/dts/microchip/usb_a9263.dts
> index 60d7936dc562..ebaf198e1bc4 100644
> --- a/arch/arm/boot/dts/microchip/usb_a9263.dts
> +++ b/arch/arm/boot/dts/microchip/usb_a9263.dts
> @@ -84,7 +84,7 @@ nand_controller: nand-controller {
>  				nand at 3 {
>  					reg = <0x3 0x0 0x800000>;
>  					rb-gpios = <&pioA 22 GPIO_ACTIVE_HIGH>;
> -					cs-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
> +					cs-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
>  					nand-bus-width = <8>;
>  					nand-ecc-mode = "soft";
>  					nand-on-flash-bbt;
> -- 
> 2.47.2
> 

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the linux-arm-kernel mailing list