Re: [PATCH 0/2] mach-meson: port dwc2_otg usage to CONFIG_DM_USB_GADGET=y

2023-01-17 Thread Neil Armstrong
Hi, On Wed, 23 Nov 2022 16:42:48 +0100, Mattijs Korpershoek wrote: > While working on some USB bugs on the VIM3L board, we stumbled upon the fact > that mach-meson still uses legacy board_usb_*() functions instead of using DM > [1] > > This series aim to switch the g12a based boards to use

Re: [PATCH] ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository

2023-01-17 Thread Pali Rohár
On Monday 16 January 2023 16:33:09 Tony Dinh wrote: > Hi all, > > On Sat, Jan 14, 2023 at 1:45 PM Tony Dinh wrote: > > > > Hi Pali & Tom, > > > > On Sat, Jan 14, 2023 at 12:06 PM Pali Rohár wrote: > > > > > > On Saturday 14 January 2023 15:03:41 Tom Rini wrote: > > > > On Sat, Jan 14, 2023 at

Re: [PATCH v2] ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository

2023-01-17 Thread Pali Rohár
Hello! Thank you for update. It is much better. On Monday 16 January 2023 21:34:39 Tony Dinh wrote: > This syncs drivers/ddr/marvell/a38x/ with the master branch of repository > https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git > > up to the commit "mv_ddr: a3700: Use

[PATCH v1 1/3] ARM: dts: npcm8xx: add npcm845 function node

2023-01-17 Thread Jim Liu
Add functaion node list as below: 1. i2c 2. gmac 3. otp 4. aes 5. sha 6. rng 7. serial Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 358 +++ arch/arm/dts/nuvoton-npcm845-evb.dts | 198 + arch/arm/dts/nuvoton-npcm8xx-u-boot.dtsi | 134

[PATCH v1 0/3] add npcm845 function config and dts node

2023-01-17 Thread Jim Liu
1. Enable Nuvoton BMC npcm844 function config and add dts node. 2. Add header file for npcm8xx security key feature. Jim Liu (3): ARM: dts: npcm8xx: add npcm845 function node ARM: config: enable function for nuvoton npcm845 bmc arm: npcm8xx: add security feature header

[PATCH 2/2] ARM: meson: switch AXG & GX dwc2 otg to DM

2023-01-17 Thread Neil Armstrong
With CONFIG_DM_USB_GADGET=y, we no longer need any board_usb_*() logic because: * the dwc2 driver is DM compatible, and handles its own clock enabling * the dwc3-meson-gxl glue drivers handles "force mode switching" Remove all mach-meson gx & axg usb code and enable CONFIG_DM_USB_GADGET. Note:

[PATCH 0/2] mach-meson: port GXL & AXG dwc2_otg usage to CONFIG_DM_USB_GADGET=y

2023-01-17 Thread Neil Armstrong
ers/usb/dwc3/dwc3-meson-gxl.c| 18 + 13 files changed, 28 insertions(+), 266 deletions(-) --- base-commit: b96640cbfb319071aea7915cfa2f7aefe08bbc08 change-id: 20230117-u-boot-usb-gxl-otg-dm-013ee8718190 Best regards, -- Neil Armstrong

[PATCH 1/2] usb: dwc3-meson-gxl: force mode on child add/removal

2023-01-17 Thread Neil Armstrong
arch/mach-meson has some custom usb logic, in particular: * on board_usb_init(), we force USB_DR_MODE_PERIPHERAL * on board_usb_cleanup(), we force USB_DR_MODE_HOST With DM_USB_GADGET=y, board_usb_init/cleanup() are no longer used when we call usb_gadget_initialize(). Instead, the generic (from

[PATCH] cmd: event: Remove additional event description

2023-01-17 Thread Michal Simek
The first name is taken from command name that's why shouldn't be listed in help. The similar change was also done by commit a84d3b6c5634 ("cmd: pwm: Remove additional pwm description"). Also remove additional spaces in help message. Before: event event list - list event spies After: event

Re: U-Boot: extlinux.conf boot menu support appears to be broken by commit 739e8361f3fe78038251216df6096a32bc2d5839

2023-01-17 Thread Manuel Traut
Hi Karsten, thanks for your report. Can you test with the attached patch? I do not have access to a hardware today, but I will test it tomorrow. Regards Manuel Am 16.01.2023 um 19:50 hat Karsten Merker geschrieben: > Hello, > > it looks like the following commit has broken the extlinux.conf >

[PATCH v2 3/4] arm64: dts: rockchip: rk3566: Add Radxa Compute Module 3 IO

2023-01-17 Thread Jagan Teki
Radxa Compute Module 3(CM3) IO board an application board from Radxa and is compatible with Raspberry Pi CM4 IO form factor. Specification: - 1x HDMI, - 2x MIPI DSI - 2x MIPI CSI2 - 1x eDP - 1x PCIe card - 2x SATA - 2x USB 2.0 Host - 1x USB 3.0 - 1x USB 2.0 OTG - Phone jack - microSD slot -

[PATCH v2 4/4] board: rockchip: Add Radxa Compute Module 3 IO Board

2023-01-17 Thread Jagan Teki
Radxa Compute Module 3(CM3) IO board an application board from Radxa and is compatible with Raspberry Pi CM4 IO form factor. Radxa CM3 needs to mount on top of this IO board in order to create complete Radxa CM3 IO board platform. Add support for Radxa CM3 IO Board defconfig and -u-boot.dtsi

[PATCH v2 2/4] arm64: dts: rockchip: rk3566: Add Radxa Compute Module 3

2023-01-17 Thread Jagan Teki
Radxa Compute Module 3(CM3) is one of the modules from a series System On Module based on the Radxa ROCK 3 series and is compatible with Raspberry Pi CM4 pinout and form factor. Specification: - Rockchip RK3566 - up to 8GB LPDDR4 - up to 128GB high performance eMMC - Optional wireless LAN, 2.4GHz

[PATCH v2 1/4] dt-bindings: rockchip: Sync rockchip, vop2.h from Linux

2023-01-17 Thread Jagan Teki
Sync rockchip,vop2.h from linux-next, and the last commit is commit <604be85547ce> ("drm/rockchip: Add VOP2 driver") Reviewed-by: Kever Yang Signed-off-by: Jagan Teki --- Changes for v2: - collect Kever RB include/dt-bindings/soc/rockchip,vop2.h | 14 ++ 1 file changed, 14

Re: [PATCH] dm: pinctrl: Revert "pinctrl: probe pinctrl drivers during post-bind"

2023-01-17 Thread Robert Marko
On Fri, Jan 13, 2023 at 12:43 AM Simon Glass wrote: > > Hi, > > On Tue, 3 Jan 2023 at 10:05, Simon Glass wrote: > > > > Hi Robert, > > > > On Fri, 30 Dec 2022 at 13:26, Robert Marko wrote: > > > > > > > > > > > > On Fri, Dec 30, 2022 at 8:02 PM Simon Glass wrote: > > >> > > >> Hi Pali, > > >>

Re: [PATCH v1] arm: dts: rockchip: sync rk3066/rk3188 DT files from linux-next v6.2-rc4

2023-01-17 Thread Quentin Schulz
Hi Johan, On 1/16/23 20:45, Johan Jonker wrote: Sync rk3066/rk3188 DT files from Linux. This is the state as of linux-next v6.2-rc4. New nfc node for MK808 rk3066a. CRU nodes now have a clock property. To prefend dtoc errors a fixed clock must also be included for tpl/spl in the

Please pull u-boot-marvell/master

2023-01-17 Thread Stefan Roese
Hi Tom, please pull this small batch of Marvell related patches: - kirkwood: Convert to DM Serial for various Kirkwood boards (Tony) - orion-timer: Fix problem in early_init_done() (Stefan)

Re: [PATCH] ARM: dts: imx8mm-evk: Fix wrong PMIC device for new EVK board

2023-01-17 Thread Marcel Ziswiler
Hi Ye Li On Tue, 2023-01-17 at 13:34 +0800, Ye Li wrote: > In commit 48ddafd (imx8mm_evk: Switch to new imx8mm evk board), > the iMX8MM EVK support was updated to new EVK board which is > using PCA9450A PMIC. > But the commit 24a7a3c (imx8mm: synchronise device tree with linux) > changed DTS node

Re: [PATCH 2/2] ARM: meson: switch AXG & GX dwc2 otg to DM

2023-01-17 Thread Mattijs Korpershoek
On Tue, Jan 17, 2023 at 10:11, Neil Armstrong wrote: > With CONFIG_DM_USB_GADGET=y, we no longer need any board_usb_*() logic > because: > * the dwc2 driver is DM compatible, and handles its own clock enabling > * the dwc3-meson-gxl glue drivers handles "force mode switching" > > Remove all

Re: [PATCH 1/2] usb: dwc3-meson-gxl: force mode on child add/removal

2023-01-17 Thread Mattijs Korpershoek
On Tue, Jan 17, 2023 at 10:11, Neil Armstrong wrote: > arch/mach-meson has some custom usb logic, in particular: > * on board_usb_init(), we force USB_DR_MODE_PERIPHERAL > * on board_usb_cleanup(), we force USB_DR_MODE_HOST > > With DM_USB_GADGET=y, board_usb_init/cleanup() are no > longer used

Re: [PATCH 1/2] usb: dwc3-meson-gxl: force mode on child add/removal

2023-01-17 Thread Marek Vasut
On 1/17/23 10:43, Mattijs Korpershoek wrote: On Tue, Jan 17, 2023 at 10:11, Neil Armstrong wrote: arch/mach-meson has some custom usb logic, in particular: * on board_usb_init(), we force USB_DR_MODE_PERIPHERAL * on board_usb_cleanup(), we force USB_DR_MODE_HOST With DM_USB_GADGET=y,

[PATCH v1 3/3] arm: npcm8xx: add security feature header

2023-01-17 Thread Jim Liu
The NPCM driver can use on npcm7xx/npcm8xx so add npcm8xx header for driver. Signed-off-by: Jim Liu --- arch/arm/include/asm/arch-npcm8xx/aes.h | 53 ++ arch/arm/include/asm/arch-npcm8xx/otp.h | 93 + arch/arm/include/asm/arch-npcm8xx/rng.h | 43

[PATCH v1 2/3] ARM: config: enable function for nuvoton npcm845 bmc

2023-01-17 Thread Jim Liu
Enable npcm845 i2c、ethernet、REGULATOR and security feature Signed-off-by: Jim Liu --- configs/arbel_evb_defconfig | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index aa857661d9..8f8a603b50 100644

Re: [PATCH] arm: kirkwood: Convert to DM Serial for various Kirkwood boards

2023-01-17 Thread Stefan Roese
On 12/30/22 06:45, Tony Dinh wrote: For Kirkwood boards, it is necessary to have early malloc in DRAM area when Driver Model for Serial is enabled. Please see Michael's patch here: https://lore.kernel.org/u-boot/20220817193809.1059688-20-mich...@walle.cc/ This patch enables the early malloc in

Re: [PATCH] timer: orion-timer: Fix problem in early_init_done()

2023-01-17 Thread Stefan Roese
On 1/16/23 18:54, Pali Rohár wrote: On Monday 16 January 2023 16:34:45 Stefan Roese wrote: It was noticed that Clearfog is currently broken with this newly introduced early_init_done() function. Apparently the timer is enabled here when U-Boot is run but not configured - at least not correctly.

Re: [PATCH v4 1/2] dts: imx8mp: assign binman_configuration label to config-SEQ

2023-01-17 Thread Fabio Estevam
On Tue, Jan 17, 2023 at 4:15 PM Ying-Chun Liu (PaulLiu) wrote: > > assign a label for config-SEQ so that the board dts can modify > the configuration more easily. > > Signed-off-by: Ying-Chun Liu (PaulLiu) > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: NXP i.MX U-Boot Team Reviewed-by: Fabio

Re: [PATCH v4 2/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Fabio Estevam
On Tue, Jan 17, 2023 at 4:15 PM Ying-Chun Liu (PaulLiu) wrote: > > The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list > support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. > This commit fixes the break by modify the configuration properly. > > Signed-off-by:

Re: [PATCH 1/1] doc: man-page for bdinfo

2023-01-17 Thread Heinrich Schuchardt
On 1/17/23 21:30, Simon Glass wrote: On Sun, 15 Jan 2023 at 05:00, Heinrich Schuchardt wrote: Provide a man-page for the bdinfo command Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/bdinfo.rst | 119 +++ doc/usage/index.rst | 1 + 2

[PATCH 2/7] iommu: apple: Implement DMA mapping operations for Apple DART

2023-01-17 Thread Mark Kettenis
Implement translation table support for all the variations of Apple's DART IOMMU that can be found on Apple's M1 and M2 SoCs. Signed-off-by: Mark Kettenis --- drivers/iommu/apple_dart.c | 311 + 1 file changed, 277 insertions(+), 34 deletions(-) diff --git

[PATCH 3/7] usb: xhci: Implement DMA mapping

2023-01-17 Thread Mark Kettenis
An XHCI controller that sits behind an IOMMU needs to map and unmap its memory buffers to do DMA. Implement this by inroducing new xhci_dma_map() and xhci_dma_unmap() helper functions. The xhci_dma_map() function replaces the existing xhci_virt_to_bus() function in the sense that it returns the

[PATCH 5/7] pci: Add Apple PCIe controller driver

2023-01-17 Thread Mark Kettenis
This driver supports the PCIe controller on the Apple M1 and M2 SoCs. The code is adapted from the Linux driver. Signed-off-by: Mark Kettenis --- MAINTAINERS | 1 + arch/arm/Kconfig | 2 + drivers/pci/Kconfig | 9 + drivers/pci/Makefile | 1 +

[PATCH 7/7] usb: xhci: Fix root hub descriptor

2023-01-17 Thread Mark Kettenis
When a system has multiple XHCI controllers, some of the properties described in the descriptor of the root hub (such as the number of ports) might differ between controllers. Fix this by switching from a single global hub descriptor to a hub descriptor per controller. Signed-off-by: Mark

[PATCH 6/7] arm: apple: Enable PCIe USB controller

2023-01-17 Thread Mark Kettenis
Some Apple Silicon machines have a PCIe XHCI controller in additon to the DWC3 controllers integrated on the SoC. On the Mac mini the Type-A ports are handled by this PCIe controller. Enabling it allows the use of these ports in U-Boot. Signed-off-by: Mark Kettenis ---

[PATCH 4/7] iommu: Implement mapping IOMMUs for PCI devices

2023-01-17 Thread Mark Kettenis
Systems such as Apple's M1 and M2 SoCs may have separate IOMMUs for each PCIe root port. In this case the right IOMMU for a PCI device behind a particular root port is described by an "iommu-map" property in the device tree. Parse this property and use it to find the right IOMMU device for PCI

[PATCH 0/4] rockchip: Align FIT images to SD/MMC block length

2023-01-17 Thread Jonas Karlman
When I was trying to run mainline U-Boot on my new Rockchip RK3568 board I discovered that one segment of vendor TF-A could not successfully be loaded into SRAM, validation of the image sha256 hash failed. The issue with loading the data turned out to be because of how SPL load FIT images. It

[PATCH 1/4] binman: Add support for align argument to mkimage tool

2023-01-17 Thread Jonas Karlman
Add support to indicate what alignment to use for the FIT and its external data. Pass the alignment to mkimage via the -B flag. Signed-off-by: Jonas Karlman --- tools/binman/btool/mkimage.py | 5 - tools/binman/etype/fit.py | 8 2 files changed, 12 insertions(+), 1 deletion(-)

[PATCH 2/4] rockchip: Align FIT image data to SD/MMC block length

2023-01-17 Thread Jonas Karlman
SPL load FIT images by reading the data aligned to block length. Block length aligned image data is read directly to the load address. Unaligned image data is written to an offset of the load address and then the data is memcpy to the load address. This adds a small overhead of having to memcpy

Re: [PATCH v3] console: usb: kbd: Limit poll frequency to improve performance

2023-01-17 Thread Michal Suchánek
Hello, On Sat, Dec 17, 2022 at 01:49:47PM +0100, Filip Žaludek wrote: > > > Hello, > change seems to be unfriendly to RPi3B+, it allows to enter 'U-Boot>' shell > but usb keyboard > does not respond. Keyboard is detected by 'usb info' in v2023.01-rc3, not in > v2022.10. > When reverted, usb

Re: [PATCH v1 1/2] rockchip: configs: mk808: change CONFIG_TPL_TEXT_BASE

2023-01-17 Thread Simon Glass
On Mon, 16 Jan 2023 at 11:34, Johan Jonker wrote: > > Currently the Rockchip rk3066a u-boot-tpl.bin file needs > to add the characters "RK30", while the other SoCs replace > the first 4 bytes. Bring this in line with the rest by > lowering CONFIG_TPL_TEXT_BASE and update rockchip.rst >

Re: [PATCH v3 3/3] ARM: tegra: include timer as default option

2023-01-17 Thread Simon Glass
On Tue, 17 Jan 2023 at 09:53, Svyatoslav Ryhel wrote: > > Enable TIMER as default option for add Tegra devices and > enable TEGRA_TIMER for TEGRA_ARMV7_COMMON. Additionally > enable SPL_TIMER if build as SPL part and drop deprecated > configs from common header. > > Signed-off-by: Svyatoslav

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-17 Thread Andre Przywara
On Tue, 17 Jan 2023 17:23:57 -0500 Tom Rini wrote: > On Tue, Jan 17, 2023 at 10:15:46PM +, Andre Przywara wrote: > > On Tue, 17 Jan 2023 11:14:35 -0500 > > Tom Rini wrote: > > > > > On Tue, Jan 17, 2023 at 04:09:14PM +, Andre Przywara wrote: > > > > On Tue, 17 Jan 2023 08:15:18

Re: [PATCHv2 05/19] dm: ns16550: Restore how we define UART_REG

2023-01-17 Thread Andre Przywara
On Tue, 17 Jan 2023 17:10:50 -0500 Tom Rini wrote: > Prior to commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to > Kconfig") we had defined CONFIG_SYS_NS16550_REG_SIZE to -1 with > DM_SERIAL such that we would then have a size 0 character array. This > resulted in functionally no

[PATCH v3 0/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. v2: just rebase to the latest master branch. v3: rebase to the latest master branch.

[PATCH v3 1/2] dts: imx8mp: assign binman_configuration node name to config-SEQ

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
assign a node name for config-SEQ so that the board dts can modify the configuration more easily. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- v2: just rebase to the latest master branch. v3: rebase to the latest master branch. ---

[PATCH v3 2/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX

Re: [PATCH v2] ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository

2023-01-17 Thread Tony Dinh
Hi Pali, On Tue, Jan 17, 2023 at 12:35 AM Pali Rohár wrote: > > Hello! Thank you for update. It is much better. > > On Monday 16 January 2023 21:34:39 Tony Dinh wrote: > > This syncs drivers/ddr/marvell/a38x/ with the master branch of > > repository > >

Re: [PATCH v3 1/2] dts: imx8mp: assign binman_configuration node name to config-SEQ

2023-01-17 Thread Fabio Estevam
Hi Paul, On Tue, Jan 17, 2023 at 3:26 PM Ying-Chun Liu (PaulLiu) wrote: > > assign a node name for config-SEQ so that the board dts can modify > the configuration more easily. Actually, what you are adding is a label, not a node name. Please change the Subject and commit log accordingly.

Re: [PATCH] rockchip: derive GPIO bank from alias if available

2023-01-17 Thread Johan Jonker
On 1/17/23 19:15, John Keeping wrote: > Upstream device trees now use standard node names like "gpio@ff..." but > the rk_gpio driver expects a name like "gpio0@ff..." (note the index > before the @). > > This is not a change that can be made in a -u-boot.dtsi file, so > updating to the latest

RE: [PATCH v3 3/3] ARM: tegra: include timer as default option

2023-01-17 Thread Tom Warren
Svyatoslav, I was able to apply the first 2 patches OK to TOT u-boot-tegra/master, but not the this one (file offsets seem wrong). PTAL. I also would like someone who's using or has used T20/T30 lately to take a look, as I haven't had any interaction with those boards or builds for years, and

Re: [PATCH v1] arm: dts: rockchip: sync rk3066/rk3188 DT files from linux-next v6.2-rc4

2023-01-17 Thread Johan Jonker
On 1/17/23 18:27, John Keeping wrote: > Hi Quentin, > > On Tue, Jan 17, 2023 at 04:58:54PM +0100, Quentin Schulz wrote: >> On 1/17/23 16:20, John Keeping wrote: >>> Hi Johan, >>> >>> On Tue, Jan 17, 2023 at 03:44:07PM +0100, Johan Jonker wrote: On 1/17/23 10:46, Quentin Schulz wrote:

[PATCHv2 05/19] dm: ns16550: Restore how we define UART_REG

2023-01-17 Thread Tom Rini
Prior to commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig") we had defined CONFIG_SYS_NS16550_REG_SIZE to -1 with DM_SERIAL such that we would then have a size 0 character array. This resulted in functionally no padding. The confusion on my part came from dealing with the

Re: U-Boot: extlinux.conf boot menu support appears to be broken by commit 739e8361f3fe78038251216df6096a32bc2d5839

2023-01-17 Thread Karsten Merker
On Tue, Jan 17, 2023 at 09:39:09AM +0100 Manuel Traut wrote: > Can you test with the attached patch? [...] > From: Manuel Traut > Date: Tue, 17 Jan 2023 09:30:27 +0100 > Subject: [PATCH] menu: Ignore prompt variable if timeout is != 0 > > Since 739e8361f3fe78038251216df6096a32bc2d5839, a system

Re: [PATCH] cmd: event: Remove additional event description

2023-01-17 Thread Simon Glass
On Tue, 17 Jan 2023 at 03:44, Michal Simek wrote: > > The first name is taken from command name that's why shouldn't be listed in > help. The similar change was also done by commit a84d3b6c5634 ("cmd: pwm: > Remove additional pwm description"). > Also remove additional spaces in help message. > >

Re: [PATCH 1/1] doc: man-page for blkcache

2023-01-17 Thread Simon Glass
On Sun, 15 Jan 2023 at 03:38, Heinrich Schuchardt wrote: > > Provide a man-page for the blkcache command. > > Signed-off-by: Heinrich Schuchardt > --- > doc/usage/cmd/blkcache.rst | 74 ++ > doc/usage/index.rst| 1 + > 2 files changed, 75

Re: [PATCH v3 2/3] drivers: timer: add timer driver for ARMv7 based Tegra devices

2023-01-17 Thread Simon Glass
Hi Svyatoslav, On Tue, 17 Jan 2023 at 09:53, Svyatoslav Ryhel wrote: > > Add timer support for T20/T30/T114 and T124 based devices. > Driver is based on DM, has device tree support and can be > used on SPL and early boot stage. > > Tested-by: Andreas Westman Dorcsak # ASUS TF600T T30 >

Re: [PATCH 1/1] doc: man-page for bdinfo

2023-01-17 Thread Simon Glass
On Sun, 15 Jan 2023 at 05:00, Heinrich Schuchardt wrote: > > Provide a man-page for the bdinfo command > > Signed-off-by: Heinrich Schuchardt > --- > doc/usage/cmd/bdinfo.rst | 119 +++ > doc/usage/index.rst | 1 + > 2 files changed, 120 insertions(+)

Re: [PATCH v3 1/3] ARM: tegra: remap clock_osc_freq for all Tegra family

2023-01-17 Thread Simon Glass
On Tue, 17 Jan 2023 at 09:53, Svyatoslav Ryhel wrote: > > Enum clock_osc_freq was designed to use only with T20. > This patch remaps it to use additional frequencies, added in > T30+ SoC while maintaining backwards compatibility with T20. > > Tested-by: Andreas Westman Dorcsak # ASUS TF600T T30

Re: [PATCH 1/1] doc: man-page for blkcache

2023-01-17 Thread Heinrich Schuchardt
On 1/17/23 21:30, Simon Glass wrote: On Sun, 15 Jan 2023 at 03:38, Heinrich Schuchardt wrote: Provide a man-page for the blkcache command. Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/blkcache.rst | 74 ++ doc/usage/index.rst| 1 +

[PATCH v4 0/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. v2: just rebase to the latest master branch. v3: rebase to the latest master branch. v4: fix

[PATCH v4 1/2] dts: imx8mp: assign binman_configuration label to config-SEQ

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
assign a label for config-SEQ so that the board dts can modify the configuration more easily. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- v2: just rebase to the latest master branch. v3: rebase to the latest master branch. v4: fix

[PATCH v4 2/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX

Re: [PATCH v2] ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository

2023-01-17 Thread Pali Rohár
Hello! On Tuesday 17 January 2023 13:02:46 Tony Dinh wrote: > Hi Pali, > > On Tue, Jan 17, 2023 at 12:35 AM Pali Rohár wrote: > > > > Hello! Thank you for update. It is much better. > > > > On Monday 16 January 2023 21:34:39 Tony Dinh wrote: > > > This syncs drivers/ddr/marvell/a38x/ with

[PATCH 1/7] iommu: Add DMA mapping operations

2023-01-17 Thread Mark Kettenis
In order to support IOMMUs in non-bypass mode we need device ops to map and unmap DMA memory. The map operation enters a mapping for a region specified by CPU address and size into the translation table of the IOMMU and returns a DMA address suitable for programming the device to do DMA. The

[PATCH 0/7] Apple PCIe/XHCI support

2023-01-17 Thread Mark Kettenis
This series adds support for the PCIe controller found on Apple M1 and M2 machines and enables support for PCIe XHCI controllers. This makes the type-A USB ports on the M1 Mac mini work. Since the use of Apples DART IOMMU is mandatory (these PCIe DARTs don't support bypass mode), this adds DMA

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-17 Thread Andre Przywara
On Tue, 17 Jan 2023 11:14:35 -0500 Tom Rini wrote: > On Tue, Jan 17, 2023 at 04:09:14PM +, Andre Przywara wrote: > > On Tue, 17 Jan 2023 08:15:18 -0500 > > Tom Rini wrote: > > > > Hi Tom, > > > > > On Tue, Jan 17, 2023 at 12:09:38PM +, Andre Przywara wrote: > > > > > > > Commit

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-17 Thread Tom Rini
On Tue, Jan 17, 2023 at 10:15:46PM +, Andre Przywara wrote: > On Tue, 17 Jan 2023 11:14:35 -0500 > Tom Rini wrote: > > > On Tue, Jan 17, 2023 at 04:09:14PM +, Andre Przywara wrote: > > > On Tue, 17 Jan 2023 08:15:18 -0500 > > > Tom Rini wrote: > > > > > > Hi Tom, > > > > > > > On

Re: [PATCH v2] ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository

2023-01-17 Thread Tony Dinh
Hi Pali, On Tue, Jan 17, 2023 at 1:25 PM Pali Rohár wrote: > > Hello! > > On Tuesday 17 January 2023 13:02:46 Tony Dinh wrote: > > Hi Pali, > > > > On Tue, Jan 17, 2023 at 12:35 AM Pali Rohár wrote: > > > > > > Hello! Thank you for update. It is much better. > > > > > > On Monday 16 January

Re: [PATCH v3 0/3] eficonfig: add vertical scroll support and refactoring

2023-01-17 Thread Heinrich Schuchardt
On 1/5/23 03:58, Masahisa Kojima wrote: This series aims to add the vertical scroll for the eficonfig menu. Before adding scroll support, this series does the refactoring of change boot order implementation since it has own menu handling and it should be removed to improve maintenanceability.

[PATCH 3/4] binman: Add subnodes to the nodes generated by split-elf

2023-01-17 Thread Jonas Karlman
Add hash and signature nodes to generated nodes by split-elf operation. Signed-off-by: Jonas Karlman --- tools/binman/etype/fit.py | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index deec27bee3..fb27c8877e

[PATCH 4/4] rockchip: Add sha256 hash to FIT images

2023-01-17 Thread Jonas Karlman
Add sha256 hash to FIT images when CONFIG_SPL_FIT_SIGNATURE=y. Signed-off-by: Jonas Karlman --- arch/arm/dts/rockchip-u-boot.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm/dts/rockchip-u-boot.dtsi index

Re: [PATCH 1/2] drivers: watchdog: Enhance watchdog support in SPL for Stratix 10 and Agilex

2023-01-17 Thread Stefan Roese
Hi Lim, Jit Loon, On 12/5/22 14:27, Lim, Jit Loon wrote: -Original Message- From: Stefan Roese Sent: Monday, 5 December, 2022 8:28 PM To: Lim, Jit Loon ; u-boot@lists.denx.de Cc: Jagan Teki ; Vignesh R ; Vasut, Marek ; Simon ; Chee, Tien Fong ; Hea, Kok Kiang ; Lim, Elly Siew Chin ;

Re: [PATCH v3 3/3] ARM: tegra: include timer as default option

2023-01-17 Thread Svyatoslav Ryhel
вт, 17 січ. 2023 р. о 22:08 Tom Warren пише: > > Svyatoslav, > > I was able to apply the first 2 patches OK to TOT u-boot-tegra/master, but > not the this one (file offsets seem wrong). PTAL. > Thank you very much for your review. This patchset was prepared and being re-send for 3-4 month, a

Re: [EXTERNAL] Re: [PATCH 3/9] arm: dts: k3-am62-main: Add device tree node for TIDSS

2023-01-17 Thread Vignesh Raghavendra
Hi Nikhil, On 17/01/23 18:49, Tom Rini wrote: > On Tue, Jan 17, 2023 at 10:09:00AM +0530, Nikhl M Jain wrote: >> Hi, Tom >> >> On 13/01/23 20:13, Tom Rini wrote: >>> On Fri, Jan 13, 2023 at 01:59:21PM +0530, Nikhil M Jain wrote: >>> Add device tree node which includes the register

Re: [PATCH v8 03/10] arm_ffa: introduce Arm FF-A low-level driver

2023-01-17 Thread Rob Herring
On Thu, Jan 12, 2023 at 5:43 PM Simon Glass wrote: > > Hi Rob, > > On Wed, 11 Jan 2023 at 19:10, Rob Herring wrote: > > > > On Mon, Dec 19, 2022 at 1:21 PM Simon Glass wrote: > > > > > > Hi Abdellatif, > > > > > > On Mon, 19 Dec 2022 at 04:12, Abdellatif El Khlifi > > > wrote: > > > > > > > >

Re: [PATCH 3/7] usb: xhci: Implement DMA mapping

2023-01-17 Thread Marek Vasut
On 1/17/23 23:04, Mark Kettenis wrote: An XHCI controller that sits behind an IOMMU needs to map and unmap its memory buffers to do DMA. Implement this by inroducing new xhci_dma_map() and xhci_dma_unmap() helper functions. The xhci_dma_map() function replaces the existing xhci_virt_to_bus()

Re: [PATCH 7/7] usb: xhci: Fix root hub descriptor

2023-01-17 Thread Marek Vasut
On 1/17/23 23:04, Mark Kettenis wrote: When a system has multiple XHCI controllers, some of the properties described in the descriptor of the root hub (such as the number of ports) might differ between controllers. Fix this by switching from a single global hub descriptor to a hub descriptor

Re: [PATCH v3 0/3] eficonfig: add vertical scroll support and refactoring

2023-01-17 Thread Masahisa Kojima
Hi Heinrich, On Wed, 18 Jan 2023 at 07:03, Heinrich Schuchardt wrote: > > On 1/5/23 03:58, Masahisa Kojima wrote: > > This series aims to add the vertical scroll for the eficonfig menu. > > Before adding scroll support, this series does the refactoring > > of change boot order implementation

Re: [PATCH v8 03/10] arm_ffa: introduce Arm FF-A low-level driver

2023-01-17 Thread Rob Herring
On Tue, Jan 17, 2023 at 8:04 AM Tom Rini wrote: > > On Mon, Jan 16, 2023 at 01:23:53PM +, Abdellatif El Khlifi wrote: > > On Fri, Jan 13, 2023 at 11:00:28AM -0700, Simon Glass wrote: > > > Hi Abdellatif, > > > > > > On Fri, 13 Jan 2023 at 03:44, Abdellatif El Khlifi > > > wrote: > > > > > >

Re: [PATCH v3 2/3] drivers: timer: add timer driver for ARMv7 based Tegra devices

2023-01-17 Thread Svyatoslav Ryhel
вт, 17 січ. 2023 р. о 22:30 Simon Glass пише: > > Hi Svyatoslav, > > On Tue, 17 Jan 2023 at 09:53, Svyatoslav Ryhel wrote: > > > > Add timer support for T20/T30/T114 and T124 based devices. > > Driver is based on DM, has device tree support and can be > > used on SPL and early boot stage. > > >

[PATCH v3 00/70] bootstd: Allow migration from distro_bootcmd scripts

2023-01-17 Thread Simon Glass
So far, standard boot does not replicate all the of the functionality of the distro_bootcmd scripts. In particular it lacks some bootdevs and some of the bootmeths are incomplete. Also there is currently no internal mechanism to enumerate buses in order to discover bootdevs, e.g. with USB. This

[PATCH v3 01/70] dm: core: Correct ordering of uclasses IDs

2023-01-17 Thread Simon Glass
A few of these are out of order. Fix them. Signed-off-by: Simon Glass --- (no changes since v1) include/dm/uclass-id.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h index 376f741cc2b..33e43c20db6 100644 ---

[PATCH v3 02/70] dm: core: Support sorting devices with dm tree

2023-01-17 Thread Simon Glass
Add a -s flag to sort the top-level devices in order of uclass ID. Signed-off-by: Simon Glass --- (no changes since v1) cmd/dm.c | 10 +-- doc/usage/cmd/dm.rst | 5 +++- drivers/core/dump.c | 65 include/dm/util.h|

[PATCH v3 04/70] lib: Add a function to split a string into substrings

2023-01-17 Thread Simon Glass
Some environment variables provide a space-separated list of strings. It is easier to process these when they are broken out into an array of strings. Add a utility function to handle this. Signed-off-by: Simon Glass --- (no changes since v1) include/vsprintf.h | 24 ++

[PATCH v3 03/70] dm: test: Correct assertion in dm_test_part()

2023-01-17 Thread Simon Glass
This obscures the line number. Update the test to avoid make sure that the line which failed is displayed, so it is possible to diagnose the failure. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/part.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff

[PATCH v3 07/70] test: Fix the help for the ut command

2023-01-17 Thread Simon Glass
The font help has an incorrect newline. Fix it. Signed-off-by: Simon Glass Fixes: cdd964e3801 ("test: Tidy up help for ut command") --- (no changes since v1) test/cmd_ut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cmd_ut.c b/test/cmd_ut.c index

[PATCH v3 10/70] vbe: Avoid a build failure when bloblist is not enabled

2023-01-17 Thread Simon Glass
This needs to be able to work (at least partially) without the bloblist active. Add a condition for this. Signed-off-by: Simon Glass --- (no changes since v1) cmd/vbe.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/vbe.c b/cmd/vbe.c index

[PATCH v3 11/70] vbe: sandbox: Drop VBE node in chosen

2023-01-17 Thread Simon Glass
This is not needed anymore since VBE creates the node when it sets up the OS requests. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/dts/sandbox.dtsi | 13 - 1 file changed, 13 deletions(-) diff --git a/arch/sandbox/dts/sandbox.dtsi

[PATCH v3 09/70] sandbox: mmc: Start off with a zeroed file

2023-01-17 Thread Simon Glass
When running multiple tests the mmc emulator calls malloc() to obtain the memory for its disk image. Since the memory is not cleared, it is possible that it happens to contain a partition table. The dm_test_part() test (for one) relies on mmc0 being empty on startup. Zero the memory to ensure

[PATCH v3 05/70] bootstd: Remove special-case code for boot_targets

2023-01-17 Thread Simon Glass
Rather than implement this as its own case in build_order(), process the boot_targets environment variable in the bootstd_get_bootdev_order() function. This allows build_order() to be simplified. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootdev-uclass.c | 32

[PATCH v3 08/70] test: Drop duplicate restore of DM state

2023-01-17 Thread Simon Glass
This code is present twice. Fix it so that it is only executed once. Signed-off-by: Simon Glass --- (no changes since v1) test/test-main.c | 4 1 file changed, 4 deletions(-) diff --git a/test/test-main.c b/test/test-main.c index 5931e94a915..9ab090b7b33 100644 --- a/test/test-main.c

[PATCH v3 06/70] bootstd: Simplify locating existing bootdevs

2023-01-17 Thread Simon Glass
There is no point in trying to match the alias order for bootdevs, since build_order() either sorts them by priority, uses the boot_targets environment variable or the bootdev-order property. Just use the iterator instead, to simplify the code. Signed-off-by: Simon Glass --- (no changes since

[PATCH v3 16/70] bootstd: Add a default method to get bootflows

2023-01-17 Thread Simon Glass
The code in these functions turns out to often be the same. Add a default get_bootflow() function and allow the drivers to select it by setting the method to NULL. This saves a little code space. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootdev-uclass.c | 27

[PATCH v3 14/70] ide: Drop non-DM code for BLK

2023-01-17 Thread Simon Glass
We require CONFIG_BLK to be enabled now, so this code is unused. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) drivers/block/ide.c | 42 +- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/drivers/block/ide.c

[PATCH v3 13/70] dm: test: Correct ordering of DM setup

2023-01-17 Thread Simon Glass
We must call dm_scan_other() after devices from the device tree have been created, since that function behaves differently if there is no bootstd device. Adjust the logic to achieve this. Also fix the bootflow_system() test which was relying on this broken behaviour. Signed-off-by: Simon Glass

[PATCH v3 12/70] dm: part: Update test to use mmc2

2023-01-17 Thread Simon Glass
At present this test sets up a partition table on mmc1. But this is used by the bootstd tests, so it is not possible to run those after this test has run, without restarting the Python test harness. This is inconvenient when running tests repeatedly with 'ut dm'. Move the test to use mmc2, which

[PATCH v3 25/70] dm: usb: Mark the device name as alloced when binding

2023-01-17 Thread Simon Glass
Since usb_find_and_bind_driver() allocates the device name it should tell driver about that, to avoid memory leaks. Fix this. Signed-off-by: Simon Glass --- (no changes since v1) drivers/usb/host/usb-uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/usb-uclass.c

[PATCH v3 18/70] sandbox: Allow ethernet bootdevs to be disabled for tests

2023-01-17 Thread Simon Glass
Most tests don't want these and can create a lot of noise. Add a way to disable them. Use that in tests, with a flag provided to enable them for tests that need this feature. Signed-off-by: Simon Glass --- (no changes since v1) include/net.h | 16 include/test/test.h |

[PATCH v3 17/70] sandbox: Allow ethernet to be disabled at runtime

2023-01-17 Thread Simon Glass
For bootstd tests it is seldom useful to have ethernet enabled. Add a way to disable it, so that ethernet operations like tftpboot do nothing. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/cpu/state.c | 16 arch/sandbox/include/asm/state.h | 1 +

[PATCH v3 15/70] dm: mmc: Use bootdev_setup_sibling_blk()

2023-01-17 Thread Simon Glass
At present MMC uses the bootdev_setup_for_dev() function to set up the bootdev. This is because MMC only has one block-device child, so does not need to worry about naming of the bootdev. However this inconsistency with other bootdevs that use block devices is a bit annoying. The only real reason

[PATCH v3 21/70] event: Correct duplicate log message in event_notify()

2023-01-17 Thread Simon Glass
Use a different one for each call. Signed-off-by: Simon Glass --- (no changes since v1) common/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/event.c b/common/event.c index 231b9e6ffdd..c312556490e 100644 --- a/common/event.c +++ b/common/event.c @@ -123,7

  1   2   >