[PATCH v2] arm: xilinx: Add missing dual parallel flash description

Michal Simek michal.simek at amd.com
Mon Nov 6 13:43:48 CET 2023



On 10/23/23 09:21, Michal Simek wrote:
> Describe flash memories based on the latest DT binding.
> 
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
> 
> Changes in v2:
> - Add missing description for zc706
> 
>   arch/arm/dts/zynq-zc706.dts             | 5 +++--
>   arch/arm/dts/zynq-zc770-xm013.dts       | 5 +++--
>   arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 4 +++-
>   arch/arm/dts/zynqmp-m-a2197-02-revA.dts | 4 +++-
>   arch/arm/dts/zynqmp-m-a2197-03-revA.dts | 4 +++-
>   5 files changed, 15 insertions(+), 7 deletions(-)
> 
> diff --git a/arch/arm/dts/zynq-zc706.dts b/arch/arm/dts/zynq-zc706.dts
> index 03eb016ed687..18963a395156 100644
> --- a/arch/arm/dts/zynq-zc706.dts
> +++ b/arch/arm/dts/zynq-zc706.dts
> @@ -309,10 +309,11 @@
>   &qspi {
>   	bootph-all;
>   	status = "okay";
> -	num-cs = <1>;
> +	num-cs = <2>;
>   	flash at 0 {
>   		compatible = "n25q128a11", "jedec,spi-nor";
> -		reg = <0x0>;
> +		reg = <0>, <1>;
> +		parallel-memories = /bits/ 64 <0x1000000 0x1000000>; /* 16MB */
>   		spi-tx-bus-width = <1>;
>   		spi-rx-bus-width = <4>;
>   		spi-max-frequency = <50000000>;
> diff --git a/arch/arm/dts/zynq-zc770-xm013.dts b/arch/arm/dts/zynq-zc770-xm013.dts
> index 21902fbb0cc1..582aa1f1b873 100644
> --- a/arch/arm/dts/zynq-zc770-xm013.dts
> +++ b/arch/arm/dts/zynq-zc770-xm013.dts
> @@ -61,10 +61,11 @@
>   
>   &qspi {
>   	status = "okay";
> -	num-cs = <1>;
> +	num-cs = <2>;
>   	flash at 0 {
>   		compatible = "n25q128a11", "jedec,spi-nor";
> -		reg = <0x0>;
> +		reg = <0>, <1>;
> +		parallel-memories = /bits/ 64 <0x1000000 0x1000000>; /* 16MB */
>   		spi-tx-bus-width = <1>;
>   		spi-rx-bus-width = <4>;
>   		spi-max-frequency = <50000000>;
> diff --git a/arch/arm/dts/zynqmp-m-a2197-01-revA.dts b/arch/arm/dts/zynqmp-m-a2197-01-revA.dts
> index 25ef646c8466..83b8a98d80ca 100644
> --- a/arch/arm/dts/zynqmp-m-a2197-01-revA.dts
> +++ b/arch/arm/dts/zynqmp-m-a2197-01-revA.dts
> @@ -71,11 +71,13 @@
>   
>   &qspi {
>   	status = "okay";
> +	num-cs = <2>;
>   	flash at 0 {
>   		compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
> +		reg = <0>, <1>;
> +		parallel-memories = /bits/ 64 <0x4000000 0x4000000>; /* 64MB */
>   		#address-cells = <1>;
>   		#size-cells = <1>;
> -		reg = <0x0>;
>   		spi-tx-bus-width = <4>;
>   		spi-rx-bus-width = <4>;
>   		spi-max-frequency = <108000000>;
> diff --git a/arch/arm/dts/zynqmp-m-a2197-02-revA.dts b/arch/arm/dts/zynqmp-m-a2197-02-revA.dts
> index ece9e6914541..dd37b726d3dc 100644
> --- a/arch/arm/dts/zynqmp-m-a2197-02-revA.dts
> +++ b/arch/arm/dts/zynqmp-m-a2197-02-revA.dts
> @@ -67,11 +67,13 @@
>   
>   &qspi {
>   	status = "okay";
> +	num-cs = <2>;
>   	flash at 0 {
>   		compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
> +		reg = <0>, <1>;
> +		parallel-memories = /bits/ 64 <0x4000000 0x4000000>; /* 64MB */
>   		#address-cells = <1>;
>   		#size-cells = <1>;
> -		reg = <0x0>;
>   		spi-tx-bus-width = <4>;
>   		spi-rx-bus-width = <4>;
>   		spi-max-frequency = <108000000>;
> diff --git a/arch/arm/dts/zynqmp-m-a2197-03-revA.dts b/arch/arm/dts/zynqmp-m-a2197-03-revA.dts
> index 7372968e5734..811cebafe9e6 100644
> --- a/arch/arm/dts/zynqmp-m-a2197-03-revA.dts
> +++ b/arch/arm/dts/zynqmp-m-a2197-03-revA.dts
> @@ -67,11 +67,13 @@
>   
>   &qspi {
>   	status = "okay";
> +	num-cs = <2>;
>   	flash at 0 {
>   		compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
> +		reg = <0>, <1>;
> +		parallel-memories = /bits/ 64 <0x4000000 0x4000000>; /* 64MB */
>   		#address-cells = <1>;
>   		#size-cells = <1>;
> -		reg = <0x0>;
>   		spi-tx-bus-width = <4>;
>   		spi-rx-bus-width = <4>;
>   		spi-max-frequency = <108000000>;

Applied.
M



More information about the U-Boot mailing list