[PATCH 19/20] ARM: dts: sunxi: add Allwinner T113-s SoC .dtsi

Sam Edwards cfsworks at gmail.com
Thu Aug 10 00:34:28 CEST 2023


On 7/21/23 07:46, Andre Przywara wrote:
> The Allwinner T113-s SoC is apparently using the same (or at least a very
> similar) die as the D1/D1s, but replaces the single RISC-V core with
> two Arm Cortex-A7 cores.
> Since the D1 core .dtsi already describes all common peripherals, we
> just need a DT describing the ARM specific peripherals: the CPU cores,
> the Generic Timer, the GIC and the PMU.
> We include the core .dtsi directly from the riscv DT directory.
> 
> The ARM core version of the DT specifies the CPUX watchdog as
> "reserved", which means it won't be recognised by U-Boot. Override this
> in our generic sunxi-u-boot.dtsi, to let U-Boot pick up this watchdog,
> so that the generic reset driver will work.
> 
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>
Reviewed-by: Sam Edwards <CFSworks at gmail.com>
Tested-by: Sam Edwards <CFSworks at gmail.com>

> diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dtsi
> index af419c7e590..a0c8abb7033 100644
> --- a/arch/arm/dts/sunxi-u-boot.dtsi
> +++ b/arch/arm/dts/sunxi-u-boot.dtsi
> @@ -23,6 +23,13 @@
>   	};
>   };
>   
> +/* Let U-Boot be the firmware layer that controls the watchdog. */
> +#ifdef CONFIG_MACH_SUN8I_R528
> +&wdt {
> +	status = "okay";
> +};
> +#endif
> +
>   &binman {
>   	u-boot-sunxi-with-spl {
>   		filename = "u-boot-sunxi-with-spl.bin";

Nice!!

Thanks,
Sam


More information about the U-Boot mailing list