Re: [PATCH] arm: dts: imx8mn: sync dts from Linux Kernel

2022-06-21 Thread Peng Fan (OSS)
在 2022/6/21 1:33, Heiko Thiery 写道: Sync dts for imx8mn-evk with Linux Kernel and change name for PMIC used in SPL. commit 1cfa1e68af8d40ab233d5d27bc8446e4c5107571("arm64: dts: imx8mn-evk: fix the min/max voltages of the PMIC") commit bc046b952a5494b0dc53be28779460cee1214a3f("arm64: dts: imx8

Re: [PATCH] arm: dts: imx8mn: sync dts from Linux Kernel

2022-06-21 Thread Heiko Thiery
Hi, Am Di., 21. Juni 2022 um 09:03 Uhr schrieb Peng Fan (OSS) : > > > > 在 2022/6/21 1:33, Heiko Thiery 写道: > > Sync dts for imx8mn-evk with Linux Kernel and change name for PMIC used in > > SPL. > > > > commit 1cfa1e68af8d40ab233d5d27bc8446e4c5107571("arm64: dts: imx8mn-evk: > > fix the min/max

Re: [PATCH v3 7/8] net: add MV88E61xx DSA driver

2022-06-21 Thread Vladimir Oltean
On Mon, Jun 20, 2022 at 04:37:45PM -0700, Tim Harvey wrote: > On Mon, Jun 20, 2022 at 4:58 AM Vladimir Oltean > wrote: > > > > On Mon, May 23, 2022 at 11:25:48AM -0700, Tim Harvey wrote: > > > +/* bind and probe the switch mdios */ > > > +static int mv88e61xx_dsa_probe_mdio(struct udevice *dev) >

RE: [PATCH 06/10] reset/aspeed: Implement status callback

2022-06-21 Thread Ryan Chen
> -Original Message- > From: joel.s...@gmail.com On Behalf Of Joel Stanley > Sent: Monday, June 20, 2022 3:25 PM > To: Ryan Chen ; BMC-SW > ; Heiko Schocher > Cc: u-boot@lists.denx.de; Cédric Le Goater > Subject: [PATCH 06/10] reset/aspeed: Implement status callback > > The I2C driver

RE: [PATCH 07/10] i2c/aspeed: Fix reset control

2022-06-21 Thread Ryan Chen
> -Original Message- > From: joel.s...@gmail.com On Behalf Of Joel Stanley > Sent: Monday, June 20, 2022 3:25 PM > To: Ryan Chen ; BMC-SW > ; Heiko Schocher > Cc: u-boot@lists.denx.de; Cédric Le Goater > Subject: [PATCH 07/10] i2c/aspeed: Fix reset control > > The reset control was writ

RE: [PATCH 08/10] i2c/aspeed: Add AST2600 compatible

2022-06-21 Thread Ryan Chen
> -Original Message- > From: joel.s...@gmail.com On Behalf Of Joel Stanley > Sent: Monday, June 20, 2022 3:25 PM > To: Ryan Chen ; BMC-SW > ; Heiko Schocher > Cc: u-boot@lists.denx.de; Cédric Le Goater > Subject: [PATCH 08/10] i2c/aspeed: Add AST2600 compatible > > Signed-off-by: Joel S

[PATCH v1] phy: nuvoton: add NPCM7xx phy control driver

2022-06-21 Thread Jim Liu
add BMC NPCM750 phy control driver Signed-off-by: Jim Liu --- drivers/phy/Kconfig| 7 ++ drivers/phy/Makefile | 1 + drivers/phy/phy-npcm-usb.c | 215 + 3 files changed, 223 insertions(+) create mode 100644 drivers/phy/phy-npcm-usb.c diff -

[PATCH v1] usb: host: nuvoton: Add nuvoton NPCM7xx ehci/ohci driver

2022-06-21 Thread Jim Liu
Add nuvoton BMC NPCM750 ehci/ohci driver Signed-off-by: Jim Liu --- drivers/usb/host/Kconfig | 16 + drivers/usb/host/Makefile| 2 + drivers/usb/host/ehci-npcm.c | 119 +++ drivers/usb/host/ohci-npcm.c | 108 +++ 4 files

Re: [PATCH v2] watchdog: add amlogic watchdog support

2022-06-21 Thread Neil Armstrong
Hi Stefan, On 20/06/2022 16:55, Stefan Roese wrote: On 13.06.22 16:00, Philippe Boos wrote: Add support for hardware watchdog timer for Amlogic SoCs. This driver has been heavily inspired by his Linux equivalent (meson_gxbb_wdt.c). Reviewed-by: Jerome Brunet Reviewed-by: Neil Armstrong Sign

Re: [PATCH v5 00/23] FWU: Add FWU Multi Bank Update feature support

2022-06-21 Thread Sughosh Ganu
hi, On Mon, 20 Jun 2022 at 23:42, Patrick DELAUNAY wrote: > > Hi, > > On 6/9/22 14:29, Sughosh Ganu wrote: > > The patchset adds support for the FWU Multi Bank Update[1] > > feature. Certain aspects of the Dependable Boot[2] specification have > > also been implemented. > > > > The FWU multi bank

Re: [PATCH v5 03/23] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-06-21 Thread Patrick DELAUNAY
Hi, On 6/9/22 14:29, Sughosh Ganu wrote: In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate partition. Add a driver for reading from and writing to the metadata when the updatable images and the metadata are stored on

Re: [PATCH v5 04/23] stm32mp1: dk2: Add a node for the FWU metadata device

2022-06-21 Thread Patrick DELAUNAY
Hi, On 6/9/22 14:29, Sughosh Ganu wrote: The FWU metadata structure is accessed through the driver model interface. On the stm32mp157c-dk2 board, the FWU metadata is stored on the uSD card. Add the fwu-mdata node on the u-boot specifc dtsi file for accessing the metadata structure. Signed-off-b

Re: [PATCH v5 06/23] FWU: stm32mp1: Add helper functions for accessing FWU metadata

2022-06-21 Thread Patrick DELAUNAY
Hi, On 6/9/22 14:29, Sughosh Ganu wrote: Add helper functions needed for accessing the FWU metadata which contains information on the updatable images. These functions have been added for the STM32MP157C-DK2 board which has the updatable images on the uSD card, formatted as GPT partitions. Sign

[PATCH 1/3] ram: rk3399: Fix .set_rate_index() error handling

2022-06-21 Thread Lee Jones
Functions pointed to by this op pointer can return non-zero values indicating an error. Ensure any error value is propagated back up the call-chain. Signed-off-by: Lee Jones --- drivers/ram/rockchip/sdram_rk3399.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/ra

[PATCH 2/3] ram: rk3399: Fix faulty frequency change reports

2022-06-21 Thread Lee Jones
Frequency changes to 400MHz are presently reported as: lpddr4_set_rate_0: change freq to 4 mhz 0, 1 This is obviously wrong by 6 orders of magnitude. Ensure frequency changes are reported accurately. Signed-off-by: Lee Jones --- drivers/ram/rockchip/sdram_rk3399.c | 4 ++-- 1 file c

[PATCH 3/3] ram: rk3399: Conduct memory training at 400MHz

2022-06-21 Thread Lee Jones
Currently the default initialisation frequency is 50MHz. Although this does appear to be suitable for some LPDDR4 RAM chips, training at this low frequency has been seen to cause Column errors, leading to Capacity check errors on others. Here we force RAM initialisation to happen at 400MHz before

Re: [PATCH v5 02/23] FWU: Add FWU metadata structure and driver for accessing metadata

2022-06-21 Thread Etienne Carriere
Hello Sughosh, On Thu, 9 Jun 2022 at 14:30, Sughosh Ganu wrote: > > In the FWU Multi Bank Update feature, the information about the > updatable images is stored as part of the metadata, which is stored on > a dedicated partition. Add the metadata structure, and a driver model > uclass which pro

Re: [PATCH v5 03/23] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-06-21 Thread Etienne Carriere
Hello Sughosh, On Thu, 9 Jun 2022 at 14:30, Sughosh Ganu wrote: > > In the FWU Multi Bank Update feature, the information about the > updatable images is stored as part of the metadata, on a separate > partition. Add a driver for reading from and writing to the metadata > when the updatable image

Re: [PATCH v5 08/23] FWU: Add boot time checks as highlighted by the FWU specification

2022-06-21 Thread Etienne Carriere
Hi Sughosh, On Thu, 9 Jun 2022 at 14:31, Sughosh Ganu wrote: > > The FWU Multi Bank Update specification requires the Update Agent to > carry out certain checks at the time of platform boot. The Update > Agent is the component which is responsible for updating the firmware > components and mainta

Re: [PATCH v5 09/23] FWU: Add support for the FWU Multi Bank Update feature

2022-06-21 Thread Etienne Carriere
On Thu, 9 Jun 2022 at 14:31, Sughosh Ganu wrote: > > The FWU Multi Bank Update feature supports updation of firmware images > to one of multiple sets(also called banks) of images. The firmware > images are clubbed together in banks, with the system booting images > from the active bank. Informatio

Re: [PATCH v5 13/23] FWU: Add FWU metadata access driver for non-GPT MTD devices

2022-06-21 Thread Etienne Carriere
On Thu, 9 Jun 2022 at 14:31, Sughosh Ganu wrote: > > From: Masami Hiramatsu > > For the platform which doesn't have GPT partitions for the firmware > but on MTD devices, the FWU metadata is stored on MTD device as raw > image at specific offset. This driver gives the access methods > for the FWU

Re: [PATCH v5 14/23] dt/bindings: firmware: Add FWU metadata on MTD devices binding

2022-06-21 Thread Etienne Carriere
On Thu, 9 Jun 2022 at 14:31, Sughosh Ganu wrote: > > From: Masami Hiramatsu > > Add a devicetree-binding YAML file for the FWU metadata on MTD > devices without GPT. > > Signed-off-by: Masami Hiramatsu > Signed-off-by: Sughosh Ganu > --- > .../firmware/uboot,fwu-mdata-mtd.yaml | 38 +++

Re: [PATCH v5 15/23] tools: Add mkfwumdata tool for FWU metadata image

2022-06-21 Thread Etienne Carriere
On Thu, 9 Jun 2022 at 14:31, Sughosh Ganu wrote: > > From: Masami Hiramatsu > > Add 'mkfwumdata' tool which can generate an image of the FWU metadata > which is required for initializing the platform. > > Usage: > mkfwumdata -i NR_IMAGES -b NR_BANKS [--guid] \ > LOCATION_UUID0,IMAGE_TYPE_UU

Re: [PATCH v5 11/23] mkeficapsule: Add support for generating empty capsules

2022-06-21 Thread Etienne Carriere
On Thu, 9 Jun 2022 at 14:31, Sughosh Ganu wrote: > > The Dependable Boot specification[1] describes the structure of the > firmware accept and revert capsules. These are empty capsules which > are used for signalling the acceptance or rejection of the updated > firmware by the OS. Add support for

Re: [PATCH v5 07/23] FWU: STM32MP1: Add support to read boot index from backup register

2022-06-21 Thread Patrick DELAUNAY
Hi, On 6/9/22 14:29, Sughosh Ganu wrote: The FWU Multi Bank Update feature allows the platform to boot the firmware images from one of the partitions(banks). The first stage bootloader(fsbl) passes the value of the boot index, i.e. the bank from which the firmware images were booted from to U-Bo

Re: [PATCH v5 08/23] FWU: Add boot time checks as highlighted by the FWU specification

2022-06-21 Thread Patrick DELAUNAY
Hi, On 6/9/22 14:29, Sughosh Ganu wrote: The FWU Multi Bank Update specification requires the Update Agent to carry out certain checks at the time of platform boot. The Update Agent is the component which is responsible for updating the firmware components and maintaining and keeping the metada

[PATCH] toradex: tdx-cfg-block: add 0068 i.mx 8m mini sku

2022-06-21 Thread Philippe Schenker
From: Philippe Schenker Add new i.MX 8M Mini SKU to ConfigBlock handling. 0068: Verdin iMX8M Mini Quad 2GB Wi-Fi / BT IT (No CAN) This SKU is identical to 0055 but without CAN. Mention this in brackets so those modules can be distinguished. Signed-off-by: Philippe Schenker Reviewed-by: France

Re: [PATCH v5 09/23] FWU: Add support for the FWU Multi Bank Update feature

2022-06-21 Thread Patrick DELAUNAY
Hi, On 6/9/22 14:29, Sughosh Ganu wrote: The FWU Multi Bank Update feature supports updation of firmware images to one of multiple sets(also called banks) of images. The firmware images are clubbed together in banks, with the system booting images from the active bank. Information on the images

Re: [PATCH v5 10/23] FWU: cmd: Add a command to read FWU metadata

2022-06-21 Thread Patrick DELAUNAY
On 6/9/22 14:29, Sughosh Ganu wrote: Add a command to read the metadata as specified in the FWU specification and print the fields of the metadata. Signed-off-by: Sughosh Ganu --- cmd/Kconfig | 7 + cmd/Makefile| 1 + cmd/fwu_mdata.c | 74

Re: [PATCH v5 12/23] FWU: doc: Add documentation for the FWU feature

2022-06-21 Thread Patrick DELAUNAY
Hi, Two minor issues. On 6/9/22 14:29, Sughosh Ganu wrote: Add documentattion for the FWU Multi Bank Update feature. The document s/documentattio/documentation describes the steps needed for setting up the platform for the feature, as well as steps for enabling the feature on the platfor

Re: [PATCH v5 14/23] dt/bindings: firmware: Add FWU metadata on MTD devices binding

2022-06-21 Thread Patrick DELAUNAY
Hi, On 6/9/22 14:30, Sughosh Ganu wrote: From: Masami Hiramatsu Add a devicetree-binding YAML file for the FWU metadata on MTD devices without GPT. Signed-off-by: Masami Hiramatsu Signed-off-by: Sughosh Ganu --- .../firmware/uboot,fwu-mdata-mtd.yaml | 38 +++ 1 fi

Re: [PATCH v5 13/23] FWU: Add FWU metadata access driver for non-GPT MTD devices

2022-06-21 Thread Patrick DELAUNAY
Hi, On 6/9/22 14:30, Sughosh Ganu wrote: From: Masami Hiramatsu For the platform which doesn't have GPT partitions for the firmware but on MTD devices, the FWU metadata is stored on MTD device as raw image at specific offset. This driver gives the access methods for the FWU metadata informatio

Re: [PATCH v5 15/23] tools: Add mkfwumdata tool for FWU metadata image

2022-06-21 Thread Patrick DELAUNAY
Hi, one minor remark. On 6/9/22 14:30, Sughosh Ganu wrote: From: Masami Hiramatsu Add 'mkfwumdata' tool which can generate an image of the FWU metadata which is required for initializing the platform. Usage: mkfwumdata -i NR_IMAGES -b NR_BANKS [--guid] \ LOCATION_UUID0,IMAGE_TYPE_UUI

Re: [PATCH v5 15/23] tools: Add mkfwumdata tool for FWU metadata image

2022-06-21 Thread Michal Simek
On 6/21/22 12:57, Etienne Carriere wrote: On Thu, 9 Jun 2022 at 14:31, Sughosh Ganu wrote: From: Masami Hiramatsu Add 'mkfwumdata' tool which can generate an image of the FWU metadata which is required for initializing the platform. Usage: mkfwumdata -i NR_IMAGES -b NR_BANKS [--guid]

Re: [PATCH] arm: dts: imx8mn: sync dts from Linux Kernel

2022-06-21 Thread Fabio Estevam
Hi Heiko, On Tue, Jun 21, 2022 at 4:06 AM Heiko Thiery wrote: > > I think the way to sync dts is to choose one linux release RC to sync. > > not just sync partial. > > It is not partial .. I just wanted to show what changes are made. I also had the impression that this was a partial sync. Coul

Re: [PATCH] i2c: fix stack buffer overflow vulnerability in i2c md command

2022-06-21 Thread Nicolas IOOSS
Hello, I sent some days ago the vulnerability fix below. I have not received any reply yet. Could a maintainer take a look at it, please? Best regards, Nicolas --- Original Message --- Le vendredi 10 juin 2022 à 4:50 PM, a écrit : > From: Nicolas Iooss nicolas.iooss+ub...@ledger.fr >

Migrating drivers/usb/host/ohci-at91.c in U-Boot to DM?

2022-06-21 Thread Tom Rini
Hey, As part of migrating more CONFIG symbols to Kconfig, I ran in to drivers/usb/host/ohci-at91.c not being migrated to DM yet. As the symbols weren't migrated yet, that the deadline for this driver migration was v2019.07 and otherwise enforced in v2021.07 is probably a bit of a surprise here.

Migrating drivers/usb/host/ohci-lpc32xx.c in U-Boot to DM?

2022-06-21 Thread Tom Rini
Hey, As part of migrating more CONFIG symbols to Kconfig, I ran in to drivers/usb/host/ohci-lpc32xx.c not being migrated to DM yet. As the symbols weren't migrated yet, that the deadline for this driver migration was v2019.07 and otherwise enforced in v2021.07 is probably a bit of a surprise here

Re: [PATCH v2 8/8] ARM: imxrt1170_defconfig: Add i.MXRT1170 defconfig

2022-06-21 Thread Fabio Estevam
Hi Giulio, On Sat, Jun 18, 2022 at 11:32 AM Giulio Benetti wrote: > This is due to missing DCACHE function mmu_set_region_dcache_behaviour() > there is only an empty stub for it and so in the case of i.MXRT1050 when > using mxsfb.c, that calls that function, I've preferred to disable > until one

Re: [PATCH] arm: dts: imx8mn: sync dts from Linux Kernel

2022-06-21 Thread Tim Harvey
On Tue, Jun 21, 2022 at 6:06 AM Fabio Estevam wrote: > > Hi Heiko, > > On Tue, Jun 21, 2022 at 4:06 AM Heiko Thiery wrote: > > > > I think the way to sync dts is to choose one linux release RC to sync. > > > not just sync partial. > > > > It is not partial .. I just wanted to show what changes ar

Re: [PATCH v3 7/8] net: add MV88E61xx DSA driver

2022-06-21 Thread Tim Harvey
On Tue, Jun 21, 2022 at 12:21 AM Vladimir Oltean wrote: > > On Mon, Jun 20, 2022 at 04:37:45PM -0700, Tim Harvey wrote: > > On Mon, Jun 20, 2022 at 4:58 AM Vladimir Oltean > > wrote: > > > > > > On Mon, May 23, 2022 at 11:25:48AM -0700, Tim Harvey wrote: > > > > +/* bind and probe the switch mdio

Re: [PATCH v3 8/8] board: gw_ventana: enable MV88E61XX DSA support

2022-06-21 Thread Tim Harvey
On Mon, Jun 20, 2022 at 4:42 AM Vladimir Oltean wrote: > > On Mon, May 23, 2022 at 11:25:49AM -0700, Tim Harvey wrote: > > Add MV88E61XX DSA support: > > - update dt: U-Boot dsa driver requires different device-tree syntax > >than the linux driver in order to link the dsa ports to the mdio bu

Open-Source Firmware Conference 2022 in Sweden - September 19 - 21

2022-06-21 Thread Christian Walter
Dead u-boot community, The Open-Source Firmware Conference is *the* biggest conference worldwide around open-source firmware. We would like to invite all of you to be part of the OSFC this year again. For this year's OSFC, we will move to Sweden, Gothenburg from September 19th until the 21st.

[PATCH] mtd: mxs_nand_spl: fix nand_command protocol violation

2022-06-21 Thread Michael Trimarchi
From: Andrea Scian mxs_nand_command() implementation assume that it's working with a LP NAND, which is a common case nowadays and thus uses two bytes for column address. However this is wrong for NAND_CMD_READID and NAND_CMD_PARAM, which expects only one byte of column address, even for LP NANDs

Re: [PATCH V2] imx: imx93_11x11_evk: using binman to pack images

2022-06-21 Thread Alper Nebi Yasak
On 13/06/2022 09:13, Peng Fan (OSS) wrote: > From: Peng Fan > > Use BINMAN to generate flash.bin > > Signed-off-by: Peng Fan > --- > > Based on > https://patchwork.ozlabs.org/project/uboot/cover/20220611132035.32698-1-peng@oss.nxp.com/ > > V2: > Typo correct > > arch/arm/dts/imx93-11

[PATCH] soc: soc_ti_k3: identify j7200 SR2.0 SoCs

2022-06-21 Thread Bryan Brattlof
Anytime a new revision of a chip is produced, Texas Instruments will increment the 4 bit VARIANT section of the CTRLMMR_WKUP_JTAGID register by one. Typically this will be decoded as SR1.0 -> SR2.0 ... however a few TI SoCs do not follow this convention. Rather than defining a revision string arra