Re: test_efi_selftest occasionally fails on qemu-x86?

2020-12-22 Thread Heinrich Schuchardt
On 12/22/20 6:00 AM, Bin Meng wrote: Hi, Please check the log: https://dev.azure.com/bmeng/GitHub/_build/results?buildId=302&view=logs&j=cf9e8018-ed89-5c32-5567-a8524d857521&t=4197aefe-2a0c-53e5-5744-78f78ce6022b Re-run the pipeline with the same commit, the tests pass. https://dev.azure.com/bm

Re: test_efi_selftest occasionally fails on qemu-x86?

2020-12-22 Thread Heinrich Schuchardt
On 12/22/20 9:14 AM, Heinrich Schuchardt wrote: On 12/22/20 6:00 AM, Bin Meng wrote: Hi, Please check the log: https://dev.azure.com/bmeng/GitHub/_build/results?buildId=302&view=logs&j=cf9e8018-ed89-5c32-5567-a8524d857521&t=4197aefe-2a0c-53e5-5744-78f78ce6022b Re-run the pipeline with the sam

[PATCH v4 1/3] dt-bindings: input: adc-keys bindings documentation

2020-12-22 Thread Marek Szyprowski
Dump adc-keys bindings documentation from Linux kernel source tree v5.10. Signed-off-by: Marek Szyprowski --- doc/device-tree-bindings/input/adc-keys.txt | 49 + 1 file changed, 49 insertions(+) create mode 100644 doc/device-tree-bindings/input/adc-keys.txt diff --git a/doc

[PATCH v4 0/3] VIM3: add support for checking 'Function' button state

2020-12-22 Thread Marek Szyprowski
Hi All, This patchset adds all building blocks needed for checking the 'Function' button state in the boot script on Amlogic A311D based VIM3 board. This button is connected to the ADC lines of the SoC, so it required to enable meson SARADC, the clocks needed for it and a simple button-adc drivers

[PATCH v4 2/3] button: add a simple Analog to Digital Converter device based button driver

2020-12-22 Thread Marek Szyprowski
Add a simple Analog to Digital Converter device based button driver. This driver binds to the 'adc-keys' device tree node. Signed-off-by: Marek Szyprowski --- drivers/button/Kconfig | 8 +++ drivers/button/Makefile | 1 + drivers/button/button-adc.c | 121 +++

[PATCH v4 3/3] configs: khadas-vim3(l): enable Function button support

2020-12-22 Thread Marek Szyprowski
Add options required to check the 'Function' button state. Signed-off-by: Marek Szyprowski --- configs/khadas-vim3_defconfig | 2 ++ configs/khadas-vim3l_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/khadas-vim3_defconfig b/configs/khadas-vim3_defconfig index 5d16652f

Re: [PATCH] fs: squasfs: fix a possible NULL pointer dereference in sqfs_opendir()

2020-12-22 Thread Richard Genoud
Hi Miquel Le 22/12/2020 à 08:46, Miquel Raynal a écrit : Hi Richard, Richard Genoud wrote on Mon, 21 Dec 2020 17:17:56 +0100: Hi Miquel Le 21/12/2020 à 16:49, Miquel Raynal a écrit : Hi Richard, Richard Genoud wrote on Mon, 21 Dec 2020 16:40:51 +0100: Hi Miquel, Le 21/12/2020 à 16:2

Re: [PATCH v4 2/3] button: add a simple Analog to Digital Converter device based button driver

2020-12-22 Thread Heinrich Schuchardt
On 12/22/20 9:56 AM, Marek Szyprowski wrote: Add a simple Analog to Digital Converter device based button driver. This driver binds to the 'adc-keys' device tree node. Signed-off-by: Marek Szyprowski --- drivers/button/Kconfig | 8 +++ drivers/button/Makefile | 1 + drivers/but

Re: [PATCH] arm: mvebu: Espressobin: Disable slot when emmc is not present

2020-12-22 Thread Stefan Roese
On 21.12.20 11:09, Pali Rohár wrote: This change extends previous commit 061c6d1b238a ("arm: mvebu: Espressobin: Detect presence of emmc at runtime") and when emmc is not present then emmc is removed from U-Boot DM and corresponding slot is disabled. Therefore on Espressobin board without soldere

Re: [PATCH v4 1/3] dt-bindings: input: adc-keys bindings documentation

2020-12-22 Thread Heinrich Schuchardt
On 12/22/20 9:56 AM, Marek Szyprowski wrote: Dump adc-keys bindings documentation from Linux kernel source tree v5.10. Signed-off-by: Marek Szyprowski --- doc/device-tree-bindings/input/adc-keys.txt | 49 + 1 file changed, 49 insertions(+) create mode 100644 doc/device-

[PATCH v2 0/5] DFU: new entity types and minor improvements

2020-12-22 Thread Marek Szyprowski
Hi All, This patchset adds support for SKIP and SCRIPT entity types to the DFU subsystem. They significantly extends the flexibility of the storage flashing commands. Together with the recently posted 'Add MBR partition table creation and verify command' patchset and proper script it allows to cre

[PATCH v2 2/5] dfu: add 'SKIP' entity

2020-12-22 Thread Marek Szyprowski
From: Jaehoon Chung Define a new 'SKIP' type for the DFU entities. The flashed data for that entity is simply ignored without returning any error values. This allows to have one flashing procedure and images for the different board types or variants, where each board uses only the images relevan

[PATCH v2 5/5] thor: add support for the dfu_alt_info reintialization from the flashed script

2020-12-22 Thread Marek Szyprowski
Reinitialize dfu_env_entities after flashing the 'SCRIPT' entity to ensure that the potential changes to the 'dfu_alt_info' environment variable are applied. Signed-off-by: Marek Szyprowski --- cmd/thordown.c | 19 --- drivers/usb/gadget/f_thor.c | 3 +++ include/th

[PATCH v2 4/5] dfu: add support for the dfu_alt_info reintialization from the flashed script

2020-12-22 Thread Marek Szyprowski
Reinitialize DFU USB gadget after flashing the 'SCRIPT' entity to ensure that the potential changes to the 'dfu_alt_info' environment variable are applied. Signed-off-by: Marek Szyprowski --- cmd/dfu.c| 14 +- common/dfu.c | 3 +++ 2 files changed, 16 insertions(+), 1 deletion(-

[PATCH v2 3/5] dfu: add 'SCRIPT' entity

2020-12-22 Thread Marek Szyprowski
Define a new 'SCRIPT' type for DFU entities. The downloaded data are treated as simple u-boot's scripts and executed with run_command_list() function. Flashing the 'SCRIPT' entity might result in changing the 'dfu_alt_info' environment variable from the flashed script, so add a global variable for

[PATCH v2 1/5] dfu: mmc: use the default MMC device if entity specifies it as -1

2020-12-22 Thread Marek Szyprowski
Use the default MMC device set in the command line if entity specifies it as -1. This allows to use the same dfu_alt_info string for different MMC devices (like embedded eMMC and external SD card if data layout is the same on both devices). Signed-off-by: Marek Szyprowski --- drivers/dfu/dfu_mmc

Re: [PATCH] imx8mp_evk: Increase CONFIG_SYS_MALLOC_F_LEN

2020-12-22 Thread Fabio Estevam
Hi Tom and Stefano, On Tue, Dec 22, 2020 at 3:01 AM Peng Fan wrote: > > > Subject: [PATCH] imx8mp_evk: Increase CONFIG_SYS_MALLOC_F_LEN > > > > When booting imx8mp-evk the following allocation error message is seen: > > > > U-Boot 2021.01-rc3-00200-ge668bec96a5f (Dec 21 2020 - 14:36:42 -0300) > >

Re: [PATCH] imx8mp_evk: Increase CONFIG_SYS_MALLOC_F_LEN

2020-12-22 Thread Stefano Babic
On 22.12.20 11:59, Fabio Estevam wrote: > Hi Tom and Stefano, > > On Tue, Dec 22, 2020 at 3:01 AM Peng Fan wrote: >> >>> Subject: [PATCH] imx8mp_evk: Increase CONFIG_SYS_MALLOC_F_LEN >>> >>> When booting imx8mp-evk the following allocation error message is seen: >>> >>> U-Boot 2021.01-rc3-00200-g

Re: [PATCH v4 1/3] dt-bindings: input: adc-keys bindings documentation

2020-12-22 Thread Heinrich Schuchardt
On 12/22/20 11:12 AM, Heinrich Schuchardt wrote: On 12/22/20 9:56 AM, Marek Szyprowski wrote: Dump adc-keys bindings documentation from Linux kernel source tree v5.10. Signed-off-by: Marek Szyprowski ---   doc/device-tree-bindings/input/adc-keys.txt | 49 +   1 file changed,

[PATCH v4 00/13] Raspberry Pi 400/Compute Module 4 support

2020-12-22 Thread Nicolas Saenz Julienne
@Simon: I had to roll back all "if (CONFIG_IS_ENABLED(DM_DMA)" uses. As per buildman it breaks compilation when !DM or !DM_DMA due to access to undefined variables, namely dev and dev->dma_offset. I figure in u-boot we root for small Image sizes, so defining the variables regarless of them being ne

[PATCH v4 01/13] rpi: Add identifier for the new RPi400

2020-12-22 Thread Nicolas Saenz Julienne
The Raspberry Pi Foundation released the new RPi400 which we want to detect, so we can enable Ethernet on it and know the correct device tree file name. Signed-off-by: Nicolas Saenz Julienne --- Changes since v1: - The RPi Foundation introduced a RPi400 specific device tree, so use that fil

[PATCH v4 06/13] dm: Introduce DMA constraints into the core device model

2020-12-22 Thread Nicolas Saenz Julienne
Calculating the DMA offset between a bus address space and CPU's every time we call phys_to_bus() and bus_to_phys() isn't ideal performance wise, as it implies traversing the device tree from the device's node up to the root. Since this information is static and available before the device's initia

[PATCH v4 02/13] rpi: Add identifier for the new CM4

2020-12-22 Thread Nicolas Saenz Julienne
The Raspberry Pi Foundation released the new Compute Module 4 which we want to detect, so we can enable Ethernet on it and know the correct device tree file name. Note that this sets the Ethernet option to true since the official CM4 IO board has an Ethernet port. But that might not be the case wh

[PATCH v4 05/13] dm: test: Add test case for dev_get_dma_ranges()

2020-12-22 Thread Nicolas Saenz Julienne
Introduce some new nodes in sandbox's test device-tree and dm tests in order to validate dev_get_dma_range(). Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Simon Glass --- Changes since v3: - Use ut_assertok() instead of ut_assert(!func()) arch/sandbox/dts/test.dts | 17 ++

[PATCH v4 03/13] pci: pcie-brcmstb: Fix inbound window configurations

2020-12-22 Thread Nicolas Saenz Julienne
So far we've assumed a fixed configuration for inbound windows as we had a single user for this controller. But the controller's DMA constraints were improved starting with BCM2711's B1 revision of the SoC, notably available in CM4 and Pi400. They allow for wider inbound windows. We can now cover t

[PATCH v4 04/13] dm: Introduce xxx_get_dma_range()

2020-12-22 Thread Nicolas Saenz Julienne
Add the following functions to get a specific device's DMA ranges: - dev_get_dma_range() - ofnode_get_dma_range() - of_get_dma_range() - fdt_get_dma_range() They are specially useful in oder to be able validate a physical address space range into a bus's and to convert addresses from and to add

[PATCH v4 08/13] dm: Introduce dev_phys_to_bus()/dev_bus_to_phys()

2020-12-22 Thread Nicolas Saenz Julienne
These functions, instead of relying on hard-coded platform-specific address translations, make use of the DMA constraints provided by the DM core. This allows for per-device translations. We can't yet get rid of the legacy phys_to_bus()/bus_to_phys() implementations as some of its users are not in

[PATCH v4 07/13] dm: test: Add test case for dev->dma_offset

2020-12-22 Thread Nicolas Saenz Julienne
Add test to validate dev->dma_offset is properly set on devices. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Simon Glass --- Changes since v3: - Use ut_assertok() instead of ut_assert(!func()) arch/sandbox/dts/test.dts | 4 configs/sandbox64_defconfig| 1 + con

[PATCH v4 09/13] dm: test: Add test case for dev_phys_to_bus()/dev_bus_to_phys()

2020-12-22 Thread Nicolas Saenz Julienne
By reusing DT nodes already available in sandbox's test DT introduce a test to validate dev_phys_to_bus()/dev_bus_to_phys(). Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Simon Glass --- Changes since v3: - Use ut_assertok() instead of ut_assert(!func()) - Use ut_assert_addr() test/dm/

[PATCH v4 11/13] mmc: Introduce mmc_phys_to_bus()/mmc_bus_to_phys()

2020-12-22 Thread Nicolas Saenz Julienne
This will allow us to use DM variants of phys_to_bus()/bus_to_phys() when relevant. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Simon Glass --- Changes since v3 - Don't call phys_to_bus()/bus_to_phys(), we only support DM drivers/mmc/sdhci.c | 7 --- include/mmc.h | 10

[PATCH v4 10/13] xhci: translate virtual addresses into the bus's address space

2020-12-22 Thread Nicolas Saenz Julienne
So far we've been content with passing physical addresses when configuring memory addresses into XHCI controllers, but not all platforms have buses with transparent mappings. Specifically the Raspberry Pi 4 might introduce an offset to memory accesses incoming from its PCIe port. Introduce xhci_vi

[PATCH v4 12/13] configs: rpi4: Enable DM_DMA across all RPi4 configurations

2020-12-22 Thread Nicolas Saenz Julienne
The DM_DMA option is needed in order to translate physical address into bus addresses on a per-device basis. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Simon Glass --- configs/rpi_4_32b_defconfig | 1 + configs/rpi_4_defconfig | 1 + configs/rpi_arm64_defconfig | 1 + 3 files change

[PATCH v4 13/13] video: arm: rpi: Add brcm,bcm2711-hdmi0 compatible

2020-12-22 Thread Nicolas Saenz Julienne
The 'brcm,bcm2711-hdmi0' compatible string is used on RPi4 instead of 'brcm,bcm2835-hdmi' since the IP core was upgraded (now called VC6 instead of VC4). This has no functional change as far as u-boot driver is concerned. So simply add the compatible string. Signed-off-by: Nicolas Saenz Julienne

Re: [PATCH v4] tools: add a simple script to generate EFI variables

2020-12-22 Thread Paulo Alcantara
Heinrich Schuchardt writes: > efivar.py requires that 'set' is the first parameter. > I will fix the commit message. Thanks! > Could you, please, provide a man-page for the tool as restructured text > in doc/usage/. Please, check that it is correct with 'make htmldocs'. Yes, will do it.

Re: [PATCH v6 00/28] Add DM support for omap PWM backlight

2020-12-22 Thread Lokesh Vutla
Hi Dario, On 22/11/20 9:41 pm, Dario Binacchi wrote: > > The series was born from the need to manage the PWM backlight of the > display connected to my beaglebone board. To hit the target, I had to > develop drivers for PWM management which in turn relied on drivers for > managing timers and cloc

Re: [PATCH] Nokia RX-51: Convert to CONFIG_DM_MMC

2020-12-22 Thread Lokesh Vutla
Hi Pali, [...snip...] > +++ b/configs/nokia_rx51_defconfig > @@ -29,6 +29,7 @@ CONFIG_CMD_BOOTMENU=y > # CONFIG_CMD_SAVEENV is not set > # CONFIG_CMD_ENV_EXISTS is not set > # CONFIG_CMD_FLASH is not set > +# CONFIG_CMD_SLEEP is not set > CONFIG_CMD_GPIO=y > CONFIG_CMD_I2C=y > CONFIG_CMD_MM

Re: [PATCH] Nokia RX-51: Convert to CONFIG_DM_MMC

2020-12-22 Thread Pali Rohár
On Tuesday 22 December 2020 19:26:21 Lokesh Vutla wrote: > Hi Pali, > > [...snip...] > > > +++ b/configs/nokia_rx51_defconfig > > @@ -29,6 +29,7 @@ CONFIG_CMD_BOOTMENU=y > > # CONFIG_CMD_SAVEENV is not set > > # CONFIG_CMD_ENV_EXISTS is not set > > # CONFIG_CMD_FLASH is not set > > +# CONFIG_C

[PATCH v2 2/6] disk: dos: add some defines for the hardcoded numbers

2020-12-22 Thread Marek Szyprowski
Add some handy defines for some hardcoded magic numbers related to extended partition handling. Signed-off-by: Marek Szyprowski --- disk/part_dos.c | 6 +++--- disk/part_dos.h | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/disk/part_dos.c b/disk/part_dos.c index ef706fb5

[PATCH v2 1/6] disk: dos: rename write_mbr_partition to write_mbr_sector

2020-12-22 Thread Marek Szyprowski
write_mbr_partition() function name is a bit misleading, so rename it to write_mbr_sector(). This is a preparation for adding code for writing a complete MBR partition layout. Signed-off-by: Marek Szyprowski --- disk/part_dos.c | 2 +- drivers/fastboot/fb_mmc.c | 2 +- include/part.h

[PATCH v2 4/6] disk: dos: make some functions static

2020-12-22 Thread Marek Szyprowski
Make functions not used outside this file static. Signed-off-by: Marek Szyprowski --- disk/part_dos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disk/part_dos.c b/disk/part_dos.c index 3b79b9b1b8..2c4ad0b6ba 100644 --- a/disk/part_dos.c +++ b/disk/part_dos.c @@ -302,

[PATCH v2 5/6] disk: dos: add code for creating MBR partition layout

2020-12-22 Thread Marek Szyprowski
Add a code for creating and writing MBR partition layout. The code generates similar layout of EBRs (Exteneded Block Records) and logical volumes as Linux's fdisk utility. Signed-off-by: Marek Szyprowski --- disk/part_dos.c | 167 disk/part_dos.h

[PATCH v2 3/6] disk: dos: use generic macro for unaligned le32 access

2020-12-22 Thread Marek Szyprowski
Use a generic helper for reading LE32 integers. Signed-off-by: Marek Szyprowski --- disk/part_dos.c | 28 +--- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/disk/part_dos.c b/disk/part_dos.c index 20d35dc9cd..3b79b9b1b8 100644 --- a/disk/part_dos.c +++ b/

[PATCH v2 6/6] cmd: Add MBR partition layout control utility

2020-12-22 Thread Marek Szyprowski
Add a 'mbr' command to let user create or verify MBR partition layout based on the provided text description. The partition layout is altearnatively read from 'mbr_parts' environment variable. This can be used in scripts to help system image flashing tools to ensure proper partition layout. The sy

[PATCH v2 0/6] Add MBR partition table creation and verify command

2020-12-22 Thread Marek Szyprowski
Hi All, This patchset adds 'mbr' command to let one create or verify MBR (Master Boot Record) partition layout based on the provided text description. This can be used in scripts to help system flashing tools/scripts to ensure proper partition layout. It has been inspired by the 'gpt' command alre

Re: [PATCH v2] Nokia RX-51: Enable usbtty serial console by default

2020-12-22 Thread Lokesh Vutla
On 01/12/20 12:57 am, Pali Rohár wrote: > Now when usbtty serial console is fixed in U-Boot enable CONFIG_USB_TTY for > Nokia RX-51 board by default. > > Fix also USB product id as U-Boot ignores CONFIG_USBD_PRODUCTID macro and > include U-Boot string into USB product name to indicate usage of

Re: [PATCH] Nokia RX-51: Convert to CONFIG_DM_MMC

2020-12-22 Thread Lokesh Vutla
On 22/12/20 7:30 pm, Pali Rohár wrote: > On Tuesday 22 December 2020 19:26:21 Lokesh Vutla wrote: >> Hi Pali, >> >> [...snip...] >> >>> +++ b/configs/nokia_rx51_defconfig >>> @@ -29,6 +29,7 @@ CONFIG_CMD_BOOTMENU=y >>> # CONFIG_CMD_SAVEENV is not set >>> # CONFIG_CMD_ENV_EXISTS is not set >>>

Re: [PATCH v2] Nokia RX-51: Enable usbtty serial console by default

2020-12-22 Thread Pali Rohár
On Tuesday 22 December 2020 19:56:51 Lokesh Vutla wrote: > > > On 01/12/20 12:57 am, Pali Rohár wrote: > > Now when usbtty serial console is fixed in U-Boot enable CONFIG_USB_TTY for > > Nokia RX-51 board by default. > > > > Fix also USB product id as U-Boot ignores CONFIG_USBD_PRODUCTID macro a

Re: [PATCH] Nokia RX-51: Convert to CONFIG_DM_MMC

2020-12-22 Thread Pali Rohár
On Tuesday 22 December 2020 20:20:26 Lokesh Vutla wrote: > > > On 22/12/20 7:30 pm, Pali Rohár wrote: > > On Tuesday 22 December 2020 19:26:21 Lokesh Vutla wrote: > >> Hi Pali, > >> > >> [...snip...] > >> > >>> +++ b/configs/nokia_rx51_defconfig > >>> @@ -29,6 +29,7 @@ CONFIG_CMD_BOOTMENU=y > >>>

Re: [PATCH v2] Nokia RX-51: Enable usbtty serial console by default

2020-12-22 Thread Lokesh Vutla
On 22/12/20 8:28 pm, Pali Rohár wrote: > On Tuesday 22 December 2020 19:56:51 Lokesh Vutla wrote: >> >> >> On 01/12/20 12:57 am, Pali Rohár wrote: >>> Now when usbtty serial console is fixed in U-Boot enable CONFIG_USB_TTY for >>> Nokia RX-51 board by default. >>> >>> Fix also USB product id as

Re: [PATCH v2] Nokia RX-51: Enable usbtty serial console by default

2020-12-22 Thread Lokesh Vutla
On 22/12/20 8:36 pm, Lokesh Vutla wrote: > > > On 22/12/20 8:28 pm, Pali Rohár wrote: >> On Tuesday 22 December 2020 19:56:51 Lokesh Vutla wrote: >>> >>> >>> On 01/12/20 12:57 am, Pali Rohár wrote: Now when usbtty serial console is fixed in U-Boot enable CONFIG_USB_TTY for Nokia RX-5

Re: [PATCH v2] Nokia RX-51: Enable usbtty serial console by default

2020-12-22 Thread Lokesh Vutla
On 22/12/20 8:38 pm, Lokesh Vutla wrote: > > > On 22/12/20 8:36 pm, Lokesh Vutla wrote: >> >> >> On 22/12/20 8:28 pm, Pali Rohár wrote: >>> On Tuesday 22 December 2020 19:56:51 Lokesh Vutla wrote: On 01/12/20 12:57 am, Pali Rohár wrote: > Now when usbtty serial console is fi

Re: [PATCH v2] Nokia RX-51: Enable usbtty serial console by default

2020-12-22 Thread Pali Rohár
On Tuesday 22 December 2020 20:39:11 Lokesh Vutla wrote: > > > On 22/12/20 8:38 pm, Lokesh Vutla wrote: > > > > > > On 22/12/20 8:36 pm, Lokesh Vutla wrote: > >> > >> > >> On 22/12/20 8:28 pm, Pali Rohár wrote: > >>> On Tuesday 22 December 2020 19:56:51 Lokesh Vutla wrote: > > >

Re: [PATCH v4 10/13] xhci: translate virtual addresses into the bus's address space

2020-12-22 Thread Stefan Roese
On 22.12.20 13:35, Nicolas Saenz Julienne wrote: So far we've been content with passing physical addresses when configuring memory addresses into XHCI controllers, but not all platforms have buses with transparent mappings. Specifically the Raspberry Pi 4 might introduce an offset to memory acces

Re: [PATCH v4 08/13] dm: Introduce dev_phys_to_bus()/dev_bus_to_phys()

2020-12-22 Thread Stefan Roese
On 22.12.20 13:35, Nicolas Saenz Julienne wrote: These functions, instead of relying on hard-coded platform-specific address translations, make use of the DMA constraints provided by the DM core. This allows for per-device translations. We can't yet get rid of the legacy phys_to_bus()/bus_to_phy

Re: [PATCH] power: pmic: add driver for Monolithic Power mp5416

2020-12-22 Thread Tim Harvey
On Mon, Dec 21, 2020 at 2:36 PM Jaehoon Chung wrote: > > Hi, > > On 12/22/20 1:19 AM, Tim Harvey wrote: > > This adds basic register access and child regulator binding > > for the Monolithic MP5416 Power Management IC which integrates > > four DC/DC switching converters and five LDO regulators. >

Re: [PATCH v2] Nokia RX-51: Enable usbtty serial console by default

2020-12-22 Thread Lokesh Vutla
On 22/12/20 8:47 pm, Pali Rohár wrote: > On Tuesday 22 December 2020 20:39:11 Lokesh Vutla wrote: >> >> >> On 22/12/20 8:38 pm, Lokesh Vutla wrote: >>> >>> >>> On 22/12/20 8:36 pm, Lokesh Vutla wrote: On 22/12/20 8:28 pm, Pali Rohár wrote: > On Tuesday 22 December 2020 19:56:5

[PATCH v1] toradex: hand over maintainership

2020-12-22 Thread Igor Opaniuk
From: Igor Opaniuk Hand over maintainership of Toradex SoMs (that I was responsible of) to Oleksandr because of my resignation from Toradex, as such I will have no immediate involvement with these modules and as a result not able to continue maintaining these boards. CC: Oleksandr Suvorov Signe

Re: [PATCH v2] Nokia RX-51: Enable usbtty serial console by default

2020-12-22 Thread Pali Rohár
On Tuesday 22 December 2020 21:08:45 Lokesh Vutla wrote: > On 22/12/20 8:47 pm, Pali Rohár wrote: > > On Tuesday 22 December 2020 20:39:11 Lokesh Vutla wrote: > >> > >> > >> On 22/12/20 8:38 pm, Lokesh Vutla wrote: > >>> > >>> > >>> On 22/12/20 8:36 pm, Lokesh Vutla wrote: > > > On 2

[PATCH v7 1/7] riscv: Add DMA 64-bit address support

2020-12-22 Thread Padmarao Begari
dma_addr_t holds any valid DMA address. If the DMA API only uses 32/64-bit addresses, dma_addr_t need only be 32/64 bits wide. Signed-off-by: Padmarao Begari Reviewed-by: Anup Patel Reviewed-by: Bin Meng --- arch/riscv/Kconfig | 4 arch/riscv/include/asm/types.h | 4 2 fi

[PATCH v7 0/7] Microchip PolarFire SoC support

2020-12-22 Thread Padmarao Begari
This patch set adds Microchip PolarFire SoC Icicle Kit support to RISC-V U-Boot. The patches are based upon latest U-Boot tree (https://gitlab.denx.de/u-boot/u-boot.git) at commit id c15f44acf9d473f4682bfdc63b8aebd313492b15 All drivers namely: NS16550 Serial, Microchip clock, Cadence eMMC and Cad

[PATCH v7 2/7] net: macb: Add DMA 64-bit address support for macb

2020-12-22 Thread Padmarao Begari
Enable 32-bit or 64-bit DMA in the macb driver based on the macb hardware compatibility and it is configured with structure macb_config in the driver. The Microchip PolarFire SoC Memory Protection Unit(MPU) gives the 64-bit DMA access with the GEM, the MPU transactions on the AXI bus is 64-bit not

[PATCH v7 4/7] clk: Add Microchip PolarFire SoC clock driver

2020-12-22 Thread Padmarao Begari
Add clock driver code for the Microchip PolarFire SoC. This driver handles reset and clock control of the Microchip PolarFire SoC device. Signed-off-by: Padmarao Begari Reviewed-by: Anup Patel Tested-by: Bin Meng --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile

[PATCH v7 3/7] net: macb: Add phy address to read it from device tree

2020-12-22 Thread Padmarao Begari
Read phy address from device tree and use it to find the phy device if not found then search in the range of 0 to 31. Signed-off-by: Padmarao Begari Reviewed-by: Anup Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- drivers/net/macb.c | 13 + 1 file changed, 13 insertions(+) d

[PATCH v7 6/7] riscv: Add Microchip MPFS Icicle Kit support

2020-12-22 Thread Padmarao Begari
This patch adds Microchip MPFS Icicle Kit support. For now, only NS16550 Serial, Microchip clock, Cadence eMMC and MACB drivers are enabled. The Microchip MPFS Icicle defconfig by default builds U-Boot for S-Mode because U-Boot on Microchip PolarFire SoC will run in S-Mode as payload of HSS + OpenS

[PATCH v7 7/7] doc: board: Add Microchip MPFS Icicle Kit doc

2020-12-22 Thread Padmarao Begari
This doc describes the procedure to build, flash and boot Linux using U-boot on Microchip MPFS Icicle Kit. Signed-off-by: Padmarao Begari Reviewed-by: Anup Patel Reviewed-by: Bin Meng --- doc/board/index.rst | 1 + doc/board/microchip/index.rst | 9 + doc/board/microc

[PATCH v7 5/7] riscv: dts: Add device tree for Microchip Icicle Kit

2020-12-22 Thread Padmarao Begari
Add device tree for Microchip PolarFire SoC Icicle Kit. Signed-off-by: Padmarao Begari Reviewed-by: Anup Patel Reviewed-by: Bin Meng --- arch/riscv/dts/Makefile | 1 + .../dts/microchip-mpfs-icicle-kit-u-boot.dtsi | 14 + arch/riscv/dts/microchip-mpfs-icicle-kit.dts |

Re: [PATCH v2 6/6] cmd: Add MBR partition layout control utility

2020-12-22 Thread Heinrich Schuchardt
On 12/22/20 3:09 PM, Marek Szyprowski wrote: Add a 'mbr' command to let user create or verify MBR partition layout based on the provided text description. The partition layout is altearnatively read from 'mbr_parts' environment variable. This can be used in scripts to help system image flashing t

Re: [PATCH v6 00/28] Add DM support for omap PWM backlight

2020-12-22 Thread Dario Binacchi
Hi Lokesh, > Il 22/12/2020 14:52 Lokesh Vutla ha scritto: > > > Hi Dario, > > On 22/11/20 9:41 pm, Dario Binacchi wrote: > > > > The series was born from the need to manage the PWM backlight of the > > display connected to my beaglebone board. To hit the target, I had to > > develop drivers

[PATCH] doc: qemu-riscv: Fix opensbi build instructions

2020-12-22 Thread Atish Patra
Latest opensbi uses generic platform for Qemu. Update the build instructions. Signed-off-by: Atish Patra --- doc/board/emulation/qemu-riscv.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/board/emulation/qemu-riscv.rst b/doc/board/emulation/qemu-riscv.rst index 3acd4

[PATCH 1/2] arm: dart6ul: change compatible string for eeprom

2020-12-22 Thread ferlandm
From: Marc Ferland The eeprom at address 0x50 is a BR24G04NUX-3TTR. It has a 4Kbit (512x8) capacity, change the compatible string to reflect this fact. Also, add an alias to easily refer to this eeprom with fdt_path_offset() which will be in another commit. Signed-off-by: Marc Ferland --- arc

[PATCH 2/2] arm: dart6ul: read and print SoM info from eeprom on startup

2020-12-22 Thread ferlandm
From: Marc Ferland The dart6ul has an i2c eeprom at 0x50 which contains, among other things, the manufacturing/revision/options info of the SoM. This patch replaces the current checkboard() implementation with a more exhaustive one based on the content of the eeprom. Since this code uses the new

Re: [PATCH v2 4/6] ARM: dts: s700: add MMC/SD controller node

2020-12-22 Thread Jaehoon Chung
On 12/19/20 11:51 PM, Amit Singh Tomar wrote: > From: Amit Singh Tomar > > This patch adds node for ethernet controller found on Action Semi OWL > S700 SoC. Is "ethernet controller" right? > > Since, upstream Linux binding has not been merged for S700 MMC/SD > controller, Changes are put in u-

Re: [PATCH v2 5/6] mmc: actions: add MMC driver for Actions OWL S700

2020-12-22 Thread Jaehoon Chung
On 12/19/20 11:51 PM, Amit Singh Tomar wrote: > From: Amit Singh Tomar > > This commit adds support for MMC controllers found on Actions OWL > S700 SoC platform. > > Signed-off-by: Amit Singh Tomar > --- > Changes since previous version > * Corrected block count to 512. > * Changed

Re: [v5 08/18] mmc: dwmmc: Change designware MMC 'clksel' callback function to return status

2020-12-22 Thread Jaehoon Chung
On 12/22/20 1:49 AM, Siew Chin Lim wrote: > Change 'clksel' callback function to allow the code to return a > status. > > This patch is a preparation for enabling Arm-Trusted-Firmware (ATF) > in Intel SoC FPGA. This patch does not change functionality. > > When using Arm-Trusted-Firmware (ATF) in

Re: [v5 09/18] mmc: dwmmc: socfpga: Add ATF support for MMC driver

2020-12-22 Thread Jaehoon Chung
On 12/22/20 1:49 AM, Siew Chin Lim wrote: > From: Chee Hong Ang > > In non-secure mode (EL2), MMC driver calls the SMC/PSCI services > provided by ATF to set SDMMC's DRVSEL and SMPLSEL. > > Signed-off-by: Chee Hong Ang > Signed-off-by: Siew Chin Lim Reviewed-by: Jaehoon Chung Best Regards,

Re: patman regression?

2020-12-22 Thread Sean Anderson
On 12/11/20 11:29 AM, Simon Glass wrote: Hi Bin, On Thu, 10 Dec 2020 at 21:37, Bin Meng wrote: On Fri, Dec 11, 2020 at 12:32 PM Sean Anderson wrote: On 12/10/20 11:27 PM, Bin Meng wrote: On Fri, Dec 11, 2020 at 12:08 PM Bin Meng wrote: Hi Simon, The following command no longer works.

[PATCH v1] riscv: Add support for SPI on Kendryte K210

2020-12-22 Thread Sean Anderson
This enables configs necessary for using SPI. The environment is saved to the very end of SPI flash. This is unlikely to be overwritten unless the entire flash is reprogrammed. This also supplies a default bootcommand. It loads an image and device tree from the first partition of the MMC. This is

[PATCH v2 0/8] spl: fit: Play nicely with OP-TEE and Linux

2020-12-22 Thread Alexandru Gagniuc
This patch series is part of a larger effort to get linux to boot really fast alongside a secure OS. One piece of the puzzle is getting Linux and OP-TEE to boot straight from SPL. This is where the FIT image comes in. The "simple" fit code was mostly ready for this, although it was quite difficult

[PATCH v2 1/8] spl: fit: Drop 'length' argument to board_spl_fit_post_load()

2020-12-22 Thread Alexandru Gagniuc
The size is derived from the FIT image itself. Any alignment requirements are machine-specific and known by the board code. Thus the total length can be derived from the FIT image and knowledge of the platform. The 'length' argument is redundant. Remove it. Signed-off-by: Alexandru Gagniuc Review

[PATCH v2 2/8] spl: fit: Factor out FIT parsing and use a context struct

2020-12-22 Thread Alexandru Gagniuc
The logical steps in spl_load_simple_fit() are difficult to follow. I think the long comments, ifdefs, and ungodly number of variables seriously affect the readability. In particular, it violates section 6 of the coding style, paragraphs (3), and (4). The purpose of this patch is to improve the si

[PATCH v2 3/8] spl: fit: Pass FIT context via a structure pointer

2020-12-22 Thread Alexandru Gagniuc
Several loose arguments describe the FIT image. They are thus related, and it makes sense to pass them together, in a structure. Examples include the FIT blob pointer, offset to FDT nodes, and the offset to external data. Use a spl_fit_info structure to group these parameters. Signed-off-by: Alex

[PATCH v2 4/8] spl: fit: Remove useless loop in spl_fit_get_image_name()

2020-12-22 Thread Alexandru Gagniuc
When a desired configuration is not found, conf_node will have a negative value. Thus the for loop will start at the root "/" node of the image, print the "/description" property, and stop. It appears the intent of the loop was to print the names of the subnodes under "/configurations". We would n

[PATCH v2 5/8] spl: fit: Only look up FIT configuration node once

2020-12-22 Thread Alexandru Gagniuc
The configuration node a sub node under "/configurations", which describes the components to load from "/images". We only need to locate this node once. However, for each component, spl_fit_get_image_name() would parse the FIT image, looking for the correct node. Such work duplication is not neces

[PATCH v2 6/8] image: Do not #if guard board_fit_config_name_match() prototype

2020-12-22 Thread Alexandru Gagniuc
There's no point in guarding function prototypes with #ifdefs. If a function is not defined, the linker will notice. Having the prototype does not affect code size. What the #if guard takes away is the ability to use IS_ENABLED: if (CONFIG_IS ENABLED(FIT_IMAGE_POST_PROCESS))

[PATCH v2 7/8] spl: fit: Replace #ifdef blocks with more readable constructs

2020-12-22 Thread Alexandru Gagniuc
Use the IS_ENABLED() macro to control code flow, instead of the caveman approach of sprinkling #ifdefs. Code size is not affected, as the linker garbage-collects unused functions. However, readability is improved significantly. Signed-off-by: Alexandru Gagniuc Reviewed-by: Simon Glass --- commo

[PATCH v2 8/8] spl: fit: Load devicetree when a Linux payload is found

2020-12-22 Thread Alexandru Gagniuc
When a FIT config specifies a devicetree, we should load it, no questions asked. In the case of the "simple" FIT loading path, a difficulty arises in selecting the load address of the FDT. The default FDT location is right after the "kernel" or "firmware" image. However, if that is an OP-TEE image

[PATCH v2] riscv: Add support for SPI on Kendryte K210

2020-12-22 Thread Sean Anderson
This enables configs necessary for using SPI. The environment is saved to the very end of SPI flash. This is unlikely to be overwritten unless the entire flash is reprogrammed. This also supplies a default bootcommand. It loads an image and device tree from the first partition of the MMC. This is

[PATCH v5 1/6] wdt: dw: Switch to using fls for log2

2020-12-22 Thread Sean Anderson
log_2_n_round_up is only found in arm. fls performs the same job and is generic. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Fix fls being off-by-one when compared to log_2_n_round_up drivers/watchdog/designware_wdt.c | 3 +-- 1 file chang

[PATCH v5 2/6] wdt: dw: Switch to if(CONFIG()) instead of using #if

2020-12-22 Thread Sean Anderson
This is preferred over #if because the compiler can check syntax even if the feature is disabled. This cannot be used for CONFIG_CLK because CONFIG_DW_WDT_CLOCK_KHZ is not defined on all platforms. Signed-off-by: Sean Anderson Reviewed-by: Heinrich Schuchardt --- (no changes since v1) drivers

[PATCH v5 3/6] wdt: dw: Enable the clock before using it

2020-12-22 Thread Sean Anderson
The watchdog won't work if the clock isn't enabled. Fixes: cf89ef8d10f240554541c20b2e1bdcdd58d1d7e6 Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) drivers/watchdog/designware_wdt.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/watchdog/design

[PATCH v5 4/6] wdt: dw: Free the clock on error

2020-12-22 Thread Sean Anderson
The clock subsystem requires that clk_free be called on clocks obtained via clk_get_*. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v4) Changes in v4: - Fix build error without CONFIG_CLK drivers/watchdog/designware_wdt.c | 18 +- 1 file changed

[PATCH v5 0/6] wdt: Add support for watchdogs on Kendryte K210

2020-12-22 Thread Sean Anderson
This series depends on https://patchwork.ozlabs.org/project/uboot/list/?series=200642 Changes in v5: - Rebase on u-boot/master Changes in v4: - Fix build error without CONFIG_CLK Changes in v3: - Note dependency on "time: Fix get_ticks being non-monotonic" - Add a few signed-off-bys which were s

[PATCH v5 5/6] riscv: Add watchdog bindings for the k210

2020-12-22 Thread Sean Anderson
This adds the necessary bindings. Most of them are already there. Signed-off-by: Sean Anderson Acked-by: Rick Chen --- (no changes since v2) Changes in v2: - Move watchdog enable to k210.dtsi as it does not depend on anything board-specific. arch/riscv/dts/k210.dtsi | 1 - 1 file changed,

[PATCH v5 6/6] riscv: Enable watchdog for the k210

2020-12-22 Thread Sean Anderson
This enables the necessary config options. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) board/sipeed/maix/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/sipeed/maix/Kconfig b/board/sipeed/maix/Kconfig index 4c42dd2087..95fe6d9706 100644

Re: patman regression?

2020-12-22 Thread Simon Glass
Hi Sean, On Tue, 22 Dec 2020 at 16:51, Sean Anderson wrote: > > On 12/11/20 11:29 AM, Simon Glass wrote: > > Hi Bin, > > > > On Thu, 10 Dec 2020 at 21:37, Bin Meng wrote: > >> > >> On Fri, Dec 11, 2020 at 12:32 PM Sean Anderson wrote: > >>> > >>> On 12/10/20 11:27 PM, Bin Meng wrote: > On

Re: [PATCH 3/3] patman: fix project-defaults not propagating into parsers

2020-12-22 Thread Simon Glass
Hi Philipp, On Wed, 25 Nov 2020 at 12:41, Philipp Tomsich wrote: > > Simon, > > On Wed, 25 Nov 2020 at 16:30, Simon Glass wrote: > > Here is a pointer to the docs I saw: > > > > https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.set_defaults > > > > "Parser-level defaults ca

Re: [PATCH v4 00/13] Raspberry Pi 400/Compute Module 4 support

2020-12-22 Thread Simon Glass
Hi Nicolas, On Tue, 22 Dec 2020 at 05:36, Nicolas Saenz Julienne wrote: > > @Simon: I had to roll back all "if (CONFIG_IS_ENABLED(DM_DMA)" uses. As > per buildman it breaks compilation when !DM or !DM_DMA due to access to > undefined variables, namely dev and dev->dma_offset. I figure in u-boot >

Re: [PATCH v2 2/6] clk: actions: Add SD/MMC clocks

2020-12-22 Thread André Przywara
On 19/12/2020 14:51, Amit Singh Tomar wrote: Hi, > From: Amit Singh Tomar > > This commit adds SD/MMC clocks, and provides .set/get_rate callbacks > for SD/MMC device present on Actions OWL S700 SoCs. > > Signed-off-by: Amit Singh Tomar > --- > Changes since previous version: > * Remove

Re: [PATCH v2 4/6] ARM: dts: s700: add MMC/SD controller node

2020-12-22 Thread André Przywara
On 22/12/2020 23:28, Jaehoon Chung wrote: > On 12/19/20 11:51 PM, Amit Singh Tomar wrote: >> From: Amit Singh Tomar >> >> This patch adds node for ethernet controller found on Action Semi OWL >> S700 SoC. > > Is "ethernet controller" right? > >> >> Since, upstream Linux binding has not been merg

Re: [PATCH v2 5/6] mmc: actions: add MMC driver for Actions OWL S700

2020-12-22 Thread André Przywara
On 22/12/2020 23:37, Jaehoon Chung wrote: > On 12/19/20 11:51 PM, Amit Singh Tomar wrote: >> From: Amit Singh Tomar >> >> This commit adds support for MMC controllers found on Actions OWL >> S700 SoC platform. >> >> Signed-off-by: Amit Singh Tomar >> --- >> Changes since previous version >>

  1   2   >