Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9C204C77B75 for ; Sat, 6 May 2023 09:47:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 09A4285EC9; Sat, 6 May 2023 11:47:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 252B985EDD; Sat, 6 May 2023 11:47:55 +0200 (CEST) Received: from mail-m11879.qiye.163.com (mail-m11879.qiye.163.com [115.236.118.79]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 59EB685EAD for ; Sat, 6 May 2023 11:47:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [172.16.12.93] (unknown [58.22.7.114]) by mail-m11879.qiye.163.com (Hmail) with ESMTPA id 67D2968051F; Sat, 6 May 2023 17:47:40 +0800 (CST) Message-ID: <5543101e-975e-bfa8-d2af-1179a519dc0c@rock-chips.com> Date: Sat, 6 May 2023 17:47:40 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 03/14] rockchip: rk3566-radxa-cm3-io: Update defconfig Content-Language: en-US To: Jonas Karlman , Simon Glass , Philipp Tomsich , Jagan Teki Cc: u-boot@lists.denx.de References: <20230422012309.402799-1-jonas@kwiboo.se> <20230422012309.402799-4-jonas@kwiboo.se> From: Kever Yang In-Reply-To: <20230422012309.402799-4-jonas@kwiboo.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZQxlLSlZDGktMGExMQxoZGB5VEwETFh oSFyQUDg9ZV1kYEgtZQVlOQ1VJSVVMVUpKT1lXWRYaDxIVHRRZQVlPS0hVSk5MSUpJVUpLS1VKQl kG X-HM-Tid: 0a87f075bd032eb5kusn67d2968051f X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NQw6LSo4Qz0PATIwAikeLUwz CDZPCjhVSlVKTUNISE1NT01KSk9OVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlOQ1VJSVVMVUpKT1lXWQgBWUFOSkhPNwY+ X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 2023/4/22 09:23, Jonas Karlman wrote: > Update defconfig for rk3566-radxa-cm3-io with new defaults. Also add > missing supported mmc modes to sdhci node. > > Remove the SPL_ROCKCHIP_BACK_TO_BROM=y option, SPL is expected to load > next stage from a FIT image and then jump to next stage not back to > BootRom. > > Add CONFIG_SPL_FIT_SIGNATURE=y to let SPL verify an auto generated hash > of FIT images. This help indicate if there is an issue loading any of > the images to DRAM or SRAM. > > Extend SPL_MAX_SIZE to 0x40000, SPL is loaded to 0x0 and TF-A is loaded > to 0x40000, use the space in between as SPL_MAX_SIZE. > > Add config option to include useful gpio cmd. > > Remove the CONFIG_NET_RANDOM_ETHADDR=y option, ethaddr and eth1addr is > set based on cpuid read from OTP. > > Filter out assigned-clock props with CONFIG_OF_SPL_REMOVE_PROPS, > U-Boot proper will read and configure assigned-clock props. > > Add CONFIG_SYS_NS16550_MEM32=y to use 32bit access of serial register. > > Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever > --- > arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi | 5 +++++ > configs/radxa-cm3-io-rk3566_defconfig | 9 +++++---- > 2 files changed, 10 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi b/arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi > index d183e935754d..a8c31fecafd8 100644 > --- a/arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi > +++ b/arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi > @@ -11,6 +11,11 @@ > }; > }; > > +&sdhci { > + cap-mmc-highspeed; > + mmc-ddr-1_8v; > +}; > + > &uart2 { > clock-frequency = <24000000>; > bootph-all; > diff --git a/configs/radxa-cm3-io-rk3566_defconfig b/configs/radxa-cm3-io-rk3566_defconfig > index 1df9cab79d51..dfaacbc8839e 100644 > --- a/configs/radxa-cm3-io-rk3566_defconfig > +++ b/configs/radxa-cm3-io-rk3566_defconfig > @@ -10,9 +10,7 @@ CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y > CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xc00000 > CONFIG_DEFAULT_DEVICE_TREE="rk3566-radxa-cm3-io" > CONFIG_ROCKCHIP_RK3568=y > -CONFIG_SPL_ROCKCHIP_BACK_TO_BROM=y > CONFIG_SPL_ROCKCHIP_COMMON_BOARD=y > -CONFIG_SPL_MMC=y > CONFIG_SPL_SERIAL=y > CONFIG_SPL_STACK_R_ADDR=0x600000 > CONFIG_TARGET_EVB_RK3568=y > @@ -23,11 +21,12 @@ CONFIG_SYS_LOAD_ADDR=0xc00800 > CONFIG_DEBUG_UART=y > CONFIG_FIT=y > CONFIG_FIT_VERBOSE=y > +CONFIG_SPL_FIT_SIGNATURE=y > CONFIG_SPL_LOAD_FIT=y > CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-radxa-cm3-io.dtb" > # CONFIG_DISPLAY_CPUINFO is not set > CONFIG_DISPLAY_BOARDINFO_LATE=y > -CONFIG_SPL_MAX_SIZE=0x20000 > +CONFIG_SPL_MAX_SIZE=0x40000 > CONFIG_SPL_PAD_TO=0x7f8000 > CONFIG_SPL_HAS_BSS_LINKER_SECTION=y > CONFIG_SPL_BSS_START_ADDR=0x4000000 > @@ -36,6 +35,7 @@ CONFIG_SPL_BSS_MAX_SIZE=0x4000 > # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set > CONFIG_SPL_STACK_R=y > CONFIG_SPL_ATF=y > +CONFIG_CMD_GPIO=y > CONFIG_CMD_GPT=y > CONFIG_CMD_I2C=y > CONFIG_CMD_MMC=y > @@ -46,7 +46,7 @@ CONFIG_CMD_REGULATOR=y > # CONFIG_SPL_DOS_PARTITION is not set > CONFIG_SPL_OF_CONTROL=y > CONFIG_OF_LIVE=y > -CONFIG_NET_RANDOM_ETHADDR=y > +CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" > CONFIG_SPL_REGMAP=y > CONFIG_SPL_SYSCON=y > CONFIG_SPL_CLK=y > @@ -70,6 +70,7 @@ CONFIG_PWM_ROCKCHIP=y > CONFIG_SPL_RAM=y > CONFIG_BAUDRATE=1500000 > CONFIG_DEBUG_UART_SHIFT=2 > +CONFIG_SYS_NS16550_MEM32=y > CONFIG_SYSRESET=y > CONFIG_USB=y > CONFIG_USB_XHCI_HCD=y