[PATCH] imx8m: config: convert to bootm_size

2020-08-21 Thread Grygorii Tertychnyi
Restrict the memory range available for image processing in the "bootm" to 256 MiB so the kernel can access it and FDT or initrd are not overwritten on ARM64. Signed-off-by: Grygorii Tertychnyi Cc: Peng Fan Cc: Marek Vasut Cc: Andrey Zhizhikin --- include/configs/imx8mm_evk.h | 3 +--

[PATCHv3 01/10] bootcount: add a DM SPI flash backing store for bootcount

2020-08-21 Thread Sebastian Reichel
This driver allows to use SPI flash as backing store for boot counter values with DM enabled. Signed-off-by: Sebastian Reichel --- drivers/bootcount/Kconfig | 10 +++ drivers/bootcount/Makefile| 1 + drivers/bootcount/spi-flash.c | 125 ++ 3 files

[PATCHv3 00/10] Introduce B1x5v2 support

2020-08-21 Thread Sebastian Reichel
This series introduces support for a new i.MX6DL based GE patient monitor series. Patch 1: Add support for storing bootcount in SPI-flash Patch 2: Fix reading the status of output GPIOs Patch 3+4: Improve M41T62 RTC driver's reset routine. PATCH 5: Support disable_ldb_di_clock_sources for i.MX6DL

[PATCHv3 06/10] sysreset: Add poweroff-gpio driver

2020-08-21 Thread Sebastian Reichel
Add GPIO poweroff driver, which is based on the Linux driver and uses the same DT binding. Reviewed-by: Simon Glass Signed-off-by: Sebastian Reichel --- drivers/sysreset/Kconfig | 7 +++ drivers/sysreset/Makefile| 1 + drivers/sysreset/poweroff_gpio.c | 92

[PATCHv3 04/10] rtc: m41t62: add oscillator fail bit reset support

2020-08-21 Thread Sebastian Reichel
In case of empty battery or glitches the oscillator fail bit might be set. This will reset the bit in the reset routine. Signed-off-by: Sebastian Reichel --- drivers/rtc/m41t62.c | 50 1 file changed, 50 insertions(+) diff --git

[PATCHv3 03/10] rtc: m41t62: reset SQW in m41t62_rtc_reset

2020-08-21 Thread Sebastian Reichel
This takes care of resetting the 32kHz square wave, which is used by some boards as clock source for the SoC. Signed-off-by: Sebastian Reichel --- drivers/rtc/m41t62.c | 89 +--- 1 file changed, 83 insertions(+), 6 deletions(-) diff --git

[PATCHv3 02/10] gpio: mxc_gpio: add support to read status of output gpios

2020-08-21 Thread Sebastian Reichel
This is supported by the hardware when the pinmux is configured correctly. Usually it is not, so this adds explicit code for this. This fixes all GPIO regulators being shown as disabled. Signed-off-by: Sebastian Reichel --- drivers/gpio/mxc_gpio.c | 10 +- 1 file changed, 9

[PATCH] configs: Enable NVME support for NXP platforms

2020-08-21 Thread Wasim Khan
Enable CONFIG_NVME and CONFIG_CMD_NVME for NXP platforms Signed-off-by: Wasim Khan --- configs/ls1012afrdm_qspi_defconfig | 2 ++ configs/ls1012afrdm_tfa_defconfig| 2 ++ configs/ls1012afrwy_qspi_SECURE_BOOT_defconfig | 2 ++

Re: [GIT PULL] xilinx patches for v2020.10-rc3

2020-08-21 Thread Tom Rini
On Thu, Aug 20, 2020 at 04:30:12PM +0200, Michal Simek wrote: > Hi Tom, > > here are patches I have collected so far. CI loops looks fine. > https://travis-ci.org/github/michalsimek/u-boot/builds/719527417 > https://gitlab.denx.de/u-boot/custodians/u-boot-microblaze/-/pipelines/4451 > > The

[PATCHv3 10/10] board: ge: b1x5v2: Add GE B1x5v2 and B1x5Pv2

2020-08-21 Thread Sebastian Reichel
GE B1x5v2 patient monitor series is similar to the CARESCAPE Monitor series (GE Bx50). It consists of a carrier PCB used in combination with a Congatec QMX6 SoM. This adds U-Boot support using device model everywhere and SPL for memory initialization. Proper configuration is provided as

[PATCHv3 09/10] board: ge: common: vpd: separate I2C specific code

2020-08-21 Thread Sebastian Reichel
This separates the I2C specific code from the generic GE vital product data code, so that the generic parts can be used on hardware with VPD stored in SPI flash memory. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 2 +- board/ge/common/vpd_reader.c | 12 ++--

[PATCHv3 08/10] board: ge: common: add config option for RTC and VPD feature

2020-08-21 Thread Sebastian Reichel
While this code is being used by all GE platforms its useful to have it behind a config option for hardware bringup of new platforms. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/Kconfig | 2 ++ board/ge/common/Kconfig | 7 +++ board/ge/common/Makefile | 3 ++-

[PATCHv3 07/10] board: ge: common: rename ge_common.c to ge_rtc.c

2020-08-21 Thread Sebastian Reichel
The file only contains RTC related code, so let's name it accordingly. Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 2 +- board/ge/common/Makefile | 2 +- board/ge/common/{ge_common.c => ge_rtc.c} | 0 board/ge/common/{ge_common.h =>

[PATCHv3 05/10] imx6: allow usage of disable_ldb_di_clock_sources for CONFIG_MX6QDL

2020-08-21 Thread Sebastian Reichel
Allow using disable_ldb_di_clock_sources with just the combined CONFIG_MX6QDL being enabled. Signed-off-by: Sebastian Reichel --- arch/arm/mach-imx/mx6/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c index

Re: [PATCH v5 11/11] riscv: Add FPIOA and GPIO support for Kendryte K210

2020-08-21 Thread Sean Anderson
On 8/21/20 5:08 AM, Ruinland ChuanTzu Tsai wrote: > Hi Sean and all, > > Sorry for dropping this mail out of the blue. > > I'm trying to follow the instrcutions from `doc/board/sipeed/maix.rst` > to build and flash u-boot so as to verify Sean's work on `maix_gpio_good` > tree. > > Yet the

Re: [PATCH v5 11/11] riscv: Add FPIOA and GPIO support for Kendryte K210

2020-08-21 Thread Ruinland ChuanTzu Tsai
Hi Sean and all, Sorry for dropping this mail out of the blue. I'm trying to follow the instrcutions from `doc/board/sipeed/maix.rst` to build and flash u-boot so as to verify Sean's work on `maix_gpio_good` tree. Yet the console has no output. Furthermore, I found the documentation on Sipeed

Re: [PATCH v2 7/9] ram: octeon: Add MIPS Octeon3 DDR4 support (part 3/3)

2020-08-21 Thread Stefan Roese
Hi Daniel, On 19.08.20 16:58, Daniel Schwierzeck wrote: Am Montag, den 17.08.2020, 14:12 +0200 schrieb Stefan Roese: From: Aaron Williams This Octeon 3 DDR driver is ported from the 2013 Cavium / Marvell U-Boot repository. It currently supports DDR4 on Octeon 3. It can be later extended to

Re: [PATCH 1/4] clk: clk-imx8mm: Add flexspi clock and fix set parent

2020-08-21 Thread Lukasz Majewski
Hi Peng, I'm trying to prepare a clk repository PR. It looks like Fabio had some comments for following series: https://patchwork.ozlabs.org/project/uboot/patch/20200503125956.6244-1-peng@nxp.com/ Peng, do you plan to resend it shortly? If yes - please rebase it on top for following tree:

RE: Question about 0.9V on lsch3

2020-08-21 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Martin Kaistra >Sent: Monday, August 10, 2020 5:37 PM >To: Priyanka Jain ; York Sun ; >u-boot@lists.denx.de >Cc: oliver.tho...@sick.de >Subject: Question about 0.9V on lsch3 > >Hello, > >the commit 4911948ec73 ("board/freescale,lsch3: Add

[PATCH] board/freescale/lsch3: Correct entry for 0.9v

2020-08-21 Thread Martin Kaistra
According to the reference manual of LS2088A, for a VDD voltage of 0.9V, the entry should be at 01000b. Fixes: 4911948ec73 ("board/freescale,lsch3: Add entry for 0.9v") Signed-off-by: Martin Kaistra --- board/freescale/common/vid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] board/freescale/common: emc2305: Pass chip_addr to set_fan_speed()

2020-08-21 Thread Wasim Khan
emc2305 is a common driver. It should not use platform specific i2c address for slave device. Pass chip_addr as agrument to set_fan_speed() so that emc2305 driver can be used with different platforms. Signed-off-by: Wasim Khan --- board/freescale/common/emc2305.c | 9 -

Re: Chainloading U-Boot from Fastboot on Tegra30

2020-08-21 Thread Tom Rini
On Fri, Aug 21, 2020 at 05:30:54PM -0400, Peter Geis wrote: > On Fri, Aug 21, 2020 at 5:04 PM Tom Rini wrote: > > > > On Fri, Aug 21, 2020 at 04:17:24PM -0400, Peter Geis wrote: > > > On Mon, Jul 6, 2020 at 3:48 PM Peter Geis wrote: > > > > > > > > On Mon, Jul 6, 2020 at 1:04 PM Stephen Warren

[PATCH] net: add a generic udp protocol

2020-08-21 Thread Philippe Reynes
This commit adds a generic udp protocol framework in the network loop. So protocol based on udp may be implemented without modifying the network loop (for example custom wait magic packet). Signed-off-by: Philippe Reynes --- include/net.h | 2 +- include/net/udp.h | 31

Re: Chainloading U-Boot from Fastboot on Tegra30

2020-08-21 Thread Peter Geis
On Mon, Jul 6, 2020 at 3:48 PM Peter Geis wrote: > > On Mon, Jul 6, 2020 at 1:04 PM Stephen Warren wrote: > > > > On 7/3/20 6:32 AM, Peter Geis wrote: > > > Good Morning, > > > > > > I am attempting to expand on the work for chainloading U-Boot on the > > > nyan-big in order to chainload U-Boot

Re: Chainloading U-Boot from Fastboot on Tegra30

2020-08-21 Thread Tom Rini
On Fri, Aug 21, 2020 at 04:17:24PM -0400, Peter Geis wrote: > On Mon, Jul 6, 2020 at 3:48 PM Peter Geis wrote: > > > > On Mon, Jul 6, 2020 at 1:04 PM Stephen Warren wrote: > > > > > > On 7/3/20 6:32 AM, Peter Geis wrote: > > > > Good Morning, > > > > > > > > I am attempting to expand on the work

Re: Chainloading U-Boot from Fastboot on Tegra30

2020-08-21 Thread Peter Geis
On Fri, Aug 21, 2020 at 5:04 PM Tom Rini wrote: > > On Fri, Aug 21, 2020 at 04:17:24PM -0400, Peter Geis wrote: > > On Mon, Jul 6, 2020 at 3:48 PM Peter Geis wrote: > > > > > > On Mon, Jul 6, 2020 at 1:04 PM Stephen Warren > > > wrote: > > > > > > > > On 7/3/20 6:32 AM, Peter Geis wrote: > > >

Re: Chainloading U-Boot from Fastboot on Tegra30

2020-08-21 Thread Peter Geis
On Fri, Aug 21, 2020 at 6:41 PM Stephen Warren wrote: > > On 8/21/20 3:39 PM, Tom Rini wrote: > > On Fri, Aug 21, 2020 at 05:30:54PM -0400, Peter Geis wrote: > >> On Fri, Aug 21, 2020 at 5:04 PM Tom Rini wrote: > >>> > >>> On Fri, Aug 21, 2020 at 04:17:24PM -0400, Peter Geis wrote: > On

Re: [PATCH] imx8m: config: convert to bootm_size

2020-08-21 Thread Tom Rini
On Fri, Aug 21, 2020 at 03:39:43PM +0200, Grygorii Tertychnyi wrote: > Restrict the memory range available for image processing in the > "bootm" to 256 MiB so the kernel can access it and FDT or initrd are > not overwritten on ARM64. > > Signed-off-by: Grygorii Tertychnyi > Cc: Peng Fan > Cc:

Re: Chainloading U-Boot from Fastboot on Tegra30

2020-08-21 Thread Stephen Warren
On 8/21/20 3:39 PM, Tom Rini wrote: > On Fri, Aug 21, 2020 at 05:30:54PM -0400, Peter Geis wrote: >> On Fri, Aug 21, 2020 at 5:04 PM Tom Rini wrote: >>> >>> On Fri, Aug 21, 2020 at 04:17:24PM -0400, Peter Geis wrote: On Mon, Jul 6, 2020 at 3:48 PM Peter Geis wrote: > > On Mon, Jul

Re: [PATCH] net: add a generic udp protocol

2020-08-21 Thread Tom Rini
On Fri, Aug 21, 2020 at 07:55:05PM +0200, Philippe Reynes wrote: > This commit adds a generic udp protocol framework in the > network loop. So protocol based on udp may be implemented > without modifying the network loop (for example custom > wait magic packet). > > Signed-off-by: Philippe

[PATCH v2] board/freescale: emc2305: Pass chip_addr emc2305_init() and set_fan_speed()

2020-08-21 Thread Wasim Khan
emc2305 is a common driver. It should not use platform specific i2c address for slave device. Pass chip_addr as agrument to emc2305_init() and set_fan_speed() so that emc2305 driver can be used with different platforms. Signed-off-by: Wasim Khan --- Changes in V2: - Pass chip_addr to

Re: [PATCH 6/9] arc: Kconfig: Add missing DM dependency

2020-08-21 Thread Simon Glass
On Wed, 19 Aug 2020 at 02:44, Michal Simek wrote: > > ARC is selecting TIMER which depends on DM but DM is not selected and > doesn't need to be enabled. Fix it by selecting DM for ARC architecture. > > Kconfig is showing this missing dependency by: > WARNING: unmet direct dependencies detected

[PATCH 1/1] dm: syscon: typo alerady

2020-08-21 Thread Heinrich Schuchardt
* Fix typo: %s/alerady/already/. * Add missing 'the'. * Reformat a comment. Signed-off-by: Heinrich Schuchardt --- drivers/core/syscon-uclass.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/core/syscon-uclass.c b/drivers/core/syscon-uclass.c index

[PATCH 5/7] binman: Support generating FITs with multiple dtbs

2020-08-21 Thread Simon Glass
In some cases it is useful to generate a FIT which has a number of DTB images, selectable by configuration. Add support for this in binman, using a simple iterator and string substitution. Signed-off-by: Simon Glass --- tools/binman/README.entries | 42 +++-

[PATCH 1/7] binman: Allow entry args to be required

2020-08-21 Thread Simon Glass
If an entry argument is needed by an entry but the entry argument is not present, then a strange error can occur when trying to read the file. Fix this by allowing arguments to be required. Select this option for the cros-ec-rw entry. If a filename is provided in the node, allow that to be used.

[PATCH 2/7] binman: Fix up a few missing comments

2020-08-21 Thread Simon Glass
Tidy up a few test functions which lack argument comments. Rename one that has the same name as a different test. Signed-off-by: Simon Glass --- tools/binman/ftest.py | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/tools/binman/ftest.py

[PATCH 0/7] binman: Add support for generating more complex FITs

2020-08-21 Thread Simon Glass
This series allows binman to generate FITs that include multiple DTB images and the configuration to use them. It is then possible to remove the sunxi FIT generator script, so this series handles that also. With this, sunxi is fully converted to use binman. Simon Glass (7): binman: Allow

[PATCH 4/7] binman: Add support for ATF BL31

2020-08-21 Thread Simon Glass
Add an entry for ARM Trusted Firmware's 'BL31' payload, which is the device's main firmware. Typically this is U-Boot. Signed-off-by: Simon Glass --- tools/binman/README.entries| 10 ++ tools/binman/etype/atf_bl31.py | 20 tools/binman/ftest.py

[PATCH 6/7] sunxi: Convert 64-bit boards to use binman

2020-08-21 Thread Simon Glass
At present 64-bit sunxi board use the Makefile to create a FIT, using USE_SPL_FIT_GENERATOR. This is deprecated. Update sunxi to use binman instead. Signed-off-by: Simon Glass --- Kconfig| 3 +- Makefile | 18 ++

[PATCH 7/7] sunxi: Drop the FIT-generator script

2020-08-21 Thread Simon Glass
This file is no-longer used. Drop it. Signed-off-by: Simon Glass --- board/sunxi/mksunxi_fit_atf.sh | 87 -- 1 file changed, 87 deletions(-) delete mode 100755 board/sunxi/mksunxi_fit_atf.sh diff --git a/board/sunxi/mksunxi_fit_atf.sh

[PATCH 3/7] libfdt: Detected out-of-space with fdt_finish()

2020-08-21 Thread Simon Glass
At present the Python sequential-write interface can produce an error when it calls fdt_finish(), since this needs to add a terminating tag to the end of the struct section. Fix this by automatically expanding the buffer if needed. Signed-off-by: Simon Glass ---

RE: [PATCH v4 7/9] powerpc: Remove bi_memstart & bi_memsize assignments in spl.c

2020-08-21 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Stefan Roese >Sent: Thursday, August 13, 2020 2:46 PM >To: Oleksandr Zhadan and Michael Durrant >; Priyanka Jain >; Qiang Zhao ; Shengzhou >Liu >Cc: u-boot@lists.denx.de >Subject: Re: [PATCH v4 7/9] powerpc: Remove bi_memstart & bi_memsize

[PATCH v2 1/5] board: xen: Remove unnecessary CONFIG_BOARD_EARLY_INIT_F define and board_early_init_f function

2020-08-21 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Signed-off-by: Anastasiia Lukianenko Reviewed-by: Tom Rini --- board/xen/xenguest_arm64/xenguest_arm64.c | 5 - include/configs/xenguest_arm64.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/board/xen/xenguest_arm64/xenguest_arm64.c

[PATCH v2 3/5] board: xen: Remove CONFIG_CMD_RUN define and clean xenguest_arm64_defconfig

2020-08-21 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko CONFIG_CMD_RUN is set on by default in Kconfig. Create xenguest_arm64_defconfig by using savedefconfig to avoid unnecessary options. Signed-off-by: Anastasiia Lukianenko --- Changes since v1: - removed wrong config options - added commit message

[PATCH v2 2/5] MAINTAINERS: Add maintainers to XEN section

2020-08-21 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Signed-off-by: Anastasiia Lukianenko --- Changes since v1: - removed duplicates from MAINTAINERS file, which mentioned in board/xen/xenguest_arm64/MAINTAINERS - change maintainers in XEN GUEST FOR ARM64 section MAINTAINERS | 16

[PATCH v2 0/5] Follow up to "Add new board: Xen guest for ARM64" series

2020-08-21 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Removed unnecessary defines, fixed code style errors and added maintainers to XEN section. Regards, Anastasiia Lukianenko Changes since v1: = 1. Removed CONFIG_BOARD_EARLY_INIT_F define and board_early_init_f function 2. Removed duplicates from

[PATCH v2 4/5] board: xen: Remove unnecessary CONFIG_INITRD_TAG and CONFIG_CMDLINE_TAG

2020-08-21 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Signed-off-by: Anastasiia Lukianenko --- include/configs/xenguest_arm64.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/xenguest_arm64.h b/include/configs/xenguest_arm64.h index f3092cb2f8..c44381e966 100644 ---

[PATCH v2 5/5] xen: Code style conformity

2020-08-21 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Cleaning up the following: ERROR: do not use assignment in if condition #281: FILE: drivers/xen/pvblock.c:260: + if ((err = xenbus_switch_state(XBT_NIL, nodename, CHECK:COMPARISON_TO_NULL: Comparison to NULL could be written "err" #52: FILE:

Re: [PATCH v3 2/8] usb: xhci: xhci_bulk_tx: Don't "BUG" when comparing addresses

2020-08-21 Thread Bin Meng
On Fri, Aug 21, 2020 at 1:34 PM Stefan Roese wrote: > > Octeon uses mapped addresses for virtual and physical memory. It's not > that easy to calculate the resulting addresses here. So let's remove > this BUG_ON() completely, as it's not really helpful. > > Please also note, that BUG_ON() is not

Re: [PATCH] board: phytec: imx8mm: Add PHYTEC phyCORE-i.MX8MM support

2020-08-21 Thread Teresa Remmet
Hello Tom, Am Donnerstag, den 20.08.2020, 09:22 -0400 schrieb Tom Rini: > On Thu, Aug 20, 2020 at 08:55:30AM +0200, Teresa Remmet wrote: > > > Add support PHYTEC phyCORE-i.MX8MM SOM. > > > > Supported features: > > - 2GB LPDDR4 RAM > > - 1x 1Gbit Ethernet > > - eMMC > > - external SD > > -

Re: [PATCH v3 7/8] mips: octeon: Add USB DT nodes

2020-08-21 Thread Stefan Roese
Hi Bin, On 21.08.20 08:29, Bin Meng wrote: Hi Stefan, On Fri, Aug 21, 2020 at 1:34 PM Stefan Roese wrote: Add the USB device tree nodes to the Octeon dts/dtsi files. Signed-off-by: Stefan Roese Reviewed-by: Bin Meng --- Changes in v3: - Add Reviewed-by tag from Bin - Correct multi-line

[PATCH v2] board: phytec: imx8mm: Add PHYTEC phyCORE-i.MX8MM support

2020-08-21 Thread Teresa Remmet
Add support PHYTEC phyCORE-i.MX8MM SOM. Supported features: - 2GB LPDDR4 RAM - 1x 1Gbit Ethernet - eMMC - external SD - debug UART3 - watchdog - i2c eeprom Signed-off-by: Teresa Remmet --- Changes in v2: - Removed fdt_high to allow relocation - Moved fdt_addr to 0x4800

Re: [PATCH v3 3/8] usb: xhci: octeon: Add DWC3 glue layer for Octeon

2020-08-21 Thread Bin Meng
On Fri, Aug 21, 2020 at 1:34 PM Stefan Roese wrote: > > This patch adds the glue layer for the MIPS Octeon SoCs. It's ported > mainly from the Linux code. > > Signed-off-by: Stefan Roese > Cc: Bin Meng > Cc: Marek Vasut > > --- > > Changes in v3: > - Minor corrections of the commit text as

Re: [PATCH v3 7/8] mips: octeon: Add USB DT nodes

2020-08-21 Thread Bin Meng
Hi Stefan, On Fri, Aug 21, 2020 at 1:34 PM Stefan Roese wrote: > > Add the USB device tree nodes to the Octeon dts/dtsi files. > > Signed-off-by: Stefan Roese > Reviewed-by: Bin Meng > > --- > > Changes in v3: > - Add Reviewed-by tag from Bin > - Correct multi-line comment style > >