Re: [PATCH 1/8] video: rockchip: vop: Fix whitespace

2023-05-25 Thread Kever Yang
Hi Ondrej,     Thanks for you patches. On 2023/5/23 05:47, m...@xff.cz wrote: From: Ondrej Jirman Fix confusing use of indentation. Signed-off-by: Ondrej Jirman Reviewed-by: Kever Yang Thanks, - Kever --- drivers/video/rockchip/rk_vop.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [RFC PATCH 10/17] clk: sunxi: Add support for the D1 CCU

2023-05-25 Thread Sam Edwards
Hi again Andre, On 12/5/22 17:45, Andre Przywara wrote: +static struct ccu_clk_gate d1_gates[] = { + [CLK_BUS_MMC0] = GATE(0x84c, BIT(0)), + [CLK_BUS_MMC1] = GATE(0x84c, BIT(1)), + [CLK_BUS_MMC2] = GATE(0x84c, BIT(2)), + [CLK_BUS_UART0]

[PATCH v5 3/3] Load option with short device path for boot vars

2023-05-25 Thread Raymond Mao
The boot variables automatically generated for removable medias should be with short form of device path without device nodes. This is a requirement for the case that a removable media is plugged into a different port but is still able to work with the existing boot variables. Signed-off-by:

[PATCH v5 2/3] Boot var automatic management for removable medias

2023-05-25 Thread Raymond Mao
Changes for complying to EFI spec §3.5.1.1 'Removable Media Boot Behavior'. Boot variables can be automatically generated during a removable media is probed. At the same time, unused boot variables will be detected and removed. Signed-off-by: Raymond Mao --- Changes in v2 - Ignore EFI_NOT_FOUND

[PATCH v5 1/3] Move bootorder and bootoption apis to lib

2023-05-25 Thread Raymond Mao
Rename and move bootorder and bootoption apis from cmd to lib for re-use between eficonfig and bootmgr Signed-off-by: Raymond Mao --- Changes in v2 - Ignore EFI_NOT_FOUND returned from efi_bootmgr_update_media_device_boot_option which means no boot options scanned. Changes in v3 - Split the

Re: Pull request: please pull u-boot-imx-20230525

2023-05-25 Thread Tom Rini
a2c418e2536ead4b51c4d84a59926b3f1: > > Merge tag 'efi-2023-07-rc3' of > https://source.denx.de/u-boot/custodians/u-boot-efi (2023-05-16 11:23:30 > -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git &g

[PATCH v2 5/5] imx8mn-var-som: adjust PHY reset gpios according to hardware configuration

2023-05-25 Thread Hugo Villeneuve
From: Hugo Villeneuve For SOM with the EC configuration, the ethernet PHY is located on the SOM itself, and connected to the CPU ethernet controller. It has a reset line controlled via GPIO1_IO9. In this configuration, the PHY located on the carrier board is not connected to anything and is

[PATCH v2 3/5] arm: dts: imx8mn-var-som: fix PHY detection bug by adding deassert delay

2023-05-25 Thread Hugo Villeneuve
From: Hugo Villeneuve While testing the ethernet interface on a Variscite symphony carrier board using an imx8mn SOM with an onboard ADIN1300 PHY (EC hardware configuration), the ethernet PHY is not detected. The ADIN1300 datasheet indicate that the "Management interface active (t4)" state is

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

2023-05-25 Thread Hugo Villeneuve
From: Hugo Villeneuve Read ethernet MAC address from EEPROM located on the SOM. Signed-off-by: Hugo Villeneuve --- arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi | 13 + arch/arm/mach-imx/imx8m/Kconfig | 1 + 2 files changed, 14 insertions(+) diff --git

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

2023-05-25 Thread Hugo Villeneuve
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 --- .../dts/imx8mn-var-som-symphony-u-boot.dtsi | 4 +

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

2023-05-25 Thread Hugo Villeneuve
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 linux")

[PATCH v2 0/5] imx8mn-var-som: fix ethernet for Variscite symphony board and imx8m nano SOM

2023-05-25 Thread Hugo Villeneuve
From: Hugo Villeneuve Hello, This patch series fixes bugs and add missing features related to the ethernet PHY on Variscite symphony carrier board with an imx8m nano SOM (P/N VAR-SOM-MX8M-NANO). Ethernet functionality is currently broken for the VAR-SOM-MX8M-NANO. Variscite imx8m nano SOM

Re: [PATCH v4 2/3] Boot var automatic management for removable medias

2023-05-25 Thread Raymond Mao
On Thu, 25 May 2023 at 09:55, Ilias Apalodimas wrote: > On Tue, May 23, 2023 at 12:18:20PM -0700, Raymond Mao wrote: > > Changes for complying to EFI spec §3.5.1.1 > > 'Removable Media Boot Behavior'. > > Boot variables can be automatically generated during a removable > > media is probed. At

Re: USB mass storage gadget on SAMA5D2

2023-05-25 Thread Cristian.Birsan
Hi, On 5/22/23 12:00, admin LI wrote: > > > I think there may be some racing in the driver. (Purely assumption as a > tinyusb maintainer) > If I enable DBG_ALL in atmel_usba_udc.h, the block device is enermurated > although with I/O error. What are you trying to achieve ? If you want

Re: [PATCH v4 2/3] Boot var automatic management for removable medias

2023-05-25 Thread Ilias Apalodimas
On Thu, 25 May 2023 at 19:42, Raymond Mao wrote: > > > > On Thu, 25 May 2023 at 09:55, Ilias Apalodimas > wrote: >> >> On Tue, May 23, 2023 at 12:18:20PM -0700, Raymond Mao wrote: >> > Changes for complying to EFI spec §3.5.1.1 >> > 'Removable Media Boot Behavior'. >> > Boot variables can be

Re: [RFC PATCH 08/17] sunxi: introduce NCAT2 generation model

2023-05-25 Thread Maksim Kiselev
Hi, Andre Could you please include this fix for i2c in the next version of this series. diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c index 93bbc6916e..d088ea75b9 100644 --- a/drivers/i2c/mvtwsi.c +++ b/drivers/i2c/mvtwsi.c @@ -124,7 +124,7 @@ enum mvtwsi_ctrl_register_fields {   *

Re: [PATCH v2] PCI: zynqmp: Add ZynqMP NWL PCIe root port driver

2023-05-25 Thread Michal Simek
On 5/25/23 11:49, Stefan Roese wrote: This patch adds the PCIe controller driver for the Xilinx / AMD ZynqMP NWL PCIe Bridge as root port. The driver source is partly copied from the Linux PCI driver and modified to enable usage in U-Boot (e.g. simplified and interrupt support removed).

Re: Fit Signature booting without public key

2023-05-25 Thread Tom Rini
On Thu, May 25, 2023 at 11:21:44AM +0530, Manorit Chawdhry wrote: > Hi Tom, > > On 11:30-20230516, Tom Rini wrote: > > On Tue, May 16, 2023 at 12:11:24PM +0530, Manorit Chawdhry wrote: > > > > > Hi All, > > > > > > I recently came upon a discussion that had happened a while back [0]. > > > I

Re: [PATCH v4 2/3] Boot var automatic management for removable medias

2023-05-25 Thread Ilias Apalodimas
On Tue, May 23, 2023 at 12:18:20PM -0700, Raymond Mao wrote: > Changes for complying to EFI spec §3.5.1.1 > 'Removable Media Boot Behavior'. > Boot variables can be automatically generated during a removable > media is probed. At the same time, unused boot variables will be > detected and removed.

[PATCH] pinephone-pro: Fix I/O port voltage (GPIO3D4A is 1.8V)

2023-05-25 Thread Ondřej Jirman
From: Ondrej Jirman This fixes access to camera sensor over I2C during probe time in the kernel. (Kernel will fix I/0 port voltage by itself, but the timing depends on probe order of the drivers, so the fix can come after the camera sensor driver already failed to probe.) Signed-off-by: Ondrej

[PATCH v1] common/memsize.c: Fix get_ram_size() when cache is enabled

2023-05-25 Thread Francesco Dolcini
From: Emanuele Ghidoli Ensure that every write is flushed to memory and afterward reads are from memory. Since the algorithm rely on the fact that accessing to not existent memory lead to write at addr / 2 without this modification accesses to aliased (not physically present) addresses are

Re: mmc: Read eMMC partition access bits before card reset

2023-05-25 Thread Stefan Roese
Hi Tony, Hi Pali, On 5/18/23 22:55, Tony Dinh wrote: Hi Stefan, On Wed, May 17, 2023 at 1:26 AM Stefan Roese wrote: Hi Pali, On 5/17/23 00:30, Pali Rohár wrote: On Tuesday 16 May 2023 14:56:46 Tom Rini wrote: On Tue, May 16, 2023 at 08:52:23PM +0200, Pali Rohár wrote: On Tuesday 16 May

[PATCH] video: hx8394: Add panel driver for hannstar,hsd060bhw4

2023-05-25 Thread Ondřej Jirman
From: Ondrej Jirman The driver is for panels based on the Himax HX8394 controller, such as the HannStar HSD060BHW4 720x1440 TFT LCD panel that uses a MIPI-DSI interface. This panel is used in Pinephone Pro. Signed-off-by: Ondrej Jirman Cc: Anatolij Gustschin --- drivers/video/Kconfig

modified UBoot to include I2C communication

2023-05-25 Thread Andy Goh
Dear Sir, I am working on a project based on NXP's iMX8M mini board, to include I2C library in the UBoot , I had browse thru UBoot website below, could anyone kindly advise which source file to amend and what are the code to include for I2C? like CONFIG_SYS_NUM_I2C_BUSES etc... is the

[PATCH] mmc: rpmb: poll mmc status after sending rpmb request

2023-05-25 Thread Ji Luo
polling the mmc status to make sure the rpmb request has been sent and the mmc is not in BUSY state. This avoids potential rpmb request failure during rpmb data write. Signed-off-by: Ji Luo --- drivers/mmc/rpmb.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/rpmb.c

[PATCH v5 2/2] serial: zynqmp: Fetch baudrate from dtb and update

2023-05-25 Thread Venkatesh Yadav Abbarapu
From: Algapally Santosh Sagar The baudrate configured in .config is taken by default by serial. If change of baudrate is required then the .config needs to changed and u-boot recompilation is required or the u-boot environment needs to be updated. To avoid this, support is added to fetch the

[PATCH v5 0/2] Add support to fetch baudrate from dtb

2023-05-25 Thread Venkatesh Yadav Abbarapu
In this patch series - Add support in Kconfig and convert for armada boards - Fetch baudrate from the dtb and update Changes in v5: - Adding DEFAULT_ENV_IS_RW Kconfig in missing files - Updating DEFAULT_ENV_IS_RW to CONFIG_DEFAULT_ENV_IS_RW Changes in v4: - Moved SERIAL_DT_BAUD to another patch

[PATCH v5 1/2] configs: Add support in Kconfig and convert for armada boards

2023-05-25 Thread Venkatesh Yadav Abbarapu
From: Algapally Santosh Sagar The DEFAULT_ENV_IS_RW is moved to the Kconfig for easier configuration. Hence, the CONFIG_DEFAULT_ENV_IS_RW config is added to the defconfig files to allow enabling them for armada boards. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Venkatesh Yadav

[PATCH] video: rockchip: Add support for RK3399 to dw-mipi-dsi bridge

2023-05-25 Thread Ondřej Jirman
From: Ondrej Jirman This just needs some extra clocks enabled, and different registers configured. Copied from Linux, just like the original submitter of this driver did for rk3568. Tested on Pinephone Pro. Signed-off-by: Ondrej Jirman Cc: Anatolij Gustschin Cc: Simon Glass Cc: Philipp

[PATCH] i2c: rockchip: De-initialize the bus after start bit failure

2023-05-25 Thread Ondřej Jirman
From: Ondrej Jirman Failure can happen when i2c is used without initializing pinctrl properly, which U-Boot happily allows in SPL. Without this fix, further I2C access would fail, even after proper pinctrl initialization. Signed-off-by: Ondrej Jirman Cc: Heiko Schocher ---

[PATCH] video: console: Fix default font selection

2023-05-25 Thread Ondřej Jirman
From: Ondrej Jirman Some callers expect to call this with NULL font name to select the default font (eg. boot/scene.c). Without handling the NULL condition U-Boot crashes instead of displaying a bootflow GUI menu. Signed-off-by: Ondrej Jirman Cc: Anatolij Gustschin ---

Re: [PATCH] ARM: stm32: Add IWDG handling into PSCI suspend code

2023-05-25 Thread Patrick DELAUNAY
Hi On 5/12/23 15:55, Marek Vasut wrote: On 5/12/23 15:43, Patrick DELAUNAY wrote: Hi, Hi, +    /* Ping IWDG2 and ACK pretimer IRQ */ +    if (iwdg2_wake) { +    writel(IWDG_KR_RELOAD_KEY, STM32_IWDG2_BASE + IWDG_KR); +    writel(IWDG_EWCR_EWIC, STM32_IWDG2_BASE +

Re: [PATCH] riscv: add backtrace support

2023-05-25 Thread Ben Dooks
On 15/05/2023 14:03, Ben Dooks wrote: When debugging, it is useful to have a backtrace to find out what is in the call stack as the previous function (RA) may not have been the culprit. Since this adds size to the build, do not add it by default and avoid putting it in the SPL build if not

Re: riscv: asm update for building ubifs

2023-05-25 Thread Ben Dooks
On 05/05/2023 09:02, Ben Dooks wrote: Fix misisng atomic and test_and_{set,clear}_bit macros to allow the ubi/ubifs code to be built for riscv. These are fairly simple but are not being used outside of ubifs on our builds. Has anyone had a chance to review these for merging? I may be losing

[PATCH v2] PCI: zynqmp: Add ZynqMP NWL PCIe root port driver

2023-05-25 Thread Stefan Roese
This patch adds the PCIe controller driver for the Xilinx / AMD ZynqMP NWL PCIe Bridge as root port. The driver source is partly copied from the Linux PCI driver and modified to enable usage in U-Boot (e.g. simplified and interrupt support removed). Signed-off-by: Stefan Roese Cc: Simon Glass

[PATCH v4 11/11] configs: starfive: Enable ID EEPROM configuration

2023-05-25 Thread Yanhong Wang
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

[PATCH v4 10/11] configs: starfive: Enable ethernet configuration for StarFive VisionFive2

2023-05-25 Thread Yanhong Wang
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 | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff

[PATCH v4 09/11] doc: board: starfive: Reword the make defconfig information

2023-05-25 Thread Yanhong Wang
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 insertions(+), 3 deletions(-) diff --git a/doc/board/starfive/visionfive2.rst

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

2023-05-25 Thread Yanhong Wang
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 --- arch/riscv/dts/Makefile | 3 +- ...

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

2023-05-25 Thread Yanhong Wang
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 | 8 +++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git

[PATCH v4 06/11] riscv: dts: jh7110: Add ethernet device tree nodes

2023-05-25 Thread Yanhong Wang
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| 69 +++ 2 files changed, 103 insertions(+)

[PATCH v4 05/11] board: starfive: Dynamic configuration of DT for 1.2A and 1.3B

2023-05-25 Thread Yanhong Wang
The main difference between StarFive VisionFive 2 1.2A and 1.3B is gmac. You can read the PCB version of the current board by get_pcb_revision_from_eeprom(), and then dynamically configure the difference of gmac in spl_perform_fixups() according to different PCB versions, so that one DT and one

[PATCH v4 03/11] eeprom: starfive: Enable ID EEPROM configuration

2023-05-25 Thread Yanhong Wang
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 + .../visionfive2/visionfive2-i2c-eeprom.c | 561 ++ 3 files changed,

[PATCH v4 04/11] ram: starfive: Read memory size information from EEPROM

2023-05-25 Thread Yanhong Wang
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 required capacity size information is read from EEPROM. If there is no

[PATCH v4 00/11] Add ethernet driver for StarFive JH7110 SoC

2023-05-25 Thread Yanhong Wang
This series of patches base on the latest branch/master,and adds ethernet support for the StarFive JH7110 RISC-V SoC. The series includes EEPROM, PHY and MAC drivers. The PHY model is YT8531 (from Motorcomm Inc), and the MAC version is dwmac-5.20 (from Synopsys DesignWare). The implementation of

[PATCH v4 02/11] net: dwc_eth_qos: Add StarFive ethernet driver glue layer

2023-05-25 Thread Yanhong Wang
The StarFive ETHQOS hardware has its own clock and reset,so add a corresponding glue driver to configure them. Signed-off-by: Yanhong Wang Reviewed-by: Ramon Fried --- drivers/net/Kconfig| 7 + drivers/net/Makefile | 1 + drivers/net/dwc_eth_qos.c |

[PATCH v4 01/11] net: phy: Add driver for Motorcomm yt8531 gigabit ethernet phy

2023-05-25 Thread Yanhong Wang
Add a driver for the motorcomm yt8531 gigabit ethernet phy. We have verified the driver on StarFive VisionFive2 board. Signed-off-by: Yanhong Wang Reviewed-by: Ramon Fried --- drivers/net/phy/Kconfig | 6 + drivers/net/phy/Makefile| 1 + drivers/net/phy/motorcomm.c | 437

eMMC errors on RK3588 (rock5b)

2023-05-25 Thread Eugen Hristev
Hi Jonas, I tried some basic eMMC read/write commands, and in my setup with rock5b, it fails at single/multiple block read/write , even if sometimes, the initial read works fine. Here is some log : => mmc read 0x5000 64 1 CMD_SEND:0 ARG 0x

Re: [RFC PATCH v8 12/23] cli: Enables using hush 2021 parser as command line parser

2023-05-25 Thread Patrick DELAUNAY
Hi, On 5/13/23 03:19, Heinrich Schuchardt wrote: On 5/12/23 22:03, Francis Laniel wrote: If one defines HUSH_2021_PARSER, it is then possible to use 2021 parser with: => cli get old => cli set 2021 => cli get 2021 We don't need such a command. Just allow only one parser. For information

[PATCH] mkimage: ecdsa: password for signing from environment

2023-05-25 Thread Stefano Babic
Use a variable (MKIMAGE_SIGN_PASSWORD) like already done for RSA to allow the signing process to run in batch. Signed-off-by: Stefano Babic --- lib/ecdsa/ecdsa-libcrypto.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/ecdsa/ecdsa-libcrypto.c

Re: [PATCH] ARM: stm32: Power cycle Buck3 in reset on DHSOM

2023-05-25 Thread Patrick DELAUNAY
Hi Marek, On 5/18/23 00:02, Marek Vasut wrote: In case the DHSOM is in suspend state and either reset button is pushed or IWDG2 triggers a watchdog reset, then DRAM initialization could fail as follows: " RAM: DDR3L 32bits 2x4Gb 533MHz DDR invalid size : 0x4, expected 0x4000

Re: [PATCH] doc: android: Fix a typo

2023-05-25 Thread Mattijs Korpershoek
On jeu., mai 25, 2023 at 14:30, Bin Meng wrote: > %s/than/then > > Signed-off-by: Bin Meng > --- Reviewed-by: Mattijs Korpershoek > > doc/android/boot-image.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/doc/android/boot-image.rst b/doc/android/boot-image.rst >

Re: [PATCH v4 3/3] Load option with short device path for boot vars

2023-05-25 Thread Ilias Apalodimas
Hi Raymond, On Tue, May 23, 2023 at 12:18:22PM -0700, Raymond Mao wrote: > The boot variables automatically generated for removable medias > should be with short form of device path without device nodes. > This is a requirement for the case that a removable media is > plugged into a different

Pull request: please pull u-boot-imx-20230525

2023-05-25 Thread Stefano Babic
-05-16 11:23:30 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git tags/u-boot-imx-20230525 for you to fetch changes up to ff476897ed698eae1fa439d52b30694a2b40464a: serial: mxs: Add MXS AUART driver (2023-05-21 16:54:41 +0200

[PATCH] doc: android: Fix a typo

2023-05-25 Thread Bin Meng
%s/than/then Signed-off-by: Bin Meng --- doc/android/boot-image.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/android/boot-image.rst b/doc/android/boot-image.rst index c719b4d711..8f247c7093 100644 --- a/doc/android/boot-image.rst +++ b/doc/android/boot-image.rst