[PATCH 06/13] boards: add BananaPi M2S defconfig

2023-03-23 Thread Christian Hewitt
Add configuration for the Bananapi BPI-M2S. Signed-off-by: Christian Hewitt --- configs/bananapi-m2s_defconfig | 82 ++ 1 file changed, 82 insertions(+) create mode 100644 configs/bananapi-m2s_defconfig diff --git a/configs/bananapi-m2s_defconfig

[PATCH 05/13] ARM: dts: add support for BananaPi M2S

2023-03-23 Thread Christian Hewitt
Import the device-tree from linux-amlogic/for-next (Linux 6.4-rc1) and omit the NPU node from the A311D board variant dts as this is not supported under U-Boot. Signed-off-by: Christian Hewitt --- arch/arm/dts/Makefile | 1 +

[PATCH 04/13] docs: boards: amlogic: add documentation for BananaPi M2-Pro

2023-03-23 Thread Christian Hewitt
Add build docs for the BPI-M2-PRO board. Signed-off-by: Christian Hewitt --- board/amlogic/u200/MAINTAINERS | 2 + doc/board/amlogic/bananapi-m2pro.rst | 142 +++ doc/board/amlogic/index.rst | 1 + 3 files changed, 145 insertions(+) create mode 100644

[PATCH 02/13] ARM: dts: add support for BananaPi M2-Pro

2023-03-23 Thread Christian Hewitt
Import the board dts from the linux-amlogic/for-next (6.4-rc1) branch. This involves spliting the BPI-M5 dts into a dtsi and then reusing this for the M2-Pro. Signed-off-by: Christian Hewitt --- arch/arm/dts/Makefile | 5 +-

[PATCH 03/13] boards: add BananaPi M2-Pro defconfig

2023-03-23 Thread Christian Hewitt
Add configuration for the BananaPi M2-Pro board. Signed-off-by: Christian Hewitt --- configs/bananapi-m2-pro_defconfig | 76 +++ 1 file changed, 76 insertions(+) create mode 100644 configs/bananapi-m2-pro_defconfig diff --git a/configs/bananapi-m2-pro_defconfig

[PATCH 01/13] docs: boards: amlogic: add bananapi-m5 to u200 maintainer file

2023-03-23 Thread Christian Hewitt
The bananapi-m5 docs are missing from the file, so add them. Signed-off-by: Christian Hewitt --- board/amlogic/u200/MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/board/amlogic/u200/MAINTAINERS b/board/amlogic/u200/MAINTAINERS index 47cec234a1..919e349922 100644 ---

[PATCH 00/13] boards: amlogic: add BananaPi/Radxa/WeTek boards

2023-03-23 Thread Christian Hewitt
This series adds support for the following boards which are tested and booting fine with 2023.04-rc4: - BananaPi M2-Pro (S905X3) - BananaPi M2S (A311D or S922X) - Radxa Zero2 (A311D) - WeTek Hub (S905) - WeTek Play2 (S905) I also spotted that bananapi-m5 wasn't referrences in the u200 maintainer

Re: [PATCH v2 1/2] lmb: Fix LMB_MEMORY_REGIONS flag usage

2023-03-23 Thread Michal Simek
On 3/22/23 19:12, Patrick Delaunay wrote: Remove test on CONFIG_LMB_MEMORY_REGIONS introduced by commit 7c1860fce4e3 ("lmb: Fix lmb property's defination under struct lmb"). This code in lmb_init() is strange, because if CONFIG_LMB_USE_MAX_REGIONS and CONFIG_LMB_MEMORY_REGIONS are not

Re: [PATCH] i2c: correct I2C deblock logic

2023-03-23 Thread Alexander Kochetkov
> If use this code, must make sure dts use GPIO_ACTIVE_LOW, otherwise > dm_gpio_set_dir_flags(pin, GPIOD_IS_OUT | GPIOD_IS_OUT_ACTIVE) will config > gpio output high, this is not what we want. Patrik told that if we don’t have GPIO_ACTIVE_LOW in the DTS, this is the case where hardware has

[PATCH v4 3/5] efi_loader: check lowest supported version in capsule update

2023-03-23 Thread Masahisa Kojima
The FMP Payload Header which EDK II capsule generation scripts insert contains lowest supported version. This commit reads the lowest supported version stored in the "FmpState" EFI non-volatile variable, then check if the firmware version of ongoing capsule is equal or greater than the lowest

[PATCH v4 5/5] test/py: efi_capsule: test for FMP versioning

2023-03-23 Thread Masahisa Kojima
This test covers FMP versioning for both raw and FIT image, and both signed and non-signed capsule update. Signed-off-by: Masahisa Kojima --- Newly created in v4 test/py/tests/test_efi_capsule/conftest.py| 58 + .../test_capsule_firmware_fit.py | 187

[PATCH v4 4/5] mkeficapsule: add FMP Payload Header

2023-03-23 Thread Masahisa Kojima
Current mkeficapsule tool does not provide firmware version management. EDK II reference implementation inserts the FMP Payload Header right before the payload. It coutains the fw_version and lowest supported version. This commit adds two new parameters required to generate the FMP Payload Header

[PATCH v4 1/5] efi_loader: store firmware version into FmpState variable

2023-03-23 Thread Masahisa Kojima
Firmware version management is not implemented in the current FMP protocol. EDK II reference implementation capsule generation script inserts the FMP Payload Header right before the payload, it contains the firmware version and lowest supported version. This commit utilizes the FMP Payload

[PATCH v4 2/5] efi_loader: versioning support in GetImageInfo

2023-03-23 Thread Masahisa Kojima
Current FMP->GetImageInfo() always return 0 for the firmware version, user can not identify which firmware version is currently running through the EFI interface. This commit reads the "FmpState" EFI variable, then fills the firmware version, lowest supported version, last attempt version and

[PATCH v4 0/5] FMP versioning support

2023-03-23 Thread Masahisa Kojima
Firmware version management is not implemented in the current FMP implementation. This series aims to add the versioning support in FMP. EDK II reference implementation utilizes the FMP Payload Header inserted right before the capsule payload. With this series, U-Boot also follows the EDK II

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-23 Thread Martin Rowe
On Wed, 22 Mar 2023 at 18:09, Pali Rohár wrote: > > On Wednesday 22 March 2023 11:14:42 Martin Rowe wrote: > > On Tue, 21 Mar 2023 at 17:26, Pali Rohár wrote: > > > > > On Tuesday 21 March 2023 08:34:24 Martin Rowe wrote: > > > > On Mon, 20 Mar 2023 at 21:33, Pali Rohár wrote: > > > > > > > > >

Re: [PATCH v2 1/3] starfive: pci: Add StarFive JH7110 pcie driver

2023-03-23 Thread Minda Chen
On 2023/3/11 1:42, Pali Rohár wrote: > On Friday 10 March 2023 18:36:44 Minda Chen wrote: >> On 2023/3/8 15:31, Pali Rohár wrote: >> > Hello! See few comments below. >> > >> > On Wednesday 08 March 2023 13:48:31 Minda Chen wrote: >> >> From: Mason Huo >> >> >> >> Add pcie driver for StarFive

RE: [PATCH] i2c: correct I2C deblock logic

2023-03-23 Thread Bough Chen
> -Original Message- > From: Alexander Kochetkov > Sent: 2023年3月23日 17:34 > To: Bough Chen > Cc: h...@denx.de; ma...@denx.de; u-boot@lists.denx.de; dl-uboot-imx > ; xypron.g...@gmx.de > Subject: Re: [PATCH] i2c: correct I2C deblock logic > > Or even simpler. Like your original patch. If

Re: [PATCH] i2c: correct I2C deblock logic

2023-03-23 Thread Alexander Kochetkov
Or even simpler. Like your original patch. If we take into accout Patrik’s comment from another message: > but if I assume that GPIO_ACTIVE_HIGH is NOT activated in DT static void i2c_gpio_set_pin(struct gpio_desc *pin, int bit) { if (bit) { dm_gpio_set_dir_flags(pin, GPIOD_IS_IN);

Re: [PATCH] gpio: add GPIOD_ACTIVE_LOW into GPIOD_MASK_DIR

2023-03-23 Thread Patrick DELAUNAY
Hi, On 3/23/23 09:17, Bough Chen wrote: -Original Message- From: Patrick DELAUNAY Sent: 2023年3月23日 3:11 To: Bough Chen ; al.koc...@gmail.com; h...@denx.de; s...@chromium.org; and...@aj.id.au; patrice.chot...@foss.st.com; sam...@sholland.org; ma...@denx.de Cc: dl-uboot-imx ;

Re: [PATCH 12/13] boards: amlogic: add WeTek Hub and WeTek Play2 defconfig

2023-03-23 Thread Neil Armstrong
On 23/03/2023 08:04, Christian Hewitt wrote: On 23 Mar 2023, at 10:54 am, Christian Hewitt via groups.io wrote: Add configurations for the WeTek Hub and WeTek Play2 boards along with files for the wetek-gxbb board family to ensure the ethernet MAC is correctly discovered. Set myself as the

Re: [PATCH 11/13] ARM: dts: add support for WeTek Hub and WeTek Play2

2023-03-23 Thread Neil Armstrong
On 23/03/2023 07:54, Christian Hewitt wrote: Import the dts files from linux-amlogic/for-next (Linux 6.4-rc1) and add the old PHY reset bindings for dwmac to the u-boot.dtsi until we support the new bindings in the PHY node. Without this the PHY is not functional in u-boot or Linux.

Re: [PATCH 09/13] boards: amlogic: add Radxa Zero2 defconfig

2023-03-23 Thread Neil Armstrong
On 23/03/2023 07:54, Christian Hewitt wrote: Add board configuration for the Radxa Zero2. Signed-off-by: Christian Hewitt --- configs/radxa-zero2_defconfig | 77 +++ 1 file changed, 77 insertions(+) create mode 100644 configs/radxa-zero2_defconfig diff

Re: [PATCH 08/13] ARM: dts: add support for Radxa Zero2

2023-03-23 Thread Neil Armstrong
On 23/03/2023 07:54, Christian Hewitt wrote: Import the device-tree from linux-amlogic/for-next (Linux 6.4-rc1) to support the Radxa-Zero2 board. Signed-off-by: Christian Hewitt --- arch/arm/dts/Makefile | 1 + .../dts/meson-g12b-radxa-zero2-u-boot.dtsi| 7 +

Re: [PATCH 06/13] boards: add BananaPi M2S defconfig

2023-03-23 Thread Neil Armstrong
On 23/03/2023 07:54, Christian Hewitt wrote: Add configuration for the Bananapi BPI-M2S. Signed-off-by: Christian Hewitt --- configs/bananapi-m2s_defconfig | 82 ++ 1 file changed, 82 insertions(+) create mode 100644 configs/bananapi-m2s_defconfig diff

Re: [PATCH 05/13] ARM: dts: add support for BananaPi M2S

2023-03-23 Thread Neil Armstrong
On 23/03/2023 07:54, Christian Hewitt wrote: Import the device-tree from linux-amlogic/for-next (Linux 6.4-rc1) and omit the NPU node from the A311D board variant dts as this is not supported under U-Boot. Signed-off-by: Christian Hewitt --- arch/arm/dts/Makefile |

Re: [PATCH 03/13] boards: add BananaPi M2-Pro defconfig

2023-03-23 Thread Neil Armstrong
On 23/03/2023 07:54, Christian Hewitt wrote: Add configuration for the BananaPi M2-Pro board. Signed-off-by: Christian Hewitt --- configs/bananapi-m2-pro_defconfig | 76 +++ 1 file changed, 76 insertions(+) create mode 100644 configs/bananapi-m2-pro_defconfig

Re: [PATCH 02/13] ARM: dts: add support for BananaPi M2-Pro

2023-03-23 Thread Neil Armstrong
On 23/03/2023 07:54, Christian Hewitt wrote: Import the board dts from the linux-amlogic/for-next (6.4-rc1) branch. This involves spliting the BPI-M5 dts into a dtsi and then reusing this for the M2-Pro. Signed-off-by: Christian Hewitt --- arch/arm/dts/Makefile | 5

Re: [PATCH 04/13] docs: boards: amlogic: add documentation for BananaPi M2-Pro

2023-03-23 Thread Neil Armstrong
On 23/03/2023 07:54, Christian Hewitt wrote: Add build docs for the BPI-M2-PRO board. Signed-off-by: Christian Hewitt --- board/amlogic/u200/MAINTAINERS | 2 + doc/board/amlogic/bananapi-m2pro.rst | 142 +++ doc/board/amlogic/index.rst | 1 + 3

Re: [PATCH 01/13] docs: boards: amlogic: add bananapi-m5 to u200 maintainer file

2023-03-23 Thread Neil Armstrong
On 23/03/2023 07:54, Christian Hewitt wrote: The bananapi-m5 docs are missing from the file, so add them. Signed-off-by: Christian Hewitt --- board/amlogic/u200/MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/board/amlogic/u200/MAINTAINERS b/board/amlogic/u200/MAINTAINERS

Re: [PATCH] i2c: correct I2C deblock logic

2023-03-23 Thread Alexander Kochetkov
Hello Haibo Chen! Setting GPIOD_ACTIVE_LOW has no effect. It filtered out by dm_gpio_set_dir_flags(). > > > if (bit) > - dm_gpio_set_dir_flags(pin, GPIOD_IS_IN); > + dm_gpio_set_dir_flags(pin, GPIOD_IS_IN | > +GPIOD_ACTIVE_LOW); Here in original code GPIOD_ACTIVE_LOW has not effect. else

Re: [PATCH v4 17/17] configs: starfive: add starfive_visionfive2_defconfig

2023-03-23 Thread Andreas Schwab
On Mär 22 2023, yanhong wang wrote: > On 2023/3/21 21:51, Andreas Schwab wrote: >> On Mär 21 2023, yanhong wang wrote: >> >>> Except for CONFIG_DEFAULT_DEVICE_TREE and CONFIG_DEFAULT_FDT_FILE, >>> 1.2a and 1.3b versions use the same config. >>> >>> Version 1.3b uses the following

[PATCH v1 1/1] arch: arm: zynqmp: mp.c: tcminit halt both cores in split mode

2023-03-23 Thread Neal Frager
The "zynqmp tcminit split" command should halt both cores and not just RPU1 when configuring the TCM memory for split mode. Signed-off-by: Neal Frager --- arch/arm/mach-zynqmp/mp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-zynqmp/mp.c b/arch/arm/mach-zynqmp/mp.c index

Re: [PATCH V2 0/3] nvmem: support post read for U-Boot's "ethaddr"

2023-03-23 Thread Srinivas Kandagatla
On 18/03/2023 17:13, Rafał Miłecki wrote: From: Rafał Miłecki This change is required for NVMEM consumers to get expected MAC address from U-Boot env data variable "ethaddr". To address some previous concerns: 1. Yes, U-Boot env binding & driver should be converted to NVMEM layout 2. My

RE: [PATCH] gpio: add GPIOD_ACTIVE_LOW into GPIOD_MASK_DIR

2023-03-23 Thread Bough Chen
> -Original Message- > From: Patrick DELAUNAY > Sent: 2023年3月23日 3:11 > To: Bough Chen ; al.koc...@gmail.com; h...@denx.de; > s...@chromium.org; and...@aj.id.au; patrice.chot...@foss.st.com; > sam...@sholland.org; ma...@denx.de > Cc: dl-uboot-imx ; u-boot@lists.denx.de > Subject: Re:

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

2023-03-23 Thread Bough Chen
> -Original Message- > From: Luca Ellero > Sent: 2023年3月22日 0:01 > To: u-boot@lists.denx.de; sba...@denx.de; feste...@gmail.com; dl-uboot-imx > ; luca.ell...@brickedbrain.com; Ye Li ; > Peng Fan ; Bough Chen > Cc: Luca Ellero > Subject: [PATCH 1/3] dm: adc: add iMX93 ADC support > >

<    1   2