[PATCH v3 4/4] mkeficapsule: add FMP Payload Header

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

[PATCH v3 3/4] efi_loader: check lowest supported version in capsule update

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

[PATCH v3 2/4] efi_loader: versioning support in GetImageInfo

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

[PATCH v3 1/4] efi_loader: store firmware version into FmpState variable

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

[PATCH v3 0/4] FMP versioning support

2023-03-19 Thread Masahisa Kojima
Firmware version management is not implemented in the current FMP implementation. This series aims to add the versioning support in FMP. Python based test will follow later. EDK2 reference implementation utilizes the FMP Payload Header inserted right before the capsule payload. With this series,

[PATCH v3 9/9] bootstd: Relax the argument requirements for bootflow scan

2023-03-19 Thread Simon Glass
Currently this does not allow the -lb flags unless CMD_BOOTFLOW_FULL is enabled, which means that we need two separate boot commands. Relax this to make things easier. It is only a small amount of extra code. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 3 +--

[PATCH v3 8/9] rockchip: Move to standard boot

2023-03-19 Thread Simon Glass
Drop the distro-boot scripts and use standard boot instead. Signed-off-by: Simon Glass --- Changes in v3: - Update rk3588 boards too Changes in v2: - Add new patch to move rockchip to standard boot arch/arm/Kconfig | 1 - include/configs/px30_common.h | 4 +--

[PATCH v3 6/9] lmb: Enable LMB if SYS_BOOT_RAMDISK_HIGH

2023-03-19 Thread Simon Glass
Ramdisk relocation requires LMB, so enable it automatically to avoid build errors. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/boot/Kconfig b/boot/Kconfig index 7da084312d67..769a78e249c5 100644 --- a/boot/Kconfig +++

[PATCH v3 5/9] Move DISTRO_DEFAULTS into boot/

2023-03-19 Thread Simon Glass
This relates to booting so move it in to that Kconfig file, before changing it. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch to move DISTRO_DEFAULTS into boot/ Kconfig | 27 --- boot/Kconfig | 28 +++-

[PATCH v3 4/9] bootstd: Enable BOOTSTD_DEFAULTS by default

2023-03-19 Thread Simon Glass
This is needed to enable the boot command used to start standard boot. Enable it by default. This brings in quite a few features, mostly in common with DISTRO_DEFAULTS Disable this option for boards which don't have enough space. Disable CONFIG_ENV_VARS_UBOOT_CONFIG for some zynq boards which

[PATCH v3 3/9] rockchip: Disable DISTRO_DEFAULTS for rk3399 boards

2023-03-19 Thread Simon Glass
These board have moved to standard boot but the old 'distro_bootcmd' command is still active. Disable DISTRO_DEFAULTS to fix this. Signed-off-by: Simon Glass Tested-by: Vagrant Cascadian --- (no changes since v1) arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v3 2/9] rockchip: Drop bootstage stash in TPL and SPL for rockpro64

2023-03-19 Thread Simon Glass
Unfortunately the IRAM used to stash the bootstage records in TPL becomes inaccessible after SPL runs. Presumably this is because of ATF taking it over. We could move the stash to another address in SPL, before passing it to U-Boot proper. But it seems easier to wait until we have support for

[PATCH v3 1/9] configs: Resync with savedefconfig

2023-03-19 Thread Simon Glass
Rsync all defconfig files using moveconfig.py Signed-off-by: Simon Glass --- (no changes since v1) configs/clearfog_defconfig | 2 -- configs/clearfog_gt_8k_defconfig| 2 -- configs/clearfog_sata_defconfig | 7 +++

Re: [PATCH v1 2/5] net: dwc_eth_qos: Add StarFive ethernet driver glue layer

2023-03-19 Thread yanhong wang
On 2023/3/19 4:20, Simon Glass wrote: > Hi Yanhong, > > On Thu, 16 Mar 2023 at 19:07, Yanhong Wang > wrote: >> >> The StarFive ETHQOS hardware has its own clock and reset,so add a >> corresponding glue driver to configure them. >> >> Signed-off-by: Yanhong Wang >> --- >> drivers/net/Kconfig

Re: [PATCH v1 1/5] net: phy: Add driver for Motorcomm yt8531 gigabit ethernet phy

2023-03-19 Thread yanhong wang
On 2023/3/19 4:20, Simon Glass wrote: > Hi Yanhong, > > On Thu, 16 Mar 2023 at 19:06, Yanhong Wang > wrote: >> >> Add a driver for the motorcomm yt8531 gigabit ethernet phy. We have >> verified the driver on StarFive VisionFive2 board. >> >> Signed-off-by: Yanhong Wang >> --- >>

Re: [PATCH 4/4] CI: Add m68k target

2023-03-19 Thread Marek Vasut
On 3/19/23 20:27, Angelo Dureghello wrote: Hi, [...] +qemu_m68k test.py: +  variables: +    TEST_PY_BD: "M5208EVBE" +    TEST_PY_TEST_SPEC: "not sleep and not efi" +    TEST_PY_ID: "--id qemu" +    OVERRIDE: "-a CONFIG_M68K_QEMU=y -a CONFIG_MCFTMR=n" +  <<: *buildman_and_testpy_dfn +  

Re: [PATCH v1 1/6] rockchip: gpio: rk_gpio: use ROCKCHIP_GPIOS_PER_BANK as divider

2023-03-19 Thread Kever Yang
Hi Johan, On 2023/3/19 19:34, Johan Jonker wrote: On 3/18/23 21:20, Simon Glass wrote: Hi Johan, On Thu, 16 Mar 2023 at 10:46, Johan Jonker wrote: The current divider to calculate the bank ID can change. Use a constant ROCKCHIP_GPIOS_PER_BANK as fixed divider. What is the motivation for

[PATCH v4] test_vboot.py: include test of fdt_add_pubkey tool

2023-03-19 Thread Ivan Mikhaylov
From: Roman Kopytin Add test_fdt_add_pubkey test which provides simple functionality test which contains such steps: create DTB and FIT files add keys with fdt_add_pubkey to DTB sign FIT image check with fit_check_sign that keys properly added to DTB file Signed-off-by: Roman Kopytin

Re: [PATCH] netconsole: various improvements

2023-03-19 Thread Tony Dinh
Hi Pali, On Sun, Mar 19, 2023 at 12:36 PM Pali Rohár wrote: > > On Saturday 18 March 2023 14:46:25 Tony Dinh wrote: > > - When Netconsole is running, stdin/stdout/stderr are set to nc. Reset > > stdin/stdout/stderr to serial (a sane deffault) before booting kernel. > > This can be a problematic.

Re: [PATCH] netconsole: various improvements

2023-03-19 Thread Tony Dinh
Hi Simon, On Sun, Mar 19, 2023 at 12:30 PM Simon Glass wrote: > > Hi Tony, > > On Sun, 19 Mar 2023 at 10:46, Tony Dinh wrote: > > > > - When Netconsole is running, stdin/stdout/stderr are set to nc. Reset > > stdin/stdout/stderr to serial (a sane deffault) before booting kernel. > > spelling

Re: [PATCH v3] Let the EQoS in imx8mp handle fixed-phy too.

2023-03-19 Thread Marek Vasut
On 3/19/23 21:02, Elmar Psilog wrote: Am 19.03.23 um 18:21 schrieb Marek Vasut: On 3/19/23 11:43, Elmar Psilog wrote: Without that patch it lost track to the node to scan speed and duplex. Patch was created by Marek Vasut, just tested by me. Signed-off-by: Elmar Psilog Reviewed-by: Marek

[PATCH v2 2/2] drivers: rtc: add max313xx series rtc driver

2023-03-19 Thread Chris Packham
Adding support for Analog Devices MAX313XX series RTCs. This is ported from the Linux driver and adapted for use in u-boot. Notable differences are - handling of tm_year and tm_mon differ - clock source support is omitted - hwmon support for the MAX31328 and MAX31343 is omitted - rtc_ops->reset

[PATCH v2 1/2] include: kernel.h: port find_closest() from Linux

2023-03-19 Thread Chris Packham
The find_closest() macro can be used to find an element in a sorted array that is closest to an input value. Bring in this macro from Linux v6.3-rc1-2-g8ca09d5fa354. Signed-off-by: Chris Packham Reviewed-by: Simon Glass --- Changes in v2: - Add note on which Linux version this came from -

[PATCH v2 0/2] max313xx RTC driver

2023-03-19 Thread Chris Packham
This series is based on the in-flight linux patch that is adding support for this family of RTCs to linux[1]. The u-boot driver is a bit different due to some of the differences between Linux and u-boot and I've dropped the support for hwmon and clock source functions. Where possible I've tried to

Re: [PATCH 2/2] efi_loader: fix device-path for USB devices

2023-03-19 Thread Heinrich Schuchardt
On 3/19/23 20:29, Simon Glass wrote: Hi Heinrich, On Mon, 20 Mar 2023 at 04:25, Heinrich Schuchardt wrote: EFI device paths for block devices must be unique. If a non-unique device path is discovered, probing of the block device fails. Currently we use UsbClass() device path nodes. As

Re: [PATCH v3] Let the EQoS in imx8mp handle fixed-phy too.

2023-03-19 Thread Elmar Psilog
Am 19.03.23 um 18:21 schrieb Marek Vasut: On 3/19/23 11:43, Elmar Psilog wrote: Without that patch it lost track to the node to scan speed and duplex. Patch was created by Marek Vasut, just tested by me. Signed-off-by: Elmar Psilog Reviewed-by: Marek Vasut ---    changes v2: fix format

Re: [PATCH 1/3] net: mvpp2: Replace PHY_INTERFACE_MODE_SGMII_2500 with SGMII and speed

2023-03-19 Thread Marek Behún
On Sun, 19 Mar 2023 18:06:45 +0100 Marek Vasut wrote: > Replace PHY_INTERFACE_MODE_SGMII_2500 with PHY_INTERFACE_MODE_SGMII and > phydev->speed check where applicable. The PHY_INTERFACE_MODE_SGMII_2500 > does not exist in Linux, so remove it from U-Boot too. > > Signed-off-by: Marek Vasut

[PATCH v3 09/12] doc: Add help for the efi command

2023-03-19 Thread Simon Glass
This command currently has no help. Add some. Signed-off-by: Simon Glass --- (no changes since v1) doc/usage/cmd/efi.rst | 197 ++ doc/usage/index.rst | 1 + 2 files changed, 198 insertions(+) create mode 100644 doc/usage/cmd/efi.rst diff --git

Re: [PATCH u-boot] cmd: mmc: Return CMD_RET_* from commands

2023-03-19 Thread Pali Rohár
On Monday 20 March 2023 08:29:04 Simon Glass wrote: > Hi Pali, > > On Mon, 20 Mar 2023 at 05:34, Pali Rohár wrote: > > > > Numeric return values may cause strange errors line: > > exit not allowed from main input shell. > > > > Signed-off-by: Pali Rohár > > --- > > cmd/mmc.c | 18

Re: [PATCH] netconsole: various improvements

2023-03-19 Thread Pali Rohár
On Saturday 18 March 2023 14:46:25 Tony Dinh wrote: > - When Netconsole is running, stdin/stdout/stderr are set to nc. Reset > stdin/stdout/stderr to serial (a sane deffault) before booting kernel. This can be a problematic. serial output does not have to be available for all devices. For example

[PATCH v3 12/12] efI: Allow packaging a kernel in the debugging script

2023-03-19 Thread Simon Glass
Add an option to package a kernel into the debugging script used for EFI. The name of the kernel must be added to the script. By default it is assumed that the kernel is built in the /tmp/kernel directory. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Fix typos in

[PATCH v3 11/12] efi: Support showing tables

2023-03-19 Thread Simon Glass
Add a command (for the app and payload) to display the tables provided by EFI. Note that for the payload the tables should always be present, so an error message is unnecessary and would bloat the code. Signed-off-by: Simon Glass --- Changes in v3: - Drop unnecessary error message for some that

[PATCH v3 10/12] efi: Split out table-listing code into a new file

2023-03-19 Thread Simon Glass
This code is used with EFI_LOADER but is also useful (with some modifications) for the EFI app and payload. Move it into a shared file. Show the address of the table so it can be examined if needed. Also show the table name as unknown if necessary. Our list of GUIDs is fairly small.

[PATCH v3 07/12] efi: Add another tranch of GUIDs

2023-03-19 Thread Simon Glass
Provide information about the GUIDs supplied by QEMU, so far as it is known. These values are used in the 'efi table' command as well as the printf format string %sU Signed-off-by: Simon Glass --- Changes in v3: - Make this depend on CONFIG_EFI so that EFI_LOADER doesn't get it - Really drop

[PATCH v3 08/12] efi: Include GUID names with EFI app and payload

2023-03-19 Thread Simon Glass
These are currently only available when running with EFI_LOADER. Expand this to include the app and payload, since it is useful to be able to decode things there. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Add new patch to enable GUID names with EFI app and payload

[PATCH v3 06/12] x86: Support zboot and bootm in the EFI app

2023-03-19 Thread Simon Glass
These have been disabled due to the rudimentary support available. It is a little better now, so enable these options. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- (no changes since v1) configs/efi-x86_app32_defconfig | 2 +- configs/efi-x86_app64_defconfig | 2 +- 2 files

[PATCH v3 05/12] x86: Exit EFI boot services before starting kernel

2023-03-19 Thread Simon Glass
When running the EFI app, we need to exit boot services before jumping to Linux. At some point it may be possible to jump to Linux and pass on the system table, and: * install the device-tree as configuration table * use LoadImage() to load the kernel image (e.g. from memory) * start the

[PATCH v3 02/12] x86: Adjust bootparam.h to be more like linux

2023-03-19 Thread Simon Glass
This likely came from Linux originally, so update it to match v6.2 more. This has no functional change. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/include/asm/bootparam.h | 70 +--- arch/x86/lib/zimage.c| 2 +- 2 files changed, 47

[PATCH v3 04/12] x86: Support booting a 64-bit kernel from 64-bit U-Boot

2023-03-19 Thread Simon Glass
Add the missing code to handle this. For a 64-bit kernel the entry address is 0x200 bytes after the normal entry. Rename the parameter to boot_linux_kernel() accordingly. Update the comments to indicate that these are addresses, not pointers. Signed-off-by: Simon Glass --- (no changes since

[PATCH v3 03/12] x86: Add return-value comment to cpu_jump_to_64bit()

2023-03-19 Thread Simon Glass
This does not mention what it returns. Add the missing documentation. Signed-off-by: Simon Glass --- Changes in v3: - Use Return instead of Returns arch/x86/include/asm/cpu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h index

[PATCH v3 00/12] efi: Improvements to booting and debugging

2023-03-19 Thread Simon Glass
This series provides support for booting a kernel from the EFI app. So far this is pretty basic, since it only supports the actual booting, not providing ACPI tables, etc. But it is a start. It also includes an enhancement to the 'efi' command and a few other clean-ups. Changes in v3: - Use

[PATCH v3 01/12] efi: Set RUN_64BIT correctly for the EFI app

2023-03-19 Thread Simon Glass
The U-Boot EFI app can run as a 64-bit program, so set the Kconfig correctly in that case. Make sure it doesn't build SPL, since there is no need to switch from 32 to 64 bit when running. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/Kconfig| 4 ++--

Re: [PATCH 2/3] gpio: rockchip: Use gpio alias id as gpio bank id

2023-03-19 Thread Simon Glass
On Sun, 19 Mar 2023 at 12:57, Jonas Karlman wrote: > > Use the gpio alias id as the gpio bank id, same as in the linux driver. > > This reverts the recent change to base bank id on the gpio-ranges prop > and apply the same logic used when nodes was named gpio0@ to the alias. > > With missing gpio

Re: [PATCH] netconsole: various improvements

2023-03-19 Thread Simon Glass
Hi Tony, On Sun, 19 Mar 2023 at 10:46, Tony Dinh wrote: > > - When Netconsole is running, stdin/stdout/stderr are set to nc. Reset > stdin/stdout/stderr to serial (a sane deffault) before booting kernel. spelling > - Enable net_timeout when netconsole starts will give a better user >

[PATCH v2] disk: Use a helper function to reduce duplication

2023-03-19 Thread Simon Glass
Reduce the duplicated code slightly by using a helper function to handle the common code. This reduces the code size very slightly. Signed-off-by: Simon Glass --- Changes in v2: - Rebase to -next disk/disk-uclass.c | 46 +- 1 file changed, 25

Re: [PATCH v3] test_vboot.py: include test of fdt_add_pubkey tool

2023-03-19 Thread Simon Glass
Hi Ivan, On Sun, 19 Mar 2023 at 12:42, Ivan Mikhaylov wrote: > > From: Roman Kopytin Please add a commit message. > > Signed-off-by: Roman Kopytin > Signed-off-by: Ivan Mikhaylov > Cc: Rasmus Villemoes > --- > test/py/tests/test_vboot.py | 33 + > 1 file

Re: [PATCH 1/1] efi_loader: move struct efi_device_path to efi.h

2023-03-19 Thread Simon Glass
On Sun, 19 Mar 2023 at 20:59, Heinrich Schuchardt wrote: > > Avoid forward declaration of struct efi_device_path. > > Signed-off-by: Heinrich Schuchardt > --- > include/efi.h | 13 - > include/efi_api.h | 6 -- > 2 files changed, 12 insertions(+), 7 deletions(-) >

Re: [PATCH] scripts/Makefile.lib: also consider $(CONFIG_SYS_BOARD)-u-boot.dtsi

2023-03-19 Thread Simon Glass
Hi Rasmus, On Sun, 19 Mar 2023 at 13:34, Rasmus Villemoes wrote: > > On 18/03/2023 21.20, Simon Glass wrote: > > >> > >> Now, the only way to be really sure is to build the world > >> with/without this patch and check if any .dtb file changes, but I > >> don't have the means to do that. But I do

Re: [PATCH v2 09/12] doc: Add help for the efi command

2023-03-19 Thread Simon Glass
Hi Heinrich, On Mon, 20 Mar 2023 at 05:38, Heinrich Schuchardt wrote: > > On 3/10/23 21:48, Simon Glass wrote: > > This command currently has no help. Add some. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v1) > > > > doc/usage/cmd/efi.rst | 197

Re: [PATCH v2 03/12] x86: Add return-value comment to cpu_jump_to_64bit()

2023-03-19 Thread Simon Glass
Hi Heinrich, On Mon, 20 Mar 2023 at 05:19, Heinrich Schuchardt wrote: > > On 3/10/23 21:48, Simon Glass wrote: > > This does not mention what it returns. Add the missing documentation. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v1) > > > > arch/x86/include/asm/cpu.h

Re: [PATCH] gpio: allow passing NULL to gpio_request_by_line_name() to search all gpio controllers

2023-03-19 Thread Simon Glass
Hi Rasmus, On Sun, 19 Mar 2023 at 13:38, Rasmus Villemoes wrote: > > On 18/03/2023 21.20, Simon Glass wrote: > > Hi Rasmus, > > > > On Fri, 17 Mar 2023 at 14:13, Rasmus Villemoes > > wrote: > >> > >> The API is more convenient to use if one doesn't have to know upfront > >> which gpio

Re: [PATCH 2/2] efi_loader: simplify efi_str_to_u16()

2023-03-19 Thread Simon Glass
On Sun, 19 Mar 2023 at 21:21, Heinrich Schuchardt wrote: > > Use efi_alloc() to allocate memory. > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_loader/efi_device_path_to_text.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Simon Glass

Re: [PATCH 1/2] efi_loader: support for Ctrl() device path node

2023-03-19 Thread Simon Glass
On Mon, 20 Mar 2023 at 04:18, Heinrich Schuchardt wrote: > > * Add the definitions for Ctrl() device path nodes. > * Implement Ctrl() nodes in the device path to text protocol. > > Signed-off-by: Heinrich Schuchardt > --- > include/efi_api.h| 6 ++ >

Re: [PATCH 2/2] efi_loader: fix device-path for USB devices

2023-03-19 Thread Simon Glass
Hi Heinrich, On Mon, 20 Mar 2023 at 04:25, Heinrich Schuchardt wrote: > > EFI device paths for block devices must be unique. If a non-unique device > path is discovered, probing of the block device fails. > > Currently we use UsbClass() device path nodes. As multiple devices may > have the same

Re: [PATCH v2 11/12] efi: Support showing tables

2023-03-19 Thread Simon Glass
Hi Heinrich, On Mon, 20 Mar 2023 at 05:43, Heinrich Schuchardt wrote: > > On 3/10/23 21:49, Simon Glass wrote: > > Add a command (for the app and payload) to display the tables provided > > by EFI. > > > > Signed-off-by: Simon Glass > > --- > > > > Changes in v2: > > - Make use of common code >

Re: [PATCH u-boot] cmd: mmc: Return CMD_RET_* from commands

2023-03-19 Thread Simon Glass
Hi Pali, On Mon, 20 Mar 2023 at 05:34, Pali Rohár wrote: > > Numeric return values may cause strange errors line: > exit not allowed from main input shell. > > Signed-off-by: Pali Rohár > --- > cmd/mmc.c | 18 +- > 1 file changed, 13 insertions(+), 5 deletions(-) > > diff --git

Re: [PATCH v2 08/12] efi: Include GUID names with EFI app and payload

2023-03-19 Thread Simon Glass
Hi Heinrich, On Mon, 20 Mar 2023 at 05:36, Heinrich Schuchardt wrote: > > On 3/10/23 21:48, Simon Glass wrote: > > These are currently only available when running with EFI_LOADER. > > Expand this to include the app and payload, since it is useful to be > > able to decode things there. > > > >

Re: [PATCH 1/3] rockchip: dts: Add missing alias for gpio controllers

2023-03-19 Thread Simon Glass
On Sun, 19 Mar 2023 at 12:57, Jonas Karlman wrote: > > This adds any missing gpio alias for gpio controllers in rockchip > u-boot.dtsi files. They are needed to determin what gpio bank id to use > in the rockchip gpio driver. > > Signed-off-by: Jonas Karlman > --- >

Re: [PATCH 4/4] CI: Add m68k target

2023-03-19 Thread Angelo Dureghello
Hi Marek, On 19/03/23 4:14 AM, Marek Vasut wrote: Add M5208EVBE board to CI. This does not use default config due to limitations of QEMU emulation, instead the timer is switched from DMA timer to PIT timer and RAMBAR accesses are inhibited. Local QEMU launch command is as follows: $

Re: [PATCH 2/4] arch: m68k: Introduce trivial PIT based timer

2023-03-19 Thread Angelo Dureghello
Hi Marek, On 19/03/23 4:14 AM, Marek Vasut wrote: The QEMU emulation of m68k does not support DMA timer, the only timer that is supported is the PIT timer. Implement trivial PIT timer support for m68k. Signed-off-by: Marek Vasut --- Cc: Angelo Dureghello Cc: Huan Wang Cc: Marek Vasut Cc:

Re: [PATCH 1/4] arch: m68k: Use existing CONFIG_MCFTMR instead of CFG_MCFTMR

2023-03-19 Thread Angelo Dureghello
Hi Marek, On 19/03/23 4:14 AM, Marek Vasut wrote: There is an existing CONFIG_MCFTMR Kconfig symbol, use it and drop all other instances of CFG_MCFTMR. This duality is likely a result of bogus conversion to Kconfig. Thanks, my fault here, introduced in commit

[PATCH v2] gpio: rockchip: Add support for RK3568 and RK3588 banks

2023-03-19 Thread Jonas Karlman
The GPIO V2 controller on RK3568 and RK3588 works very similar to prior generation, main difference is the use of a write mask in the upper 16 bits and register address offset have changed. GPIO_VER_ID is a new register at 0x0078 that is used to determine when the driver should use new or old

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

2023-03-19 Thread Pali Rohár
On Sunday 19 March 2023 17:47:57 Pali Rohár wrote: > On Sunday 19 March 2023 03:30:33 Martin Rowe wrote: > > On Sun, 5 Mar 2023 at 11:55, Pali Rohár wrote: > > > > > On Sunday 05 March 2023 04:21:42 Martin Rowe wrote: > > > > On Sat, 4 Mar 2023 at 10:51, Pali Rohár wrote: > > > > > > > > >

Re: [PATCH v3] Let the EQoS in imx8mp handle fixed-phy too.

2023-03-19 Thread Marek Vasut
On 3/19/23 11:43, Elmar Psilog wrote: Without that patch it lost track to the node to scan speed and duplex. Patch was created by Marek Vasut, just tested by me. Signed-off-by: Elmar Psilog Reviewed-by: Marek Vasut ---    changes v2: fix format issues    changes v3: remove {} around single

Re: [PATCH] fdt: Make fdt addr -q quieter

2023-03-19 Thread Marek Vasut
On 3/17/23 18:27, Peter Hoyes wrote: On 17/03/2023 12:17, Marek Vasut wrote: On 3/16/23 17:34, Peter Hoyes wrote: From: Peter Hoyes 64597346 "fdt: Add -q option to fdt addr for distro_bootcmd" introduced the -q option for fdt addr, which sets the current working fdt address without printing

[PATCH 4/5] net: phy: Add MDIO PCS 2.5G and 5G speed macros from Linux

2023-03-19 Thread Marek Vasut
Add MDIO PCS 2.5G and 5G speed macros from Linux 5.1.y as of commit 7fd8afa8933a0 ("net: phy: Add generic support for 2.5GBaseT and 5GBaseT") This is used by the upcoming Marvell 10G PHY driver. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún" Cc: Joe Hershberger Cc:

[PATCH 5/5] net: phy: marvell10g: Adapt Marvell 10G PHY driver from Linux

2023-03-19 Thread Marek Vasut
Pull Marvell 10G PHY driver from Linux 6.1.y as of commit d6d29292640d3 ("net: phy: marvell10g: select host interface configuration") and heavily adapt to match U-Boot PHY framework. Support for hwmon is removed as is much other functionality which could not be tested, this results in much simpler

[PATCH 4/4] phy: renesas: Add Renesas Ethernet SERDES driver for R-Car S4-8

2023-03-19 Thread Marek Vasut
Add Renesas Ethernet SERDES driver for R-Car S4-8 (r8a779f0). The datasheet describes initialization procedure without any information about registers' name/bits. So, this is all black magic to initialize the hardware. Especially, all channels should be initialized at once. This driver is

[PATCH 3/4] phy: Add .set_mode and .set_speed callbacks

2023-03-19 Thread Marek Vasut
Add two new callbacks matching the Linux ones. The .set_mode is used to set PHY mode and submode, where mode is either USB, Ethernet, and so on, while submode is e.g. for Ethernet case RGMII, RMII, and so on. The .set_speed is used to configure link speed into the PHY. Unlike the existing

[PATCH 1/4] phy: Add empty generic_phy_configure() implementation for PHY disabled case

2023-03-19 Thread Marek Vasut
In case PHY is not enabled, the generic_phy_configure() implementation is missing. Add an empty one so that the list of empty functions is complete. Fixes: f8da8a82c57 ("generic-phy: add configure op") Signed-off-by: Marek Vasut --- Cc: Jim Liu Cc: Neil Armstrong Cc: Patrice Chotard Cc:

[PATCH 2/4] phy: Fix kerneldoc alignment

2023-03-19 Thread Marek Vasut
Insert missing space in front of asterisk to avoid checkpatch warning. Replace 'beeing' with 'being' as well, to fix another checkpatch warning. Signed-off-by: Marek Vasut --- Cc: Jim Liu Cc: Neil Armstrong Cc: Patrice Chotard Cc: Samuel Holland Cc: Sumit Garg Cc: Weijie Gao ---

[PATCH 1/5] net: phy: marvell: Import and use marvell_phy.h from Linux

2023-03-19 Thread Marek Vasut
Import marvell_phy.h from Linux 5.14.y as of commit a5de4be06 ("net: phy: marvell10g: fix differentiation of 88X3310 from 88X3340") and use it in marvell PHY driver instead of current ad-hoc macros. Two of the PHY IDs are unknown to Linux, 88E1149S and 88E1680, for those two, only sync the

[PATCH 2/5] net: phy: Add phy_modify_mmd() and phy_modify_mmd_changed() from Linux

2023-03-19 Thread Marek Vasut
Add phy_modify_mmd()/phy_modify_mmd_changed() from Linux 5.1.y as of commit b8554d4f7288f ("net: phy: add register modifying helpers returning 1 on change") This is used by the upcoming Marvell 10G PHY driver. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún" Cc: Joe

[PATCH 3/5] net: phy: Add phy_read_mmd_poll_timeout() from Linux

2023-03-19 Thread Marek Vasut
Add phy_read_mmd_poll_timeout() from Linux 5.7.y as of commit bd971ff0b7392 ("net: phy: introduce phy_read_mmd_poll_timeout macro") This is used by the upcoming Marvell 10G PHY driver. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún" Cc: Joe Hershberger Cc: Marek

[PATCH 14/41] net: phy: davicom: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 37/41] net: phy: gen10g: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 3/3] net: phy: Synchronize PHY interface modes with Linux

2023-03-19 Thread Marek Vasut
Synchronize PHY interface modes with Linux next 6.2.y commit: 0194b64578e90 ("net: phy: improve phy_read_poll_timeout") Retain LX2160A/LX2162A PHY modes as those are not yet supported by the Linux kernel, but isolate those with ifdeffery. Isolate NCSI which are also not supported by Linux

[PATCH 35/41] net: phy: xilinx-gmii2rgmii: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 2/3] net: mvpp2: Replace PHY_INTERFACE_MODE_SFI with 5GBASER/10GBASER/XAUI

2023-03-19 Thread Marek Vasut
Replace PHY_INTERFACE_MODE_SFI with PHY_INTERFACE_MODE_5GBASER, PHY_INTERFACE_MODE_10GBASER and PHY_INTERFACE_MODE_XAUI to match Linux PHY interface modes. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún" Cc: Joe Hershberger Cc: Marek Vasut Cc: Ramon Fried Cc:

[PATCH 40/41] net: phy: Re-inline phy_drv_reloc()

2023-03-19 Thread Marek Vasut
Wrap phy_drv_reloc() back into phy_init() to reduce ifdeffery, since phy_drv_reloc() is now called only from one call site. No functional change. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex Nemirovsky Cc: Haolin Li Cc: Heinrich

[PATCH 23/41] net: phy: nxp-c45-tja11xx: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 1/3] net: mvpp2: Replace PHY_INTERFACE_MODE_SGMII_2500 with SGMII and speed

2023-03-19 Thread Marek Vasut
Replace PHY_INTERFACE_MODE_SGMII_2500 with PHY_INTERFACE_MODE_SGMII and phydev->speed check where applicable. The PHY_INTERFACE_MODE_SGMII_2500 does not exist in Linux, so remove it from U-Boot too. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Marek Behún" Cc: Joe Hershberger

[PATCH 27/41] net: phy: teranetics: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 24/41] net: phy: nxp-tja11xx: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 34/41] net: phy: ncsi: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 26/41] net: phy: smsc: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 28/41] net: phy: ti: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" This particular PHY driver is slightly more spread out across additional source files. Since the phy_register()

[PATCH 25/41] net: phy: realtek: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 41/41] net: phy: Only call phy_init() on systems needing manual relocation

2023-03-19 Thread Marek Vasut
The phy_init() is now used only to perform manual relocation of PHY driver callbacks. Wrap it in ifdeffery and only call it on systems which still require manual relocation, i.e. m68k . Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 17/41] net: phy: lxt: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 21/41] net: phy: meson-gxl: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 38/41] net: phy: Drop static phy_drivers list

2023-03-19 Thread Marek Vasut
The static phy_drivers list is superseded by linker list of struct phy_drivers now that all drivers have been converted to the later. Drop the phy_drivers list as well as list_head from struct phy_driver. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek

[PATCH 19/41] net: phy: ksz8xxx: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 30/41] net: phy: xilinx: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 16/41] net: phy: et1011c: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 33/41] net: phy: fixed: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 22/41] net: phy: natsemi: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 13/41] net: phy: cortina: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

[PATCH 39/41] net: phy: Drop unused phy_register()

2023-03-19 Thread Marek Vasut
This function is no longer used, drop it. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex Nemirovsky Cc: Haolin Li Cc: Heinrich Schuchardt Cc: Joe Hershberger Cc: Joel Stanley Cc: Josua Mayer Cc: Marek Vasut Cc: Michael

[PATCH 29/41] net: phy: vitesse: Convert to U_BOOT_PHY_DRIVER()

2023-03-19 Thread Marek Vasut
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "Cédric Le Goater" Cc: "Marek Behún" Cc: Alex

  1   2   >