[PATCH 14/14] Revert "arm: dts: rockchip: radxa-cm3-io, rock-3a: enable regulators for usb"

2023-04-21 Thread Jonas Karlman
Remove regulator-boot-on prop from regulators now that the phy core has support for phy-supply after commit "phy: add support for phy-supply" and regulators support a basic reference counter after commit "regulator: implement basic reference counter". This reverts commit

[PATCH 13/14] rockchip: rk3588-rock-5b: Enable boot from SPI NOR flash

2023-04-21 Thread Jonas Karlman
Add sfc and flash node to device tree and config options to enable support for booting from SPI NOR flash on Radxa ROCK 5 Model B. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 24 arch/arm/dts/rk3588s-u-boot.dtsi| 20

[PATCH 12/14] rockchip: rk3588-rock-5b: Add bootph prop to pinctrl for uart2 and sdhci

2023-04-21 Thread Jonas Karlman
Enable pinctrl for sdhci in SPL to support loading of FIT image from SD and eMMC storage when booting from SPI NOR flash. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 28 + 1 file changed, 28 insertions(+) diff --git

[PATCH 11/14] rockchip: rk3588-rock-5b: Update defconfig

2023-04-21 Thread Jonas Karlman
Update defconfig for rk3588-rock-5b with new defaults. 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. Extend SPL_MAX_SIZE to 0x4, SPL is loaded to 0x0 and TF-A is loaded to 0x4, use the

[PATCH 10/14] rockchip: rk3588-evb: Update defconfig

2023-04-21 Thread Jonas Karlman
Update defconfig for rk3588-evb with new defaults. 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 0x4, SPL is loaded to 0x0 and TF-A is loaded to

[PATCH 09/14] rockchip: rk3588: Select DM_RESET and DM_REGULATOR_FIXED in arch Kconfig

2023-04-21 Thread Jonas Karlman
Like other Rockchip SoCs, DM_RESET and DM_REGULATOR_FIXED is useful across RK3588 platform. Select them from arch Kconfig. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/Kconfig| 2 ++ configs/evb-rk3588_defconfig | 2 -- configs/neu6a-io-rk3588_defconfig | 1 -

[PATCH 08/14] rockchip: rk3568-rock-3a: Enable boot from SPI NOR flash

2023-04-21 Thread Jonas Karlman
Add sfc and flash node to device tree and config options to enable support for booting from SPI NOR flash on Radxa ROCK 3 Model A. Unlike prior generation SoCs the BootRom in RK3568 can read all data and look for idbloader at 0x8000, same as on SD and eMMC. Use the rksd format and modify the

[PATCH 07/14] rockchip: rk3568-rock-3a: Use pinctrl for sdmmc and sdhci in SPL

2023-04-21 Thread Jonas Karlman
Enable pinctrl for sdmmc and sdhci in SPL to support loading of FIT image from SD and eMMC storage when booting from SPI NOR flash. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 52 + configs/rock-3a-rk3568_defconfig| 3 +- 2 files

[PATCH 06/14] rockchip: rk3568-rock-3a: Update defconfig

2023-04-21 Thread Jonas Karlman
Update defconfig for rk3568-rock-3a with new defaults. 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

[PATCH 05/14] rockchip: rk3568-evb: Update defconfig

2023-04-21 Thread Jonas Karlman
Update defconfig for rk3568-evb with new defaults. 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

[PATCH 04/14] rockchip: rk3566-radxa-cm3-io: Use pinctrl for sdmmc and sdhci in SPL

2023-04-21 Thread Jonas Karlman
Enable pinctrl for sdmmc and sdhci in SPL to support loading of FIT image from SD and eMMC storage when booting from SPI NOR flash. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi | 56 configs/radxa-cm3-io-rk3566_defconfig| 3 +- 2

[PATCH 03/14] rockchip: rk3566-radxa-cm3-io: Update defconfig

2023-04-21 Thread Jonas Karlman
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

[PATCH 01/14] spi: rockchip_sfc: Use linux rockchip,sfc-no-dma prop

2023-04-21 Thread Jonas Karlman
Use the same prop as linux to control the use of fifo or dma mode. Also add a u-boot,spl-sfc-no-dma prop to control the same in SPL. Signed-off-by: Jonas Karlman --- drivers/spi/rockchip_sfc.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

[PATCH 02/14] rockchip: rk356x-u-boot: Add xin24m clock node to SPL

2023-04-21 Thread Jonas Karlman
Add bootph-all prop to xin24m clock node, it is referenced by cru node. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk356x-u-boot.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/rk356x-u-boot.dtsi b/arch/arm/dts/rk356x-u-boot.dtsi index 0a764ce5119c..a1c2d03c52f0

[PATCH 00/14] rockchip: rk35xx: Update defconfigs and enable boot from SPI NOR flash

2023-04-21 Thread Jonas Karlman
This series sync some defconfig options across the different rk35xx boards and enables boot from SPI NOR flash on rk3568-rock-3a and rk3588-rock-5b. Patch 1 fixes use of sfc-no-dma prop in rockchip sfc driver. Patch 2-7 updates defconfig for rk356x boards. Patch 8 enables boot from SPI NOR flash

[PATCH v4 1/3] net: ipv6: Add support for default gateway discovery.

2023-04-21 Thread emohandesi
From: Ehsan Mohandesi In IPv6, the default gateway and prefix length are determined by receiving a router advertisement as defined in - https://www.rfc-editor.org/rfc/rfc4861. Add support for sending router solicitation (RS) and processing router advertisements (RA). If the RA has prefix info

[PATCH v4 3/3] test: eth: IPv6 network discovery unit test

2023-04-21 Thread emohandesi
From: Ehsan Mohandesi Test router advertisement validation and processing functions. Signed-off-by: Ehsan Mohandesi --- test/dm/eth.c | 88 +++ 1 file changed, 88 insertions(+) diff --git a/test/dm/eth.c b/test/dm/eth.c index

[PATCH v4 2/3] test/py: IPv6 network discovery test

2023-04-21 Thread emohandesi
From: Ehsan Mohandesi Test the IPv6 network discovery feature if indicated by boardenv file. Signed-off-by: Ehsan Mohandesi --- configs/sandbox64_defconfig| 2 ++ configs/sandbox_defconfig | 2 ++ configs/sandbox_flattree_defconfig | 2 ++ test/py/tests/test_net.py

[PATCH v4 0/3] Add IPv6 Network Discovery

2023-04-21 Thread emohandesi
From: Ehsan Mohandesi This series adds IPv6 network discovery to U-Boot. When an IPv6 command is run in U-Boot, it sends a router solicitation (RS) message to the network. The router on the network responds with a router advertisement (RA) message. Then U-Boot processes the RA message and sets

Re: [PATCH v1 1/1] misc: extcon: add MAX14526 MUIC support

2023-04-21 Thread Tim Harvey
On Fri, Apr 21, 2023 at 9:36 AM Svyatoslav Ryhel wrote: > > пт, 21 квіт. 2023 р. о 19:30 Tim Harvey пише: > > > > On Thu, Apr 20, 2023 at 9:54 AM Svyatoslav Ryhel wrote: > > > > > > чт, 20 квіт. 2023 р. о 19:30 Simon Glass пише: > > > > > > > > Hi Svyatoslav, > > > > > > > > On Thu, 20 Apr

Re: [PATCH v2 7/7] smegw01: Enable EMMC boot from multiple partitions

2023-04-21 Thread Pali Rohár
On Friday 21 April 2023 07:56:50 Fabio Estevam wrote: > +uint mmc_get_env_part(struct mmc *mmc) > +{ > + uint part; > + > + if (mmc->part_config == MMCPART_NOAVAILABLE) { > + part = 0; > + } else { > + switch (EXT_CSD_EXTRACT_BOOT_PART(mmc->part_config)) { > +

[PATCH v3 9/9] arm: dts: msm: add GENI SE QUP device tree node

2023-04-21 Thread Vladimir Zapolskiy
On modern Qualcomm platforms including SDM845 a GENI SE QUP IP description is supposed to be found in board device tree nodes, the version of the IP is used by the GENI UART driver to properly set an oversampling divider value, which impacts UART baudrate. The change touches dragonboard845c and

[PATCH v3 8/9] serial: msm-geni: correct oversampling value based on QUP hardware revision

2023-04-21 Thread Vladimir Zapolskiy
Starting from QUP v2.5 the value of oversampling is changed from 32 to 16, keeping the old value on newer platforms results on wrong set UART IP clock divider, thus the asked baudrate does not correspond to the actually set with all the consequencies for a user. The change links the driver to a

[PATCH v3 7/9] serial: msm-geni: Use upstream Linux bindings

2023-04-21 Thread Vladimir Zapolskiy
From: Konrad Dybcio The name "se" is used in upstream Linux device trees and has been for ages, long before this U-Boot-ism was introduced. Same goes for the existing compatible. Get rid of that. [vzapolskiy: removed a ready change in the driver] Signed-off-by: Konrad Dybcio Signed-off-by:

[PATCH v3 6/9] serial: msm-geni: fix a compile time warning from msm_serial_setbrg()

2023-04-21 Thread Vladimir Zapolskiy
A compiler warns about a missing function prototype, which is valid and fixed by converting the function into static one, also fix interleaved local variable declarations and assignments. Signed-off-by: Vladimir Zapolskiy Fixes: 324df15a292e ("serial: qcom: add support for GENI serial driver")

[PATCH v3 5/9] serial: msm-geni: fix code indentation

2023-04-21 Thread Vladimir Zapolskiy
This a cosmetic change, which corrects code indentation in a few places. Signed-off-by: Vladimir Zapolskiy Reviewed-by: Konrad Dybcio --- drivers/serial/serial_msm_geni.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/serial/serial_msm_geni.c

[PATCH v3 4/9] serial: msm-geni: remove invalid se-clk clock name

2023-04-21 Thread Vladimir Zapolskiy
There is only one clock supplier to the serial IP, thus getting it by name is not needed, also note that "clock-names" property is not listed under doc/device-tree-bindings/serial/msm-geni-serial.txt, and finally "se-clk" clock name is invalid, if added, it shall get "se" value like it's already

[PATCH v3 3/9] serial: msm-geni: Always bind before relocation

2023-04-21 Thread Vladimir Zapolskiy
From: Konrad Dybcio In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. [vzapolskiy: extracted the driver change from a combination with dts changes] Signed-off-by: Konrad Dybcio Signed-off-by: Vladimir Zapolskiy ---

[PATCH v3 2/9] serial: msm-geni: remove redundant includes

2023-04-21 Thread Vladimir Zapolskiy
For whatever reason, likely a driver stub was copied from another driver, the driver contains a bunch of unnecessary and confusing includes like watchdog.h etc., the change reduces the list. Signed-off-by: Vladimir Zapolskiy Reviewed-by: Konrad Dybcio --- drivers/serial/serial_msm_geni.c | 6

[PATCH v3 1/9] misc: add Qualcomm GENI SE QUP device driver

2023-04-21 Thread Vladimir Zapolskiy
This change adds a Qualcomm GENI SE QUP device driver as a wrapper for actually enabled and used serial devices found on a board. At the moment the driver is pretty simple, its intention is to populate childred devices and provide I/O mem read interface to them as clients, this is needed for GENI

[PATCH v3 0/9] serial: msm-geni: fix UART baudrate on modern platforms

2023-04-21 Thread Vladimir Zapolskiy
The changeset touches Qualcomm platforms, it adds a new quite trivial misc wrapper driver to be accessed by GENI UART to get information about a proper clock divisor. The change does not intend to break any currently supported Qualcomm platforms, there should be no need to update board config or

Re: [PATCH 1/3] vexpress64: Use OF_HAS_PRIOR_STAGE for BASE_FVP variant

2023-04-21 Thread Andre Przywara
On Fri, 31 Mar 2023 09:58:11 +0100 Peter Hoyes wrote: > From: Peter Hoyes > > BASE_FVP now typically uses a devicetree provided by a prior boot stage > (typically Arm TF-A), so imply this option by default when > TARGET_VEXPRESS64_BASE_FVP is selected. > > OF_HAS_PRIOR_STAGE selects OF_BOARD

Re: [PATCH v1 1/1] misc: extcon: add MAX14526 MUIC support

2023-04-21 Thread Svyatoslav Ryhel
пт, 21 квіт. 2023 р. о 19:30 Tim Harvey пише: > > On Thu, Apr 20, 2023 at 9:54 AM Svyatoslav Ryhel wrote: > > > > чт, 20 квіт. 2023 р. о 19:30 Simon Glass пише: > > > > > > Hi Svyatoslav, > > > > > > On Thu, 20 Apr 2023 at 18:01, Svyatoslav Ryhel wrote: > > > > > > > > чт, 20 квіт. 2023 р. о

Re: [PATCH v1 1/1] misc: extcon: add MAX14526 MUIC support

2023-04-21 Thread Tim Harvey
On Thu, Apr 20, 2023 at 9:54 AM Svyatoslav Ryhel wrote: > > чт, 20 квіт. 2023 р. о 19:30 Simon Glass пише: > > > > Hi Svyatoslav, > > > > On Thu, 20 Apr 2023 at 18:01, Svyatoslav Ryhel wrote: > > > > > > чт, 20 квіт. 2023 р. о 01:41 Simon Glass пише: > > > > > > > > Hi Svyatoslav, > > > > > >

[PATCH] board: rockchip: add Anbernic RGXX3 Series Devices

2023-04-21 Thread Chris Morgan
From: Chris Morgan The Anbernic RGxx3 is a "pseudo-device" that encompasses the following devices: - Anbernic RG353M - Anbernic RG353P - Anbernic RG353V - Anbernic RG353VS - Anbernic RG503 The rk3566-anbernic-rgxx3.dtsi is synced with upstream Linux, but rk3566-anbernic-rgxx3.dts is a

Re: [PATCH v8 00/24] Fixes for Rockchip NFC driver part 1

2023-04-21 Thread Johan Jonker
On 4/21/23 05:15, Kever Yang wrote: > Hi Johan, > >     I got below error report from CI test, I think it should be relate to > this patch set. > > === FAILURES > === > 1107 >

[PATCH v9] core: fdtaddr: add devfdt_get_addr_size_index_ptr function

2023-04-21 Thread Johan Jonker
Add devfdt_get_addr_size_index_ptr function with the same functionality as devfdt_get_addr_size_index, but instead a return pointer is given. Suggested-by: Michael Nazzareno Trimarchi Signed-off-by: Johan Jonker Reviewed-by: Michael Trimarchi Reviewed-by: Simon Glass --- Changed V9: remove

Re: [PATCH] arm: mach-k3: common: Default to non fitImage boot on HS-FS

2023-04-21 Thread Kamlesh Gurudasani
Vignesh Raghavendra writes: > Allow non fitImage bootflow on Field Securable (HS-FS) devices in > addition to GP, force fitImage boot only on Security enforced (HS-SE) > devices where signed images are necessary to maintain chain of trust. > > Signed-off-by: Vignesh Raghavendra Reviewed-by:

[PATCH v3 04/19] j721e: schema: yaml: Add general schema and J721E board config files

2023-04-21 Thread Neha Malcom Francis
Schema file in YAML must be provided in board/ti/common for validating input config files and packaging system firmware. The schema includes entries for rm-cfg, board-cfg, pm-cfg and sec-cfg. Board config files must be provided in board/ti/ in YAML. These can then be consumed for generation of

Re: [PATCH] doc:fix typo in 'mmc write' example

2023-04-21 Thread Shirokov Alexander
Hello Simon, Thanks for your answer.Using 0x explicitly shows that we are working with HEX. But without the prefix, it looks like a decimal number. And it's more confusing when the number of blocks looks like a decimal but is interpreted as HEX. Here is an example: mmc write 0x4000

[PATCH v3 18/19] k3: tools: config.mk: Update makefile and remove scripts

2023-04-21 Thread Neha Malcom Francis
Since binman is used to package bootloader images for all K3 devices, we do not have to rely on the earlier methods to package them. config.mk has been edited to only have binman required make commands. Scripts that were used to generate x509 certificate for tiboot3.bin and generate tispl.bin

[PATCH v3 15/19] am625: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img

2023-04-21 Thread Neha Malcom Francis
Support added for HS and GP boot binaries for AM62 tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices tiboot3.bin_unsigned, tispl.bin_unsigned, u-boot.img_unsigned: For GP devices It is to be noted that the bootflow followed by

[PATCH v3 19/19] doc: board: ti: Update documentation for binman flow

2023-04-21 Thread Neha Malcom Francis
Earlier documentation specified builds for generating bootloader images using an external TI repository k3-image-gen and core-secdev-k3. Modify this to using the binman flow so that user understands how to build the final boot images. Signed-off-by: Neha Malcom Francis ---

[PATCH v3 16/19] am62a: yaml: Add board configs for AM62ax

2023-04-21 Thread Neha Malcom Francis
Added YAML configs for AM62ax Signed-off-by: Neha Malcom Francis --- board/ti/am62ax/board-cfg.yaml | 36 + board/ti/am62ax/pm-cfg.yaml| 12 + board/ti/am62ax/rm-cfg.yaml| 1151 board/ti/am62ax/sec-cfg.yaml | 375 +++ 4 files changed, 1574

[PATCH v3 17/19] am62a: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img

2023-04-21 Thread Neha Malcom Francis
Support added for HS and GP boot binaries for AM62ax. tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices tiboot3.bin_unsigned, tispl.bin_unsigned and u-boot.img_unsigned: For GP devices It is to be noted that the bootflow followed

[PATCH v3 14/19] am62: yaml: Add board configs for AM62

2023-04-21 Thread Neha Malcom Francis
Added YAML configs for AM62 Signed-off-by: Neha Malcom Francis --- board/ti/am62x/board-cfg.yaml | 36 ++ board/ti/am62x/pm-cfg.yaml| 12 + board/ti/am62x/rm-cfg.yaml| 1088 + board/ti/am62x/sec-cfg.yaml | 375

[PATCH v3 12/19] j721s2: yaml: Add board configs for J721S2

2023-04-21 Thread Neha Malcom Francis
Added YAML configs for J721S2 Signed-off-by: Neha Malcom Francis --- board/ti/j721s2/board-cfg.yaml | 37 + board/ti/j721s2/pm-cfg.yaml| 12 + board/ti/j721s2/rm-cfg.yaml| 2901 board/ti/j721s2/sec-cfg.yaml | 375 + 4 files changed, 3325

[PATCH v3 13/19] j721s2: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img

2023-04-21 Thread Neha Malcom Francis
Support added for HS and GP boot binaries for J721S2. tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices tiboot3.bin_unsigned, tispl.bin_unsigned, u-boot.img_unsigned: For GP devices It is to be noted that the bootflow followed by

[PATCH v3 11/19] am64x: dts: binman: Package tiboot3.bin, tispl.bin u-boot.img

2023-04-21 Thread Neha Malcom Francis
Support added for HS and GP boot binaries for AM64x. tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices tiboot3.bin_unsigned, tispl.bin_unsigned, u-boot.img_unsigned: For GP devices Note that the bootflow followed by AM64x

[PATCH v3 10/19] am64x: yaml: Add board configs for AM64x

2023-04-21 Thread Neha Malcom Francis
Added YAML configs for AM64xx Signed-off-by: Neha Malcom Francis --- board/ti/am64x/board-cfg.yaml | 37 + board/ti/am64x/pm-cfg.yaml| 12 + board/ti/am64x/rm-cfg.yaml| 1400 + board/ti/am64x/sec-cfg.yaml | 378 + 4 files changed, 1827

[PATCH v3 08/19] am65x: yaml: Add AM65x board config files

2023-04-21 Thread Neha Malcom Francis
Added YAML configs for AM65x Signed-off-by: Neha Malcom Francis --- board/ti/am65x/board-cfg.yaml | 36 + board/ti/am65x/pm-cfg.yaml| 12 + board/ti/am65x/rm-cfg.yaml| 2068 + board/ti/am65x/sec-cfg.yaml | 375 ++ 4 files changed, 2491

[PATCH v3 09/19] am65: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img

2023-04-21 Thread Neha Malcom Francis
Support added for HS and GP boot binaries for AM65x. tiboot3.bin, sysfw.itb, tispl.bin and u-boot.img: For HS devices tiboot3.bin_unsigned, sysfw.itb, tispl.bin_unsigned, u-boot.img_unsigned: For GP devices Note that the bootflow followed by AM65x requires: tiboot3.bin: * R5 SPL

[PATCH v3 06/19] j7200: yaml: Add J7200 board config files

2023-04-21 Thread Neha Malcom Francis
Added YAML configs for J7200 Signed-off-by: Neha Malcom Francis --- board/ti/j721e/board-cfg_j7200.yaml | 36 + board/ti/j721e/pm-cfg_j7200.yaml| 12 + board/ti/j721e/rm-cfg_j7200.yaml| 2065 +++ board/ti/j721e/sec-cfg_j7200.yaml | 378 + 4 files

[PATCH v3 07/19] j7200: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img

2023-04-21 Thread Neha Malcom Francis
Support added for HS and GP boot binaries for J7200. tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices tiboot3.bin_unsigned, tispl.bin_unsigned and u-boot.img_unsigned: For GP devices It is to be noted that the bootflow followed

[PATCH v3 05/19] j721e: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img

2023-04-21 Thread Neha Malcom Francis
By providing entries in the binman node of the device tree, binman will be able to find and package board config artifacts generated by TIBoardConfig with sysfw.bin and generate the final image sysfw.itb. It will also pick out the R5 SPL and sign it with the help of TI signing entry and generate

[PATCH v3 02/19] binman: ti-secure: Add support for TI signing

2023-04-21 Thread Neha Malcom Francis
The ti-secure entry contains certificate for binaries that will be loaded or booted by system firmware whereas the ti-secure-rom entry contains certificate for binaries that will be booted by ROM. Support for both these types of certificates is necessary for booting of K3 devices. Signed-off-by:

[PATCH v3 03/19] ti: sysfw: tiboot3: Add support for packaging sysfw.itb and tiboot3.bin

2023-04-21 Thread Neha Malcom Francis
Board config binary artifacts must be populated in the R5 output directory to be used by binman to package sysfw.itb and tiboot3.bin. For devices that follow combined flow, these board configuration binaries must again be packaged into a combined board configuration blobs to be used by binman to

[PATCH v3 01/19] binman: ti-board-config: Add support for TI board config binaries

2023-04-21 Thread Neha Malcom Francis
The ti-board-config entry loads and validates a given YAML config file against a given schema, and generates the board config binary. K3 devices require these binaries to be packed into the final system firmware images. Signed-off-by: Neha Malcom Francis --- tools/binman/entries.rst

[PATCH v3 00/19] Migration to using binman for bootloader

2023-04-21 Thread Neha Malcom Francis
This series aims to eliminate the use of additional custom repositories such as k3-image-gen (K3 Image Generation) repo and core-secdev-k3 (K3 Security Development Tools) that was plumbed into the U-Boot build flow to generate boot images for TI K3 platform devices. And instead, we move towards

Pull request for efi-2023-07-rc1-2

2023-04-21 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 5db4972a5bbdbf9e3af48ffc9bc4fec73b7b6a79: Merge tag 'u-boot-nand-20230417' of https://source.denx.de/u-boot/custodians/u-boot-nand-flash (2023-04-17 10:47:33 -0400) are available in the Git repository at:

Re: [PATCH 1/2] firmware: zynqmp: Mask expected and show unexpected warning

2023-04-21 Thread Stefan Herbrechtsmeier
Am 21.04.2023 um 12:08 schrieb Michal Simek: On 4/21/23 11:56, Stefan Herbrechtsmeier wrote: Hi Michal, Am 20.04.2023 um 14:39 schrieb Michal Simek: On 4/20/23 14:30, Stefan Herbrechtsmeier wrote: Am 20.04.2023 um 14:11 schrieb Michal Simek: On 4/20/23 14:03, Stefan Herbrechtsmeier wrote:

[PATCH 13/13] smegw01: Fix fallback to altbootcmd

2023-04-21 Thread Fabio Estevam
From: Eduard Strehlau The bootcmd/altbootcmd mechanism is not invoked for bootmenus. Manually compare bootcount and bootlimit to implement fallback on all codepaths. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v1: - None configs/smegw01_defconfig | 2 +- 1

[PATCH v2 12/13] smegw01: Disable additional boot menu options

2023-04-21 Thread Fabio Estevam
From: Eduard Strehlau Defaults have changed, we do not want the bootmenu to contain EFI options. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v1: - None configs/smegw01_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/smegw01_defconfig

[PATCH v2 11/13] smegw01: Read the second MAC address

2023-04-21 Thread Fabio Estevam
From: Fabio Estevam Currently, only the first MAC address is read from the fuses. The second MAC address is not read and Linux assigns a random one. To prevent this behavior, read the second MAC address from the fuses and store it into the eth1addr environment variable so that it can be passed

[PATCH v2 10/13] smegw01: Add lockdown U-Boot env support

2023-04-21 Thread Fabio Estevam
From: Eduard Strehlau Add lockdown U-Boot env support so that only certain U-Boot environment variables are allowed to be modified. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v1: - None board/storopack/smegw01/Kconfig | 7 +

[PATCH v2 09/13] smegw01: Switch to fitImage

2023-04-21 Thread Fabio Estevam
From: Eduard Strehlau Instead of loading the zImage kernel and the devicetree separately, switch to the fitImage format, which is more convenient when working with secure boot, for example. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v1: - None

[PATCH v2 08/13] smegw01: Change default boot device to eMMC

2023-04-21 Thread Fabio Estevam
From: Eduard Strehlau Let eMMC be the default boot medium. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v1: - None include/configs/smegw01.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/smegw01.h

[PATCH v2 7/7] smegw01: Enable EMMC boot from multiple partitions

2023-04-21 Thread Fabio Estevam
From: Eduard Strehlau GPT Partition labels are used for determining the right root filesystem to boot from. The U-Boot environment is configured to reside in the eMMC hardware boot partition we are currently booted from. This should enable a dual copy approach for upgrading the bootloader. One

[PATCH v2 06/13] smegw01: Only commit to new partition if update was successful

2023-04-21 Thread Fabio Estevam
From: Eduard Strehlau When performing rootfs update via swupdate, it is convenient to check the 'ustate' variable to decide whether the update succeeded or not. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v1: - None include/configs/smegw01.h | 16

[PATCH v2 05/13] smegw01: Run altbootcmd in the case of failure

2023-04-21 Thread Fabio Estevam
From: Eduard Strehlau Run the altbootcmd script if any step of bootcmd fails. This ensures that always a valid image can be run. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v1: - None configs/smegw01_defconfig | 2 +- include/configs/smegw01.h | 8 +++-

[PATCH v2 04/13] smegw01: Add altbootcmd

2023-04-21 Thread Fabio Estevam
From: Eduard Strehlau Add an altbootcmd script, which is convenient way to integrate with swupdate and perform a roll back of the previous working version in the case of update failure. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v1: - None

[PATCH v2 03/13] smegw01: Select bootcount support

2023-04-21 Thread Fabio Estevam
From: Eduard Strehlau Add automatic boot counter that increases after every reset. After a power-on reset, it will be initialized with 1, and each reboot will increment the value by 1. By default it is disabled if bootlimit isn't set. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam

[PATCH v2 02/13] smegw01: Select CONFIG_CMD_SQUASHFS

2023-04-21 Thread Fabio Estevam
From: Eduard Strehlau Select CONFIG_CMD_SQUASHFS so that the SquashFS U-Boot commands are available. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v1: - None configs/smegw01_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 01/13] smegw01: Enable setting additional boot params

2023-04-21 Thread Fabio Estevam
From: Eduard Strehlau Introduce EXTRA_BOOTPARAMS to allow passing additional parameters to kernel command line. This is useful for debugging purposes. Signed-off-by: Eduard Strehlau Signed-off-by: Fabio Estevam --- Changes since v1: - None include/configs/smegw01.h | 8 +++- 1 file

[PATCH v6] imx: support i.MX8QM DMSSE20 a1 board

2023-04-21 Thread Oliver Graute
Add i.MX8QM DMSSE20 a1 board support U-Boot 2023.04-00030-g7be2f547b2 (Apr 21 2023 - 11:11:43 +0200) Model: Advantech iMX8QM DMSSE20 Board: DMS-SE20A1 8GB Build: SCFW 549b1e18, SECO-FW c9de51c0, ATF 5782363 Boot: USB DRAM: 8 GiB Core: 100 devices, 19 uclasses, devicetree: separate MMC:

Re: [PATCH 1/2] firmware: zynqmp: Mask expected and show unexpected warning

2023-04-21 Thread Michal Simek
On 4/21/23 11:56, Stefan Herbrechtsmeier wrote: Hi Michal, Am 20.04.2023 um 14:39 schrieb Michal Simek: On 4/20/23 14:30, Stefan Herbrechtsmeier wrote: Am 20.04.2023 um 14:11 schrieb Michal Simek: On 4/20/23 14:03, Stefan Herbrechtsmeier wrote: Hi Michal, Am 20.04.2023 um 13:06 schrieb

Re: [PATCH 1/2] firmware: zynqmp: Mask expected and show unexpected warning

2023-04-21 Thread Stefan Herbrechtsmeier
Hi Michal, Am 20.04.2023 um 14:39 schrieb Michal Simek: On 4/20/23 14:30, Stefan Herbrechtsmeier wrote: Am 20.04.2023 um 14:11 schrieb Michal Simek: On 4/20/23 14:03, Stefan Herbrechtsmeier wrote: Hi Michal, Am 20.04.2023 um 13:06 schrieb Michal Simek: Hi, On 4/19/23 09:58, Stefan

Re: [PATCH 7/7] configs: rock5b-rk3588: add pci drivers and command

2023-04-21 Thread Kever Yang
Hi Eugen, On 2023/4/17 17:19, Eugen Hristev wrote: Add drivers for pciE , phy, and command. Signed-off-by: Eugen Hristev --- configs/rock5b-rk3588_defconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/rock5b-rk3588_defconfig

Re: [PATCH 5/7] ARM: dts: rockchip: rk3588s-u-boot: add pcie2x1l2 with PHY

2023-04-21 Thread Kever Yang
On 2023/4/17 17:19, Eugen Hristev wrote: From: Joseph Chen Add the node for pciE 2x1l 2 device together with the corresponding combphy. Signed-off-by: Joseph Chen [eugen.hris...@collabora.com: moved to -u-boot.dtsi, minor adaptations] Signed-off-by: Eugen Hristev ---

Re: [PATCH 3/7] phy: rockchip: naneng-combphy: Add support for multiple resets

2023-04-21 Thread Kever Yang
On 2023/4/17 17:19, Eugen Hristev wrote: Some variants of the PHY have more than just one reset. To cover all cases, request the rests in bulk rather than just the reset at index 0. Co-developed-by: Ren Jianing Signed-off-by: Ren Jianing Signed-off-by: Eugen Hristev Reviewed-by: Kever

Re: [PATCH 4/7] phy: rockchip: naneng-combphy: Support rk3588

2023-04-21 Thread Kever Yang
On 2023/4/17 17:19, Eugen Hristev wrote: From: Jon Lin Add support for rk3588 phy variant. The PHY clock is fixed at 100MHz. Signed-off-by: Jon Lin [kever.y...@rock-chips.com: update pcie pll parameters] Co-developed-by: Kever Yang Signed-off-by: Kever Yang [eugen.hris...@collabora.com:

Re: [PATCH 1/7] pci: pcie_dw_rockchip: Add rk3588 compatible

2023-04-21 Thread Kever Yang
On 2023/4/17 17:19, Eugen Hristev wrote: From: Jon Lin Add compatible for RK3588 SoC. Signed-off-by: Jon Lin Reviewed-by: Kever Yang Thanks, - Kever --- drivers/pci/pcie_dw_rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pcie_dw_rockchip.c

Re: [PATCH v11 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-04-21 Thread Ilias Apalodimas
Hi Abdellatif, [...] > > @@ -162,7 +450,16 @@ static efi_status_t mm_communicate(u8 *comm_buf, > efi_uintn_t dsize) > mm_hdr = (struct efi_mm_communicate_header *)comm_buf; > var_hdr = (struct smm_variable_communicate_header *)mm_hdr->data; > > - ret =

Re: [PATCH v2 4/4] configs: rockchip: radxa-cm3-io: drop CONFIG_USB_DWC3_GENERIC

2023-04-21 Thread Kever Yang
On 2023/4/20 20:00, FUKAUMI Naoki wrote: it's not used by rk35xx Signed-off-by: FUKAUMI Naoki Reviewed-by: Kever Yang Thanks, - Kever --- v2: - new patch configs/radxa-cm3-io-rk3566_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/radxa-cm3-io-rk3566_defconfig

Re: [PATCH v2 1/4] configs: rockchip: rock-3a: make usb host work

2023-04-21 Thread Kever Yang
On 2023/4/20 20:00, FUKAUMI Naoki wrote: add support for USB host function on ROCK 3A Signed-off-by: FUKAUMI Naoki Reviewed-by: Kever Yang Thanks, - Kever --- v2: - drop CONFIG_USB_DWC3_GENERIC configs/rock-3a-rk3568_defconfig | 11 +++ 1 file changed, 11 insertions(+) diff

Re: [PATCH v3 08/10] pinctrl: rockchip: Fix IO mux selection on RK3568

2023-04-21 Thread Kever Yang
On 2023/4/18 03:07, Jonas Karlman wrote: IO mux selection is not working correctly for all pins. Sync mux route data from linux to add any missing and update wrong trigger pins to fix this. Also apply the pull-up fix needed for GPIO0 D3-D6. Fixes: 1977d746aa54 ("rockchip: rk3568: add rk3568

[PATCH v3 3/3] extcon: add MAX14526 MUIC support

2023-04-21 Thread Svyatoslav Ryhel
MAX14526 is a powerful extcon chip which allows detection of various plugs like usb, mhl, uart, headset etc. This version of driver implements support of AP-usb and CP-usb/uart paths. Tested-by: Andreas Westman Dorcsak # LG P880 T30 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by:

[PATCH v3 2/3] test: Add tests for the extcon

2023-04-21 Thread Svyatoslav Ryhel
Provide tests to the simple extcon device. Signed-off-by: Svyatoslav Ryhel --- arch/sandbox/dts/test.dts | 4 drivers/extcon/Kconfig | 7 +++ drivers/extcon/Makefile | 1 + drivers/extcon/extcon-sandbox.c | 17 + test/dm/Makefile

[PATCH v3 1/3] dm: extcom: add an uclass for extcon

2023-04-21 Thread Svyatoslav Ryhel
Add a new simple uclass for extcon. Currently all setup is done in the probe. Uclass struct and ops are empty for now. Signed-off-by: Svyatoslav Ryhel --- drivers/Kconfig| 2 ++ drivers/Makefile | 1 + drivers/extcon/Kconfig | 15 +++

[PATCH v3 0/3] Add MAX14526 MUIC driver

2023-04-21 Thread Svyatoslav Ryhel
MAX14526 MUIC is used by LG P880/P895 which are currently in the process of merging. MAX14526 is a powerful extcon device which has the ability to accurately determine plugged devices. In this implementation muic can be configured to represent 3 modes: CP-USB/UART and AP-USB. Unfortunately