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 DF80EC7EE29 for ; Wed, 7 Jun 2023 02:19:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 323D285EE7; Wed, 7 Jun 2023 04:19:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=starfivetech.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 5E71785EE7; Wed, 7 Jun 2023 04:19:12 +0200 (CEST) Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by phobos.denx.de (Postfix) with ESMTP id 1A36C85F52 for ; Wed, 7 Jun 2023 04:19:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=yanhong.wang@starfivetech.com Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 0DED47FC9; Wed, 7 Jun 2023 10:19:05 +0800 (CST) Received: from EXMBX073.cuchost.com (172.16.6.83) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 7 Jun 2023 10:19:04 +0800 Received: from [192.168.120.46] (171.223.208.138) by EXMBX073.cuchost.com (172.16.6.83) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 7 Jun 2023 10:19:04 +0800 Message-ID: <43d730e1-56e1-c582-4909-637949093357@starfivetech.com> Date: Wed, 7 Jun 2023 10:19:03 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v4 11/11] configs: starfive: Enable ID EEPROM configuration Content-Language: en-US To: Jan Kiszka , , Rick Chen , Leo , Joe Hershberger , Ramon Fried CC: Torsten Duwe , Leyfoon Tan , "samin . guo" , Walker Chen References: <20230525093637.31364-1-yanhong.wang@starfivetech.com> <20230525093637.31364-12-yanhong.wang@starfivetech.com> From: yanhong wang In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX073.cuchost.com (172.16.6.83) X-YovoleRuleAgent: yovoleflag 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/6/5 3:23, Jan Kiszka wrote: > On 25.05.23 11:36, Yanhong Wang wrote: >> Enabled ID_EEPROM and I2C configuration for StarFive VisionFive2 board. >> >> Signed-off-by: Yanhong Wang >> --- >> configs/starfive_visionfive2_defconfig | 19 ++++++++++++++++++- >> 1 file changed, 18 insertions(+), 1 deletion(-) >> >> diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig >> index c57708199d..570a1f53a1 100644 >> --- a/configs/starfive_visionfive2_defconfig >> +++ b/configs/starfive_visionfive2_defconfig >> @@ -13,6 +13,7 @@ CONFIG_SYS_PROMPT="StarFive #" >> CONFIG_OF_LIBFDT_OVERLAY=y >> CONFIG_DM_RESET=y >> CONFIG_SPL_MMC=y >> +CONFIG_SPL_DRIVERS_MISC=y >> CONFIG_SPL_STACK=0x8180000 >> CONFIG_SPL=y >> CONFIG_SPL_SPI_FLASH_SUPPORT=y >> @@ -23,6 +24,7 @@ CONFIG_SPL_OPENSBI_LOAD_ADDR=0x40000000 >> CONFIG_ARCH_RV64I=y >> CONFIG_CMODEL_MEDANY=y >> CONFIG_RISCV_SMODE=y >> +# CONFIG_OF_BOARD_FIXUP is not set >> CONFIG_FIT=y >> CONFIG_DISTRO_DEFAULTS=y >> CONFIG_QSPI_BOOT=y >> @@ -34,6 +36,8 @@ CONFIG_PREBOOT="setenv fdt_addr ${fdtcontroladdr};fdt addr ${fdtcontroladdr};" >> CONFIG_DEFAULT_FDT_FILE="starfive/jh7110-starfive-visionfive-2.dtb" >> CONFIG_DISPLAY_CPUINFO=y >> CONFIG_DISPLAY_BOARDINFO=y >> +CONFIG_ID_EEPROM=y >> +CONFIG_SYS_EEPROM_BUS_NUM=5 >> CONFIG_SPL_MAX_SIZE=0x40000 >> CONFIG_SPL_PAD_TO=0x0 >> CONFIG_SPL_BSS_START_ADDR=0x8040000 >> @@ -45,21 +49,34 @@ CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x80000000 >> CONFIG_SYS_SPL_MALLOC_SIZE=0x400000 >> CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION=y >> CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION=0x2 >> +CONFIG_SPL_I2C=y >> CONFIG_SPL_DM_SPI_FLASH=y >> CONFIG_SPL_DM_RESET=y >> CONFIG_SPL_SPI_LOAD=y >> CONFIG_SYS_CBSIZE=256 >> CONFIG_SYS_PBSIZE=276 >> CONFIG_SYS_BOOTM_LEN=0x4000000 >> +CONFIG_CMD_EEPROM=y >> +CONFIG_SYS_EEPROM_SIZE=512 >> +CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=4 >> +CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=5 >> CONFIG_CMD_MEMINFO=y >> +CONFIG_CMD_I2C=y >> CONFIG_CMD_TFTPPUT=y >> +CONFIG_OF_BOARD=y >> CONFIG_SYS_RELOC_GD_ENV_ADDR=y >> +CONFIG_SPL_DM_SEQ_ALIAS=y >> CONFIG_REGMAP=y >> CONFIG_SYSCON=y >> CONFIG_SPL_CLK_COMPOSITE_CCF=y >> CONFIG_CLK_COMPOSITE_CCF=y >> CONFIG_SPL_CLK_JH7110=y >> -# CONFIG_I2C is not set >> +CONFIG_DM_I2C=y >> +CONFIG_SYS_I2C_DW=y >> +CONFIG_MISC=y >> +CONFIG_I2C_EEPROM=y >> +CONFIG_SPL_I2C_EEPROM=y >> +CONFIG_SYS_I2C_EEPROM_ADDR=0X50 >> CONFIG_MMC_HS400_SUPPORT=y >> CONFIG_SPL_MMC_HS400_SUPPORT=y >> CONFIG_MMC_DW=y > > This comes too late: Already patch 4 needs at least CONFIG_ID_EEPROM=y, > if not more. > Moving patch 4 to the series end, is that okay? > Make sure you don't leave non-bisectable commit series behind. Whenever > something breaks (like 55171aedda88), people will use bisection to find > the causing commit, and then they will appreciate not having to deal > with such hick-ups. > > Jan >