[PATCH] arm: rockchip: add support for CM3 on IO board

Marco Felsch m.felsch at pengutronix.de
Mon Mar 20 01:19:50 PDT 2023


Hi Rouven,

On 23-03-18, Rouven Czerwinski wrote:
> From: Rouven Czerwinski <rouven at czerwinskis.de>
> 
> Working:
> - RKBIN DDR training (rk3566_ddr_1056MHz_v1.13.bin)
> - RKBIN TF-A (v1.34) from RKBIN

Can please add the board to Documentation/boards/rockchip.rst?

> - Environment storage
> - DHCP, ping and link detection
> 
> Signed-off-by: Rouven Czerwinski <rouven at czerwinskis.de>
> ---
>  arch/arm/boards/Makefile             |  1 +
>  arch/arm/boards/radxa-cm3/.gitignore |  1 +
>  arch/arm/boards/radxa-cm3/Makefile   |  3 ++
>  arch/arm/boards/radxa-cm3/board.c    | 56 ++++++++++++++++++++++++++++
>  arch/arm/boards/radxa-cm3/lowlevel.c | 50 +++++++++++++++++++++++++
>  arch/arm/dts/Makefile                |  1 +
>  arch/arm/dts/rk3566-cm3-io.dts       | 55 +++++++++++++++++++++++++++
>  arch/arm/mach-rockchip/Kconfig       |  6 +++
>  images/Makefile.rockchip             |  7 ++++
>  9 files changed, 180 insertions(+)
>  create mode 100644 arch/arm/boards/radxa-cm3/.gitignore
>  create mode 100644 arch/arm/boards/radxa-cm3/Makefile
>  create mode 100644 arch/arm/boards/radxa-cm3/board.c
>  create mode 100644 arch/arm/boards/radxa-cm3/lowlevel.c
>  create mode 100644 arch/arm/dts/rk3566-cm3-io.dts

...

> diff --git a/arch/arm/dts/rk3566-cm3-io.dts b/arch/arm/dts/rk3566-cm3-io.dts
> new file mode 100644
> index 0000000000..81f896b943
> --- /dev/null
> +++ b/arch/arm/dts/rk3566-cm3-io.dts
> @@ -0,0 +1,55 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +
> +/dts-v1/;
> +
> +#include <arm64/rockchip/rk3566-radxa-cm3-io.dts>
> +#include "rk356x.dtsi"
> +
> +/ {
> +	chosen: chosen {
> +		environment-sd {
> +			compatible = "barebox,environment";
> +			device-path = &environment_sd;
> +			status = "disabled";
> +		};
> +
> +		environment-emmc {
> +			compatible = "barebox,environment";
> +			device-path = &environment_emmc;
> +			status = "disabled";
> +		};
> +	};
> +
> +	memory at a00000 {
> +		device_type = "memory";
> +		reg = <0x0 0x00a00000 0x0 0x7f600000>;
> +	};

Do we need the memoty node here? I recently encountered issues with it
on a i.MX8MP.

Regards,
  Marco



More information about the barebox mailing list