[PATCH v3 3/9] mips: octeon Add cvmx/cvmx-lmcx-defs.h header

2020-09-02 Thread Stefan Roese
From: Aaron Williams This header will be used by the DDR driver (lmc). Its ported from the 2013 Cavium / Marvell U-Boot repository. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- Changes in v3: - Remove "https://spdx.org/licenses; line Changes in v2: - Some unsupported

[RESEND PATCH v2 02/11] usb: xhci: create one unified function to calculate TRB TD remainder.

2020-09-02 Thread Frank Wunderlich
From: Chunfeng Yun xhci versions 1.0 and later report the untransferred data remaining in a TD a bit differently than older hosts. We used to have separate functions for these, and needed to check host version before calling the right function. Now Mediatek host has an additional quirk on how

[RESEND PATCH v2 05/11] usb: xhci: convert to TRB_TYPE()

2020-09-02 Thread Frank Wunderlich
From: Chunfeng Yun Use TRB_TYPE(p) instead of ((p) << TRB_TYPE_SHIFT) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mem.c | 3 +-- drivers/usb/host/xhci-ring.c | 11 +-- include/usb/xhci.h | 1 - 3 files changed, 6 insertions(+), 9 deletions(-) diff --git

[RESEND PATCH v2 01/11] usb: xhci: add a member hci_version in xhci_ctrl struct

2020-09-02 Thread Frank Wunderlich
From: Chunfeng Yun Add a member to save xHCI version, it's used some times. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-ring.c | 4 ++-- drivers/usb/host/xhci.c | 1 + include/usb/xhci.h | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git

[RESEND PATCH v2 03/11] usb: xhci: add quirks flag to support MediaTek xHCI 0.96

2020-09-02 Thread Frank Wunderlich
From: Chunfeng Yun There some vendor quirks for MTK xHCI 0.96 host controller: 1. It defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and endpoint

[RESEND PATCH v2 09/11] usb: xhci: convert to EP_TYPE()

2020-09-02 Thread Frank Wunderlich
From: Chunfeng Yun Use EP_TYPE(type) macro instead of ((type) << EP_TYPE_SHIFT) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mem.c | 2 +- drivers/usb/host/xhci.c | 3 +-- include/usb/xhci.h | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git

[RESEND PATCH v2 08/11] usb: xhci: convert to TRB_TX_TYPE()

2020-09-02 Thread Frank Wunderlich
From: Chunfeng Yun Use TRB_TX_TYPE() instead of (TRB_DATA_OUT/IN << TRB_TX_TYPE_SHIFT) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-ring.c | 4 ++-- include/usb/xhci.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c

[RESEND PATCH v2 04/11] usb: xhci: convert to HCS_MAX_PORTS()

2020-09-02 Thread Frank Wunderlich
From: Chunfeng Yun Use HCS_MAX_PORTS(p) instead of ((p & HCS_MAX_PORTS_MASK) >> HCS_MAX_PORTS_SHIFT) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci.c | 3 +-- include/usb/xhci.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/host/xhci.c

[RESEND PATCH v2 06/11] usb: xhci: convert to TRB_INTR_TARGET()

2020-09-02 Thread Frank Wunderlich
From: Chunfeng Yun Use TRB_INTR_TARGET(x) instead of (((x) & TRB_INTR_TARGET_MASK) << TRB_INTR_TARGET_SHIFT) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-ring.c | 10 -- include/usb/xhci.h | 2 -- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git

[RESEND PATCH v2 07/11] usb: xhci: convert to TRB_LEN()

2020-09-02 Thread Frank Wunderlich
From: Chunfeng Yun Use TRB_LEN(x) instead of ((x) & TRB_LEN_MASK) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-ring.c | 8 include/usb/xhci.h | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c

[PATCH v3 9/9] mips: octeon: octeon_ebb7304: Add DDR4 support

2020-09-02 Thread Stefan Roese
This patch adds the board specific configuration (struct) for the Octeon 3 EBB7304 EVK. This struct is ported from the 2013er Cavium / Marvell U-Boot repository. Also, the Octeon RAM driver is enabled in the board defconfig for its usage. Tested with one and two DIMMs on the EBB7304 EVK (8 & 16

[PATCH v3 5/9] ram: octeon: Add MIPS Octeon3 DDR4 support (part 1/3)

2020-09-02 Thread 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 support also DDR3 and Octeon 2 platforms. Part 1 adds the base U-Boot RAM driver, which will be instantiated by the DT

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

2020-09-02 Thread 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 support also DDR3 and Octeon 2 platforms. Part 3 includes the DIMM SPD handling code and the Kconfig / Makefile

[PATCH v3 4/9] mips: octeon: Add octeon_ddr.h header

2020-09-02 Thread Stefan Roese
From: Aaron Williams This header will be used by the DDR driver (lmc). Its ported from the 2013 Cavium / Marvell U-Boot repository. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- Changes in v3: - Remove "https://spdx.org/licenses; line - Remove inclusion of "common.h" -

RE: [PATCH 2/2] armv8: lx2162aqds: Add support for LX2162AQDS platform

2020-09-02 Thread Priyanka Jain
>-Original Message- >From: Meenakshi Aggarwal >Sent: Tuesday, September 1, 2020 3:03 PM >To: u-boot@lists.denx.de; Priyanka Jain >Cc: Varun Sethi ; Meenakshi Aggarwal >; Ioana Ciornei ; >Qiang Zhao ; Hui Song ; >Manish Tomar ; Vikas Singh > >Subject: [PATCH 2/2] armv8: lx2162aqds: Add

Re: [PATCH v3 00/12] binman: Add support for generating more complex FITs

2020-09-02 Thread Michal Simek
Hi Simon, On 01. 09. 20 13:13, Simon Glass wrote: > 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

[PATCH] arm64: Add support for bigger u-boot when CONFIG_POSITION_INDEPENDENT=y

2020-09-02 Thread Michal Simek
From: "Edgar E. Iglesias" When U-Boot binary exceeds 1MB with CONFIG_POSITION_INDEPENDENT=y compilation error is shown: /mnt/disk/u-boot/arch/arm/cpu/armv8/start.S:71:(.text+0x3c): relocation truncated to fit: R_AARCH64_ADR_PREL_LO21 against symbol `__rel_dyn_end' defined in .bss_start section

[PATCH v2] arm: dts: lx2160a: Add IO range

2020-09-02 Thread Wasim Khan
Add IO range property to fix below error on uboot PCI: Failed autoconfig bar 18 Signed-off-by: Wasim Khan --- Changes in v2: - Updated commit subject arch/arm/dts/fsl-lx2160a.dtsi | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git

RE: [PATCH 1/2] armv8: lx2162a: Add Soc changes to support LX2162A

2020-09-02 Thread Priyanka Jain
>-Original Message- >From: Meenakshi Aggarwal >Sent: Tuesday, September 1, 2020 3:03 PM >To: u-boot@lists.denx.de; Priyanka Jain >Cc: Varun Sethi ; Meenakshi Aggarwal > >Subject: [PATCH 1/2] armv8: lx2162a: Add Soc changes to support LX2162A > >From: Meenakshi Aggarwal > >LX2162 is

Re: [RESEND PATCH v2 01/11] usb: xhci: add a member hci_version in xhci_ctrl struct

2020-09-02 Thread Marek Vasut
On 9/2/20 8:13 AM, Frank Wunderlich wrote: > From: Chunfeng Yun > > Add a member to save xHCI version, it's used some times. > > Signed-off-by: Chunfeng Yun > --- > drivers/usb/host/xhci-ring.c | 4 ++-- > drivers/usb/host/xhci.c | 1 + > include/usb/xhci.h | 1 + > 3 files

[PATCH] dfu: Fix handling of UBI partitions in MTD backend

2020-09-02 Thread Guillermo Rodriguez
For UBI partitions ("partubi" in dfu_alt_info), dfu_fill_entity_mtd sets the mtd.ubi flag; however other functions incorrectly check for nand.ubi instead. Fix this by checking for the correct flag. Signed-off-by: Guillermo Rodriguez Cc: Lukasz Majewski --- drivers/dfu/dfu_mtd.c | 4 ++-- 1

[PATCH 5/5] arm: mach-omap2: am33xx: Add device structure for spi

2020-09-02 Thread Faiz Abbas
Add platform data and a device structure for the spi device present on am335x-icev2. This requires moving all omap3_spi platform data structures and symbols to an omap3_spi.h so that the board file can access them. Signed-off-by: Faiz Abbas --- arch/arm/mach-omap2/am33xx/board.c | 12 +

[PATCH 3/5] spi: spi-uclass: Block dm_scan_fdt_dev with OF_CONTROL to prevent build failures

2020-09-02 Thread Faiz Abbas
There are devices which don't use OF_CONTROL or OF_PLATDATA but instead rely on statically defined platdata. Block dm_scan_fdt_dev() with both configs to avoid build failures under this condition. Signed-off-by: Faiz Abbas --- drivers/spi/spi-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 2/5] configs: Add spiboot support for am335x

2020-09-02 Thread Faiz Abbas
am335x internal SRAM is too small to support the addition of SPI bootmode to the default defconfig. Add a separate spiboot_defconfig Signed-off-by: Faiz Abbas --- configs/am335x_evm_spiboot_defconfig | 93 1 file changed, 93 insertions(+) create mode 100644

[PATCH 4/5] spi: omap3_spi: Read platform data in ofdata_to_platdata()

2020-09-02 Thread Faiz Abbas
Add an ofdata_to_platdata() callback to access dts in U-boot and access all platform data in it. This prepares the driver for supporting both device tree as well as static platform data structures in SPL. Signed-off-by: Faiz Abbas --- drivers/spi/omap3_spi.c | 37

Re: [PATCH] efi_loader: consider no-map property of reserved memory

2020-09-02 Thread Heinrich Schuchardt
On 31.08.20 20:08, Atish Patra wrote: > On Thu, Aug 27, 2020 at 9:16 AM Heinrich Schuchardt > wrote: >> >> If a reserved memory node in the device tree has the property no-map, >> remove it from the UEFI memory map provided by GetMemoryMap(). >> >> Signed-off-by: Heinrich Schuchardt In the

Re: [PATCH 2/2] pcie: pcie_advk: move setting of reference clock to the pcie driver

2020-09-02 Thread Andre Heider
On 31/08/2020 09:52, Pali Rohár wrote: On Monday 31 August 2020 05:25:38 Andre Heider wrote: From: Grzegorz Jaszczyk The settings of reference clock is done via pcie address space and not comphy address space - move the settings in appropriate place. This aligns hw initialization of pcie

RE: Missing BMP 565RGB video support

2020-09-02 Thread Trommel, Kees (Contractor)
Anatolij, > Did you define CONFIG_BMP_24BPP in your board config file? Yes. Without this define the command "bmp display " does not do anything if the given BMP is a 24BPP BMP. With this define the a 24 BPP BMP I displayed but with wrong colors because the framebuffer of my (i.MX6) board

Re: [RFC PATCH 0/1] Anti rollback protection for FIT Images

2020-09-02 Thread Rasmus Villemoes
On 01/09/2020 22.48, Thirupathaiah Annapureddy wrote: > Anti rollback protection is required when there is a need to retire > previous versions of FIT images due to security flaws in them. > Currently U-Boot Verified boot does not have rollback protection to > protect against known security flaws.

RE: [PATCH 1/2] armv8: lx2162a: Add Soc changes to support LX2162A

2020-09-02 Thread Meenakshi Aggarwal
> -Original Message- > From: Priyanka Jain > Sent: Wednesday, September 2, 2020 12:49 PM > To: Meenakshi Aggarwal ; u- > b...@lists.denx.de > Cc: Varun Sethi > Subject: RE: [PATCH 1/2] armv8: lx2162a: Add Soc changes to support > LX2162A > > > > >-Original Message- > >From:

[PATCH 0/5] Add spi boot support to am335x-icev2

2020-09-02 Thread Faiz Abbas
The following patches add spi boot support to TI's am335x-icev2 platform Faiz Abbas (5): arm: dts: am335x-icev2: Add spi node configs: Add spiboot support for am335x spi: spi-uclass: Block dm_scan_fdt_dev with OF_CONTROL to prevent build failures spi: omap3_spi: Read platform data in

[PATCH 1/5] arm: dts: am335x-icev2: Add spi node

2020-09-02 Thread Faiz Abbas
Add spi and spi nor flash nodes for am335x-icev2. Signed-off-by: Faiz Abbas --- arch/arm/dts/am335x-icev2.dts | 50 +++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/dts/am335x-icev2.dts b/arch/arm/dts/am335x-icev2.dts index 37484cb6f5..2a1b3a53e9

[RESEND PATCH v2 10/11] usb: xhci: use macros with parameter to fill ep_info2

2020-09-02 Thread Frank Wunderlich
From: Chunfeng Yun Use macros with parameter to fill ep_info2, then some macros for MASK and SHIFT can be removed Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mem.c | 13 - drivers/usb/host/xhci.c | 3 +-- include/usb/xhci.h | 5 - 3 files changed, 5

[RESEND PATCH v2 11/11] usb: xhci: convert to readx_poll_sleep_timeout()

2020-09-02 Thread Frank Wunderlich
From: Chunfeng Yun Use readx_poll_sleep_timeout() to poll the register status Change-Id: If05a68baf52c54ab30029279e349be6076f1d0ca Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git

[PATCH v3 0/9] mips: Add Octeon DDR4 init code

2020-09-02 Thread Stefan Roese
This patch adds the DDR4 init code. It is ported from the 2013 Cavium / Marvell U-Boot version with no functional change. This was done intentionally, as this code is very large and complex and is known to work on many boards "as-is". So any functional change might have introduced (hidden)

[PATCH v3 1/9] mips: octeon: dts: mrvl, cn73xx.dtsi: Add memory controller DT node

2020-09-02 Thread Stefan Roese
This patch adds the memory controller (LMC) DT node to the Octeon 3 dtsi file. It also adds the L2C DT node, as this is referenced by the DDR driver. Signed-off-by: Stefan Roese --- (no changes since v1) arch/mips/dts/mrvl,cn73xx.dtsi | 17 + 1 file changed, 17 insertions(+)

[PATCH v3 8/9] mips: octeon: dram.c: Add RAM driver support

2020-09-02 Thread Stefan Roese
This patch adds the initialization call for the Octeon RAM driver to the Octeon platforms code. So if enabled via Kconfig, the DDR driver will be called and the RAM will be configured and used. If the RAM driver is not enabled, the L2 cache is still used as RAM. Signed-off-by: Stefan Roese ---

[PATCH v3 2/9] mips: octeon: Add octeon-model.h header

2020-09-02 Thread Stefan Roese
From: Aaron Williams This header is used by the upcoming DDR driver and potentially by other drivers ported from the 2013 Cavium / Marvell U-Boot repository. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- Changes in v3: - Remove "https://spdx.org/licenses; line - Move

Re: [PATCH] buildman: Use git worktrees instead of git clones

2020-09-02 Thread Simon Glass
Hi Alper, On Wed, 2 Sep 2020 at 06:36, Alper Nebi Yasak wrote: > > This patch makes buildman create linked working trees instead of clones > of the source repository, but keeps updating the older clones of the > repository that might already exist. These worktrees share "everything > except

Re: [PATCH v3 00/12] binman: Add support for generating more complex FITs

2020-09-02 Thread Simon Glass
Hi Michal, On Wed, 2 Sep 2020 at 04:27, Michal Simek wrote: > > Hi Simon, > > On 01. 09. 20 13:13, Simon Glass wrote: > > 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

[PATCHv4 1/9] bootcount: add a DM SPI flash backing store for bootcount

2020-09-02 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

[PATCHv4 2/9] rtc: m41t62: reset SQW in m41t62_rtc_reset

2020-09-02 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

[PATCHv4 6/9] board: ge: common: rename ge_common.c to ge_rtc.c

2020-09-02 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 =>

Re: [RESEND PATCH v2 01/11] usb: xhci: add a member hci_version in xhci_ctrl struct

2020-09-02 Thread Bin Meng
On Wed, Sep 2, 2020 at 6:38 PM Marek Vasut wrote: > > On 9/2/20 8:13 AM, Frank Wunderlich wrote: > > From: Chunfeng Yun > > > > Add a member to save xHCI version, it's used some times. > > > > Signed-off-by: Chunfeng Yun > > --- > > drivers/usb/host/xhci-ring.c | 4 ++-- > >

Re: [PATCH] arm64: Add support for bigger u-boot when CONFIG_POSITION_INDEPENDENT=y

2020-09-02 Thread Edgar E. Iglesias
On Wed, Sep 02, 2020 at 03:43:08PM +0100, André Przywara wrote: > On 02/09/2020 12:15, Michal Simek wrote: > > Hi, Hi Andre, > > > From: "Edgar E. Iglesias" > > > > When U-Boot binary exceeds 1MB with CONFIG_POSITION_INDEPENDENT=y > > compilation error is shown: > >

Re: [PATCH] arm64: Add support for bigger u-boot when CONFIG_POSITION_INDEPENDENT=y

2020-09-02 Thread Michal Simek
Hi, On 02. 09. 20 16:43, André Przywara wrote: > On 02/09/2020 12:15, Michal Simek wrote: > > Hi, > >> From: "Edgar E. Iglesias" >> >> When U-Boot binary exceeds 1MB with CONFIG_POSITION_INDEPENDENT=y >> compilation error is shown: >>

Re: [PATCH] arm64: Add support for bigger u-boot when CONFIG_POSITION_INDEPENDENT=y

2020-09-02 Thread André Przywara
On 02/09/2020 15:53, Edgar E. Iglesias wrote: > On Wed, Sep 02, 2020 at 03:43:08PM +0100, Andr� Przywara wrote: >> On 02/09/2020 12:15, Michal Simek wrote: Hi, >> >>> From: "Edgar E. Iglesias" >>> >>> When U-Boot binary exceeds 1MB with CONFIG_POSITION_INDEPENDENT=y >>> compilation error is

Re: [PATCH v5 02/11] pinctrl: Reformat documentation in dm/pinctrl.h

2020-09-02 Thread Heinrich Schuchardt
On 02.09.20 16:56, Sean Anderson wrote: > > On 9/2/20 8:26 AM, Heinrich Schuchardt wrote: >> On 15.08.20 17:52, Sean Anderson wrote: >>> This normalizes the documentatation to conform to kernel-doc style [1]. It >> >> Nits: >> %s/documentatation/documentation/ >> >>> also moves the documentation

Re: [PATCH v5 02/11] pinctrl: Reformat documentation in dm/pinctrl.h

2020-09-02 Thread Sean Anderson
On 9/2/20 11:17 AM, Heinrich Schuchardt wrote: > On 02.09.20 16:56, Sean Anderson wrote: >> >> On 9/2/20 8:26 AM, Heinrich Schuchardt wrote: >>> On 15.08.20 17:52, Sean Anderson wrote: This normalizes the documentatation to conform to kernel-doc style [1]. It >>> >>> Nits: >>>

Re: [PATCH] travis-ci: Add SH4 r2dplus machine with various PCI ethernet options

2020-09-02 Thread Stephen Warren
On 9/2/20 9:42 AM, Tom Rini wrote: > On Tue, Aug 18, 2020 at 06:50:06PM +0200, Marek Vasut wrote: > >> On 8/5/20 11:26 PM, Marek Vasut wrote: >>> Add SH4 R2Dplus machine configured to test various U-Boot PCI ethernet >>> options -- RTL8139, EEPRO100, AMD PCnet, DEC Tulip. >>> >> >> Bump ? > >

Re: [PATCH] arm64: Add support for bigger u-boot when CONFIG_POSITION_INDEPENDENT=y

2020-09-02 Thread Stephen Warren
On 9/2/20 5:15 AM, Michal Simek wrote: > From: "Edgar E. Iglesias" > > When U-Boot binary exceeds 1MB with CONFIG_POSITION_INDEPENDENT=y > compilation error is shown: > /mnt/disk/u-boot/arch/arm/cpu/armv8/start.S:71:(.text+0x3c): relocation > truncated to fit: R_AARCH64_ADR_PREL_LO21 against

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

2020-09-02 Thread Sean Anderson
On 9/2/20 8:26 AM, Heinrich Schuchardt wrote: > On 01.09.20 03:19, Rick Chen wrote: >> Hi Sean >> >>> On 8/20/20 4:47 AM, Rick Chen wrote: Hi Sean > Hi Sean > >> On 8/18/20 11:48 PM, Rick Chen wrote: >>> Hi Tom >>> This patch adds the necessary configs and

[PATCHv4 9/9] board: ge: b1x5v2: Add GE B1x5v2 and B1x5Pv2

2020-09-02 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

[PATCHv4 8/9] board: ge: common: vpd: separate I2C specific code

2020-09-02 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 ++--

[PATCHv4 7/9] board: ge: common: add config option for RTC and VPD feature

2020-09-02 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 ++-

[PATCHv4 5/9] sysreset: Add poweroff-gpio driver

2020-09-02 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

[PATCHv4 0/9] Introduce B1x5v2 support

2020-09-02 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+3: Improve M41T62 RTC driver's reset routine. PATCH 4: Support disable_ldb_di_clock_sources for i.MX6DL Patch 5: Add poweroff-gpio support Patch 6-8:

[PATCHv4 3/9] rtc: m41t62: add oscillator fail bit reset support

2020-09-02 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

[PATCHv4 4/9] imx6: allow usage of disable_ldb_di_clock_sources for CONFIG_MX6QDL

2020-09-02 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] travis-ci: Add SH4 r2dplus machine with various PCI ethernet options

2020-09-02 Thread Stephen Warren
On 8/5/20 3:26 PM, Marek Vasut wrote: > Add SH4 R2Dplus machine configured to test various U-Boot PCI ethernet > options -- RTL8139, EEPRO100, AMD PCnet, DEC Tulip. Sorry for the delay. I've applied this now.

Re: [PATCH] travis-ci: Add SH4 r2dplus machine with various PCI ethernet options

2020-09-02 Thread Tom Rini
On Tue, Aug 18, 2020 at 06:50:06PM +0200, Marek Vasut wrote: > On 8/5/20 11:26 PM, Marek Vasut wrote: > > Add SH4 R2Dplus machine configured to test various U-Boot PCI ethernet > > options -- RTL8139, EEPRO100, AMD PCnet, DEC Tulip. > > > > Bump ? Stephen? -- Tom signature.asc Description:

Re: [PATCH v5 10/11] riscv: Add pinmux and gpio bindings for Kendryte K210

2020-09-02 Thread Heinrich Schuchardt
On 15.08.20 17:52, Sean Anderson wrote: > This patch adds the necessary device tree bindings. > > Signed-off-by: Sean Anderson > Reviewed-by: Simon Glass > --- > > (no changes since v2) > > Changes in v2: > - Convert to use pinmux property > - Don't hog ISP on boot > - Re-order GPIOs to match

[PATCH 1/1] riscv: add DT binding for BOOT button on Maix board

2020-09-02 Thread Heinrich Schuchardt
Add a device tree binding for the BOOT button on the Maix board. Signed-off-by: Heinrich Schuchardt --- Together with [PATCH 1/1] cmd/button: return button status https://lists.denx.de/pipermail/u-boot/2020-September/425221.html we can use the button status to decide which program to boot. ---

Re: [PATCH] arm64: Add support for bigger u-boot when CONFIG_POSITION_INDEPENDENT=y

2020-09-02 Thread André Przywara
On 02/09/2020 16:25, Edgar E. Iglesias wrote: > On Wed, Sep 02, 2020 at 04:18:48PM +0100, Andr� Przywara wrote: >> On 02/09/2020 15:53, Edgar E. Iglesias wrote: >>> On Wed, Sep 02, 2020 at 03:43:08PM +0100, Andr� Przywara wrote: On 02/09/2020 12:15, Michal Simek wrote: >> >> Hi, >>

Re: [PATCHv4 9/9] board: ge: b1x5v2: Add GE B1x5v2 and B1x5Pv2

2020-09-02 Thread Tom Rini
On Wed, Sep 02, 2020 at 07:31:46PM +0200, Sebastian Reichel wrote: > 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

Re: [PATCH v5 10/11] riscv: Add pinmux and gpio bindings for Kendryte K210

2020-09-02 Thread Sean Anderson
On 9/2/20 2:04 PM, Heinrich Schuchardt wrote: > On 15.08.20 17:52, Sean Anderson wrote: >> This patch adds the necessary device tree bindings. >> >> Signed-off-by: Sean Anderson >> Reviewed-by: Simon Glass >> --- >> >> (no changes since v2) >> >> Changes in v2: >> - Convert to use pinmux

[PATCH 1/1] cmd/button: return button status

2020-09-02 Thread Heinrich Schuchardt
To make the button command useful in a shell script it should return the status of the button: * 0 (true) - pressed, on * 1 (false) - not pressed, off The button command takes only one argument. Correct maxargs. Signed-off-by: Heinrich Schuchardt --- cmd/button.c | 4 ++-- 1 file changed, 2

Re: [PATCH 2/2] pcie: pcie_advk: move setting of reference clock to the pcie driver

2020-09-02 Thread Marek Behún
On Wed, 2 Sep 2020 09:11:52 +0200 Andre Heider wrote: > On 31/08/2020 09:52, Pali Rohár wrote: > > On Monday 31 August 2020 05:25:38 Andre Heider wrote: > >> From: Grzegorz Jaszczyk > >> > >> The settings of reference clock is done via pcie address space and > >> not comphy address space -

[PATCH] buildman: Use git worktrees instead of git clones

2020-09-02 Thread Alper Nebi Yasak
This patch makes buildman create linked working trees instead of clones of the source repository, but keeps updating the older clones of the repository that might already exist. These worktrees share "everything except working directory specific files such as HEAD, index, etc." with the source

[PATCH 01/11] board/freescale: Remove p1023rdb board support

2020-09-02 Thread Priyanka Jain
Remove NXP powerpc p1023rdb board support as it is no longer maintained. Signed-off-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 8 - board/freescale/p1023rdb/Kconfig | 12 - board/freescale/p1023rdb/MAINTAINERS | 6 - board/freescale/p1023rdb/Makefile| 8 -

Re: [PATCH] arm64: Add support for bigger u-boot when CONFIG_POSITION_INDEPENDENT=y

2020-09-02 Thread André Przywara
On 02/09/2020 12:15, Michal Simek wrote: Hi, > From: "Edgar E. Iglesias" > > When U-Boot binary exceeds 1MB with CONFIG_POSITION_INDEPENDENT=y > compilation error is shown: > /mnt/disk/u-boot/arch/arm/cpu/armv8/start.S:71:(.text+0x3c): relocation > truncated to fit: R_AARCH64_ADR_PREL_LO21

Re: [PATCH] arm64: Add support for bigger u-boot when CONFIG_POSITION_INDEPENDENT=y

2020-09-02 Thread Edgar E. Iglesias
On Wed, Sep 02, 2020 at 04:18:48PM +0100, André Przywara wrote: > On 02/09/2020 15:53, Edgar E. Iglesias wrote: > > On Wed, Sep 02, 2020 at 03:43:08PM +0100, Andr� Przywara wrote: > >> On 02/09/2020 12:15, Michal Simek wrote: > > Hi, > > >> > >>> From: "Edgar E. Iglesias" > >>> > >>> When

Re: [PATCH v5 02/11] pinctrl: Reformat documentation in dm/pinctrl.h

2020-09-02 Thread Sean Anderson
On 9/2/20 8:26 AM, Heinrich Schuchardt wrote: > On 15.08.20 17:52, Sean Anderson wrote: >> This normalizes the documentatation to conform to kernel-doc style [1]. It > > Nits: > %s/documentatation/documentation/ > >> also moves the documentation for pinctrl_ops inline, and adds argument and >>

Re: [PATCH] Dockerfile: Remove high UID/GID

2020-09-02 Thread Tom Rini
On Wed, Sep 02, 2020 at 02:33:22PM +0200, Harm Berntsen wrote: > When running Docker with user namespace remapping, the UID/GID of the > files must be in the 0 - 65535 range. One toolchain's tar file included > files outside of that range and thus I could not run the image on my > GitLab runners.

Re: [PATCH v5 02/11] pinctrl: Reformat documentation in dm/pinctrl.h

2020-09-02 Thread Heinrich Schuchardt
On 15.08.20 17:52, Sean Anderson wrote: > This normalizes the documentatation to conform to kernel-doc style [1]. It Nits: %s/documentatation/documentation/ > also moves the documentation for pinctrl_ops inline, and adds argument and > return-value documentation. I have kept the usual function

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

2020-09-02 Thread Heinrich Schuchardt
On 01.09.20 03:19, Rick Chen wrote: > Hi Sean > >> On 8/20/20 4:47 AM, Rick Chen wrote: >>> Hi Sean >>> Hi Sean > On 8/18/20 11:48 PM, Rick Chen wrote: >> Hi Tom >> >>> This patch adds the necessary configs and docs for FPIOA and GPIO >>> support >>> on the K210.

[PATCH] Dockerfile: Remove high UID/GID

2020-09-02 Thread Harm Berntsen
When running Docker with user namespace remapping, the UID/GID of the files must be in the 0 - 65535 range. One toolchain's tar file included files outside of that range and thus I could not run the image on my GitLab runners. This patch fixes that and the U-Boot CI completes just fine in my

spl_ll_find_loader() function in common/spl/spl.c is returning NULL

2020-09-02 Thread Murali Krishna
Hi, We have an imx.6 based custom board and we have emmc, SD card and SPI NOR Flash(MX66L51235FZ2i-10g from Macronix) as boot devices on our board based on imx6 (MC imx6D7CVT08AE) processor. our requirement is to boot SPL + U-boot from the SPI NOR Flash and then load the linux kernel from

[PATCH v1] armv8: MMU: Fix the memory map for RAM

2020-09-02 Thread Marek Bykowski
From: Marek Bykowski The objective of this patch is to impose the correct attributes to the RAM memory for the ARM CPU, as shown in the diagram below: -- Non-Cached || Read-Write Ordered | Peripherals |

[PATCH] configs: powerpc: Don't set CONFIG_ENV_ADDR for T2080RDB_SPIFLASH

2020-09-02 Thread Chris Packham
Setting CONFIG_ENV_ADDR to something other than 0 stops gd->env_addr from being allocated dynamically. When the environment is in SPI we need it to be allocated as we can't use a direct memory mapped address. Signed-off-by: Chris Packham --- configs/T2080RDB_SPIFLASH_defconfig | 1 - 1 file

Re: [PATCH] buildman: Use git worktrees instead of git clones

2020-09-02 Thread Simon Glass
Hi Alper, On Wed, 2 Sep 2020 at 16:21, Alper Nebi Yasak wrote: > > On 02/09/2020 20:07, Simon Glass wrote: > > It looks like that version of git was not in Ubuntu 14.04 but appeared > > in 16.04. I've just done some patches to make patman work in 14.04, so > > I'd prefer to keep buildman working

Re: [PATCH v2 7/7] riscv: Update SiFive device tree for new CLINT driver

2020-09-02 Thread Anup Patel
On Thu, Sep 3, 2020 at 7:32 AM Bin Meng wrote: > > Hi Anup, > > On Tue, Aug 18, 2020 at 6:03 PM Sean Anderson wrote: > > > > On 8/18/20 5:22 AM, Bin Meng wrote: > > > +Anup Patel > > > > > > On Wed, Jul 29, 2020 at 5:57 PM Sean Anderson wrote: > > >> > > >> We may need to add a clock-frequency

Re: [PATCH v3 1/7] riscv: Rework riscv timer driver to only support S-mode

2020-09-02 Thread Rick Chen
> > The riscv-timer driver currently serves as a shim for several riscv timer > drivers. This is not too desirable because it bypasses the usual timer > selection via the driver model. There is no easy way to specify an > alternate timing driver, or have the tick rate depend on the cpu's >

Re: [PATCH v2 7/7] riscv: Update SiFive device tree for new CLINT driver

2020-09-02 Thread Bin Meng
Hi Anup, On Tue, Aug 18, 2020 at 6:03 PM Sean Anderson wrote: > > On 8/18/20 5:22 AM, Bin Meng wrote: > > +Anup Patel > > > > On Wed, Jul 29, 2020 at 5:57 PM Sean Anderson wrote: > >> > >> We may need to add a clock-frequency binding like for the K210. > >> > >> Signed-off-by: Sean Anderson >

Re: [PATCH v2 7/7] riscv: Update SiFive device tree for new CLINT driver

2020-09-02 Thread Bin Meng
Hi Anup, On Thu, Sep 3, 2020 at 10:46 AM Anup Patel wrote: > > On Thu, Sep 3, 2020 at 7:32 AM Bin Meng wrote: > > > > Hi Anup, > > > > On Tue, Aug 18, 2020 at 6:03 PM Sean Anderson wrote: > > > > > > On 8/18/20 5:22 AM, Bin Meng wrote: > > > > +Anup Patel > > > > > > > > On Wed, Jul 29, 2020

Re: [PATCH] buildman: Use git worktrees instead of git clones

2020-09-02 Thread Alper Nebi Yasak
On 02/09/2020 20:07, Simon Glass wrote: > It looks like that version of git was not in Ubuntu 14.04 but appeared > in 16.04. I've just done some patches to make patman work in 14.04, so > I'd prefer to keep buildman working for that also. I'll keep that in mind. Looks like Ubuntu 14.04 has python

Re: u-boot crash on T2080RDB_SPIFLASH

2020-09-02 Thread Chris Packham
On Wed, Sep 2, 2020 at 5:22 PM Chris Packham wrote: > > Hi, > > Just tried out v2020.10-rc3 on my T2080RDB and I've got the following > splat. Haven't had a chance to decode it yet (pointers on how to > translate the addresses for powerpc welcome) but I figured I'd get > this out just in case

Re: [PATCHv4 0/9] Introduce B1x5v2 support

2020-09-02 Thread Fabio Estevam
Hi Sebastian, On Wed, Sep 2, 2020 at 2:31 PM Sebastian Reichel wrote: > > 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+3: Improve M41T62 RTC driver's reset routine. > PATCH 4: Support

Re: [PATCH 0/3] RISC-V tracing support

2020-09-02 Thread Rick Chen
> From: Pragnesh Patel [mailto:pragnesh.pa...@sifive.com] > Sent: Monday, August 24, 2020 10:44 PM > To: u-boot@lists.denx.de; atish.pa...@wdc.com; bmeng...@gmail.com; > anup.pa...@wdc.com; sagar.ka...@sifive.com; Rick Jian-Zhi Chen(陳建志) > Cc: paul.walms...@sifive.com; Pragnesh Patel > Subject:

Re: [PATCH v3 2/7] riscv: Rework Andes PLMT as a UCLASS_TIMER driver

2020-09-02 Thread Rick Chen
> > This converts the PLMT driver from the riscv-specific timer interface to be > a DM-based UCLASS_TIMER driver. > > The clock-frequency/clocks properties are preferred over timebase-frequency > for two reasons. First, properties which affect a device should be located > near its binding in the

RE: [PATCH v2 1/4] mmc: pic32: Refresh PIC32 MMC driver

2020-09-02 Thread John Robertson
> Am Montag, den 31.08.2020, 18:04 + schrieb John Robertson: > > The existing driver is not compatible with the Driver Model. > > > > This patch makes the necessary changes while also removing obsolescent > > calls/properties as follows: > > > > - fdtdec_* calls replaced with dev_read_*

RE: [PATCH v2 4/4] mmc: pic32: Refresh PIC32 MMC driver

2020-09-02 Thread John Robertson
> Am Montag, den 31.08.2020, 18:04 + schrieb John Robertson: > > CONFIG_BLK needs to be enabled by default to allow U-Boot to compile > > after a 'make pic32mzdask_defconfig'. > > > > Signed-off-by: John Robertson > > --- > > > > configs/pic32mzdask_defconfig | 2 +- > > 1 file changed, 1

[PATCH 4/8] sunxi: board: Add PinePhone DT selection logic

2020-09-02 Thread Samuel Holland
There are two different publicly-released revisions of the PinePhone hardware, versions 1.1 and 1.2; and they need different device trees. Since some GPIO pins were rerouted, we can use that to distinguish between them. Signed-off-by: Samuel Holland --- arch/arm/mach-sunxi/Kconfig | 7 +++

[PATCH 2/8] sunxi: board: Add a helper to get the SPL DT name

2020-09-02 Thread Samuel Holland
This moves the validity checking and typecasts all to one place away from the string comparison logic, and it detangles the compile-time and runtime control flow. The new helper will also be used by U-Boot proper in a future commit. Signed-off-by: Samuel Holland --- board/sunxi/board.c | 26

[PATCH 3/8] sunxi: board: Simplify Pine A64 DT selection logic

2020-09-02 Thread Samuel Holland
Instead of using an entirely separate matching algorithm, simply update the name of the DT we want to match. Enabling this logic does not depend on the FIT config name, only on the initial guess of the board name. Importantly, the initial guess must be "sun50i-a64-pine64-plus", because otherwise

[PATCH 5/8] sunxi: board: Save the chosen DT name in the SPL header

2020-09-02 Thread Samuel Holland
This overwrites the name loaded from the SPL image. It will be different if there was previously no name provided, or if a more accurate name was determined by the board variant selection logic. This means that the DT name in the SPL header now always matches the DT appended to U-Boot.

Re: [PATCH v2 7/7] riscv: Update SiFive device tree for new CLINT driver

2020-09-02 Thread Anup Patel
On Thu, Sep 3, 2020 at 8:19 AM Bin Meng wrote: > > Hi Anup, > > On Thu, Sep 3, 2020 at 10:46 AM Anup Patel wrote: > > > > On Thu, Sep 3, 2020 at 7:32 AM Bin Meng wrote: > > > > > > Hi Anup, > > > > > > On Tue, Aug 18, 2020 at 6:03 PM Sean Anderson wrote: > > > > > > > > On 8/18/20 5:22 AM, Bin

[PATCH 0/8] PinePhone automatic device tree selection

2020-09-02 Thread Samuel Holland
All, This patch series implements a feature to automatically choose the right PinePhone device tree by probing the hardware. It then extends the functionality to pass the chosen DTB name to the boot command. Finally, I add device trees and a defconfig for the PinePhone. I'm aware that Andre has

[PATCH 6/8] sunxi: board: Set fdtfile to match the DT chosen by SPL

2020-09-02 Thread Samuel Holland
Previously, fdtfile was always the value in CONFIG_DEFAULT_DEVICE_TREE. This meant that, regardless of the DT chosen by SPL (either by changing the header in the image or by the selection code at runtime), Linux always used the default DT. By using the name from the SPL header (which, because of

[PATCH 8/8] sunxi: a64: Add a defconfig for the PinePhone

2020-09-02 Thread Samuel Holland
The PinePhone is a smartphone produced by Pine64, with an A64 SoC, 2 or 3 GiB LPDDR3 RAM, 16 or 32 GiB eMMC, 720x1440 MIPI-DSI panel, and Quectel EG25-G modem. There are two main board revisions: 1.1 for early adopters, and 1.2 for mass production. Since there is code to detect the board revision

  1   2   >