[PATCH] ARM: zynq: Add Z-turn board V5

Michal Simek monstr at monstr.eu
Thu Sep 10 15:45:14 CEST 2020



On 07. 09. 20 18:11, agriveaux at deutnet.info wrote:
> From: Alexandre GRIVEAUX <agriveaux at deutnet.info>
> 
> Adding Z-turn board V5 to resolve the change between:
> 
> "Z-TURNBOARD_schematic.pdf" schematics state version 1 to 4 has Atheros AR8035
> "Z-Turn_Board_sch_V15_20160303.pdf" schematics state version 5 has Micrel KSZ9031
> 
> At this time the S25FL128SAGNFI003 doesn't work because of bug:
> 
> *** Warning - spi_flash_probe_bus_cs() failed, using default environment
> 
> Signed-off-by: Alexandre GRIVEAUX <agriveaux at deutnet.info>
> ---
>  arch/arm/dts/Makefile                         |   1 +
>  arch/arm/dts/zynq-zturn-v5.dts                | 121 ++++++++
>  .../xilinx/zynq/zynq-zturn-v5/ps7_init_gpl.c  | 273 ++++++++++++++++++
>  configs/xilinx_zynq_virt_defconfig            |   4 +-
>  4 files changed, 398 insertions(+), 1 deletion(-)
>  create mode 100644 arch/arm/dts/zynq-zturn-v5.dts
>  create mode 100644 board/xilinx/zynq/zynq-zturn-v5/ps7_init_gpl.c
> 
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index f8f529435b..0f8973b1c8 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -277,6 +277,7 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \
>  	zynq-zc770-xm013.dtb \
>  	zynq-zed.dtb \
>  	zynq-zturn.dtb \
> +	zynq-zturn-v5.dtb \
>  	zynq-zybo.dtb \
>  	zynq-zybo-z7.dtb
>  dtb-$(CONFIG_ARCH_ZYNQMP) += \
> diff --git a/arch/arm/dts/zynq-zturn-v5.dts b/arch/arm/dts/zynq-zturn-v5.dts
> new file mode 100644
> index 0000000000..eebeec800f
> --- /dev/null
> +++ b/arch/arm/dts/zynq-zturn-v5.dts
> @@ -0,0 +1,121 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + *  Copyright (C) 2020 Alexandre Griveaux <alex at deutnet.info>
> + *
> + *  Based on zynq-zturn.dts which is:
> + *  Copyright (C) 2015 Andrea Merello <adnrea.merello at gmail.com>
> + *  Copyright (C) 2017 Alexander Graf <agraf at suse.de>
> + *
> + */
> +
> +/dts-v1/;
> +/include/ "zynq-7000.dtsi"
> +
> +/ {
> +	model = "Zynq Z-Turn MYIR Board V5";
> +	compatible = "myir,zynq-zturn", "xlnx,zynq-7000";

I prefer to make this simpler because the most of that stuff is just c&p.

What about this?

#include "zynq-zturn.dts";

/ {
	model = "Zynq Z-Turn MYIR Board V5";
	compatible = "myir,zynq-zturn-v5", "myir,zynq-zturn", "xlnx,zynq-7000";
};

&ethernet_phy {
	reg = <3>;
};

Thanks,
Michal


More information about the U-Boot mailing list