Re: [U-Boot] required host packages on Travis CI

2019-11-05 Thread AKASHI Takahiro
Tom, On Fri, Nov 01, 2019 at 09:07:04AM -0400, Tom Rini wrote: > On Fri, Nov 01, 2019 at 02:34:35PM +0900, AKASHI Takahiro wrote: > > Tom, > > > > On Wed, Oct 30, 2019 at 07:17:29AM -0400, Tom Rini wrote: > > > On Wed, Oct 30, 2019 at 03:30:58PM +0900, AKASHI Takahiro wrote: > > > > > > > Hi Tom

Re: [U-Boot] [PATCH 4/8] riscv: andes_plic: Fix some wrong configurations

2019-11-05 Thread Rick Chen
Hi Anup > > On Tue, Nov 5, 2019 at 7:19 AM Rick Chen wrote: > > > > Hi Anup > > > > > > On Thu, Oct 31, 2019 at 1:42 PM Anup Patel wrote: > > > > > > > > > > On Thu, Oct 31, 2019 at 6:30 AM Alan Kao > > > > > wrote: > > > > > > > > > > > > Hi Bin, > > > > > > > > > > > > Thanks for the critics

[U-Boot] [PULL] u-boot-mmc mmc-2019-11-5

2019-11-05 Thread Peng Fan
Hi Tom, Please pull u-boot-mmc mmc-2019-11-5 CI: https://travis-ci.org/MrVan/u-boot/builds/607453537 --- fsl_esdhc driver cleanup fsl_esdhc_imx driver improvement and compatible string update

Re: [U-Boot] [PATCH 1/2] gpio: fix CONFIG_IS_ENABLED(DM_GPIO) for SPL

2019-11-05 Thread Stefan Roese
Hi Bin, On 06.11.19 06:47, Bin Meng wrote: Hi Baruch, On Sun, Nov 3, 2019 at 5:53 PM Baruch Siach wrote: There is currently no CONFIG_SPL_DM_GPIO, so CONFIG_IS_ENABLED(DM_GPIO) is always false. As a result the sdhci driver can not use the DM gpio API to read the card-detect signal in SPL. Th

Re: [U-Boot] [PATCH 1/2] gpio: fix CONFIG_IS_ENABLED(DM_GPIO) for SPL

2019-11-05 Thread Bin Meng
Hi Baruch, On Sun, Nov 3, 2019 at 5:53 PM Baruch Siach wrote: > > There is currently no CONFIG_SPL_DM_GPIO, so CONFIG_IS_ENABLED(DM_GPIO) > is always false. As a result the sdhci driver can not use the DM gpio > API to read the card-detect signal in SPL. This breaks boot from SD card > on the Sol

Re: [U-Boot] [PATCH 1/2] gpio: fix CONFIG_IS_ENABLED(DM_GPIO) for SPL

2019-11-05 Thread Stefan Roese
Hi Baruch, On 05.11.19 17:01, Baruch Siach wrote: Hi Stefan, On Tue, Nov 05, 2019 at 04:14:59PM +0100, Stefan Roese wrote: On 03.11.19 10:52, Baruch Siach wrote: There is currently no CONFIG_SPL_DM_GPIO, so CONFIG_IS_ENABLED(DM_GPIO) is always false. As a result the sdhci driver can not use t

[U-Boot] USB doesn't work on Rockpro64 in u-boot

2019-11-05 Thread Vasily Khoruzhick
Hi Akash, Jagan, Looks like USB is not functional in u-boot on Rockpro64. u-boot is from git, commit 680023c5fab6b1777c0c6f2e76e5d2effb7903a0. I'm using u-boot SPL and mainline ATF (19adcb415c313d656324d54e7608cdc7d7a5c414 is ATF commit) 'usb start' doesn't detect anything but hubs and looks lik

[U-Boot] [BUG] display_options() fails on Raspberry Pi 3B+

2019-11-05 Thread Heinrich Schuchardt
Hello Matthias, Tom reported: Since patch 143256b353c4d2ad1cf5e5e63b38410188b35e49 fdt: update bcm283x device tree sources to Linux 5.1-rc6 state the console no longer shows the initial message, e.g. "U-Boot 2020.01-rc1-00159-g73b6e6ad25-dirty". This leads to a failure in automated testing. To

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Aaron Williams
Hi Tom, From: Tom Rini Sent: Tuesday, November 5, 2019 6:16 AM To: Wolfgang Denk Cc: Aaron Williams; Daniel Schwierzeck; u-boot@lists.denx.de Subject: Re: [EXT] Re: Cavium/Marvell Octeon Support On Tue, Nov 05, 2019 at 09:33:35AM +0100, Wolfgang Denk wrote: > Dear

Re: [U-Boot] [RFC PATCH] dm: core: Remove libfdt dependency when unnecessary

2019-11-05 Thread Ezequiel Garcia
On Tue, 5 Nov 2019 at 15:12, Walter Lozano wrote: > > Hi Ezequiel, > > On 5/11/19 13:56, Ezequiel Garcia wrote: > > Hello Walter, > > > > Thanks for the patch. > > > > On Tue, 5 Nov 2019 at 12:27, Walter Lozano > > wrote: > >> The support of libfdt should only be needed when OF_CONTROL > >> is e

Re: [U-Boot] Please pull u-boot-fdt

2019-11-05 Thread Tom Rini
On Tue, Nov 05, 2019 at 05:23:51AM -0700, Simon Glass wrote: > Hi Tom, > > Passing run here: > > https://gitlab.denx.de/u-boot/custodians/u-boot-dm/pipelines/1210 > > > The following changes since commit 73b6e6ad254b36763419cdd3fdf406c0094517b7: > > Merge tag 'u-boot-imx-20191104' of > http

Re: [U-Boot] [PATCH] travis: Rework how we write the ~/.buildman file

2019-11-05 Thread Tom Rini
On Tue, Nov 05, 2019 at 03:56:29PM -0500, Tom Rini wrote: > With python3 we're now tripping over a long-standing problem with how we > add to the buildman file with some toolchains. We cannot have multiple > toolchain-alias sections as that leads to a parse error. > > Signed-off-by: Tom Rini A

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Aaron Williams
From: Wolfgang Denk Sent: Tuesday, November 5, 2019 3:36 AM To: Aaron Williams Cc: Tom Rini ; Daniel Schwierzeck ; u-boot@lists.denx.de Subject: Re: [EXT] Re: Cavium/Marvell Octeon Support Hi Wolfgang, I apologize in advance for the lack of email formatting

Re: [U-Boot] [PATCH v2 1/1] net: avoid address-of-packed-member error

2019-11-05 Thread Joe Hershberger
On Tue, Nov 5, 2019 at 5:49 AM Heinrich Schuchardt wrote: > > sandbox_defconfig does not compile using GCC 9.2.1: > > net/net.c: In function ‘net_process_received_packet’: > net/net.c:1288:23: error: taking address of packed member of ‘struct > ip_udp_hdr’ may result in an unaligned pointer value

[U-Boot] [PATCH v3 2/3] arm: ls1028a: use the new flexspi driver

2019-11-05 Thread Michael Walle
Also align the fspi node with the kernel one. Signed-off-by: Michael Walle Reviewed-by: Kuldeep Singh --- changes since v1: - none changes since v2: - none arch/arm/dts/fsl-ls1028a.dtsi | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/arch/arm/dts/fsl-ls1028

[U-Boot] [PATCH v3 1/3] spi: nxp_fspi: new driver for the FlexSPI controller

2019-11-05 Thread Michael Walle
This is a port of the kernel's spi-nxp-fspi driver. It uses the new spi-mem interface and does not expose the more generic spi-xfer interface. The source was taken from the v5.3-rc3 tag. The port was straightforward: - remove the interrupt handling and the completion by busy polling the contro

[U-Boot] [PATCH v3 3/3] arm: dts: ls1028a: fix interrupt properties

2019-11-05 Thread Michael Walle
Sync the interrupt properties with the ones from Linux. Also use the constants provided by the dt-bindings header. Please note, that there are actual changes/fixes in the irq flags. U-Boot won't use the interrupt properties anyway. It's just to be consistent with the Linux device tree. Signed-off-

Re: [U-Boot] [PATCH] armv8: fsl-layerscape: fix hwconfig and prefetching

2019-11-05 Thread Michael Walle
Am 2019-11-05 11:23, schrieb Priyanka Jain: -Original Message- From: U-Boot On Behalf Of Michael Walle Sent: Tuesday, October 22, 2019 2:07 AM To: u-boot@lists.denx.de Cc: Tom Rini Subject: [U-Boot] [PATCH] armv8: fsl-layerscape: fix hwconfig and prefetching If CONFIG_HWCONFIG is dis

[U-Boot] [PATCH] travis: Rework how we write the ~/.buildman file

2019-11-05 Thread Tom Rini
With python3 we're now tripping over a long-standing problem with how we add to the buildman file with some toolchains. We cannot have multiple toolchain-alias sections as that leads to a parse error. Signed-off-by: Tom Rini --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletio

Re: [U-Boot] [RFC PATCH] dm: core: Remove libfdt dependency when unnecessary

2019-11-05 Thread Walter Lozano
Hi Ezequiel, On 5/11/19 13:56, Ezequiel Garcia wrote: Hello Walter, Thanks for the patch. On Tue, 5 Nov 2019 at 12:27, Walter Lozano wrote: The support of libfdt should only be needed when OF_CONTROL is enabled and OF_PLATDATA is not, as in other cases there is no DT file to query. This pat

Re: [U-Boot] [PATCH v1 2/3] drivers: reset: Add a managed API to get reset controllers from the DT

2019-11-05 Thread Jean-Jacques Hiblot
On 05/11/2019 17:42, Simon Goldschmidt wrote: Am 05.11.2019 um 17:33 schrieb Simon Glass: Hi Jean-Jacques, On Mon, 4 Nov 2019 at 08:41, Jean-Jacques Hiblot wrote: On 30/10/2019 02:48, Simon Glass wrote: On Mon, 30 Sep 2019 at 10:15, Jean-Jacques Hiblot wrote: Add managed functions to ge

Re: [U-Boot] [RFC PATCH] dm: core: Remove libfdt dependency when unnecessary

2019-11-05 Thread Ezequiel Garcia
Hello Walter, Thanks for the patch. On Tue, 5 Nov 2019 at 12:27, Walter Lozano wrote: > > The support of libfdt should only be needed when OF_CONTROL > is enabled and OF_PLATDATA is not, as in other cases there is no > DT file to query. > > This patch fixes this dependency allowing to save some

Re: [U-Boot] [RFC/RFT U-Boot PATCH] image: Add Image.gz parsing support in booti.

2019-11-05 Thread Tom Rini
On Tue, Nov 05, 2019 at 03:51:54PM +, Atish Patra wrote: > On Mon, 2019-11-04 at 17:35 -0500, Tom Rini wrote: > > On Mon, Nov 04, 2019 at 10:20:33PM +, Atish Patra wrote: > > > On Fri, 2019-11-01 at 09:29 -0400, Tom Rini wrote: > > > > On Thu, Oct 10, 2019 at 02:23:17PM -0700, Atish Patra w

Re: [U-Boot] [PATCH v1 2/3] drivers: reset: Add a managed API to get reset controllers from the DT

2019-11-05 Thread Simon Goldschmidt
Am 05.11.2019 um 17:33 schrieb Simon Glass: Hi Jean-Jacques, On Mon, 4 Nov 2019 at 08:41, Jean-Jacques Hiblot wrote: On 30/10/2019 02:48, Simon Glass wrote: On Mon, 30 Sep 2019 at 10:15, Jean-Jacques Hiblot wrote: Add managed functions to get a reset_ctl from the device-tree, based on a n

Re: [U-Boot] [PATCH v1 2/3] drivers: reset: Add a managed API to get reset controllers from the DT

2019-11-05 Thread Simon Glass
Hi Jean-Jacques, On Mon, 4 Nov 2019 at 08:41, Jean-Jacques Hiblot wrote: > > > On 30/10/2019 02:48, Simon Glass wrote: > > On Mon, 30 Sep 2019 at 10:15, Jean-Jacques Hiblot wrote: > >> Add managed functions to get a reset_ctl from the device-tree, based on a > >> name or an index. > >> Also add

Re: [U-Boot] [PATCH 26/34] binman: Correct symbol calculation with non-zero image base

2019-11-05 Thread Simon Glass
Hi Stephen, On Mon, 4 Nov 2019 at 10:34, Stephen Warren wrote: > > On 10/15/19 10:09 AM, Stephen Warren wrote: > > On 10/15/19 8:07 AM, Simon Glass wrote: > >> Hi Stephen, > >> > >> On Mon, 14 Oct 2019 at 09:49, Stephen Warren > >> wrote: > >>> > >>> On 9/26/19 6:38 PM, s...@google.com wrote: >

Re: [U-Boot] [PATCH] imx: sys_proto: Fixing function imx6_is_bmode_from_gpr9()

2019-11-05 Thread Stefano Babic
On 05/11/19 17:05, Anatolij Gustschin wrote: > Hi Stefano, Christoph, > > On Tue, 5 Nov 2019 16:57:18 +0100 > Stefano Babic sba...@denx.de wrote: > ... >>> -static inline u8 imx6_is_bmode_from_gpr9(void) >>> +static inline u32 imx6_is_bmode_from_gpr9(void) >>> { >>> return readl(&src_base->gp

Re: [U-Boot] [PATCH] Revert "binman: Correct symbol calculation with non-zero image base"

2019-11-05 Thread Simon Glass
On Tue, 5 Nov 2019 at 09:21, Stephen Warren wrote: > > From: Stephen Warren > > This reverts commit 15c981cc8adc26501e3a19ca7fb35705870ef597. > "binman: Correct symbol calculation with non-zero image base". This > was previously reported to break initial boot on Jetson TK1, and Simon > dropped th

[U-Boot] [PATCH] Revert "binman: Correct symbol calculation with non-zero image base"

2019-11-05 Thread Stephen Warren
From: Stephen Warren This reverts commit 15c981cc8adc26501e3a19ca7fb35705870ef597. "binman: Correct symbol calculation with non-zero image base". This was previously reported to break initial boot on Jetson TK1, and Simon dropped the patch from his branch. However, it seems to have shown up again

Re: [U-Boot] [EXT] Re: [RFC PATCH 00/29] arm: Introduce Marvell/Cavium OcteonTX

2019-11-05 Thread Tim Harvey
On Mon, Nov 4, 2019 at 5:09 PM Aaron Williams wrote: > > Hi Tim, > > On Thursday, October 31, 2019 12:12:34 PM PST Tim Harvey wrote: > > On Wed, Oct 30, 2019 at 5:04 PM Aaron Williams > wrote: > > > Hi Tim, > > > > > > I think I can answer some of your questions. > > > > > > On Wednesday, October

Re: [U-Boot] [PATCH] imx: sys_proto: Fixing function imx6_is_bmode_from_gpr9()

2019-11-05 Thread Anatolij Gustschin
Hi Stefano, Christoph, On Tue, 5 Nov 2019 16:57:18 +0100 Stefano Babic sba...@denx.de wrote: ... > > -static inline u8 imx6_is_bmode_from_gpr9(void) > > +static inline u32 imx6_is_bmode_from_gpr9(void) > > { > > return readl(&src_base->gpr10) & IMX6_SRC_GPR10_BMODE; > > } > > > > This is

Re: [U-Boot] [PATCH 1/2] gpio: fix CONFIG_IS_ENABLED(DM_GPIO) for SPL

2019-11-05 Thread Baruch Siach
Hi Stefan, On Tue, Nov 05, 2019 at 04:14:59PM +0100, Stefan Roese wrote: > On 03.11.19 10:52, Baruch Siach wrote: > > There is currently no CONFIG_SPL_DM_GPIO, so CONFIG_IS_ENABLED(DM_GPIO) > > is always false. As a result the sdhci driver can not use the DM gpio > > API to read the card-detect si

Re: [U-Boot] [PATCH] imx: sys_proto: Fixing function imx6_is_bmode_from_gpr9()

2019-11-05 Thread Stefano Babic
Hi Christoph, On 14/10/19 14:27, Christoph Niedermaier wrote: > A return type of u08 cuts the return value always to 0, > because IMX6_SRC_GPR10_BMODE = bit 28 is above u08. > Changing the return type to u32 gives > the function the expected operation. > > Fixes: cba586b400 ("imx6: Add imx6_src_g

Re: [U-Boot] [RFC/RFT U-Boot PATCH] image: Add Image.gz parsing support in booti.

2019-11-05 Thread Atish Patra
On Mon, 2019-11-04 at 17:35 -0500, Tom Rini wrote: > On Mon, Nov 04, 2019 at 10:20:33PM +, Atish Patra wrote: > > On Fri, 2019-11-01 at 09:29 -0400, Tom Rini wrote: > > > On Thu, Oct 10, 2019 at 02:23:17PM -0700, Atish Patra wrote: > > > > > > > Add gz parsing logic so that booti can parse bot

[U-Boot] [PATCH] board: Add support for iMX8QXP AI_ML board

2019-11-05 Thread Manivannan Sadhasivam
This commit adds initial board support for iMX8QXP AI_ML board from Einfochips. This board is one of the 96Boards Consumer Edition and AI boards of the 96Boards family based on i.MX8QXP SoC from NXP/Freescale. This initial supports contains following peripherals which are tested and known to work:

[U-Boot] [RFC PATCH] dm: core: Remove libfdt dependency when unnecessary

2019-11-05 Thread Walter Lozano
The support of libfdt should only be needed when OF_CONTROL is enabled and OF_PLATDATA is not, as in other cases there is no DT file to query. This patch fixes this dependency allowing to save some space. Signed-off-by: Walter Lozano --- drivers/core/ofnode.c | 132 +

Re: [U-Boot] [PATCH v5 0/2] Add board support for iMX8QXP AI_ML board

2019-11-05 Thread Stefano Babic
Hi, On 05/11/19 16:12, Manivannan Sadhasivam wrote: > Hi, > > On Sun, Nov 03, 2019 at 04:29:49PM +0100, Stefano Babic wrote: >> On 21/10/19 13:00, Manivannan Sadhasivam wrote: >>> Hi, >>> >>> On Thu, Aug 15, 2019 at 01:57:23PM +0530, Manivannan Sadhasivam wrote: Hello, This patchs

Re: [U-Boot] [PATCH 2/2] arm: mvebu: clearfog: fix boot from SD card

2019-11-05 Thread Stefan Roese
Hi Baruch, On 03.11.19 10:52, Baruch Siach wrote: Enable gpio0 in SPL to allow the sdhci driver read the SD card-detect signal. Signed-off-by: Baruch Siach --- arch/arm/dts/armada-388-clearfog-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/armada-388-clearf

Re: [U-Boot] [PATCH 1/2] gpio: fix CONFIG_IS_ENABLED(DM_GPIO) for SPL

2019-11-05 Thread Stefan Roese
Hi Baruch, On 03.11.19 10:52, Baruch Siach wrote: There is currently no CONFIG_SPL_DM_GPIO, so CONFIG_IS_ENABLED(DM_GPIO) is always false. As a result the sdhci driver can not use the DM gpio API to read the card-detect signal in SPL. This breaks boot from SD card on the SolidRun Clearfog platfo

Re: [U-Boot] [PATCH v2 2/4] dm: board: complete the initialization of the muxes in initr_dm()

2019-11-05 Thread Jean-Jacques Hiblot
On 05/11/2019 14:05, Vignesh Raghavendra wrote: Hi JJ, On 05/11/19 5:20 PM, Jean-Jacques Hiblot wrote: This will probe the multiplexer devices that have a "u-boot,mux-autoprobe" property. As a consequence they will be put in their idle state. Signed-off-by: Jean-Jacques Hiblot --- [...] d

Re: [U-Boot] [PATCH v5 0/2] Add board support for iMX8QXP AI_ML board

2019-11-05 Thread Manivannan Sadhasivam
Hi, On Sun, Nov 03, 2019 at 04:29:49PM +0100, Stefano Babic wrote: > On 21/10/19 13:00, Manivannan Sadhasivam wrote: > > Hi, > > > > On Thu, Aug 15, 2019 at 01:57:23PM +0530, Manivannan Sadhasivam wrote: > >> Hello, > >> > >> This patchset adds initial board support for iMX8QXP AI_ML board > >> f

Re: [U-Boot] [PATCHv2 0/4] support remote system update on Intel Stratix10 SoC

2019-11-05 Thread Richard Gong
Hi Simon, Thanks for your comments! On 11/4/19 3:03 PM, Simon Goldschmidt wrote: Am 30.10.2019 um 21:34 schrieb richard.g...@linux.intel.com: From: Richard Gong This is 2nd submission of Intel Remote System Update patches. Ok, so what has changed since v1? You'd normally add a changelog (

Re: [U-Boot] [PATCH] stm32mp1: configs: fix checking the presence of an environment

2019-11-05 Thread Patrick DELAUNAY
Hi Bartosz > From: Bartosz Biłas > Sent: dimanche 3 novembre 2019 13:39 > > Hello Patrick, > > On 11/3/19 11:15 AM, Bartosz Biłas wrote: > > Hello Patrick, > > > > sorry for the late answer but I'll try to explain you my issue. > > > > On 10/29/19 9:38 AM, Patrick DELAUNAY wrote: > > > > Hi Bar

[U-Boot] [RFC PATCH v1] imx: bootaux: PoC for elf firmware support

2019-11-05 Thread Igor Opaniuk
From: Igor Opaniuk Currently imx-specific bootaux command doesn't support ELF format firmware for Cortex-M4 core. This patches introduces a PoC implementation of handling elf firmware (load_elf_image_phdr() was copy-pasted from elf.c just for PoC). This has the advantage that the user does not

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Tom Rini
On Tue, Nov 05, 2019 at 09:33:35AM +0100, Wolfgang Denk wrote: > Dear Aaron, > > In message <5376617.97hUrJXovB@flash> you wrote: > > > > > Again you don't answer my question. Why do you need a special new > > > API for such code? Why do you not just link that code with the rest > > > of U-Boot?

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Tom Rini
On Tue, Nov 05, 2019 at 02:08:54AM +, Aaron Williams wrote: > On Monday, November 4, 2019 8:23:08 AM PST Tom Rini wrote: > > On Mon, Nov 04, 2019 at 04:44:18PM +0100, Wolfgang Denk wrote: > > > Dear Aaron, > > > > > > In message <2710076.TiSPtmOvtb@flash> you wrote: > > > > > What exactly do y

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Tom Rini
On Tue, Nov 05, 2019 at 02:13:13AM +, Aaron Williams wrote: > Hi Wolfgang, > > On Monday, November 4, 2019 9:22:16 AM PST Tom Rini wrote: > > On Thu, Oct 31, 2019 at 06:01:34PM +, Aaron Williams wrote: > > > Hi Wolfgang, > > > > > > On Thursday, October 31, 2019 3:40:27 AM PDT Wolfgang De

Re: [U-Boot] [PATCH v2 1/1] net: avoid address-of-packed-member error

2019-11-05 Thread Simon Goldschmidt
On Tue, Nov 5, 2019 at 2:52 PM Tom Rini wrote: > > On Tue, Nov 05, 2019 at 12:48:19PM +0100, Heinrich Schuchardt wrote: > > > sandbox_defconfig does not compile using GCC 9.2.1: > > > > net/net.c: In function ‘net_process_received_packet’: > > net/net.c:1288:23: error: taking address of packed mem

Re: [U-Boot] [PATCH v2 1/1] net: avoid address-of-packed-member error

2019-11-05 Thread Tom Rini
On Tue, Nov 05, 2019 at 12:48:19PM +0100, Heinrich Schuchardt wrote: > sandbox_defconfig does not compile using GCC 9.2.1: > > net/net.c: In function ‘net_process_received_packet’: > net/net.c:1288:23: error: taking address of packed member of ‘struct > ip_udp_hdr’ may result in an unaligned poin

Re: [U-Boot] [PATCH v2 2/4] dm: board: complete the initialization of the muxes in initr_dm()

2019-11-05 Thread Vignesh Raghavendra
Hi JJ, On 05/11/19 5:20 PM, Jean-Jacques Hiblot wrote: > This will probe the multiplexer devices that have a "u-boot,mux-autoprobe" > property. As a consequence they will be put in their idle state. > > Signed-off-by: Jean-Jacques Hiblot > > --- [...] > diff --git a/drivers/mux/mux-uclass.c b/d

[U-Boot] [PATCH 2/2] mx6cuboxi: enable OF_CONTROL with DM_MMC and DM_USB

2019-11-05 Thread Baruch Siach
Make first step in DT/DM migration. Enable OF_CONTROL only for the main U-Boot image for now. Remove mmc_init_main() because board_mmc_init() is not called when DM_MMC is enabled. DM_MMC requires DM_GPIO for card-detect to work. That in turn makes gpio request mandatory. Add code to request/free

Re: [U-Boot] [PATCH v2 6/6] mx7ulp: Add support for Embedded Artists COM board

2019-11-05 Thread Fabio Estevam
Hi Peng, On Tue, Nov 5, 2019 at 2:57 AM Peng Fan wrote: > Hi Fabio, > > Seems you not add dts files. CI build fail >arm: + mx7ulp_com > +make[3]: *** No rule to make target 'arch/arm/dts/imx7ulp-com.dtb', needed > by 'dtbs'. Stop. > +make[2]: *** [arch-dtbs] Error 2 > +make[1]: ***

[U-Boot] [PATCH v3 6/6] mx7ulp: Add support for Embedded Artists COM board

2019-11-05 Thread Fabio Estevam
The Embedded Artists COM board is based on NXP i.MX7ULP. It has a BD70528 PMIC from Rohm with discrete DCDC powering option and improved current observability (compared to the existing NXP i.MX7ULP EVK). Add the initial support for the board. Signed-off-by: Fabio Estevam --- Changes since v2: -

[U-Boot] [PATCH v3 4/6] mx7ulp: scg: Remove unnused scg_a7_apll_init()

2019-11-05 Thread Fabio Estevam
scg_a7_apll_init() is not called anywhere, so remove such dead code Signed-off-by: Fabio Estevam --- Changes since v2: - None arch/arm/include/asm/arch-mx7ulp/scg.h | 1 - arch/arm/mach-imx/mx7ulp/scg.c | 61 -- 2 files changed, 62 deletions(-) diff --git a/arc

[U-Boot] [PATCH v3 3/6] mx7ulp: Remove the _RUN notation from the PMC1 LDOVL definitions

2019-11-05 Thread Fabio Estevam
The LDOVL definitions is common to all the modes, not only RUN mode, so in order to avoid confusion, remove the _RUN notation from the PMC1 LDOVL definitions. Signed-off-by: Fabio Estevam --- Changes since v2: - None arch/arm/mach-imx/mx7ulp/soc.c | 20 ++-- 1 file changed, 10 i

[U-Boot] [PATCH v3 2/6] mx7ulp: Introduce the CONFIG_LDO_ENABLED_MODE option

2019-11-05 Thread Fabio Estevam
Introduce the CONFIG_LDO_ENABLED_MODE option so that i.MX7ULP boards designed to operate with LDO enabled mode can work with 0.95V at LDO output in RUN mode as per the datasheet. Signed-off-by: Fabio Estevam --- Changes since v2: - None arch/arm/mach-imx/mx7ulp/Kconfig | 5 +++ arch/arm/mach-i

[U-Boot] [PATCH v3 1/6] mx7ulp: Print the LDO mode status

2019-11-05 Thread Fabio Estevam
As per the i.MX7ULP datasheet, it can boot in LDO enabled mode or LDO bypass mode. Print the LDO mode status in the U-Boot log for convenience. Signed-off-by: Fabio Estevam --- Changes since v2: - None arch/arm/mach-imx/mx7ulp/soc.c | 20 1 file changed, 20 insertions(+)

[U-Boot] Please pull u-boot-fdt

2019-11-05 Thread Simon Glass
Hi Tom, Passing run here: https://gitlab.denx.de/u-boot/custodians/u-boot-dm/pipelines/1210 The following changes since commit 73b6e6ad254b36763419cdd3fdf406c0094517b7: Merge tag 'u-boot-imx-20191104' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx (2019-11-04 12:57:41 -0500) are ava

Re: [U-Boot] [EXT] [PATCH v2 2/2] arm: ls1028a: use the new flexspi driver

2019-11-05 Thread Michael Walle
Am 2019-11-05 10:53, schrieb Kuldeep Singh: Hi Kuldeep, >> diff --git a/arch/arm/dts/fsl-ls1028a.dtsi >> b/arch/arm/dts/fsl-ls1028a.dtsi index >> 43a154e8e7..774e477542 100644 >> --- a/arch/arm/dts/fsl-ls1028a.dtsi >> +++ b/arch/arm/dts/fsl-ls1028a.dtsi >> @@ -49,14 +49,16 @@ >>

Re: [U-Boot] [PATCH v2 13/17] binman: Remember the pre-reset entry size

2019-11-05 Thread sjg
When preparing to possible expand or contract an entry we reset the size to the original value from the binman device-tree definition, which is often None. This causes binman to forget the original size of the entry. Remember this so that it can be used when needed. Signed-off-by: Simon Glass --

Re: [U-Boot] [PATCH v2 10/17] pylibfdt: Convert to Python 3

2019-11-05 Thread sjg
Build this swig module with Python 3. Signed-off-by: Simon Glass --- Changes in v2: None scripts/dtc/pylibfdt/Makefile | 2 +- scripts/dtc/pylibfdt/libfdt.i_shipped | 2 +- scripts/dtc/pylibfdt/setup.py | 2 +- tools/binman/entry.py | 16 ++-- too

Re: [U-Boot] [PATCH v2 08/17] move_config: Convert to Python 3

2019-11-05 Thread sjg
Convert this tool to Python 3 and make it use that, to meet the 2020 deadline. Signed-off-by: Simon Glass --- Changes in v2: None tools/moveconfig.py | 82 ++--- 1 file changed, 41 insertions(+), 41 deletions(-) Applied to u-boot-fdt ___

Re: [U-Boot] [PATCH 4/4] fdt: Sync up to the latest libfdt

2019-11-05 Thread sjg
Bring over the fdt from this commit: 430419c (origin/master) tests: fix some python warnings adding in the 'assumptions' series designed to reduce code size. Signed-off-by: Simon Glass --- lib/libfdt/fdt_ro.c | 420 --- scripts/dtc/libfdt/Makefile.libf

Re: [U-Boot] [PATCH 3/4] mx6: tbs2910: Minimise libfdt code size

2019-11-05 Thread sjg
This board appears to be very near its size limit and cannot accept the new checking code in libfdt. Disable this code so this the board can continue to build. Signed-off-by: Simon Glass --- configs/tbs2910_defconfig | 1 + 1 file changed, 1 insertion(+) Applied to u-boot-fdt _

Re: [U-Boot] [PATCH v2 06/17] test_dtoc: Move to use Python 3

2019-11-05 Thread sjg
Update this test to use Python 3 to meet the 2020 deadline. Also make it executable while we are here. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/dtoc.py | 2 +- tools/dtoc/test_dtoc.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 10075

Re: [U-Boot] [PATCH v2 11/17] pylibfdt: Sync up with upstream

2019-11-05 Thread sjg
Sync up the libfdt Python bindings with upstream, commit: 430419c (tests: fix some python warnings) Signed-off-by: Simon Glass --- Changes in v2: None scripts/dtc/pylibfdt/libfdt.i_shipped | 45 --- 1 file changed, 33 insertions(+), 12 deletions(-) Applied to u-boot-f

Re: [U-Boot] [PATCH v2 07/17] microcode_tool: Convert to Python 3

2019-11-05 Thread sjg
Convert this tool to Python 3 and make it use that, to meet the 2020 deadline. Signed-off-by: Simon Glass --- Changes in v2: None tools/microcode-tool.py | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) Applied to u-boot-fdt

Re: [U-Boot] [PATCH v2 09/17] rkmux: Convert to Python 3

2019-11-05 Thread sjg
Convert this tool to Python 3 and make it use that, to meet the 2020 deadline. Signed-off-by: Simon Glass --- Changes in v2: None tools/rkmux.py | 16 1 file changed, 8 insertions(+), 8 deletions(-) Applied to u-boot-fdt ___ U-Boot

Re: [U-Boot] [PATCH v2 03/17] patman: Move to use Python 3

2019-11-05 Thread sjg
Update this tool to use Python 3 to meet the 2020 deadline. Signed-off-by: Simon Glass --- Changes in v2: None tools/patman/patman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-fdt ___ U-Boot mailing list U-Boot@lists.de

Re: [U-Boot] [PATCH v2 02/17] patman: Use unicode for file I/O

2019-11-05 Thread sjg
At present patman test fail in some environments which don't use utf-8 as the default file encoding. Add this explicitly. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to explicitly use unicode for file I/O in patman tools/patman/func_test.py | 8 tools/patman/patchs

Re: [U-Boot] [PATCH v2 05/17] test_fdt: Move to use Python 3

2019-11-05 Thread sjg
Update this test to use Python 3 to meet the 2020 deadline. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/test_fdt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-fdt ___ U-Boot mailing list U-Boot@lists.de

Re: [U-Boot] [PATCH v2 12/17] pylibfdt: Correct the type for fdt_property_stub()

2019-11-05 Thread sjg
This function should use a void * type, not char *. This causes an error: TypeError: in method 'fdt_property_stub', argument 3 of type 'char const *' Fix it. Signed-off-by: Simon Glass --- Changes in v2: None scripts/dtc/pylibfdt/libfdt.i_shipped | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [U-Boot] [PATCH 2/4] fdt: Add Kconfig options to control code size

2019-11-05 Thread sjg
On Sun, Oct 27, 2019 at 09:47:40AM -0600, Simon Glass wrote: > For better or worse libfdt recent grew a lot of code that checks the > validity of the device tree in great detail. When using unsigned or > unverified data this makes things safer, but it does add to code size. > > Add some controls t

Re: [U-Boot] [PATCH v2 01/17] patman: Adjust 'command' to return strings instead of bytes

2019-11-05 Thread sjg
At present all the 'command' methods return bytes. Most of the time we actually want strings, so change this. We still need to keep the internal representation as bytes since otherwise unicode strings might break over a read() boundary (e.g. 4KB), causing errors. But we can convert the end result t

Re: [U-Boot] [PATCH v2 04/17] buildman: Convert to Python 3

2019-11-05 Thread sjg
Convert buildman to Python 3 and make it use that, to meet the 2020 deadline. Signed-off-by: Simon Glass --- Changes in v2: - Use integer division for multiprocessing.cpu_count() - Use integer division in SetupBuild() and GetActionSummary() - Use HTTPMessage.getheader() instead of HTTPMessage.ge

Re: [U-Boot] [PATCH 1/4] fdt: Add INT32_MAX to kernel.h for libfdt

2019-11-05 Thread sjg
On Sun, Oct 27, 2019 at 09:47:39AM -0600, Simon Glass wrote: > Unfortunately libfdt needs this value now, which is present in the > stdint.h header. That file is just a placeholder in U-Boot and these sorts > of constants appear in the linux/kernel.h header instead. > > To keep libfdt happy, add I

Re: [U-Boot] [PATCH v2 16/17] binman: Move to use Python 3

2019-11-05 Thread sjg
On Thu, Oct 31, 2019 at 10:12:04AM -0600, Simon Glass wrote: > Hi Tom, > > On Thu, 31 Oct 2019 at 09:50, Tom Rini wrote: > > > > On Thu, Oct 31, 2019 at 09:19:50AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Thu, 31 Oct 2019 at 07:55, Tom Rini wrote: > > > > > > > > On Thu, Oct 31, 201

Re: [U-Boot] [PATCH v2 14/17] binman: Convert a few tests to Python 3

2019-11-05 Thread sjg
Some tests have crept in with Python 2 strings and constructs. Convert then. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/ftest.py | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) Applied to u-boot-fdt ___ U-Bo

Re: [U-Boot] [PATCH v2 15/17] dtoc: Convert fdt.py to Python 3

2019-11-05 Thread sjg
Drop the now-unused Python 2 code to keep code coverage at 100%. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/fdt.py | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) Applied to u-boot-fdt ___ U-Boot mailing l

[U-Boot] [PATCH v2 0/4] drivers: Add a framework for MUX drivers

2019-11-05 Thread Jean-Jacques Hiblot
Add a new minimalistic subsystem that handles multiplexer controllers. It provides the same API as Linux and mux drivers should be portable with a minimum effort. This series also includes a port of the Linux's mmio-mux driver. This series relies on a series that extend the regmap [1]. [1] : htt

[U-Boot] [PATCH v2 1/4] drivers: Add a new framework for multiplexer devices

2019-11-05 Thread Jean-Jacques Hiblot
Add a new subsystem that handles multiplexer controllers. The API is the same as in Linux. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: - Fixed warning in mux_of_xlate_default() - Improved documentation - Fixed SPL build drivers/Kconfig | 2 + drivers/Makefile

[U-Boot] [PATCH v2 2/4] dm: board: complete the initialization of the muxes in initr_dm()

2019-11-05 Thread Jean-Jacques Hiblot
This will probe the multiplexer devices that have a "u-boot,mux-autoprobe" property. As a consequence they will be put in their idle state. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: - insert the mux initialization in init_sequence_r[], just before the console is initialized as its s

[U-Boot] [PATCH v2 4/4] test: Add tests for the multiplexer framework

2019-11-05 Thread Jean-Jacques Hiblot
Provide tests to check the behavior of the multiplexer framework. The test uses a mmio-based multiplexer. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: - Call sandbox_set_enable_memio(true) before running the test arch/sandbox/dts/test.dts | 26 +++ configs/sandbox_defconfig |

[U-Boot] [PATCH v2 1/1] net: avoid address-of-packed-member error

2019-11-05 Thread Heinrich Schuchardt
sandbox_defconfig does not compile using GCC 9.2.1: net/net.c: In function ‘net_process_received_packet’: net/net.c:1288:23: error: taking address of packed member of ‘struct ip_udp_hdr’ may result in an unaligned pointer value [-Werror=address-of-packed-member] 1288 |sumptr = (ushort *)&(ip-

[U-Boot] [PATCH v2 3/4] drivers: mux: mmio-based syscon mux controller

2019-11-05 Thread Jean-Jacques Hiblot
This adds a driver for mmio-based syscon multiplexers controlled by bitfields in a syscon register range. This is heavily based on the linux mmio-mux driver. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/mux/Kconfig | 15 + drivers/mux/Makefile | 1 + drivers/mux/m

[U-Boot] [PATCH v2 3/4] regmap: Add support for regmap fields

2019-11-05 Thread Jean-Jacques Hiblot
A regmap field is an abstraction available in Linux. It provides to access bitfields in a regmap without having to worry about shifts and masks. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v2: None drivers/core/regmap.c | 77 ++ incl

[U-Boot] [PATCH v2 4/4] test: dm: Add tests for regmap managed API and regmap fields

2019-11-05 Thread Jean-Jacques Hiblot
The tests rely on a dummy driver to allocate and initialize the regmap and the regmap fields using the managed API. The first test checks that the read/write callbacks are used. The second test checks if regmap fields behave properly (mask and shift are ok) by peeking into the regmap. Signed-off-b

[U-Boot] [PATCH v2 2/4] regmap: Allow providing read/write callbacks through struct regmap_config

2019-11-05 Thread Jean-Jacques Hiblot
Some linux drivers provide their own read/write functions to access data from/of the regmap. Adding support for it. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: - Only use custom accessors if {,SPL,TPL}_REGMAP_ACCESSORS is enabled drivers/core/Kconfig | 25 +

[U-Boot] [PATCH v2 0/4] regmap: Add a managed API, custom read/write callbacks and support for regmap fields

2019-11-05 Thread Jean-Jacques Hiblot
This is the first of a few series, the goal of which is to facilitate porting drivers from the linux kernel. Most of the series will be about adding managed API to existing infrastructure (GPIO, reset, phy,...) This particular series is about regmaps. It adds the managed API, using the same API a

[U-Boot] [PATCH v2 1/4] regmap: Add devm_regmap_init()

2019-11-05 Thread Jean-Jacques Hiblot
Most of new linux drivers are using managed-API to allocate resources. To ease porting drivers from linux to U-Boot, introduce devm_regmap_init() as a managed API to get a regmap from the device tree. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v2: - Fix comment

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Wolfgang Denk
Dear Aaron, In message <2609392.0ByMiX4J6F@flash> you wrote: > > U-Boot OS might be fun for people writing applications where they want bare > metal (i.e. hard real-time), though that's already provided with the API and > examples. Urgh... no!!! U-Boot is definitely *not* suitable for any kind

Re: [U-Boot] [PATCH] armv8: fsl-layerscape: fix hwconfig and prefetching

2019-11-05 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Michael Walle >Sent: Tuesday, October 22, 2019 2:07 AM >To: u-boot@lists.denx.de >Cc: Tom Rini >Subject: [U-Boot] [PATCH] armv8: fsl-layerscape: fix hwconfig and prefetching > >If CONFIG_HWCONFIG is disabled, hwconfig_subarg_f() will return

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Aaron Williams
Hi Wolfgang, On Tuesday, November 5, 2019 12:37:26 AM PST Wolfgang Denk wrote: > Dear Aaron, > > In message <1838672.aZrPjDvGh8@flash> you wrote: > > To be blunt, the current U-Boot EFI driver does not provide the required > > functionality. It would need to be extended in order to work. In addit

[U-Boot] [PATCH v2 4/4] ARM: bcm283x: Set memory map at run-time

2019-11-05 Thread matthias . bgg
From: Matthias Brugger For bcm283x based on arm64 we also have to change the mm_region. Add assign this in mach_cpu_init() so we can create now one binary for RPi3 and RPi4. Signed-off-by: Matthias Brugger --- Changes in v2: - Move mem_map out of assembly file - push mem_map into the .data se

[U-Boot] [PATCH v2 3/4] ARM: bcm283x: Set rpi_bcm283x_base at run-time

2019-11-05 Thread matthias . bgg
From: Matthias Brugger As part of the effort to create one binary for several bcm83x SoCs we use the SoC compatible to decide which IO base address we use. Signed-off-by: Matthias Brugger --- Changes in v2: - rename BCM2838 to BCM2711 in the correct patch - push rpi_bcm283x_base into the .dat

[U-Boot] [PATCH v2 1/4] rpi: push fw_dtb_pointer in the .data section

2019-11-05 Thread matthias . bgg
From: Matthias Brugger The fw_dtb_pointer was defined in the assembly code, which makes him live in section .text_rest Put that's not necessary, we can push the variable in the .data section. This will prevent relocation errors like: board/raspberrypi/rpi/rpi.c:317:(.text.board_get_usable_ram_to

[U-Boot] [PATCH v2 0/4] RPi one binary for RPi3/4 and RPi1/2

2019-11-05 Thread matthias . bgg
From: Matthias Brugger In this series we prepare the RaspberryPi source code to be able to build one binary for RPi[3,4] and one for RPi[1,2]. To achieve this we need to set the IO base address on runtime. Apart from that, for arm64 we also need to set memory region correctly. This patches fix t

[U-Boot] [PATCH v2 2/4] ARM: bcm283x: Move BCM283x_BASE to a global variable

2019-11-05 Thread matthias . bgg
From: Matthias Brugger We move the per SOC define BCM283x_BASE to a global variable. This is a first step to provide a single binary for several bcm283x SoCs. Signed-off-by: Matthias Brugger --- Changes in v2: - fix register access in reset_cpu() arch/arm/mach-bcm283x/include/mach/base.h |

Re: [U-Boot] [EXT] [PATCH v2 2/2] arm: ls1028a: use the new flexspi driver

2019-11-05 Thread Kuldeep Singh
Hi Michael, > -Original Message- > From: Michael Walle > Sent: Tuesday, November 5, 2019 3:07 PM > To: Kuldeep Singh > Cc: u-boot@lists.denx.de > Subject: Re: [EXT] [U-Boot] [PATCH v2 2/2] arm: ls1028a: use the new flexspi > driver > > Caution: EXT Email > > Hi Singh, > > Am 2019-11-0

Re: [U-Boot] [EXT] [PATCH v2 2/2] arm: ls1028a: use the new flexspi driver

2019-11-05 Thread Michael Walle
Hi Singh, Am 2019-11-05 07:40, schrieb Kuldeep Singh: Hi Michael, -Original Message- From: U-Boot On Behalf Of Michael Walle Sent: Saturday, November 2, 2019 11:56 PM To: u-boot@lists.denx.de Subject: [EXT] [U-Boot] [PATCH v2 2/2] arm: ls1028a: use the new flexspi driver Caution: E

  1   2   >