Re: [U-Boot] [PATCH 1/4] net: mdio-uclass: name MDIO according to device-name property if preset

2019-07-22 Thread Alex Marginean
On 7/23/2019 9:38 AM, Bin Meng wrote: On Wed, Jul 17, 2019 at 11:11 PM Alex Marginean wrote: Use the optional property device-name to name the MDIO bus. This works around limitations with using the DT node name on devices such as Armada-8040, which integrates two cp100 cores, both featuring M

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-07-22 Thread Stefano Babic
Hi Fabio, On 22/07/19 20:31, Fabio Estevam wrote: > Hi Lukasz and Stefano, > > On Tue, Jun 11, 2019 at 10:53 AM Lukasz Majewski wrote: >> >> Hi Fabio, Stefano, >> >>> Hi Stefano, >>> >>> On Tue, Jun 11, 2019 at 10:11 AM Stefano Babic wrote: >>> I have no comments, but from the discussion I

Re: [U-Boot] [PATCH] clk: sifive: fu540-prci: align primary DT match string to the DT bindings

2019-07-22 Thread Rick Chen
Hi Paul > Hi Rick and other U-Boot folks, > > On Fri, 7 Jun 2019, Bin Meng wrote: > > > Hi Paul, > > > > On Fri, Jun 7, 2019 at 1:45 PM Paul Walmsley > > wrote: > > > > > > Hello Bin, > > > > > > On Fri, 31 May 2019, Paul Walmsley wrote: > > > > > > > On Thu, 30 May 2019, Bin Meng wrote: > > > >

Re: [U-Boot] [PATCH 2/4] doc: bindings: add mdio.txt describing generic MDIO properties

2019-07-22 Thread Bin Meng
On Wed, Jul 17, 2019 at 11:11 PM Alex Marginean wrote: > > Adds a binding document for mdio. A notable deviation from corresponding > Linux binding is the introduction of device-name optional property, which > can be used to name MDIO buses. Two reset optional properties described > by Linux bin

Re: [U-Boot] [PATCH 1/4] net: mdio-uclass: name MDIO according to device-name property if preset

2019-07-22 Thread Bin Meng
On Wed, Jul 17, 2019 at 11:11 PM Alex Marginean wrote: > > Use the optional property device-name to name the MDIO bus. This works > around limitations with using the DT node name on devices such as > Armada-8040, which integrates two cp100 cores, both featuring MDIOs at the > same relative offset

Re: [U-Boot] [PATCH v2 2/2] doc: bindings: Add binding for register driven MDIO muxes

2019-07-22 Thread Bin Meng
On Tue, Jul 16, 2019 at 4:21 PM Alex Marginean wrote: > > This binding documents two properties that describe the registers used to > perform MUX selection. > > Signed-off-by: Alex Marginean > --- > > Changes in v2: > - renamed APIs, config options to mdio_mux_i2creg (instead of i2c_reg)

Re: [U-Boot] [PATCH v2 1/2] drivers: net: driver for MDIO muxes controlled over I2C

2019-07-22 Thread Bin Meng
On Tue, Jul 16, 2019 at 4:21 PM Alex Marginean wrote: > > This driver is used for MDIO muxes driven over I2C. This is currently > used on Freescale LS1028A QDS board, on which the physical MDIO MUX is > controlled by an on-board FPGA which in turn is configured through I2C. > > Signed-off-by: Ale

Re: [U-Boot] [PATCH v3 9/9] Add support for the NXP LS1021A-TSN board

2019-07-22 Thread Bin Meng
On Fri, Jul 19, 2019 at 5:33 AM Vladimir Oltean wrote: > > From: Jianchao Wang > > The LS1021A-TSN is a development board built by VVDN/Argonboards in > partnership with NXP. > > It features the LS1021A SoC and the first-generation SJA1105T Ethernet > switch for prototyping implementations of a s

Re: [U-Boot] [PATCH v3 2/9] net: tsec: Fix offset of MDIO registers for DM_ETH

2019-07-22 Thread Bin Meng
On Fri, Jul 19, 2019 at 5:32 AM Vladimir Oltean wrote: > > By convention, the eTSEC MDIO controller nodes are defined in DT at > 0x2d24000 and 0x2d5, but actually U-Boot does not touch the > interrupt portion of the register map (MDIO_IEVENTM, MDIO_IMASKM, > MDIO_EMAPM). > > That leaves only t

Re: [U-Boot] [PATCH 00/50] doc: Shape into useful HTML docs

2019-07-22 Thread Bin Meng
Hi Tom, On Thu, Jul 18, 2019 at 3:34 PM Bin Meng wrote: > > At present there is Sphinx doc build system in U-Boot, however the > contents are very limited, e.g.: only a few API descriptions like > EFI, are included. > > This series proposes an initial Sphinx doc layout for future extension, > by

Re: [U-Boot] [PATCH 1/2] doc: Add .gitignore for the Sphinx build output directory

2019-07-22 Thread Bin Meng
On Wed, Jul 17, 2019 at 12:39 AM Bin Meng wrote: > > With Sphinx documentation moving from Documentation directory > to doc directory, we missed updating .gitignore for the Sphinx > build output directory. > > Signed-off-by: Bin Meng > --- > > Documentation/.gitignore | 1 - > doc/.gitignore

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-22 Thread Heinrich Schuchardt
On 7/22/19 8:59 PM, Mark Kettenis wrote: From: Heinrich Schuchardt Date: Sat, 20 Jul 2019 13:23:13 +0200 On 7/20/19 1:59 AM, Jonathan Gray wrote: On Fri, Jul 19, 2019 at 08:25:45PM +0200, Heinrich Schuchardt wrote: In GRUB before 2.04 a bug existed which did not allow booting some ARM32 board

Re: [U-Boot] [PATCH v5 7/8] board: intel: Add new slimbootloader board

2019-07-22 Thread Bin Meng
Hi Andy, On Mon, Jul 22, 2019 at 11:49 PM Andy Shevchenko wrote: > > On Wed, Jul 17, 2019 at 7:42 AM Park, Aiden wrote: > > > > Add slimbootloader board to run U-boot as a Slim Bootloader payload > > - Add new board/intel/slimbootloader directory with minimum codes > > - Add slimbootloader confi

Re: [U-Boot] [PATCH v3 0/9] NXP LS1021A-TSN Board

2019-07-22 Thread Vladimir Oltean
Hi Joe, On Tue, 23 Jul 2019 at 03:15, Joe Hershberger wrote: > > On Thu, Jul 18, 2019 at 4:33 PM Vladimir Oltean wrote: > > > > This patchset adds initial support for the NXP LS1021A-TSN board, > > an evaluation platform built in partnership with VVDN/Argonboards > > for some IEEE 802.1 TSN feat

Re: [U-Boot] [PATCH v5 5/8] x86: slimbootloader: Set TSC information for timer driver

2019-07-22 Thread Bin Meng
On Mon, Jul 22, 2019 at 11:41 PM Andy Shevchenko wrote: > > On Wed, Jul 17, 2019 at 7:41 AM Park, Aiden wrote: > > > > Slim Bootloader provides TSC clock information in its performance > > info hob. For now, TSC clock information is only used for timer driver > > from the performance info hob. >

Re: [U-Boot] [PATCH v5 3/8] x86: slimbootloader: Add memory configuration

2019-07-22 Thread Bin Meng
On Mon, Jul 22, 2019 at 11:33 PM Andy Shevchenko wrote: > > On Wed, Jul 17, 2019 at 7:41 AM Park, Aiden wrote: > > > > Slim Bootloader provides memory map info thru its HOB list pointer. > > Configure memory size and relocation memory from the HOB data, and > > provide e820 entries as well. > > -

Re: [U-Boot] [PATCH v5 1/8] x86: Add new slimbootloader CPU type

2019-07-22 Thread Bin Meng
On Mon, Jul 22, 2019 at 11:14 PM Andy Shevchenko wrote: > > On Wed, Jul 17, 2019 at 7:41 AM Park, Aiden wrote: > > > > This slimbootloader cpu type is to enable U-Boot as a payload which > > cpu -> CPU > > > runs on top of Slim Bootloader(https://github.com/slimbootloader). > > The Slim Bootloade

Re: [U-Boot] [PATCH 4/4] net: fec: add fuse check

2019-07-22 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH 4/4] net: fec: add fuse check > > On Thu, Jul 18, 2019 at 10:24 PM Peng Fan wrote: > > > > Add fuse check for fec. If the fuse indicate the module not work in > > the SoC, let's fail the initialization. > > "indicates the module will not work" Fix in V2. > > >

[U-Boot] [PATCH] mmc: sdhci: don't invert present state bits

2019-07-22 Thread Baruch Siach
The MMC_CAP_CD_ACTIVE_HIGH flag describes the physical card-detect signal logic level. Applying it to bits in SDHCI_PRESENT_STATE makes no sense. Fixes: da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect") Cc: T Karthik Reddy Cc: Michal Simek Signed-off-by: Baruch Siach --- This patch appli

Re: [U-Boot] [PATCH v2 2/2] doc: bindings: Add binding for register driven MDIO muxes

2019-07-22 Thread Joe Hershberger
On Tue, Jul 16, 2019 at 3:22 AM Alex Marginean wrote: > > This binding documents two properties that describe the registers used to > perform MUX selection. > > Signed-off-by: Alex Marginean Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lis

Re: [U-Boot] [PATCH v2 6/6] net: phy: fix switch vendor name

2019-07-22 Thread Joe Hershberger
On Tue, Jul 9, 2019 at 6:25 PM Anatolij Gustschin wrote: > > Fix vendor name in MV88E61xx option description. > > Signed-off-by: Anatolij Gustschin Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u

Re: [U-Boot] [PATCH v2 5/6] net: phy: mv88e61xx: register phy_driver struct for 88E6071

2019-07-22 Thread Joe Hershberger
On Tue, Jul 9, 2019 at 6:25 PM Anatolij Gustschin wrote: > > Support probing and init for 88E6071 switch. > > Signed-off-by: Anatolij Gustschin > --- > drivers/net/phy/mv88e61xx.c | 12 > 1 file changed, 12 insertions(+) > > diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy

Re: [U-Boot] [PATCH v2 4/6] net: phy: mv88E61xx: add config option for mv88E6071 support

2019-07-22 Thread Joe Hershberger
On Tue, Jul 9, 2019 at 6:26 PM Anatolij Gustschin wrote: > > MV88E61XX_88E6020_FAMILY option enables support for switch > devices 6250/6220/6020/6070/6071. > > Signed-off-by: Anatolij Gustschin > --- > drivers/net/phy/Kconfig | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/driver

Re: [U-Boot] [PATCH v2 3/6] net: phy: mv88E61xx: fix ENERGY_DET init for mv88E6071

2019-07-22 Thread Joe Hershberger
On Tue, Jul 9, 2019 at 6:24 PM Anatolij Gustschin wrote: > > On mv88E6071 the 'EDet' field offset, width and sense control > bits are different, adjust the driver to init the PHY control > register as needed. This fixes not working link detection and > tftp transfers. Good grief... kind of obnoxi

Re: [U-Boot] [PATCH v10 2/4] net: macb: Fix check for little-endian system in gmac_configure_dma()

2019-07-22 Thread Anup Patel
On Tue, Jul 23, 2019 at 8:55 AM Joe Hershberger wrote: > > On Mon, Jul 22, 2019 at 2:54 AM Anup Patel wrote: > > > > Instead of depending on CONFIG_SYS_LITTLE_ENDIAN, we check at runtime > > whether underlying system is little-endian or big-endian. This way > > we are not dependent on any U-Boot

Re: [U-Boot] [PATCH v10 1/4] net: macb: Extend MACB driver for SiFive Unleashed board

2019-07-22 Thread Anup Patel
On Tue, Jul 23, 2019 at 8:54 AM Joe Hershberger wrote: > > On Mon, Jul 22, 2019 at 2:45 AM Anup Patel wrote: > > > > The SiFive MACB ethernet has a custom TX_CLK_SEL register to select > > different TX clock for 1000mbps vs 10/100mbps. > > > > This patch adds SiFive MACB compatible string and ext

Re: [U-Boot] [PATCH v2 1/6] net: phy: mv88e61xx: rework to enable detection of 88E6071 devices

2019-07-22 Thread Joe Hershberger
On Mon, Jul 22, 2019 at 11:00 PM Joe Hershberger wrote: > > On Tue, Jul 9, 2019 at 6:23 PM Anatolij Gustschin wrote: > > > > Extend the driver to init switch register offsets from variables > > instead of compile time macros and enable 88E6071 detection. > > Ethernet transfer (e.g. tftp) does not

Re: [U-Boot] [PATCH v2 2/6] net: phy: mv88e61xx: add CPU port parameter init for 88E6071

2019-07-22 Thread Joe Hershberger
On Tue, Jul 9, 2019 at 6:25 PM Anatolij Gustschin wrote: > > On 88E6071 chip the port status register bit field offsets > for duplex and link bits differ. Extend the driver to use > 88E6071 specific offset values. The width of bit fields for > speed status differ, too. Adapt for proper port speed

Re: [U-Boot] [PATCH v2 1/6] net: phy: mv88e61xx: rework to enable detection of 88E6071 devices

2019-07-22 Thread Joe Hershberger
On Tue, Jul 9, 2019 at 6:23 PM Anatolij Gustschin wrote: > > Extend the driver to init switch register offsets from variables > instead of compile time macros and enable 88E6071 detection. > Ethernet transfer (e.g. tftp) does not work yet, so enable the > registration of the 'indirect mii' bus for

Re: [U-Boot] [PATCH v3 9/9] Add support for the NXP LS1021A-TSN board

2019-07-22 Thread Joe Hershberger
On Thu, Jul 18, 2019 at 4:36 PM Vladimir Oltean wrote: > > From: Jianchao Wang > > The LS1021A-TSN is a development board built by VVDN/Argonboards in > partnership with NXP. > > It features the LS1021A SoC and the first-generation SJA1105T Ethernet > switch for prototyping implementations of a s

Re: [U-Boot] [PATCH v3 8/9] configs: ls1021atwr: Fix distro_bootcmd for QSPI boot

2019-07-22 Thread Joe Hershberger
On Thu, Jul 18, 2019 at 4:37 PM Vladimir Oltean wrote: > > Due to a typo, "run qspi_bootcmd" and "env exists secureboot" got > concatenated instead of being separated by a semicolon. > > Signed-off-by: Vladimir Oltean > Reviewed-by: Bin Meng Acked-by: Joe Hershberger __

Re: [U-Boot] [PATCH v3 6/9] net: tsec: Change compatible strings to match Linux

2019-07-22 Thread Joe Hershberger
On Thu, Jul 18, 2019 at 4:36 PM Vladimir Oltean wrote: > > In the case of the tsec network driver, so far there has been no > mainline user of DM_ETH where the DT bindings get used. > > In the case of the mdio bus, it looks like the "fsl,tsec-mdio" string > was made up for the documentation, but t

Re: [U-Boot] [PATCH 4/4] net: fec: add fuse check

2019-07-22 Thread Joe Hershberger
On Thu, Jul 18, 2019 at 10:24 PM Peng Fan wrote: > > Add fuse check for fec. If the fuse indicate the module > not work in the SoC, let's fail the initialization. "indicates the module will not work" > > Signed-off-by: Peng Fan > --- > drivers/net/fec_mxc.c | 15 +++ > 1 file chang

Re: [U-Boot] [PATCH v10 2/4] net: macb: Fix check for little-endian system in gmac_configure_dma()

2019-07-22 Thread Joe Hershberger
On Mon, Jul 22, 2019 at 2:54 AM Anup Patel wrote: > > Instead of depending on CONFIG_SYS_LITTLE_ENDIAN, we check at runtime > whether underlying system is little-endian or big-endian. This way > we are not dependent on any U-Boot specific OR compiler specific macro > to check system endianness. >

[U-Boot] [PATCH 13/16] clk: gate: support sandbox

2019-07-22 Thread Peng Fan
Introduce io_gate_val for sandbox clk gate test usage Signed-off-by: Peng Fan --- drivers/clk/clk-gate.c | 11 +++ include/linux/clk-provider.h | 3 +++ 2 files changed, 14 insertions(+) diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index a3a1fdd3b2..70b8794554 100

[U-Boot] [PATCH 16/16] configs: sandbox: Enable composite clk

2019-07-22 Thread Peng Fan
Enable composite clk for sandbox test Signed-off-by: Peng Fan --- configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index f9c9b19b6d..402c6d4e19 100644 --- a/con

[U-Boot] [PATCH 10/16] dm: clk: ignore default settings when node not valid

2019-07-22 Thread Peng Fan
When the device not binded with a node, we need ignore the parents and rate settings. Cc: Simon Glass Cc: Jagan Teki Cc: Philipp Tomsich Cc: Neil Armstrong Cc: Andreas Dannenberg Signed-off-by: Peng Fan --- drivers/clk/clk-uclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driv

[U-Boot] [PATCH 09/16] clk: imx: gate2 add set rate

2019-07-22 Thread Peng Fan
Add set rate for imx clk-gate2 Signed-off-by: Peng Fan --- drivers/clk/imx/clk-gate2.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index 571be32088..1b9db6e791 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/cl

[U-Boot] [PATCH 07/16] clk: fixed_rate: export clk_fixed_rate

2019-07-22 Thread Peng Fan
Export the structure for others to use. Signed-off-by: Peng Fan --- drivers/clk/clk_fixed_rate.c | 8 +--- include/linux/clk-provider.h | 7 +++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c index 1fdf8c4e54..08

Re: [U-Boot] [PATCH v10 1/4] net: macb: Extend MACB driver for SiFive Unleashed board

2019-07-22 Thread Joe Hershberger
On Mon, Jul 22, 2019 at 2:45 AM Anup Patel wrote: > > The SiFive MACB ethernet has a custom TX_CLK_SEL register to select > different TX clock for 1000mbps vs 10/100mbps. > > This patch adds SiFive MACB compatible string and extends the MACB > ethernet driver to change TX clock using TX_CLK_SEL re

Re: [U-Boot] [PATCH v10 4/4] doc: sifive-fu540: Update README to explicitly load DTB for Linux

2019-07-22 Thread Joe Hershberger
On Mon, Jul 22, 2019 at 2:59 AM Anup Patel wrote: > > We should explicitly load DTB from TFTP server or MMC/SD card > for Linux booting. This will allow us: > 1. To use different Linux DTB for SiFive Unleashed board with >expansion board connected. > 2. Avoid re-flashing OpenSBI firmware whene

Re: [U-Boot] [PATCH 00/52] Support i.MX8MM/N

2019-07-22 Thread Peng Fan
> Subject: RE: [U-Boot] [PATCH 00/52] Support i.MX8MM/N > > Hi Lukasz, > > > -Original Message- > > From: Lukasz Majewski [mailto:lu...@denx.de] > > Sent: 2019年7月23日 5:56 > > To: Peng Fan > > Cc: u-boot@lists.denx.de; dl-uboot-imx > > Subject: Re: [U-Boot] [PATCH 00/52] Support i.MX8MM/

[U-Boot] [PATCH 05/16] clk: add clk-gate support

2019-07-22 Thread Peng Fan
Import clk-gate support from Linux Kernel 5.1-rc5 Signed-off-by: Peng Fan --- drivers/clk/Makefile | 2 +- drivers/clk/clk-gate.c | 148 +++ include/linux/clk-provider.h | 18 ++ 3 files changed, 167 insertions(+), 1 deletion(-) creat

[U-Boot] [PATCH 14/16] clk: sandbox: add composite clk

2019-07-22 Thread Peng Fan
Add composite clk to sandbox driver Signed-off-by: Peng Fan --- drivers/clk/clk_sandbox_ccf.c | 80 +++ include/sandbox-clk.h | 1 + 2 files changed, 81 insertions(+) diff --git a/drivers/clk/clk_sandbox_ccf.c b/drivers/clk/clk_sandbox_ccf.c inde

[U-Boot] [PATCH 04/16] clk: export mux/divider ops

2019-07-22 Thread Peng Fan
Export mux/divider ops for composite usage Signed-off-by: Peng Fan --- include/linux/clk-provider.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 7e44045c16..6c6475ea91 100644 --- a/include/linux/clk-provider.h +++ b/include

[U-Boot] [PATCH 08/16] clk: imx: import clk heplers

2019-07-22 Thread Peng Fan
Import some clk helpers from Linux Kernel for i.MX8MM usage Signed-off-by: Peng Fan --- drivers/clk/imx/clk.h | 81 +++ 1 file changed, 81 insertions(+) diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index e6d51830e8..1d480d8722 100644

[U-Boot] [PATCH 12/16] clk-provider: include clk-uclass.h

2019-07-22 Thread Peng Fan
Because clk-provider use clk_ops, so let's include clk-uclass.h Signed-off-by: Peng Fan --- include/linux/clk-provider.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 9c292f555d..32a777d86c 100644 --- a/include/linux/clk-pro

[U-Boot] [PATCH 06/16] clk: divider set rate supporrt

2019-07-22 Thread Peng Fan
Signed-off-by: Peng Fan --- drivers/clk/clk-divider.c | 88 +++ 1 file changed, 88 insertions(+) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 2ed9ed6ab8..822e09b084 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/cl

[U-Boot] [PATCH 11/16] clk: add composite clk support

2019-07-22 Thread Peng Fan
Import clk composite clk support from Linux Kernel 5.1-rc5 Signed-off-by: Peng Fan --- drivers/clk/Kconfig | 14 drivers/clk/Makefile | 1 + drivers/clk/clk-composite.c | 160 +++ include/linux/clk-provider.h | 22 ++ 4 files

[U-Boot] [PATCH 15/16] test: dm: clk_ccf: test composite clk

2019-07-22 Thread Peng Fan
Test composite clk with dm ccf Signed-off-by: Peng Fan --- test/dm/clk_ccf.c | 8 1 file changed, 8 insertions(+) diff --git a/test/dm/clk_ccf.c b/test/dm/clk_ccf.c index 8d397593a3..bbc4b500e8 100644 --- a/test/dm/clk_ccf.c +++ b/test/dm/clk_ccf.c @@ -56,6 +56,14 @@ static int dm_test

[U-Boot] [PATCH 03/16] clk: mux: add set parent support

2019-07-22 Thread Peng Fan
Add set parent support for clk mux Signed-off-by: Peng Fan --- drivers/clk/clk-mux.c| 70 ++-- include/linux/clk-provider.h | 2 ++ 2 files changed, 70 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index

[U-Boot] [PATCH 02/16] clk: use clk_dev_binded

2019-07-22 Thread Peng Fan
Preparing to support composite clk. Signed-off-by: Peng Fan --- drivers/clk/clk-divider.c | 4 ++-- drivers/clk/clk-mux.c | 6 -- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 6921c76a48..2ed9ed6ab8 100644 --- a

[U-Boot] [PATCH 01/16] clk: introduce clk_dev_binded

2019-07-22 Thread Peng Fan
When support Clock Common Framework, U-Boot use dev for clk tree information, there is no clk->parent. When support composite clk, it contains mux/gate/divider, but the mux/gate/divider is not binded with device. So we could not use dev_get_uclass_priv to get the correct clk_mux/gate/divider. So ad

Re: [U-Boot] [PATCH v10 3/4] riscv: sifive: fu540: Sync-up config header with RISC-V QEMU support

2019-07-22 Thread Joe Hershberger
On Mon, Jul 22, 2019 at 2:50 AM Anup Patel wrote: > > We typically use same set of distro images (yocto, debian, fedora, etc.) > on both QEMU RISC-V virt machine and SiFive Unleashed board. > > With growing kernel and ramdisk images, we need to re-adjust default > U-Boot environment variables. The

Re: [U-Boot] [PATCH v7 7/9] riscv: sifive: fu540: Setup ethaddr env variable using OTP

2019-07-22 Thread Joe Hershberger
On Mon, Jul 22, 2019 at 12:46 PM Joey Hewitt wrote: > > On 7/10/19 10:28 PM, Anup Patel wrote: [ ... ] > >> Please take a look at the DM-enabled SiFive OTP driver submitted by Joey > >> Hewitt at https://github.com/sifive/HiFive_U- > >> Boot/commit/6d842765de142b61f847852da7a9ce0d081d770c > >> >

Re: [U-Boot] [PATCH 00/52] Support i.MX8MM/N

2019-07-22 Thread Peng Fan
Hi Lukasz, > -Original Message- > From: Lukasz Majewski [mailto:lu...@denx.de] > Sent: 2019年7月23日 5:56 > To: Peng Fan > Cc: u-boot@lists.denx.de; dl-uboot-imx > Subject: Re: [U-Boot] [PATCH 00/52] Support i.MX8MM/N > > On Thu, 18 Jul 2019 09:12:02 +0200 > Lukasz Majewski wrote: > > >

Re: [U-Boot] [PATCH 2/2] riscv: Access CSRs using CSR numbers

2019-07-22 Thread Rick Chen
Hi Lukas > > From: Auer, Lukas [mailto:lukas.a...@aisec.fraunhofer.de] > > Sent: Thursday, July 18, 2019 4:53 PM > > To: Rick Jian-Zhi Chen(陳建志); u-boot@lists.denx.de; bmeng...@gmail.com; > > anup.pa...@wdc.com > > Subject: Re: [PATCH 2/2] riscv: Access CSRs using CSR numbers > > > > Hi Bin, > > >

[U-Boot] [PATCH] armv8: ls1028ardb: enable DisplayPort Power support

2019-07-22 Thread Wen He
Enable DP_PWR signal to power the DP to HDMI converter cable. Signed-off-by: Wen He --- include/configs/ls1028a_common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/ls1028a_common.h b/include/configs/ls1028a_common.h index 41ce4a054c..25fc548c99 100644 --- a/include/co

Re: [U-Boot] [PATCH 2/4] doc: bindings: add mdio.txt describing generic MDIO properties

2019-07-22 Thread Joe Hershberger
On Wed, Jul 17, 2019 at 10:11 AM Alex Marginean wrote: > > Adds a binding document for mdio. A notable deviation from corresponding > Linux binding is the introduction of device-name optional property, which > can be used to name MDIO buses. Two reset optional properties described > by Linux bin

Re: [U-Boot] [PATCH 4/4] arm: dts: Set custom names for cp110 master/slave MDIO buses

2019-07-22 Thread Joe Hershberger
On Wed, Jul 17, 2019 at 10:12 AM Alex Marginean wrote: > > Implicitly Marvell MDIO driver uses DT node names for devices, but in this > case that is not unique. Set MDIO device names for master/slave to > cpm/cps. > > Signed-off-by: Alex Marginean Acked-by: Joe Hershberger

Re: [U-Boot] [PATCH 3/4] drivers: net: add marvell MDIO driver

2019-07-22 Thread Joe Hershberger
On Wed, Jul 17, 2019 at 10:12 AM Alex Marginean wrote: > > This patch adds a separate driver for the MDIO interface of the > Marvell Ethernet controllers based on driver model. There are two > reasons to have a separate driver rather than including it inside > the MAC driver itself: > *) The MDI

Re: [U-Boot] [PATCH 1/4] net: mdio-uclass: name MDIO according to device-name property if preset

2019-07-22 Thread Joe Hershberger
On Wed, Jul 17, 2019 at 10:11 AM Alex Marginean wrote: > > Use the optional property device-name to name the MDIO bus. This works > around limitations with using the DT node name on devices such as > Armada-8040, which integrates two cp100 cores, both featuring MDIOs at the > same relative offset

Re: [U-Boot] [PATCH v3 0/9] NXP LS1021A-TSN Board

2019-07-22 Thread Joe Hershberger
On Thu, Jul 18, 2019 at 4:33 PM Vladimir Oltean wrote: > > This patchset adds initial support for the NXP LS1021A-TSN board, > an evaluation platform built in partnership with VVDN/Argonboards > for some IEEE 802.1 TSN features. > > It features a cleaned-up U-Boot board support taken from OpenIL,

Re: [U-Boot] [PATCH] net: sun8i_emac: Test the correct phy

2019-07-22 Thread Joe Hershberger
On Fri, Jul 19, 2019 at 3:27 PM Emmanuel Vadot wrote: > > H3/H5 can either use the internal phy or an external one. > Before getting clock and resets for the internal phy, > test that we are using it because otherwise it break emac > when using an external phy. > > Tested-on: OrangePi PC2 (H5) > F

Re: [U-Boot] [PATCH v4 1/3] net: introduce packet capture support

2019-07-22 Thread Joe Hershberger
On Thu, Jul 18, 2019 at 1:44 PM Ramon Fried wrote: > > Add support for capturing ethernet packets and storing > them in memory in PCAP(2.4) format, later to be analyzed by > any PCAP viewer software (IE. Wireshark) > > This feature greatly assist debugging network issues such > as detecting droppe

Re: [U-Boot] [PATCH v4 3/3] configs: sandbox: enable PCAP capture cmd

2019-07-22 Thread Joe Hershberger
On Thu, Jul 18, 2019 at 1:44 PM Ramon Fried wrote: > > Enable CONFIG_CMD_PCAP for testing PCAP capture. > > Signed-off-by: Ramon Fried Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] drivers: net: fsl_enetc: add support for SGMII 2500

2019-07-22 Thread Joe Hershberger
On Mon, Jul 15, 2019 at 3:49 AM Alex Marginean wrote: > > SGMII 2500 as supported on NXP SoCs requires AN to be disabled, handle > this case in the enetc sgmii init code. > > Signed-off-by: Alex Marginean In the future, please make sure to mention any dependencies on outstanding patches. Acked-

Re: [U-Boot] [PATCH] net: designware: use 'phy_connect' instead of open coded

2019-07-22 Thread Joe Hershberger
On Mon, Jul 15, 2019 at 2:53 PM Simon Goldschmidt wrote: > > Using 'phy_connect' instead of 'phy_find_by_mask' and 'phy_connect_dev' > both deduplicates code and adds support for 'fixed-link'. > > Signed-off-by: Simon Goldschmidt Acked-by: Joe Hershberger ___

Re: [U-Boot] [PATCH v4 6/6] configs: ls1028a: enable networking options in rdb, qds defconfig

2019-07-22 Thread Joe Hershberger
On Wed, Jul 3, 2019 at 4:14 AM Alex Marginean wrote: > > Enables ethernet, MDIO, PHY drivers for LS1028A RDB and QDS. > > Signed-off-by: Alex Marginean > Reviewed-by: Bin Meng Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de htt

Re: [U-Boot] [PATCH v4 5/6] arm: dts: ls1028a updates for network interfaces

2019-07-22 Thread Joe Hershberger
On Wed, Jul 3, 2019 at 4:12 AM Alex Marginean wrote: > > Defines LS1028A RDB SGMII port, QDS RGMII port. > > Signed-off-by: Alex Marginean > Reviewed-by: Bin Meng Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.de

Re: [U-Boot] [PATCH v4 4/6] drivers: net: apply serdes configuration for ENETC Ethernet interfaces

2019-07-22 Thread Joe Hershberger
On Wed, Jul 3, 2019 at 4:13 AM Alex Marginean wrote: > > Ethernet interfaces using serial protocols go through the serdes block > integrated in the SoC. This is accessed over dedicated internal MDIOs > which are part of the Ethernet PCI functions. Set up serdes at _start, > along with other prot

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-22 Thread Pablo Sebastián Greco
El 22/7/19 a las 12:15, Peter Robinson escribió: On Mon, Jul 22, 2019 at 2:36 PM Tom Rini wrote: On Sun, Jul 21, 2019 at 10:46:24AM +0100, Peter Robinson wrote: On Fri, Jul 19, 2019 at 7:28 PM Heinrich Schuchardt wrote: In GRUB before 2.04 a bug existed which did not allow booting some ARM3

[U-Boot] Remote code execution vulnerabilities in U-Boot's NFS and other IP parsing code

2019-07-22 Thread Fermín Serna
Hello, Find attached more information about 13 vulnerabilities we found at U-Boot and its NFS and networking code. Also, find attached a proposed quick patch that should serve as a first initial one and should probably go through iterations of code review. Please note, these vulnerabilities are n

Re: [U-Boot] [PATCH v4 3/6] drivers: net: add NXP ENETC MDIO driver

2019-07-22 Thread Joe Hershberger
On Wed, Jul 3, 2019 at 4:15 AM Alex Marginean wrote: > > Adds a driver for the MDIO interface currently integrated in LS1028A SoC. > This MDIO interface is shared by multiple ethernet interfaces and is > presented as a stand-alone PCI function on the SoC ECAM. > Ethernet has a functional dependenc

Re: [U-Boot] [PATCH v4 2/6] drivers: net: add NXP ENETC ethernet driver

2019-07-22 Thread Joe Hershberger
On Wed, Jul 3, 2019 at 4:13 AM Alex Marginean wrote: > > Adds a driver for NXP ENETC ethernet controller currently integrated in > LS1028A. ENETC is a fairly straight-forward BD ring device and interfaces > are presented as PCI EPs on the SoC ECAM. > > Signed-off-by: Catalin Horghidan > Signed-o

Re: [U-Boot] [PATCH v4 1/6] include: configs: ls1028a: set SYS_RX_ETH_BUFFER to 8

2019-07-22 Thread Joe Hershberger
On Wed, Jul 3, 2019 at 4:14 AM Alex Marginean wrote: > > LS1028A ethernet interfaces work with at least 8 BDs, set number of buffers > to match that. > > Signed-off-by: Alex Marginean > Reviewed-by: Bin Meng Acked-by: Joe Hershberger ___ U-Boot maili

Re: [U-Boot] [PATCH v2] net: davinci_emac: convert to using the driver model

2019-07-22 Thread Joe Hershberger
On Mon, Jun 24, 2019 at 9:22 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > Now that we removed all legacy boards selecting TI_EMAC we can > completely convert the driver code to using the driver model. > This patch also updates all remaining users of davinci_emac. > > Signed-off

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-22 Thread Tom Rini
On Mon, Jul 22, 2019 at 09:29:21PM +0200, Mark Kettenis wrote: > > Date: Mon, 22 Jul 2019 09:36:38 -0400 > > From: Tom Rini > > > > On Sun, Jul 21, 2019 at 10:46:24AM +0100, Peter Robinson wrote: > > > > >>> On Fri, Jul 19, 2019 at 7:28 PM Heinrich Schuchardt > > > > >>> wrote: > > > > > >

Re: [U-Boot] [PATCH 00/52] Support i.MX8MM/N

2019-07-22 Thread Lukasz Majewski
On Thu, 18 Jul 2019 09:12:02 +0200 Lukasz Majewski wrote: > Hi Peng, > > > Hi Lukasz, Stefano, > > > > > > > > > > > > > > Subject: Re: [U-Boot] [PATCH 00/52] Support i.MX8MM/N > > [] > > > > > > > > > > The v5 of CCF has been posted ~2 weeks ago (with you on CC) > > > > > with

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-22 Thread Pablo Sebastián Greco
El 22/7/19 a las 12:15, Peter Robinson escribió: On Mon, Jul 22, 2019 at 2:36 PM Tom Rini wrote: On Sun, Jul 21, 2019 at 10:46:24AM +0100, Peter Robinson wrote: On Fri, Jul 19, 2019 at 7:28 PM Heinrich Schuchardt wrote: In GRUB before 2.04 a bug existed which did not allow booting some ARM3

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-07-22 Thread Fabio Estevam
Hi Lukasz, On Mon, Jul 22, 2019 at 5:52 PM Lukasz Majewski wrote: > This patch seems to be already applied to master branch of U-Boot: > SHA1: 2c72ead7387404eba16c556d2f204c52c36c27f9 Excellent! Thanks ___ U-Boot mailing list U-Boot@lists.denx.de http

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-07-22 Thread Lukasz Majewski
Hi Fabio, Stefano, > Hi Lukasz and Stefano, > > On Tue, Jun 11, 2019 at 10:53 AM Lukasz Majewski > wrote: > > > > Hi Fabio, Stefano, > > > > > Hi Stefano, > > > > > > On Tue, Jun 11, 2019 at 10:11 AM Stefano Babic > > > wrote: > > > > I have no comments, but from the discussion I felt there

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-22 Thread Mark Kettenis
> Date: Mon, 22 Jul 2019 09:36:38 -0400 > From: Tom Rini > > On Sun, Jul 21, 2019 at 10:46:24AM +0100, Peter Robinson wrote: > > > >>> On Fri, Jul 19, 2019 at 7:28 PM Heinrich Schuchardt > > > >>> wrote: > > > > > > In GRUB before 2.04 a bug existed which did not allow booting some >

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-22 Thread Tom Rini
On Mon, Jul 22, 2019 at 09:07:40PM +0200, Heinrich Schuchardt wrote: > On 7/22/19 9:02 PM, Tom Rini wrote: > >On Mon, Jul 22, 2019 at 08:51:41PM +0200, Heinrich Schuchardt wrote: > >>On 7/22/19 3:36 PM, Tom Rini wrote: > >>>On Sun, Jul 21, 2019 at 10:46:24AM +0100, Peter Robinson wrote: > O

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-22 Thread Heinrich Schuchardt
On 7/22/19 9:02 PM, Tom Rini wrote: On Mon, Jul 22, 2019 at 08:51:41PM +0200, Heinrich Schuchardt wrote: On 7/22/19 3:36 PM, Tom Rini wrote: On Sun, Jul 21, 2019 at 10:46:24AM +0100, Peter Robinson wrote: On Fri, Jul 19, 2019 at 7:28 PM Heinrich Schuchardt wrote: In GRUB before 2.04 a bug e

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-22 Thread Tom Rini
On Mon, Jul 22, 2019 at 08:51:41PM +0200, Heinrich Schuchardt wrote: > On 7/22/19 3:36 PM, Tom Rini wrote: > >On Sun, Jul 21, 2019 at 10:46:24AM +0100, Peter Robinson wrote: > >>On Fri, Jul 19, 2019 at 7:28 PM Heinrich Schuchardt > >> wrote: > >>> > >>>In GRUB before 2.04 a bug exi

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-22 Thread Mark Kettenis
> From: Heinrich Schuchardt > Date: Sat, 20 Jul 2019 13:23:13 +0200 > > On 7/20/19 1:59 AM, Jonathan Gray wrote: > > On Fri, Jul 19, 2019 at 08:25:45PM +0200, Heinrich Schuchardt wrote: > >> In GRUB before 2.04 a bug existed which did not allow booting some ARM32 > >> boards if U-Boot did not dis

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-22 Thread Heinrich Schuchardt
On 7/22/19 3:36 PM, Tom Rini wrote: On Sun, Jul 21, 2019 at 10:46:24AM +0100, Peter Robinson wrote: On Fri, Jul 19, 2019 at 7:28 PM Heinrich Schuchardt wrote: In GRUB before 2.04 a bug existed which did not allow booting some ARM32 boards if U-Boot did not disable caches, cf. https://lists.li

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-07-22 Thread Fabio Estevam
Hi Lukasz and Stefano, On Tue, Jun 11, 2019 at 10:53 AM Lukasz Majewski wrote: > > Hi Fabio, Stefano, > > > Hi Stefano, > > > > On Tue, Jun 11, 2019 at 10:11 AM Stefano Babic wrote: > > > > > I have no comments, but from the discussion I felt there are still > > > some issues and I left it over.

Re: [U-Boot] [PATCH 3/3] board: amlogic: add support for Odroid-N2

2019-07-22 Thread Anand Moon
Hi Neil, On Mon, 22 Jul 2019 at 16:00, Neil Armstrong wrote: > > ODROID-N2 is a single board computer manufactured by Hardkernel Co. Ltd > with the following specifications: > > - Amlogic S922X ARM Cortex-A53 dual-core + Cortex-A73 quad-core SoC > - 4GB DDR4 SDRAM > - Gigabit Ethernet > - HDM

Re: [U-Boot] [PATCH v5 0/8] x86: Add basic Slim Bootloader payload support

2019-07-22 Thread Andy Shevchenko
On Mon, Jul 22, 2019 at 9:27 AM Bin Meng wrote: > On Mon, Jul 22, 2019 at 1:13 PM Park, Aiden wrote: > > > -Original Message- > > Any update on this series? I hope this will be merged soon. Thanks. > > Yes, I plan to merge this series for v2019.10 release. > > But I want to wait for Andy

Re: [U-Boot] Move setup_led() in SPL to U-Boot proper?

2019-07-22 Thread Simon Glass
Hi, On Sat, 20 Jul 2019 at 23:53, Kever Yang wrote: > > Hi Simon, > > I'm trying to clean up board support file for Rockchip platform now. > > There is a setup_led() in SPL, and seems that only rk3288-firefly and > rk3188-rock > > are using it, is it possible to move this led setup in U-Boot

Re: [U-Boot] [PATCH v5 3/8] x86: slimbootloader: Add memory configuration

2019-07-22 Thread Andy Shevchenko
On Wed, Jul 17, 2019 at 7:41 AM Park, Aiden wrote: > > Slim Bootloader provides memory map info thru its HOB list pointer. > Configure memory size and relocation memory from the HOB data, and > provide e820 entries as well. > - Get memory size from the memory map info hob > - Set ram top for U-Boo

[U-Boot] [PATCH] mmc: sdhci: fix chip detect gpio property name

2019-07-22 Thread Baruch Siach
The standard property name for chip-detect gpio is "cd-gpios". All in-tree DT files use only this name. Fixes: 451931ea700 ("mmc: sdhci: Read cd-gpio from devicetree") Cc: T Karthik Reddy Cc: Michal Simek Signed-off-by: Baruch Siach --- drivers/mmc/sdhci.c | 2 +- 1 file changed, 1 insertion(+

[U-Boot] [PATCH] mmd: sdhci: fix non GPIO card detect

2019-07-22 Thread Baruch Siach
Some SD cards do not assert the SDHCI_CARD_PRESENT bit. Only the SDHCI_CARD_DETECT_PIN_LEVEL is enabled. Consider that enough for card detect indication. This fixes SD card access from SPL, since DM_GPIO is not available in SPL code. Fixes: da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect")

Re: [U-Boot] [PATCH 1/1] efi_loader: remove efi_exit_caches()

2019-07-22 Thread Peter Robinson
On Mon, Jul 22, 2019 at 2:36 PM Tom Rini wrote: > > On Sun, Jul 21, 2019 at 10:46:24AM +0100, Peter Robinson wrote: > > > >>> On Fri, Jul 19, 2019 at 7:28 PM Heinrich Schuchardt > > > >>> wrote: > > > > > > In GRUB before 2.04 a bug existed which did not allow booting some > > >

Re: [U-Boot] [PATCH v10 4/4] doc: sifive-fu540: Update README to explicitly load DTB for Linux

2019-07-22 Thread Bin Meng
On Mon, Jul 22, 2019 at 3:38 PM Anup Patel wrote: > > We should explicitly load DTB from TFTP server or MMC/SD card > for Linux booting. This will allow us: > 1. To use different Linux DTB for SiFive Unleashed board with >expansion board connected. > 2. Avoid re-flashing OpenSBI firmware whene

[U-Boot] [PATCH] mmc: mv_sdhci: fix uninitialized pointer deref on probe

2019-07-22 Thread Baruch Siach
Since commit 3d296365e4e8 ("mmc: sdhci: Add support for sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc field. Move the mmc field initialization before sdhci_setup_cfg() call to avoid crash on mmc pointer dereference. Fixes: 3d296365e4e8 ("mmc: sdhci: Add support for sdhci-caps-

Re: [U-Boot] [PATCH 1/3] ARM: dts: add support for Odroid-N2

2019-07-22 Thread Anand Moon
Hi Neil, On Mon, 22 Jul 2019 at 15:50, Neil Armstrong wrote: > > Import HardKernel Odroid-N2 DT from Linux 5.3-rc1, commit 5f9e832c1370 > ("Linus 5.3-rc1") based on an Amlogic G12B S922X SoC. > > Signed-off-by: Neil Armstrong > --- > arch/arm/dts/Makefile | 3 +- > arc

Re: [U-Boot] [PATCH v5 7/8] board: intel: Add new slimbootloader board

2019-07-22 Thread Andy Shevchenko
On Wed, Jul 17, 2019 at 7:42 AM Park, Aiden wrote: > > Add slimbootloader board to run U-boot as a Slim Bootloader payload > - Add new board/intel/slimbootloader directory with minimum codes > - Add slimbootloader configuration files > - Add README in board/intel/slimbootloader > board/intel/sli

  1   2   3   >