Re: [PATCH v2] Allow colon in PXE bootfile URLs

2022-04-09 Thread Ramon Fried
On Sat, Jan 22, 2022 at 5:16 PM Lyle Franklin wrote: > > - U-boot's PXE flow supports prefixing your bootfile name with an > IP address to fetch from a server other than the DHCP server, > e.g. `hostIPaddr:bootfilename`: > >

Re: [PATCH] phy: adin: add driver for Analog Devices ADIN1300 PHY

2022-04-09 Thread Ramon Fried
On Sun, Apr 10, 2022 at 8:13 AM Ramon Fried wrote: > > On Fri, Apr 8, 2022 at 8:20 PM Nate Drude wrote: > > > > The current implementation configures RGMII using device tree phy-mode > > property and then calls genphy_config > > > > adin_config_rgmii_mode is derived from: > >

Re: [PATCH] phy: adin: add driver for Analog Devices ADIN1300 PHY

2022-04-09 Thread Ramon Fried
On Fri, Apr 8, 2022 at 8:20 PM Nate Drude wrote: > > The current implementation configures RGMII using device tree phy-mode > property and then calls genphy_config > > adin_config_rgmii_mode is derived from: >

[PATCH 2/2] mmc: sunxi: Remove unnecessary pinmux option dependency

2022-04-09 Thread Samuel Holland
Now that the pinmux conflict is handled in the board code (by skipping setup for the one conflicting MMC controller), the driver does not need to be entirely disabled based on the UART pinmux. Signed-off-by: Samuel Holland --- drivers/mmc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 1/2] sunxi: Skip MMC0 init when its pinmux conflicts with UART0

2022-04-09 Thread Samuel Holland
Currently, selecting UART0_PORT_F entirely disables MMC support on sunxi platforms. But this is a bigger hammer then needed. Muxing UART0 to the pins on port F only causes a conflict with MMC0, so minimize the impact by specifically skipping MMC0 init. We can continue to use MMC1/2 if those are

Re: [PATCH 2/2] net: eth-phy: prevent undesired de-assertion of phy-reset on request

2022-04-09 Thread Ramon Fried
On Thu, Mar 3, 2022 at 9:55 AM Ramon Fried wrote: > > On Tue, Mar 1, 2022 at 10:38 PM Joe Hershberger > wrote: > > > > On Tue, Mar 1, 2022 at 2:15 PM Tim Harvey wrote: > > > > > > When gpio_request_by_name allocates a gpio output it by default will > > > de-assert the gpio which for phy-reset

Re: [PATCH 1/2] net: fec: prevent undesired de-assertion of phy-reset on request

2022-04-09 Thread Ramon Fried
On Thu, Mar 3, 2022 at 9:55 AM Ramon Fried wrote: > > On Wed, Mar 2, 2022 at 3:58 AM Adam Ford wrote: > > > > On Tue, Mar 1, 2022 at 2:38 PM Joe Hershberger > > wrote: > > > > > > On Tue, Mar 1, 2022 at 2:15 PM Tim Harvey wrote: > > > > > > > > When gpio_request_by_name allocates a gpio

Re: [PATCH u-boot-net v4 00/14] u-boot-net refactors, fixes, cleanups

2022-04-09 Thread Ramon Fried
On Thu, Apr 7, 2022 at 1:33 AM Marek Behún wrote: > > From: Marek Behún > > Hello, > > this is v4 of https://patchwork.ozlabs.org/project/uboot/list/?series=290889. > > Changes since v3: > - rebased on top of origin/next > - fixed binman failure: added #address-cells/#sice-cells to sandbox'

[PATCH] Revert "env: Load env when ENV_IS_NOWHERE is only location selected"

2022-04-09 Thread Marek Vasut
This reverts commit 8d61237edbf6314a701cf78da2c5893a73ff5438. This commit broke environment on literally every board I have access to, with this revert in place, environment works as it should again. The problem I observe with this patch is that saved environment in either SPI NOR or eMMC is

[PATCH] misc: Port USB251xB/xBi Hi-Speed Hub Controller Driver from Linux

2022-04-09 Thread Marek Vasut
This patch adds a driver for configuration of the Microchip USB251xB/xBi USB 2.0 hub controller series with USB 2.0 upstream connectivity, SMBus configuration interface and two to four USB 2.0 downstream ports. This is ported from Linux as of Linux kernel commit 5c2b9c61ae5d8 ("usb: usb251xb: add

[PATCH] imx8mq: soc: Set the BYPASS ID SWAP bit (GPR10 bit 1)

2022-04-09 Thread Peng Fan (OSS)
From: Peng Fan Set the BYPASS ID SWAP bit (GPR10 bit 1). The ID SWAP function randomly make TZASC grant non-secure access to secure memory. TZASC ID SWAP should be bypassed by setting the bit TZASC_ID_SWAP_BYPASS(bit 1) in IOMUX_GPR10 register. Signed-off-by: Peng Fan ---

[PATCH 6/6] include/configs: drop COUNTER_FREQUENCY

2022-04-09 Thread Peng Fan (OSS)
From: Peng Fan Since we have CONFIG_COUNTER_FREQUENCY enabled, no need COUNTER_FREQUENCY Signed-off-by: Peng Fan --- arch/arm/cpu/armv8/fsl-layerscape/spintable.S | 2 +- include/configs/apalis-imx8.h | 1 - include/configs/apalis-imx8x.h| 1 -

[PATCH 5/6] armv8: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid

2022-04-09 Thread Peng Fan (OSS)
From: Peng Fan Since COUNTER_FREQUENCY is obselete, so set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid Signed-off-by: Peng Fan --- arch/arm/cpu/armv8/start.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S

[PATCH 3/6] arch: arm: Kconfig: set default COUNTER_FREQUENCY for i.MX

2022-04-09 Thread Peng Fan (OSS)
From: Peng Fan i.MX6UL/ULL/7D/8QM/8QXP all has system counter frequency run at 8MHz, so set default value for them. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index d84c10d732e5..c515abb73ffc 100644 ---

[PATCH 2/6] arch: arm: move COUNTER_FREQUENCY from versal to arm

2022-04-09 Thread Peng Fan (OSS)
From: Peng Fan Make COUNTER_FREQUENCY usable to armv8 and armv7-a, not limited to versal. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 7 +++ arch/arm/mach-versal/Kconfig | 6 -- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/arm/Kconfig

[PATCH 0/6] Convert COUNTER_FREQUENCY to CONFIG_COUNTER_FREQUENCY

2022-04-09 Thread Peng Fan (OSS)
From: Peng Fan This patchset is to convert COUNTER_FREQUENCY to CONFIG_COUNTER_FREQUENCY for arm64. arm32 is not included for now, this could be in following up patches if this patchset is accepted. This patchset touches lots of boards, so please help review. Peng Fan (6): xilinx: versal:

[PATCH 1/6] xilinx: versal: board: use CONFIG_COUNTER_FREQUENCY

2022-04-09 Thread Peng Fan (OSS)
From: Peng Fan Since versal has CONFIG_COUNTER_FREQUENCY, so use it. And COUNTER_FREQUENCY will be dropped. Signed-off-by: Peng Fan --- board/xilinx/versal/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c

Re: [PATCH] ARM: dts: k3-j721s2: Correct timer frequency

2022-04-09 Thread Tom Rini
On Sat, Apr 09, 2022 at 09:46:58PM +0530, Vignesh Raghavendra wrote: > > > On 07/03/22 2:55 pm, Vignesh Raghavendra wrote: > > MCU Timer0 runs at 250MHz, and the clock-frequency defined in DT appears > > incorrect. > > > > Without this delays in R5 SPL are 10x off. > > > > Signed-off-by:

Re: [PATCH v3 11/19] dm: disk: add UCLASS_PARTITION

2022-04-09 Thread Heinrich Schuchardt
On 3/8/22 12:36, AKASHI Takahiro wrote: With this new function, UCLASS_PARTITION devices will be created as child nodes of UCLASS_BLK device. Signed-off-by: AKASHI Takahiro --- disk/Makefile | 3 + disk/disk-uclass.c | 153 +

[PATCH v5 10/13] rockchip: serial: move driver alias to serial_rockchip.c

2022-04-09 Thread Johan Jonker
The Rockchip uart DT nodes have "snps,dw-apb-uart" as fall back string. The driver ns16550.c has CONFIG_IS_ENABLED(OF_REAL) as condition to of_match and does not copy dtplat data. For TPL/SPL the driver serial_rockchip.c is used. Move driver alias to correct driver. Signed-off-by: Johan Jonker

[PATCH v5 11/13] rockchip: serial: rename U_BOOT_DRIVER name to rockchip_uart

2022-04-09 Thread Johan Jonker
When a defconfig for rk3288 is compiled it gives the warning: rockchip_rk3288_uart: Missing .compatible in ./drivers/serial/serial_rockchip.c : WARNING: the driver rockchip_rk3288_uart was not found in the driver list Fix by

[PATCH v5 13/13] rockchip: serial: Kconfig: allow ROCKCHIP_SERIAL enabled in TPL

2022-04-09 Thread Johan Jonker
The serial_rockchip.c driver converts platdata to the data structure used in the ns16550.c file and then calls the function ns16550_serial_probe(). When compiled with OF_REAL the serial_rockchip.c driver returns now -ENODEV when probed and does no harm. The config ROCKCHIP_SERIAL is currently

[PATCH v5 12/13] rockchip: serial: Kconfig: add select SYS_NS16550 to config ROCKCHIP_SERIAL

2022-04-09 Thread Johan Jonker
The Rockchip serial driver depends on an enabled NS16550 driver, so add select SYS_NS16550 to config ROCKCHIP_SERIAL. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- drivers/serial/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v5 07/13] rockchip: mmc: rockchip_dw_mmc: fix ciu clock index

2022-04-09 Thread Johan Jonker
The document rockchip-dw-mshc.yaml decribes a maximum of 4 clocks. In the rockchip_dw_mmc driver the clock name in use was "fixed" to "ciu" with index 1, but later reverted back to index 0. The clock drivers can handle both, but the calling driver should submit correct data as a standard practice.

[PATCH v5 08/13] rockchip: mmc: rockchip_dw_mmc: add rk3066/rk3188 support

2022-04-09 Thread Johan Jonker
The Rockchip SoCs rk3066/rk3188 have MMC DT nodes with as compatible string "rockchip,rk2928-dw-mshc". Add OF_PLATDATA support to the existing driver with help of a DM_DRIVER_ALIAS. This type needs a permanent enabled fifo. The other Rockchip SoCs always have the property "u-boot,spl-fifo-mode"

[PATCH v5 09/13] rockchip: serial: restyle the serial_rockchip.c driver

2022-04-09 Thread Johan Jonker
The ns16550.c driver has the following conditions for .of_match: CONFIG_IS_ENABLED(OF_REAL) For Rockchip SoCs with TPL/SPL and platform data that need serial support the serial_rockchip.c driver was made. It copies this data and then calls ns16550_serial_probe(). With the addition of yet an

[PATCH v5 05/13] rockchip: timer: add OF_PLATDATA support for dw-apb-timer

2022-04-09 Thread Johan Jonker
The Rockchip rk3066 SoC has 3 dw-apb-timer nodes. U-boot is compiled with OF_PLATDATA TPL/SPL options, so add OF_PLATDATA support for the dw-apb-timer. Also change driver name to be able to compile with U-boot scripts. No reset OF_PLATDATA support was added, because the rk3066 nodes don't

[PATCH v5 06/13] rockchip: timer: dw-apb-timer: fix whitespace in U_BOOT_DRIVER structure

2022-04-09 Thread Johan Jonker
The line with .of_to_plat in the U_BOOT_DRIVER structure of dw-apb-timer.c is not aligned with the rest. Add an extra TAB to fix the whitespace. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- drivers/timer/dw-apb-timer.c | 2 +- 1 file changed, 1

[PATCH v5 03/13] rockchip: tpl: change call condition rockchip_stimer_init()

2022-04-09 Thread Johan Jonker
The Rockchip SoCs rk3066/rk3188 have no CONFIG_ROCKCHIP_STIMER_BASE defined. Currently there's no exception in TPL. Make this more generic and compile the code inside the function rockchip_stimer_init() only when CONFIG_ROCKCHIP_STIMER_BASE is available. Signed-off-by: Johan Jonker --- Changed

[PATCH v5 04/13] rockchip: tpl: use IS_ENABLED for timer_init() call condition

2022-04-09 Thread Johan Jonker
Not all Rockchip SoC models use the ARM arch timer. Call the function timer_init() only when CONFIG_SYS_ARCH_TIMER is available. Use the call condition IS_ENABLED to increase build coverage and make the code easier to read. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever

[PATCH v5 02/13] rockchip: spl: change call condition rockchip_stimer_init()

2022-04-09 Thread Johan Jonker
The Rockchip SoCs rk3066/rk3188 have no CONFIG_ROCKCHIP_STIMER_BASE defined. Currently only rk3188 has an exception in SPL. Make this more generic and compile code inside the function rockchip_stimer_init() only when CONFIG_ROCKCHIP_STIMER_BASE is available. Signed-off-by: Johan Jonker ---

[PATCH v5 01/13] rockchip: move ROCKCHIP_STIMER_BASE to Kconfig

2022-04-09 Thread Johan Jonker
Move ROCKCHIP_STIMER_BASE to Kconfig. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- Changed V4: rebase remove depends on rk3188/rk3066 must now disable ROCKCHIP_STIMER in defconfig with defconfig there is more flexibility for other SoC types Changed V3: add ROCKCHIP_STIMER

[PATCH v5 00/13] Prepare RK3066 U-boot support

2022-04-09 Thread Johan Jonker
This patch serie combines a number of cleanups and fixes that are needed in preparation of Rockchip RK3066 U-boot support. The common TPL/SPL files contain support for 2 timers that are not used in the early models. Change there call condition. As we are there also increase the build coverage.

Re: [PATCH] ARM: dts: k3-j721s2: Correct timer frequency

2022-04-09 Thread Vignesh Raghavendra
On 07/03/22 2:55 pm, Vignesh Raghavendra wrote: > MCU Timer0 runs at 250MHz, and the clock-frequency defined in DT appears > incorrect. > > Without this delays in R5 SPL are 10x off. > > Signed-off-by: Vignesh Raghavendra > --- > arch/arm/dts/k3-j721s2-common-proc-board-u-boot.dtsi | 2 +- >

Re: Radxa rock-pi-3a

2022-04-09 Thread Richard Kojedzinszky
Dear Kever, I've tried the patch, and now U-Boot sees the whole 8G. It can boot linux directly, that works now. Great! Howewer, booting linux through grub-efi (/boot/efi/EFI/debian/grubaa64.efi) does not work. Grub itself starts, shows the menu, but booting linux stops. Booting from console

Re: Radxa rock-pi-3a

2022-04-09 Thread Richard Kojedzinszky
Hi Kever, Thanks for your reply! I greatly appreciate your work, really. Additionally, can you please provide me sources of documentations, on which you base your work? I am totally blind in this area, and I would be interested in reading such kind of documentation of the SoCs. Many thanks,

Re: [PATCH 1/2] Kconfig: Change SYS_MALLOC_F_LEN default to 0x2000

2022-04-09 Thread Tony Dinh
Hi Tom, For nsa310s_defconfig. Reviewed-by: Tony Dinh On Fri, Apr 8, 2022 at 5:52 AM Masami Hiramatsu wrote: > > Hi Tom, > > This looks good to me for the synquacer-defconfig part. > > Reviewed-by: Masami Hiramatsu > > Thank you, > > 2022年4月8日(金) 1:33 Tom Rini : > > > > The most commonly

Re: [PATCH] cmd: bootefi: restore ability to boot arbitrary blob

2022-04-09 Thread Kyle Evans
On Sat, Apr 9, 2022 at 5:37 AM Heinrich Schuchardt wrote: > > On 4/6/22 07:04, kev...@freebsd.org wrote: > > From: Kyle Evans > > > > Up until commit 5f59518a7b1ae ("efi_loader: setting boot device"), we > > could boot an arbitrary blob with bootefi. Indeed, efi_run_image() even > > has a

[PATCH 1/1] binman: don't import deprecated distutils package

2022-04-09 Thread Heinrich Schuchardt
'make tests' fails on Ubuntu 22.04 with: binman: ./tools/binman/binman:12: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.sysconfig import get_python_lib

Re: [PATCH v3 14/19] efi_loader: disk: a helper function to create efi_disk objects from udevice

2022-04-09 Thread Heinrich Schuchardt
On 3/8/22 12:36, AKASHI Takahiro wrote: Add efi_disk_probe() function. This function creates an efi_disk object for a raw disk device (UCLASS_BLK) and additional objects for related partitions (UCLASS_PARTITION). So this function is expected to be called through driver model's "probe" interface

Re: [PATCH] cmd: bootefi: restore ability to boot arbitrary blob

2022-04-09 Thread Heinrich Schuchardt
On 4/6/22 07:04, kev...@freebsd.org wrote: From: Kyle Evans Up until commit 5f59518a7b1ae ("efi_loader: setting boot device"), we could boot an arbitrary blob with bootefi. Indeed, efi_run_image() even has a special case for missing device paths indicating a payload that was directly loaded