Re: [PATCH v5 10/11] ram: starfive: Read memory size information from EEPROM

2023-07-11 Thread Leo Liang
On Thu, Jun 15, 2023 at 05:36:51PM +0800, Yanhong Wang wrote: > StarFive VisionFive 2 has two versions, 1.2A and 1.3B, each version of > DDR capacity includes 2G/4G/8G, a DT can not support multiple > capacities, so the capacity size information is recorded to EEPROM, when > DDR initialization

Re: [PATCH v5 09/11] configs: starfive: Enable ID EEPROM configuration

2023-07-11 Thread Leo Liang
On Thu, Jun 15, 2023 at 05:36:50PM +0800, Yanhong Wang wrote: > Enabled ID_EEPROM and I2C configuration for StarFive VisionFive2 board. > > Signed-off-by: Yanhong Wang > --- > .../visionfive2/starfive_visionfive2.c| 13 + > configs/starfive_visionfive2_defconfig| 19

Re: [PATCH v5 08/11] riscv: dts: starfive: Add support eeprom device tree node

2023-07-11 Thread Leo Liang
On Thu, Jun 15, 2023 at 05:36:49PM +0800, Yanhong Wang wrote: > Add support "atmel,24c04" eeprom for StarFive VisionFive2 board. > > Signed-off-by: Yanhong Wang > --- > .../dts/jh7110-starfive-visionfive-2-u-boot.dtsi | 14 ++ > arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi |

Re: [PATCH v5 07/11] eeprom: starfive: Enable ID EEPROM configuration

2023-07-11 Thread Leo Liang
On Thu, Jun 15, 2023 at 05:36:48PM +0800, Yanhong Wang wrote: > Enabled ID_EEPROM configuration for StarFive VisionFive2 board. > > Signed-off-by: Yanhong Wang > --- > arch/riscv/include/asm/arch-jh7110/eeprom.h | 13 + > board/starfive/visionfive2/Makefile | 1 + >

Re: [PATCH v5 06/11] configs: starfive: Enable ethernet configuration for StarFive VisionFive2

2023-07-11 Thread Leo Liang
On Thu, Jun 15, 2023 at 05:36:47PM +0800, Yanhong Wang wrote: > Enable DWC_ETH_QOS and PHY_MOTORCOMM configuration to support ethernet > function for StarFive VisionFive 2 board,including versions 1.2A and > 1.3B. > > Signed-off-by: Yanhong Wang > --- > configs/starfive_visionfive2_defconfig |

Re: [PATCH v5 05/11] doc: board: starfive: Reword the make defconfig information

2023-07-11 Thread Leo Liang
On Thu, Jun 15, 2023 at 05:36:46PM +0800, Yanhong Wang wrote: > The defconfig file name for StarFive VisionFive2 has been changed, and > the documentation description has also changed. > > Signed-off-by: Yanhong Wang > --- > doc/board/starfive/visionfive2.rst | 6 +++--- > 1 file changed, 3

Re: [PATCH v5 04/11] riscv: dts: jh7110: Combine the board device tree files of 1.2A and 1.3B

2023-07-11 Thread Leo Liang
On Thu, Jun 15, 2023 at 05:36:45PM +0800, Yanhong Wang wrote: > The difference between 1.2A and 1.3B is dynamically configured according > to the PCB version, and there is no difference on the board device tree, > so the same DT file can be used. > > Signed-off-by: Yanhong Wang > --- >

Re: [PATCH v5 03/11] riscv: dts: jh7110: Add ethernet device tree nodes

2023-07-11 Thread Leo Liang
On Thu, Jun 15, 2023 at 05:36:44PM +0800, Yanhong Wang wrote: > Add ethernet device tree node to support StarFive ethernet driver for > the JH7110 RISC-V SoC. > > Signed-off-by: Yanhong Wang > --- > .../dts/jh7110-starfive-visionfive-2.dtsi | 34 + > arch/riscv/dts/jh7110.dtsi

[PATCH v2] bdinfo: Correct use of assertions

2023-07-11 Thread Simon Glass
This test was written for the incorrect use of assertions. Update it to build with the previous approach, where tests fail at the first assertion. All assertion functions return 0 on success and non-zero on failure. They can be nested into functions simply by declaring a function that returns an

[PATCH] CI: Add automatic retry for test.py jobs

2023-07-11 Thread Tom Rini
It is not uncommon for some of the QEMU-based jobs to fail not because of a code issue but rather because of a timing issue or similar problem that is out of our control. Make use of the keywords that Azure and GitLab provide so that we will automatically re-run these when they fail 2 times. If

Re: [PATCH] bdinfo: Correct use of assertions

2023-07-11 Thread Marek Vasut
On 7/12/23 02:24, Simon Glass wrote: Hi Marek, Hi, On Tue, 11 Jul 2023 at 17:10, Marek Vasut wrote: On 7/12/23 00:51, Simon Glass wrote: This test was written for the incorrect use of assertions. Update it to build with the previous approach, where tests fail at the first assertion. So

Re: [PATCH] phy: Fix generic_setup_phy return value on power on failure

2023-07-11 Thread Marek Vasut
On 7/12/23 02:06, Jonas Karlman wrote: On 2023-07-12 01:59, Marek Vasut wrote: On 7/12/23 01:48, Jonas Karlman wrote: generic_setup_phy may mask a power on failure due to the return value from generic_phy_exit, typically 0, is being used as return value. Fix this by ignoring the return value

Re: [PATCH] bdinfo: Correct use of assertions

2023-07-11 Thread Simon Glass
Hi Marek, On Tue, 11 Jul 2023 at 17:10, Marek Vasut wrote: > > On 7/12/23 00:51, Simon Glass wrote: > > This test was written for the incorrect use of assertions. Update it to > > build with the previous approach, where tests fail at the first > > assertion. > > So basically ut_assert_nextline()

Re: [PATCH] phy: Fix generic_setup_phy return value on power on failure

2023-07-11 Thread Jonas Karlman
On 2023-07-12 01:59, Marek Vasut wrote: > On 7/12/23 01:48, Jonas Karlman wrote: >> generic_setup_phy may mask a power on failure due to the return value >> from generic_phy_exit, typically 0, is being used as return value. >> >> Fix this by ignoring the return value of the generic_phy_exit call,

Re: [PATCH] phy: Fix generic_setup_phy return value on power on failure

2023-07-11 Thread Marek Vasut
On 7/12/23 01:48, Jonas Karlman wrote: generic_setup_phy may mask a power on failure due to the return value from generic_phy_exit, typically 0, is being used as return value. Fix this by ignoring the return value of the generic_phy_exit call, also remove an unnecessary check for -ENOENT. Why

[PATCH] phy: Fix generic_setup_phy return value on power on failure

2023-07-11 Thread Jonas Karlman
generic_setup_phy may mask a power on failure due to the return value from generic_phy_exit, typically 0, is being used as return value. Fix this by ignoring the return value of the generic_phy_exit call, also remove an unnecessary check for -ENOENT. Fixes: 84e561407a5f ("phy: Add

[PATCH] drivers: rtc: max313xx: provide read8/write8

2023-07-11 Thread Chris Packham
In some designs the MAX313xx RTC may need calibration to cope with oscillator inaccuracies. Provide read8/write8 ops so that the registers can be accessed. Because the driver covers a range of MAX313xx variants no attempt is made to ensure the register is valid. Signed-off-by: Chris Packham ---

[PATCH] pci: rockchip: Release resources on failing probe

2023-07-11 Thread Jonas Karlman
The PCIe driver for RK3399 is affected by a similar issue that was fixed for RK35xx in the commit e04b67a7f4c1 ("pci: pcie_dw_rockchip: release resources on failing probe"). Resources are not released on failing probe, e.g. regulators may be left enabled and the ep-gpio may be left in a requested

Re: [PATCH] phy: adin: add readext and writeext support for mdio cmd

2023-07-11 Thread Marek Vasut
On 7/11/23 23:59, Nate Drude wrote: The adin phy has extended registers that can be accessed using adin_ext_read and adin_ext_write. These registers can be read directly using the mdio command using readext and writext. For example:     => mdio rx ethernet@428a 0xff23     Reading from bus

Re: [PATCH] bdinfo: Correct use of assertions

2023-07-11 Thread Marek Vasut
On 7/12/23 00:51, Simon Glass wrote: This test was written for the incorrect use of assertions. Update it to build with the previous approach, where tests fail at the first assertion. So basically ut_assert_nextline() does not automatically bail, you have to make it expand to return -ERRNO

[PATCH] bdinfo: Correct use of assertions

2023-07-11 Thread Simon Glass
This test was written for the incorrect use of assertions. Update it to build with the previous approach, where tests fail at the first assertion. Signed-off-by: Simon Glass --- test/cmd/bdinfo.c | 79 +-- 1 file changed, 49 insertions(+), 30

[PATCH] disk: Use BOOT_DEFAULTS instead of DISTRO_DEFAULTS

2023-07-11 Thread Jonas Karlman
Set default y based on common BOOT_DEFAULTS instead of DISTRO_DEFAULTS. No change is intended, affected options is already implied for DISTRO and BOOTSTD due to BOOT_DEFAULTS imply DOS_PARTITION (USB_STORAGE), EFI_PARTITION and ISO_PARTITION. Fixes: a0c739c184ca ("boot: Create a common

[RFC PATCH 3/3] board: ti: am62x: Add am62x_evm defconfig fragments

2023-07-11 Thread Jason Kacines
Introduce am62x_evm defconfig fragments that will be used on top of the base wakeup defconfigs. The usage will be as follows: make <...> am62x_r5_defconfig am62x_evm_r5.config make <...> am62x_a53_defconfig am62x_evm_a53.config This will use the Makefile changes previously mentioned to access

[RFC PATCH 2/3] configs: Add am62x wakeup defconfigs

2023-07-11 Thread Jason Kacines
Introduce a minimal platform wakeup configuration for am62x devices. These defconfigs are meant to serve as a foundation for custom boards to build upon by only including necessary components to boot the device. Defconfig fragments will be used to expand upon these base files. Signed-off-by:

[RFC PATCH 1/3] scripts: kconfig: Add config fragment support in board/../

2023-07-11 Thread Jason Kacines
Add support to config fragments (.config) located in the /board directory. This will allow only base defconfigs to live in /configs and all fragments to live in their respective device directory in /board/.. Signed-off-by: Jason Kacines --- scripts/kconfig/Makefile | 4 +++- 1 file changed, 3

[RFC PATCH 0/3] Minimal platform configuration

2023-07-11 Thread Jason Kacines
When someone attempts to bring up a custom board using TI SoCs (am62x in this case), it often takes several days for someone to reduce the current configuration from the TI EVM/SK boards to a configuration that works for their board. The goal of these changes is to allow for a minimal boot

[PATCH] phy: adin: add readext and writeext support for mdio cmd

2023-07-11 Thread Nate Drude
The adin phy has extended registers that can be accessed using adin_ext_read and adin_ext_write. These registers can be read directly using the mdio command using readext and writext. For example: => mdio rx ethernet@428a 0xff23 Reading from bus ethernet@428a PHY at address

[PATCH] mx7dsabresd: Retrieve the second MAC address from fuses

2023-07-11 Thread Fabio Estevam
From: Fabio Estevam Currently, a random MAC address is assigned to eth1 in Linux. Fix this behavor by retrieving the second MAC address from the fuses. Signed-off-by: Fabio Estevam --- board/freescale/mx7dsabresd/mx7dsabresd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [PATCH v2 0/3] rpi: Convert to standard boot

2023-07-11 Thread Simon Glass
Hi Peter, On Thu, 20 Apr 2023 at 10:30, Simon Glass wrote: > > Hi Peter, > > On Thu, 20 Apr 2023 at 20:20, Peter Robinson wrote: > > > > On Wed, Apr 19, 2023 at 11:40 PM Simon Glass wrote: > > > > > > Hi Peter, > > > > > > On Wed, 19 Apr 2023 at 19:42, Peter Robinson wrote: > > > > > > > > Hi

[PATCH 1/2] schemas: Add firmware node schema

2023-07-11 Thread Simon Glass
Add a motivation and purpose for this new proposed node. Signed-off-by: Simon Glass --- dtschema/schemas/firmware.yaml | 83 ++ 1 file changed, 83 insertions(+) create mode 100644 dtschema/schemas/firmware.yaml diff --git a/dtschema/schemas/firmware.yaml

[PATCH 2/2] schemas: Add a schema for binman

2023-07-11 Thread Simon Glass
I am unsure whether to add this with a generic name, such as 'layout', but for now am using /firmware/binman to avoid conflicts with any other firmware-layout schema that others might be working on. Signed-off-by: Simon Glass --- dtschema/schemas/firmware/binman.yaml | 51

[PATCH 3/3] mx23_olinuxino: Convert to CONFIG_DM_SERIAL

2023-07-11 Thread Fabio Estevam
From: Fabio Estevam The conversion to CONFIG_DM_SERIAL is mandatory, so select this option. Signed-off-by: Fabio Estevam --- arch/arm/Kconfig | 1 - arch/arm/mach-imx/mxs/Kconfig| 1 + configs/mx23_olinuxino_defconfig | 1 + 3 files changed, 2 insertions(+), 1 deletion(-)

[PATCH 2/3] mx23evk: Convert to CONFIG_DM_SERIAL

2023-07-11 Thread Fabio Estevam
From: Fabio Estevam The conversion to CONFIG_DM_SERIAL is mandatory, so select this option. Signed-off-by: Fabio Estevam --- arch/arm/Kconfig | 2 +- arch/arm/mach-imx/mxs/Kconfig | 1 + configs/mx23evk_defconfig | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff

[PATCH 1/3] mx28evk: Convert to CONFIG_DM_SERIAL

2023-07-11 Thread Fabio Estevam
From: Fabio Estevam The conversion to CONFIG_DM_SERIAL is mandatory, so select this option. Signed-off-by: Fabio Estevam --- arch/arm/Kconfig | 1 - arch/arm/mach-imx/mxs/Kconfig | 1 + configs/mx28evk_defconfig | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff

Re: Pull request efi-2023-07-rc7

2023-07-11 Thread Tom Rini
On Sun, Jul 09, 2023 at 11:37:45AM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit 0beb649053b86b2cfd5cf55a0fc68bc2fe91a430: > > MAINTAINERS: correct at91 tree link (2023-07-07 11:37:09 -0400) > > are available in the Git repository at: > >

Re: R: [RFC] rockchip: rk3308: fix "same-as-spl" bug in boot devices order

2023-07-11 Thread Tom Rini
On Tue, Jul 11, 2023 at 05:11:15PM -0300, Fabio Estevam wrote: > On Tue, Jul 11, 2023 at 5:04 PM Tom Rini wrote: > > > $ git grep -l bootph arch/arm64/ > > arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi > > arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts > >

Re: [PATCH v4] phy: phy-imx8mq-usb: add vbus regulator support

2023-07-11 Thread Tim Harvey
On Mon, Jul 10, 2023 at 4:18 PM Marek Vasut wrote: > > On 7/11/23 00:49, Tim Harvey wrote: > > Add support for enabling and disabling vbus-supply regulator found > > on several imx8mp boards in the usb3_phy0 and usb3_phy1 nodes. > > > > Signed-off-by: Tim Harvey > > Reviewed-by: Adam Ford > >

Re: R: [RFC] rockchip: rk3308: fix "same-as-spl" bug in boot devices order

2023-07-11 Thread Fabio Estevam
On Tue, Jul 11, 2023 at 5:04 PM Tom Rini wrote: > $ git grep -l bootph arch/arm64/ > arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi > arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts > arch/arm64/boot/dts/xilinx/zynqmp.dtsi > $ git describe HEAD > v6.5-rc1-6-g3f01e9fed845 but where is bootph

Re: R: [RFC] rockchip: rk3308: fix "same-as-spl" bug in boot devices order

2023-07-11 Thread Tom Rini
On Tue, Jul 11, 2023 at 03:01:28PM -0300, Fabio Estevam wrote: > On Tue, Jul 11, 2023 at 2:14 PM Tom Rini wrote: > > > One thing I would say is that the bootph changes can go to the upstream > > kernel dts files, so that they aren't lost in the future, and we can > > Are you sure? I don't see

[PATCH v1 02/16] dts: xea: Provide missing FEC required properties (mac0 and reg_fec_3v3)

2023-07-11 Thread sbabic
> After the commit (SHA1: 7d08ddd09b75e7a3c103cc0d0d3ed700287f268e) some > u-boot specific XEA FEC related properties have been replaced by ones > from the Linux kernel. > To be more specific - XEA board (and imx287 in general) has built L2 > switch connected to FEC, which needs some special

[PATCH v1 1/2] colibri-imx8x: print firmware versions

2023-07-11 Thread sbabic
> Print firmware versions during U-Boot start: > BuildInfo: > - SCFW f5623878, SECO-FW c9de51c0, IMX-MKIMAGE 0, ATF c6a19b1 > - U-Boot 2022.04-00335-g65192567f81-dirty > Signed-off-by: Andrejs Cainikovs Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH v2 1/5] imx8mn-var-som: read and print SoM infos from eeprom on startup

2023-07-11 Thread sbabic
> From: Hugo Villeneuve > Enable support to read and display configuration/manufacturing infos > from 4Kbit EEPROM located on SOM board. > Note: CONFIG_DISPLAY_BOARDINFO is automatically selected for ARM arch. > Signed-off-by: Hugo Villeneuve Applied to u-boot-imx, master, thanks ! Best

[PATCH V2 21/30] imx: bootaux: change names of MACROs used to boot MCU on iMX devices

2023-07-11 Thread sbabic
> From: Peng Fan > The current bootaux supports i.MX8M and i.MX93, but the name "_M4_" > implies that the SoCs have Cortex-M4. Actually i.MX8MM/Q use Cortex-M4, > i.MX8MN/P use Cortex-M7, i.MX93 use Cortex-M33, so use "_MCU_" in place > of "_M4_" to simplify the naming. > Signed-off-by:

[PATCH 5/5] board: gateworks: venice: update board doc to show other emmc parts

2023-07-11 Thread sbabic
> Update the venice board documentation to show how to install to the > various eMMC hardware partitions available as the same binary firmware > can be placed in either user/boot0/boot1 without build-time config > changes. Note that the boot offsets differ depending on the SoC and the > eMMC

[PATCH V2 28/30] imx: imx8m: add CAAM_BASE_ADDR

2023-07-11 Thread sbabic
> From: Peng Fan > Add CAAM_BASE_ADDR which will be used by priblob.c > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,Managing

[PATCH v1 13/16] arm: xea: Call spl_early_init() before DM serial console is enabled in SPL

2023-07-11 Thread sbabic
> The in-spl enabled DM serial console requires the board setup to be > able to parse SPL_OF_PLATDATA based serial driver (pl01x) for the > imx28 based XEA board. > Signed-off-by: Lukasz Majewski Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH v1] configs: verdin-imx8mp: enable ARCH_MISC_INIT

2023-07-11 Thread sbabic
> From: Sergio Prado > This is required to boot a FIT image, otherwise the caam_jr driver is > not initialized and the hash verification fails with the following > error: > Verifying Hash Integrity ... sha256dev_get_priv: null device > CAAM was not setup properly or it is faulty > Signed-off-by:

[PATCH 1/2] dm: adc: add iMX93 ADC support

2023-07-11 Thread sbabic
> This commit adds driver for iMX93 ADC. > The driver is implemented using driver model and provides > ADC uclass's methods for ADC single channel operations: > - adc_start_channel() > - adc_channel_data() > - adc_stop() > ADC features: > - channels: 4 > - resolution: 12-bit >

[PATCH V2 09/30] imx: parse-container: fix build warning

2023-07-11 Thread sbabic
> From: Peng Fan > Fix build warning: > warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 > has type ‘u64’ {aka ‘long long unsigned int’} [-Wformat=] > printf("can't find memreg for image %d load address 0x%x, error > %d\n", > warning: format ‘%lx’ expects

[PATCH V2 30/30] imx: fsl_sec: preprocessor casting issue with addresses involving math

2023-07-11 Thread sbabic
> From: Utkarsh Gupta > The sec_in32 preprocessor is defined as follows in include/fsl_sec.h file: > When address "a" is calculated using math for ex: addition of base address and > an offset, then casting is applied only to the first address which in this > example is base address. >

[PATCH V2 10/30] imx: ele_ahab: use hextoul

2023-07-11 Thread sbabic
> From: Peng Fan > Use hextoul which looks a bit simpler. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,Managing Director: Erika

[PATCH v1 14/16] arm: Kconfig: Switch XEA (imx287 based) board to use CONFIG_PL01X_SERIAL

2023-07-11 Thread sbabic
> The CONFIG_PL011 used by all other ARCH_MX28 based boards is not > supporting DM_SERIAL. Instead, other define - namely CONFIG_PL01X_SERIAL > shall be used by boards supporting DM_SERIAL. > Signed-off-by: Lukasz Majewski Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 3/5] board: gateworks: venice: dynamically update the update_firmware script

2023-07-11 Thread sbabic
> The update_firmware script is intended to update the boot firmware but > the details including the offset and hardware partition are dependent > on the boot device. > Specifically: > - IMX8MM/IMX8MP (BOOTROM v2) the offset is 32KiB for SD and eMMC user > hardware partition and 0KiB for eMMC

[PATCH 1/5] imx: imx8mm-beacon: Move environment definition to env file

2023-07-11 Thread sbabic
> Instead of cluttering up a header file with a bunch of defines, > move the default environmental variables to a file called > imx8mm_beacon.env and reference it from the defconfig. > Signed-off-by: Adam Ford Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH] board: gateworks: venice: add eraseenv command

2023-07-11 Thread sbabic
> Add eraseenv command and remove the unnecessary env command. > Signed-off-by: Tim Harvey > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[PATCH 4/5] arm: mxs: Add function to dump PMU registers

2023-07-11 Thread sbabic
> This commit provides function, which when debugging > output is enabled dumps the IMX28 PMU registers. > Signed-off-by: Lukasz Majewski Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software

[PATCH v2 4/5] imx8mn-var-som: read eth MAC address from EEPROM

2023-07-11 Thread sbabic
> From: Hugo Villeneuve > Read ethernet MAC address from EEPROM located on the SOM. > Signed-off-by: Hugo Villeneuve Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[PATCH] configs: imx8m: Prepare imx8m-venice boards for HAB support

2023-07-11 Thread sbabic
> In order to enable HAB, FSL_CAAM, ARCH_MISC_INIT and > SPL_CRYPTO should be enabled in Kconfig like other i.MX8M > boards. > This also needs to occur in the SPL so enable CONFIG_SPL_BOARD_INIT and > add a void spl_board_init function which calls arch_misc_init to probe > the CAAM driver. >

[PATCH 5/5] arm: config: Adjust imx287 based XEA board PMU configuration

2023-07-11 Thread sbabic
> This patch adjusts XEA's PMU setup as this board is supposed to be > mainly powered from DCDC_BATT source. > Moreover, in this HW design the VDD_4P2 is not used as well. > Signed-off-by: Lukasz Majewski Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH V2 07/30] imx: scu_api: update to version 1.16 and add more APIs

2023-07-11 Thread sbabic
> From: Peng Fan > Upgrade SCFW API to 1.16 > Add more APIs: > sc_misc_get_button_status > sc_pm_reboot > sc_seco_v2x_build_info > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH V2 05/30] imx: advantech: correct SCU API usage

2023-07-11 Thread sbabic
> From: Peng Fan > The return value is int type, not sc_err_t(u8), correct the usage. > Signed-off-by: Peng Fan > Tested-by: Oliver Graute > Reviewed-by: Oliver Graute Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH v2] mx8m: csf.sh: use vars for keys to avoid file edits when signing

2023-07-11 Thread sbabic
> The csf_spl.txt and csf_fit.txt templates contain file paths which must > be edited for the location of your NXP CST generated key files. > Streamline the process of signing an image by assigning unique var names > to these which can be expended from env variables in the csf.sh script. > The

[PATCH] arm: dts: imx8m: move CAAM nodes into common u-boot.dtsi

2023-07-11 Thread sbabic
> Move the crypto and sec_jr* nodes from board-specific > u-boot.dtsi files into the common files. Additionally protect the > nodes with ifdef FSL_CAAM as they don't serve any purpose if that is > not enabled. > Signed-off-by: Tim Harvey > Reviewed-by: Fabio Estevam > Reviewed-by: Peng Fan

[PATCH V2 1/2] imx: imx8mm-beacon: Enable FlexSPI in U-Boot

2023-07-11 Thread sbabic
> In order to use the FlexSPI interface in U-Boot, configure > the alias to make spi0 point to flexspi. > With that enabled, sf probe detects the QSPI part as: > SF: Detected n25q256ax1 with page size 256 Bytes, erase size 4 KiB, total 32 > MiB > Signed-off-by: Adam Ford Applied to u-boot-imx,

[PATCH 4/5] board: gateworks: venice: move env location

2023-07-11 Thread sbabic
> To allow U-Boot to fit within emmc boot partitions move the env from > just under 16MiB to just under 4MiB as some emmc devices used on venice > boards have 4MiB boot partitions. This still leaves plenty of room for > U-Boot. > Signed-off-by: Tim Harvey Applied to u-boot-imx, master, thanks !

[PATCH v1 06/16] dts: xea: Add u-boot specific 'type' property to duart

2023-07-11 Thread sbabic
> The DM_SERIAL implicitly requires CONFIG_PL01X_SERIAL, which > allows support for both serial IP block versions (i.e. PL011 and > PL010). > The decision about used IP block is based on the compatible string, > when DM is used. > In the XEA, the OF_PLATDATA is used to allow usage of serial driver

[PATCH v2 2/5] imx8mn-var-som: fix non-applied PHY reset-gpios properties

2023-07-11 Thread sbabic
> From: Hugo Villeneuve > Select DM_ETH_PHY so that the reset-gpios property of the ethphy node > can be used. > Also select DM_PCA953X, which is needed for resetting the > ethernet PHY on the carrier board via the PCA9534 I/O expander. > Commit 4e5114daf9eb ("imx8mn: synchronise device tree with

[PATCH 1/2] configs: phycore-imx8mp_defconfig: Enable LTO

2023-07-11 Thread sbabic
> Enable LTO for binary size reduction. > Signed-off-by: Teresa Remmet Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,Managing Director: Erika Unter HRB 165235

[PATCH] board: gateworks: venice: add GPIO name lookup

2023-07-11 Thread sbabic
> Add GPIO name lookup so that you can act on GPIO's by name vs controller > id: > Before: > u-boot=> gpio input pci_wdis# > GPIO: 'pci_wdis#' not found > Command 'gpio' failed: Error -22 > After: > u-boot=> gpio input pci_wdis# > gpio: pin pci_wdis# (gpio 103) value is 1 > Signed-off-by: Tim

[PATCH] board: gateworks: venice: add imx8mp-gw7905-2x support

2023-07-11 Thread sbabic
> The Gateworks imx8mp-venice-gw7905-2x consists of a SOM + baseboard. > The GW702x SOM contains the following: > - i.MX8M Plus SoC > - LPDDR4 memory > - eMMC Boot device > - Gateworks System Controller (GSC) with integrated EEPROM, button >controller, and ADC's > - PMIC > - SOM

[PATCH v1 09/16] serial: pl01x: Change OF_CONTROL to OF_REAL

2023-07-11 Thread sbabic
> Before this change, building this driver for SPL with enabled SPL_DM_SERIAL > was problematic, as '-Wunused-const-variable=' warning was visible. > Now, the code is only considered when u-boot proper is build. > Signed-off-by: Lukasz Majewski Applied to u-boot-imx, master, thanks ! Best

[PATCH 2/5] imx8m: imx8mm-beacon: Migrate README to rst

2023-07-11 Thread sbabic
> Since U-Boot builds HTML documentation, migrate the contents > of the README file to an rst file which can generate the > proper outputs. > Signed-off-by: Adam Ford Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH v1 03/16] defconfig: xea: Change default spi-nor memory bus to 2

2023-07-11 Thread sbabic
> After the re-sync with Linux kernel (v6.0) of the XEA DTS > (SHA1: 7d08ddd09b75e7a3c103cc0d0d3ed700287f268e) the alias > for SPI bus, to which SPI-NOR memory is connected, has changed from > 'spi3' to 'spi2'. > To be in sync with current u-boot's xea dts, the default bus number > (which allows

[PATCH] arm: mx6: module_fuse: fix build failure due to wrong argument name

2023-07-11 Thread sbabic
> nodeoff variable should be variable off returned by fdt_path_offset() so > let's rename it to off. > Signed-off-by: Giulio Benetti > Reviewed-by: Peng Fan > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH V2 22/30] imx: bootaux: Fix bootaux issue when running on ARM64

2023-07-11 Thread sbabic
> From: Ye Li > The bootaux uses ulong to read private data and write to M4 TCM, > this cause problem on ARM64 platform where the ulong is 8bytes. > Fix it by using u32 to replace ulong. > Reviewed-by: Peng Fan > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master,

[PATCH] power: imx8m-power-domain: Add delay to align with kernel driver

2023-07-11 Thread sbabic
> From: Fabio Estevam > In the imx8m power domain kernel driver, there is an extra udelay(5) > prior to requesting the domain to power up: > https://github.com/torvalds/linux/blob/v6.3/drivers/soc/imx/gpcv2.c#L347-L375 > Haven't observed any issues due to the lack of this delay in U-Boot yet, >

[PATCH 3/5] imx: imx8mn-beacon: Move environment definition to env file

2023-07-11 Thread sbabic
> Instead of cluttering up a header file with a bunch of defines, > move the default environmental variables to a file called > imx8mn_beacon.env and reference it from the defconfigs. > Signed-off-by: Adam Ford Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH V2 08/30] imx: use generic name ele(EdgeLockSecure Enclave)

2023-07-11 Thread sbabic
> From: Peng Fan > Per NXP requirement, we rename all the NXP EdgeLock Secure Enclave > code including comment, folder and API name to ELE to align. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 2/2] configs: phycore-imx8mm_defconfig: Enable LTO

2023-07-11 Thread sbabic
> Enable LTO for binary size reduction. > Signed-off-by: Teresa Remmet Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,Managing Director: Erika Unter HRB 165235

[PATCH v1] colibri_imx6: fix RALAT and WALAT values

2023-07-11 Thread sbabic
> From: Stefan Eichenberger > Running a memtest in U-Boot and Linux shows that some Colibri iMX6 > produce bitflips at temperatures above 60°C. This happens because the > RALAT and WALAT values on the Colibri iMX6 are too low. The problems > were introduced by commit 09dbac8174c4 ("mx6: ddr:

[PATCH v1 11/16] serial: pl01x: Modify pending callback to test if transmit FIFO is empty

2023-07-11 Thread sbabic
> Before this change the FR_TXFF (Transmit FIFO full) bit (5 in > HW_UARTDBG_FR) has been used to assess if there is still data pending > to be sent via UART. > This approach is problematic, as it may happen that serial is in the > middle of transmission (so the TX FIFO is NOT full anymore) and

[PATCH] board: phytec: phycore_imx8mm: Update lpddr4_timing

2023-07-11 Thread sbabic
> Update RAM Timings for 2GB RAM based on DDR Controller Configuration > Spreadsheet revision 22. Including the update of the refresh > rate to workaround errata ERR050805. > Signed-off-by: Cem Tenruh Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH] board: gateworks: venice: switch to 2-bank dram config

2023-07-11 Thread sbabic
> Switch to a 2-bank dram config to properly support 4GiB. > Signed-off-by: Tim Harvey > Reviewed-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[PATCH v1 16/16] config: xea: Enable DM_SERIAL for the XEA - single binary (SB) u-boot

2023-07-11 Thread sbabic
> The single binary version of u-boot for XEA board is used to debrick and > factory programming. > The produced u-boot.sb is a single file, which allows having fully > operational u-boot prompt loaded with imx287 ROM. > Signed-off-by: Lukasz Majewski Applied to u-boot-imx, master, thanks ! Best

[PATCH V2 2/2] configs: imx: imx8mm_beacon: Add config option for QSPI booting

2023-07-11 Thread sbabic
> The imx8mm_beacon SOM has a QSPI part attached to the FSPI controller. > Update the header and spl files to support booting from NOR flash and > add imx8mm_beacon_fspi_defconfig to support this configuration. > Signed-off-by: Adam Ford Applied to u-boot-imx, master, thanks ! Best regards,

[PATCH V2 29/30] imx: priblob: Update to use structure

2023-07-11 Thread sbabic
> From: Maximus Sun > Use structure to avoid define CAAM_SCFGR for each platform > Signed-off-by: Maximus Sun > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software

[PATCH V2 14/30] imx: cmd_dek: add ELE DEK Blob generation support

2023-07-11 Thread sbabic
> From: Clement Faure > Add ELE DEK Blob generation for the cmd_dek command. > Signed-off-by: Clement Faure > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software

[PATCH v1 04/16] spl: xea: Provide stub DM driver for imx28 clocks

2023-07-11 Thread sbabic
> This code fixes following WARNING: > DTOCspl/dts/dt-plat.c > fsl_imx28_clkctrl: WARNING: the driver fsl_imx28_clkctrl was not found in the > driver list > As imx28 doesn't yet support common clock framework, this prevents from > DTOC warnings during SPL build. > Signed-off-by: Lukasz

[PATCH V2 23/30] imx: imx8: bootaux: Add i.MX8 M4 boot support

2023-07-11 Thread sbabic
> From: Ye Li > 1. Implement bootaux for the M4 boot on i.MX8QM and QXP. Users need to > download >M4 image to any DDR address first. Then use the >"bootaux [M4 core id]" to boot CM4_0 >or CM4_1, the default core id is 0 for CM4_0. >Since current M4 only supports running in TCM.

[PATCH] board: gateworks: venice: display dram speed

2023-07-11 Thread sbabic
> Display dram speed during configuration. > Signed-off-by: Tim Harvey Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,Managing Director: Erika Unter HRB 165235

[PATCH 2/2] imx93_evk: defconfig: add adc support

2023-07-11 Thread sbabic
> iMX93 ADC features: > - 4 channels > - 12 bit resolution > Signed-off-by: Luca Ellero Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,Managing Director:

[PATCH v2] ARM: imx: romapi: Fix signed integer bitwise ops misuse

2023-07-11 Thread sbabic
> Bitwise operations on signed integers are not defined, > replace them with per-call checks. > Reviewed-by: Peng Fan > Signed-off-by: Marek Vasut > Reviewed-by: Fabio Estevam > Reviewed-by: Heiko Schocher Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 2/2] doc: board: phytec: add phycore_imx8mp

2023-07-11 Thread sbabic
> Add documentation on how to build a bootable U-Boot image for the PHYTEC > phyCORE-i.MX 8M Plus. > Signed-off-by: Yannic Moog Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering

[PATCH 1/5] arm: mxs: Provide Kconfig option to to not use VDD5V as IMX28 PMU source

2023-07-11 Thread sbabic
> This option sets the current limit for 5V source to zero, so all > the PMU outputs are primarily powered from battery source (DCDC_BAT). > This option may be set on systems, where the 5V is NOT supposed to be > in any scenario powering the system - for example on systems where > DCDC_BAT is

[PATCH 5/5] imx8m: beacon: Update MAINTAINER file to include beacon rst files

2023-07-11 Thread sbabic
> With variou README files migrated to rst, add them to the > MAINTAINER file for Beacon. > Signed-off-by: Adam Ford Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[PATCH V2 25/30] imx: parse-container: Use malloc for container processing

2023-07-11 Thread sbabic
> From: Nitin Garg > If the container has image which conflicts with > spl_get_load_buffer address, there are processing failures. > Use malloc instead of spl_get_load_buffer. > Reviewed-by: Ye Li > Signed-off-by: Nitin Garg > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks !

[PATCH v1 15/16] config: xea: Enable DM_SERIAL for the XEA (imx287 based) board

2023-07-11 Thread sbabic
> The XEA board now supports the DM_SERIAL feature in u-boot. > The SPL is using the SPL_OF_PLATDATA - i.e. NOT SPL_DM_SERIAL to > reduce the overall size of the SPL binary. > Signed-off-by: Lukasz Majewski Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH V2 27/30] imx: imx8: ahab: sha256: enable image verification using ARMv8 crypto extension

2023-07-11 Thread sbabic
> From: Gaurav Jain > add support for SHA-256 secure hash algorithm using the ARM v8 > SHA-256 instructions for verifying image hash. > Signed-off-by: Gaurav Jain > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH V2 20/30] imx: iamge-container: support secondary container

2023-07-11 Thread sbabic
> From: Peng Fan > Add the support for loading image from secondary container set on > iMX8QM B0, iMX8QXP C0. > Using the SCFW API to get container set index, if it is the secondary > boot, get the offset from fuse and apply to offset of current container > set beginning for loading. > Also

[PATCH v1 12/16] arm: mxs: Prevent serial console init when in very early SPL boot code

2023-07-11 Thread sbabic
> When DM_SERIAL is enabled on mxs (i.e. imx28) platform, the console > early initialization must be postponed until the driver model is > correctly setup. > Signed-off-by: Lukasz Majewski Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

  1   2   3   >