[PATCH 2/2] topic: Use distro_boot for topic-miami boards

Michal Simek michal.simek at amd.com
Wed Mar 12 09:43:44 CET 2025



On 3/11/25 08:01, Mike Looijmans wrote:
> Adjust configuration and devicetree so the topic-miami board actually
> boots.
> 
> Replace the custom scripting and just use distro_boot. Override the
> standard zynq routines.
> 
> The board attempts to boot from SD card first, and falls back to booting
> UBIFS from the QSPI NOR flash.
> 
> Signed-off-by: Mike Looijmans <mike.looijmans at topic.nl>
> ---
> 
>   arch/arm/dts/zynq-topic-miami.dts |  33 ++++-----
>   configs/topic_miami_defconfig     |  20 +++++-
>   include/configs/topic_miami.h     | 116 ++++++++++++++----------------
>   3 files changed, 88 insertions(+), 81 deletions(-)
> 
> diff --git a/arch/arm/dts/zynq-topic-miami.dts b/arch/arm/dts/zynq-topic-miami.dts
> index 8307a2ef9dd..29f0a4f8280 100644
> --- a/arch/arm/dts/zynq-topic-miami.dts
> +++ b/arch/arm/dts/zynq-topic-miami.dts
> @@ -11,6 +11,10 @@
>   	model = "Topic Miami Zynq Board";
>   	compatible = "topic,miami", "xlnx,zynq-7000";
>   
> +	config {
> +		u-boot,spl-payload-offset = <0x20000>;
> +	};
> +
>   	aliases {
>   		serial0 = &uart0;
>   		spi0 = &qspi;
> @@ -35,6 +39,7 @@
>   	status = "okay";
>   	num-cs = <1>;
>   	flash at 0 {
> +		bootph-all;
>   		compatible = "st,m25p80", "n25q256a", "jedec,spi-nor";
>   		m25p,fast-read;
>   		reg = <0x0>;
> @@ -44,24 +49,12 @@
>   		#address-cells = <1>;
>   		#size-cells = <1>;
>   		partition at 0 {
> -			label = "qspi-u-boot-spl";
> -			reg = <0x00000 0x10000>;
> -		};
> -		partition at 10000 {
> -			label = "qspi-u-boot-img";
> -			reg = <0x10000 0x60000>;
> +			label = "qspi-boot-bin";
> +			reg = <0x00000 0x100000>;
>   		};
> -		partition at 70000 {
> -			label = "qspi-device-tree";
> -			reg = <0x70000 0x10000>;
> -		};
> -		partition at 80000 {
> -			label = "qspi-linux";
> -			reg = <0x80000 0x400000>;
> -		};
> -		partition at 480000 {
> +		partition at 100000 {
>   			label = "qspi-rootfs";
> -			reg = <0x480000 0x1b80000>;
> +			reg = <0x100000 0>;
>   		};
>   	};
>   };
> @@ -74,6 +67,14 @@
>   &i2c1 {
>   	status = "okay";
>   	clock-frequency = <400000>;
> +	/* GPIO expander */
> +	gpioex: pca953x at 41 {

it should be just gpio@

M


More information about the U-Boot mailing list