[PATCH 1/2] spl: Kconfig: Replace CONFIG_SPL_NET_SUPPORT with CONFIG_SPL_NET

2020-01-27 Thread Nathan Rossi
Replace CONFIG_SPL_NET_SUPPORT with CONFIG_SPL_NET to match CONFIG_NET so that CONFIG_$(SPL_)NET can be used to conditionally select build objects between SPL and U-Boot. Signed-off-by: Nathan Rossi --- common/Makefile | 2 +- common/spl/Kconfig |

[PATCH 2/2] net: Handle CONFIG_(SPL_)NET for conditional components

2020-01-27 Thread Nathan Rossi
Use CONFIG_$(SPL_)NET to conditionally select object files depending on the SPL or U-Boot specific configuration. Signed-off-by: Nathan Rossi --- net/Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/Makefile b/net/Makefile index fef71b940a..8e45103168 1

Re: [PATCH] net: Handle disabling of compilation for SPL builds

2020-01-27 Thread Nathan Rossi
On Tue, 28 Jan 2020 at 02:51, Tom Rini wrote: > > On Mon, Jan 27, 2020 at 12:40:17PM +, Nathan Rossi wrote: > > > Whilst the net/ directory is excluded from libs-y when > > CONFIG_SPL_NET_SUPPORT is disabled, this does not prevent SPL builds > > trying to compile net/ objects. During SPL build

Re: [PATCH] usb: gadget: Handle SPL_* configs

2020-01-27 Thread Nathan Rossi
On Mon, 27 Jan 2020 at 22:51, Lukasz Majewski wrote: > > Hi Nathan, > > > Handle selection of objects based on $(SPL_) to allow for normal and > > SPL builds to have differing object compilation. > > Could you share the exact use case? I do guess that you want to add > some gadget(s) to SPL? I am

Re: [PATCH v5 12/12] arm: mvebu: clearfog: Use Pro DT by default

2020-01-27 Thread Joel Johnson
On 2020-01-27 23:17, Baruch Siach wrote: Hi Joel, On Mon, Jan 27, 2020 at 01:01:56PM -0700, Joel Johnson wrote: Switch to explicitly using the Pro variant DT, which has been available since Linux 4.11. --- v4 changes: - new v5 changes: - none I separated out this change to the end of the

Re: [PATCH v5 06/12] arm: mvebu: clearfog: Add SATA mode flags

2020-01-27 Thread Joel Johnson
On 2020-01-27 23:06, Baruch Siach wrote: Hi Joel, On Mon, Jan 27, 2020 at 01:01:50PM -0700, Joel Johnson wrote: --- a/board/solidrun/clearfog/Kconfig +++ b/board/solidrun/clearfog/Kconfig + +config CLEARFOG_CON2_SATA + bool "Use CON2 slot in SATA mode" + depends on !TARGET_CLEARFOG_

Re: [PATCH v5 12/12] arm: mvebu: clearfog: Use Pro DT by default

2020-01-27 Thread Baruch Siach
Hi Joel, On Mon, Jan 27, 2020 at 01:01:56PM -0700, Joel Johnson wrote: > Switch to explicitly using the Pro variant DT, which has been > available since Linux 4.11. > > --- > > v4 changes: > - new > v5 changes: > - none > > I separated out this change to the end of the series since it drew

Re: [PATCH v5 06/12] arm: mvebu: clearfog: Add SATA mode flags

2020-01-27 Thread Baruch Siach
Hi Joel, On Mon, Jan 27, 2020 at 01:01:50PM -0700, Joel Johnson wrote: > The mPCIe slots on ClearFog Pro and ClearFog Base may be alternately > configured for SATA usage. > > Signed-off-by: Joel Johnson > > --- > > v2 changes: > - fixed help indentation > v3 changes: > - none > v4 changes:

Re: [PATCH 0/3] Support SDMA mode on RPI4 target - 32bit

2020-01-27 Thread Jaehoon Chung
On 1/27/20 9:53 PM, Peng Fan wrote: >> Subject: [PATCH 0/3] Support SDMA mode on RPI4 target - 32bit >> >> RPI4's SDHCI controller is supported SDMA mode. (Checked on kernel side) >> But It doesn't use on u-boot side. Then it's too slow about read/write >> performance. >> This patchset is supported

RE: [U-Boot Patch v1 6/7] nor: add post bfpt fix handler for is25wp256 device

2020-01-27 Thread Sagar Kadam
Hi Vignesh, > -Original Message- > From: Vignesh Raghavendra > Sent: Monday, January 27, 2020 10:48 AM > To: Sagar Kadam ; u-boot@lists.denx.de > Cc: Paul Walmsley ( Sifive) ; > anup.pa...@wdc.com; atish.pa...@wdc.com; ja...@amarulasolutions.com; > Rick Chen > Subject: Re: [U-Boot Patch

Re: [PATCH v3] Add support for SoM "VoCore2".

2020-01-27 Thread Weijie Gao
Hi Mauro, (This is my personal mail account.) Please don't copy and paste from my out-of-date patches. You are copying code from v1 https://patchwork.ozlabs.org/patch/1154190/ which has already been replaced by v3 https://patchwork.ozlabs.org/patch/1167073/ SInce v3 is the mainline version, yo

Re: Pull request: u-boot-rockchip-20200120

2020-01-27 Thread Tom Rini
On Tue, Jan 28, 2020 at 10:46:41AM +0800, Chen-Yu Tsai wrote: > On Tue, Jan 28, 2020 at 2:32 AM Tom Rini wrote: > > > > On Mon, Jan 27, 2020 at 11:25:16PM +0530, Jagan Teki wrote: > > > Hi Tom, > > > > > > On Thu, Jan 23, 2020 at 11:30 PM Tom Rini wrote: > > > > > > > > On Mon, Jan 20, 2020 at 10

Re: Pull request: u-boot-rockchip-20200120

2020-01-27 Thread Chen-Yu Tsai
On Tue, Jan 28, 2020 at 2:32 AM Tom Rini wrote: > > On Mon, Jan 27, 2020 at 11:25:16PM +0530, Jagan Teki wrote: > > Hi Tom, > > > > On Thu, Jan 23, 2020 at 11:30 PM Tom Rini wrote: > > > > > > On Mon, Jan 20, 2020 at 10:30:07AM +0800, Kever Yang wrote: > > > > > > > Hi Tom, > > > > > > > > Please

Re: [U-Boot, 3/3] pmic: allow dump command for non contiguous register maps

2020-01-27 Thread Tom Rini
On Tue, Jan 14, 2020 at 03:56:18PM +, Ian Ray wrote: > From: Martin Fuzzey > > Some PMICs (such as the DA9063) have non-contiguous register maps. > Attempting to read the non implemented registers returns an error > rather than a dummy value which causes 'pmic dump' to terminate > prematurel

Re: [U-Boot] rtc: s35392a: encode command correctly

2020-01-27 Thread Tom Rini
On Tue, Jan 14, 2020 at 04:18:20PM +, Ian Ray wrote: > The 3-bit "command", or register, is encoded within the device address. > Configure the device accordingly, and pass command in DM I2C read/write > calls correctly. > > Signed-off-by: Ian Ray > Signed-off-by: Robert Beckett Applied to

Re: [U-Boot, 1/3] power: pmic: add driver for Dialog DA9063 PMIC

2020-01-27 Thread Tom Rini
On Tue, Jan 14, 2020 at 03:56:16PM +, Ian Ray wrote: > From: Martin Fuzzey > > This adds the basic register access operations and child regulator > binding (if a regulator driver exists). > > Robert Beckett: simplify accesses by using bottom bit of address as > offset overflow. This avoids

Re: [U-Boot, 2/3] power: regulator: add driver for Dialog DA9063 PMIC

2020-01-27 Thread Tom Rini
On Tue, Jan 14, 2020 at 03:56:17PM +, Ian Ray wrote: > From: Martin Fuzzey > > Add a driver for the regulators in the the DA9063 PMIC. > > Robert Beckett: move regulator modes to header so board code can set > modes. Correct mode mask used in ldo_set_mode. > Add an option CONFIG_SPL_DM_REGU

Re: [PATCH v2 2/2] tbs2910: add custom CONFIG_OF_REMOVE_PROPS list to defconfig

2020-01-27 Thread Tom Rini
On Sun, Jan 12, 2020 at 03:57:43PM +0100, Anatolij Gustschin wrote: > This shrinks the image size: all -3840.0 text -3840.0 > > Signed-off-by: Anatolij Gustschin > Acked-by: Soeren Moch Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 1/2] dts: add property removal option CONFIG_OF_REMOVE_PROPS

2020-01-27 Thread Tom Rini
On Sun, Jan 12, 2020 at 03:57:42PM +0100, Anatolij Gustschin wrote: > This can be used for device tree size reduction similar as > CONFIG_OF_SPL_REMOVE_PROPS option. Some boards must pass the > built-in DTB unchanged to the kernel, thus we may not cut it > down unconditionally. Therefore enable th

Re: [PATCH 3/3] cmd: sata: Add block unbind device function

2020-01-27 Thread Tom Rini
On Wed, Dec 04, 2019 at 10:36:47AM +, Peng Ma wrote: > If we didn't unbind the sata from block device, the same devices would > be added after sata remove, > This patch is to resolve this issue as below: > > => sata info > SATA#0: > (3.0 Gbps) > SATA#1: > (3.0 Gbps) > Device 0: Mo

[PATCH v2 5/5] sunxi: Pine H64: Enable SPI booting in defconfig

2020-01-27 Thread Andre Przywara
The Pine H64 board comes with some onboard SPI flash chip, which is perfect for loading SPL, ATF and U-Boot proper from there. Enable the functionality in the defconfig, so that we use sunxi-fel to transfer a bootable image to the NOR flash. Signed-off-by: Andre Przywara --- configs/pine_h64_de

[PATCH v2 3/5] sunxi: SPL SPI: Add SPI boot support for the Allwinner R40 SoC

2020-01-27 Thread Andre Przywara
Now that we can easily select an SoC specific SPI0 base address, adding support for the Allwinner R40 is fairly trivial: We set the base address, add this SoC to the ones that use PC23 and enable it in Kconfig. This allows booting from SPI flash on R40 boards. Tested on a Bananapi M2 Berry with S

[PATCH v2 1/5] sunxi: SPL SPI: Split off SPI0 base address

2020-01-27 Thread Andre Przywara
So far on all supported Allwinner SoCs we find the old generation SPI controller always at address 0x1c05000, and the new generation one at 0x1c68000. However the Allwinner R40 SoC has a new generation SPI at the old address, and the H6 uses a completely different address. So split off the base ad

[PATCH v2 4/5] sunxi: SPL SPI: Add SPI boot support for the Allwinner H6 SoC

2020-01-27 Thread Andre Przywara
The Allwinner H6 SoC uses a quite different memory map, also changes the clocks quite a bit. This requires some changes to the SPL SPI routine, which hardcodes these values so far. Using the just introduced helper functions to determine base address and SPI controller generation, we can cover some

[PATCH v2 2/5] sunxi: SPL SPI: Introduce is_sun6i_gen_spi()

2020-01-27 Thread Andre Przywara
So far we were using the CONFIG_SUNXI_GEN_SUN6I symbol to select between the two SPI controller generations used on Allwinner SoCs. This is a convenience symbol to roughly differentiate between "older" and "newer" generation of SoCs. The H6 SoCs is the newest SoC so far, but is sufficiently differ

[PATCH v2 0/5] sunxi: SPL SPI booting: Enable R40 and H6 SoCs

2020-01-27 Thread Andre Przywara
This series enables the SPI booting feature for Allwinner R40 and H6 SoCs. To achieve this, we enable our spl_spi_sunxi.c driver to deal with those two SoCs. The R40 is pretty straightforward, as it just needs its base address adjusted. This is prepared in patch 1/5 and finalised in patch 3/5. For

Re: [PATCH v2 01/11] clk: Always use the supplied struct clk

2020-01-27 Thread Lukasz Majewski
Hi Sean, > Hi Lukasz, > > Thanks for the feedback. > > On 1/26/20 4:20 PM, Lukasz Majewski wrote: > > Hi Sean, > > > >> CCF clocks should always use the struct clock passed to their > >> methods for extracting the driver-specific clock information > >> struct. > > > > This couldn't be done

Re: [PATCH v4 1/2] Kconfig: add btrfs to distro boot

2020-01-27 Thread Tom Rini
On Tue, Jan 28, 2020 at 12:26:45AM +0100, Marek Behun wrote: > On Mon, 27 Jan 2020 16:58:06 -0500 > Tom Rini wrote: > > > This adds around 60kb to many platforms, so I'm not going to take this > > right now. > > Off topic: I was wondering how much space could be saved if it were > possible to u

Re: [PATCH v4 1/2] Kconfig: add btrfs to distro boot

2020-01-27 Thread Marek Behun
On Mon, 27 Jan 2020 16:58:06 -0500 Tom Rini wrote: > This adds around 60kb to many platforms, so I'm not going to take this > right now. Off topic: I was wondering how much space could be saved if it were possible to use -Os with LTO in U-Boot.

Re: [PATCH v4 0/6] Raspberry Pi4: add support for DFU over USB

2020-01-27 Thread Lukasz Majewski
Hi Matthias, Do you plan to pull this patch series to RPI repository? I'm asking as it contains some DFU related patches (Acked already by me), which I would like to see pulled in this merge window. Thanks in advance for your help :-) > Hi All! > > This patchset enables support for DFU over U

Re: [PATCH v4 1/2] Kconfig: add btrfs to distro boot

2020-01-27 Thread Tom Rini
On Fri, Jan 17, 2020 at 08:59:02PM +0100, matthias@kernel.org wrote: > From: Matthias Brugger > > Some distributions use btrfs as the default file system. > Enable btrfs support by default when using distro boot for all > architectures but riscv, as it breaks compilation due to size problems

[PATCH] riscv: Remove unnecessary instruction

2020-01-27 Thread Sean Anderson
The add instruction on risc-v can have any three sources and targets, so there is no need for an intermediate mov. Signed-off-by: Sean Anderson --- arch/riscv/cpu/start.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S inde

Re: [RFC] azure: Move to vs2017-win2016 platform build host

2020-01-27 Thread Tom Rini
On Mon, Jan 27, 2020 at 10:33:42PM +0100, Simon Goldschmidt wrote: > Tom Rini schrieb am Mo., 27. Jan. 2020, 22:23: > > > Azure is moving to remove the vs2015-win2012r2 platform build host. The > > two suggested new platforms to use are vs2017-win2016 and windows-2019. > > For now, move up to vs

Re: [RFC] azure: Move to vs2017-win2016 platform build host

2020-01-27 Thread Simon Goldschmidt
Tom Rini schrieb am Mo., 27. Jan. 2020, 22:23: > Azure is moving to remove the vs2015-win2012r2 platform build host. The > two suggested new platforms to use are vs2017-win2016 and windows-2019. > For now, move up to vs2017-win2016. > > Cc: Bin Meng > Signed-off-by: Tom Rini > --- > I'm sendin

[RFC] azure: Move to vs2017-win2016 platform build host

2020-01-27 Thread Tom Rini
Azure is moving to remove the vs2015-win2012r2 platform build host. The two suggested new platforms to use are vs2017-win2016 and windows-2019. For now, move up to vs2017-win2016. Cc: Bin Meng Signed-off-by: Tom Rini --- I'm sending this as RFC as it fails to build for i686 but builds for x86_6

[PATCH v5 09/12] arm: mvebu: enable working default boot support

2020-01-27 Thread Joel Johnson
With the move to driver model usage, ensure that the required driver support for SPI and MMC booting is available in SPL. Tested on SolidRun ClearFog devices. Signed-off-by: Joel Johnson --- v2 changes: - change "select" for ENV_IS_IN_X to "imply" to allow disabling the default env locati

[PATCH v5 11/12] arm: mvebu: clearfog: don't always use SPL MMC

2020-01-27 Thread Joel Johnson
Move MMC booting assuptions from defconfig to Kconfig which includes as needed based on dependent options. Signed-off-by: Joel Johnson --- v2 changes: - rebased on master to use Baruch's dynamic MMC/SD offset logic - update description, will revisit removal of CONFIG_MVEBU_SPL_BOOT_DEVIC

[PATCH v5 12/12] arm: mvebu: clearfog: Use Pro DT by default

2020-01-27 Thread Joel Johnson
Switch to explicitly using the Pro variant DT, which has been available since Linux 4.11. --- v4 changes: - new v5 changes: - none I separated out this change to the end of the series since it drew questioning on prior review. I'd still advocate for making the change, since especially with t

[PATCH v5 10/12] arm: mvebu: clearfog: move ENV params to Kconfig

2020-01-27 Thread Joel Johnson
Migrate the values for ENV_SIZE and ENV_OFFSET into board specific Kconfig defaults so they're more accessible for configuration. --- v2 changes: - none v3 changes: - none v4 changes: - none v5 changes: - none Signed-off-by: Joel Johnson --- board/solidrun/clearfog/Kconfig | 8

[PATCH v5 08/12] arm: mvebu: clearfog: add SPI offsets

2020-01-27 Thread Joel Johnson
Add reasonable default SPI offsets and ENV size when configured to boot from SPI flash. Signed-off-by: Joel Johnson --- v2 changes: - none v3 changes: - none v4 changes: - none v5 changes: - none There was some reasonable concern raised about duplicating config entries within a board s

[PATCH v5 07/12] arm: mvebu: clearfog: Unify DT selection paths

2020-01-27 Thread Joel Johnson
Unify the location of DT selection into board_late_init instead of split between detection and static configuration paths. --- v2 changes - newly added in V2 series based on run-time rebasing v3 changes - none v4 changes - separate change to explicit pro DT into separate commit v5 changes

[PATCH v5 05/12] arm: mvebu: clearfog: Add option for 2.5 Gbps SFP

2020-01-27 Thread Joel Johnson
While newer Linux kernels provide autoconfiguration of SFP, provide an option for setting in U-Boot Kconfig for use prior to booting. Signed-off-by: Joel Johnson --- v2 changes: - fixed help indentation v3 changes: - none v4 changes: - adjust static SerDes configuration at runtime instead

[PATCH v5 01/12] arm: mvebu: fix SerDes table alignment

2020-01-27 Thread Joel Johnson
Tested on Solidrun ClearFog Base. Table alignment was: | Lane # | Speed | Type | | 0| 3 | SATA0 | | 1| 0 | SGMII1 | | 2| 3 | SATA1 | | 3| 5 | USB3 HOST1 | | 4| 5 | USB3 HOST0 | |

[PATCH v5 06/12] arm: mvebu: clearfog: Add SATA mode flags

2020-01-27 Thread Joel Johnson
The mPCIe slots on ClearFog Pro and ClearFog Base may be alternately configured for SATA usage. Signed-off-by: Joel Johnson --- v2 changes: - fixed help indentation v3 changes: - none v4 changes: - adjust static SerDes configuration at runtime instead of #ifdef - add setting of swap_rx

[PATCH v5 02/12] arm: mvebu: solidrun: remove hardcoded DTS MAC address

2020-01-27 Thread Joel Johnson
Using a consistent hardcoded MAC address from the DTS file causes issues when using multiple devices on the same network segment. Instead rely on environment configuration or random generation. Signed-off-by: Joel Johnson --- v2 changes: - none v3 changes: - none v4 changes: - none v5 cha

[PATCH v5 00/12] ClearFog Base static variant support

2020-01-27 Thread Joel Johnson
This patch series adds support for ClearFog Base static configuration, as well as updating and fixing the ClearFog support for MMC and SPI booting. v2 changes: - updated against, and dependent on, https://patchwork.ozlabs.org/cover/1200324 v3 changes: - rebased against ClearFog runtime TLV

[PATCH v5 04/12] arm: mvebu: clearfog: initial ClearFog Base variant

2020-01-27 Thread Joel Johnson
Add a unique entry for ClearFog Base variant, reflected in the board name and adjusted SerDes topology. Signed-off-by: Joel Johnson --- v2 changes: - reworked based on Baruch's run-time TLV EEPROM detection series v3 changes: - rebased on mvebu merged run-time TLV EEPROM detection series

[PATCH v5 03/12] arm: mvebu: clearfog: use Pro name by default

2020-01-27 Thread Joel Johnson
Make the board version printed indicate the Pro variant default. Also adjust static name casing to match what is expected for EEPROM product name to share string constants. --- v4 changes: - newly added v5 changes: - none Signed-off-by: Joel Johnson --- board/solidrun/clearfog/clearfog.c |

[PATCH] Revert "sunxi: psci: avoid error address-of-packed-member"

2020-01-27 Thread Tomasz Duszynski
Using memcpy() for some MMIO access is generally frowned upon and might break things on some platforms. Allwinner H3, which fails to boot, being an example here. Moreover, fields being accessed are naturally aligned and warnings produced by GCC have been quiesced for some time already by: 53dc8ae

Re: [GIT] Pull request: u-boot-dfu (26.01.2020)

2020-01-27 Thread Marek Vasut
On 1/27/20 4:00 PM, Guillermo Rodriguez wrote: > El lun., 27 ene. 2020 a las 14:51, Marek Vasut () escribió: >> >> On 1/27/20 2:35 PM, Guillermo Rodriguez wrote: >>> El lunes, 27 de enero de 2020, Marek Vasut escribió: >>> On 1/27/20 2:26 PM, Guillermo Rodriguez wrote: > Hi, Hi,

Re: [U-boot,4/4] configs: mediatek: enable mt7622 ethernet support

2020-01-27 Thread Tom Rini
On Tue, Jan 21, 2020 at 07:32:00PM +0800, MarkLee wrote: > This patch enable mt7622 ethernet support in its defconfig > > Signed-off-by: MarkLee > --- > configs/mt7622_rfb_defconfig | 4 > 1 file changed, 4 insertions(+) > > diff --git a/configs/mt7622_rfb_defconfig b/configs/mt7622_rfb_d

Re: Pull request: u-boot-rockchip-20200120

2020-01-27 Thread Tom Rini
On Mon, Jan 27, 2020 at 11:25:16PM +0530, Jagan Teki wrote: > Hi Tom, > > On Thu, Jan 23, 2020 at 11:30 PM Tom Rini wrote: > > > > On Mon, Jan 20, 2020 at 10:30:07AM +0800, Kever Yang wrote: > > > > > Hi Tom, > > > > > > Please pull the rockchip updates: > > > - Support SPI boot and redundant boo

Re: [PATCH 2/3] mx7dsabre: Enable DM_ETH

2020-01-27 Thread Fabio Estevam
On Mon, Jan 27, 2020 at 2:57 PM Fabio Estevam wrote: > > Hi Joris, > > On Mon, Jan 27, 2020 at 1:16 PM Joris OFFOUGA wrote: > > > I can't find a fix yet. If you find one it would be great. > > I noticed that the Ethernet regression happens because the ENET_RST_B > signal keeps always at 0, which

Re: [PATCH 2/3] mx7dsabre: Enable DM_ETH

2020-01-27 Thread Fabio Estevam
Hi Joris, On Mon, Jan 27, 2020 at 1:16 PM Joris OFFOUGA wrote: > I can't find a fix yet. If you find one it would be great. I noticed that the Ethernet regression happens because the ENET_RST_B signal keeps always at 0, which makes the PHY to never becomes active. The Ethernet PHY reset comes

Re: Pull request: u-boot-rockchip-20200120

2020-01-27 Thread Jagan Teki
Hi Tom, On Thu, Jan 23, 2020 at 11:30 PM Tom Rini wrote: > > On Mon, Jan 20, 2020 at 10:30:07AM +0800, Kever Yang wrote: > > > Hi Tom, > > > > Please pull the rockchip updates: > > - Support SPI boot and redundant boot for rk3399 > > - Support binman for rockchip platform > > - Update ram driver

Re: [PATCH v4 06/10] arm: dts: k3-j721e-r5: Add fs_loader node

2020-01-27 Thread Tom Rini
On Mon, Jan 27, 2020 at 11:02:28PM +0530, Keerthy wrote: > > > On 27/01/20 7:44 pm, Tom Rini wrote: > > On Mon, Jan 27, 2020 at 10:07:31AM +0530, Keerthy wrote: > > > > > > > > > On 24/01/20 8:25 pm, Tom Rini wrote: > > > > On Wed, Jan 22, 2020 at 09:30:01AM +0530, Keerthy wrote: > > > > > Add

[PATCH 3/4] arm: dts: k3-j721e-common-proc-board: Enable I2C expander for SPL

2020-01-27 Thread Vignesh Raghavendra
IO expanders are required to power cycle SD card. So enable the same Signed-off-by: Vignesh Raghavendra --- .../k3-j721e-common-proc-board-u-boot.dtsi| 12 + .../arm/dts/k3-j721e-r5-common-proc-board.dts | 27 +++ 2 files changed, 39 insertions(+) diff --git a/arch/a

[PATCH 1/4] arm: dts: k3-j721e: Add I2C nodes

2020-01-27 Thread Vignesh Raghavendra
J721e SoC has 2 I2C instances in MCU domain and 7 I2C instances in main domain. Add DT nodes for the same Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-j721e-main.dtsi | 77 +++ arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 22 arch/arm/dts/k3-j721e.dtsi

[PATCH 2/4] arm: dts: k3-j721e-common-proc-board: Add I2C GPIO expander

2020-01-27 Thread Vignesh Raghavendra
Add I2C GPIO expander required to power cycle MMC/SD Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-j721e-common-proc-board.dts | 27 + 1 file changed, 27 insertions(+) diff --git a/arch/arm/dts/k3-j721e-common-proc-board.dts b/arch/arm/dts/k3-j721e-common-proc-boar

[PATCH 4/4] configs: j721e_evm_defconfig: Enable PCA953x IO expander

2020-01-27 Thread Vignesh Raghavendra
Enable PCA953x IO expander to control MMC/SD power lines. Signed-off-by: Vignesh Raghavendra --- configs/j721e_evm_a72_defconfig | 4 configs/j721e_evm_r5_defconfig | 1 + 2 files changed, 5 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig index

[PATCH 0/4] J721e: Add I2C nodes

2020-01-27 Thread Vignesh Raghavendra
Add I2C and I2C IO expander nodes Vignesh Raghavendra (4): arm: dts: k3-j721e: Add I2C nodes arm: dts: k3-j721e-common-proc-board: Add I2C GPIO expander arm: dts: k3-j721e-common-proc-board: Enable I2C expander for SPL configs: j721e_evm_defconfig: Enable PCA953x IO expander .../k3-j721e

[PATCH] gpio: pca953x_gpio: Add support for 24 bit IO expander

2020-01-27 Thread Vignesh Raghavendra
J721e EVM has a TCA6424 IO expander that has 24 GPIOs. Add support for the same Signed-off-by: Vignesh Raghavendra --- drivers/gpio/pca953x_gpio.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index 07a33

Pull request: u-boot-spi/master

2020-01-27 Thread Jagan Teki
Hi Tom, Please pull this PR. Summary: - spi cs accessing slaves (Bin Meng) - spi prevent overriding established bus (Marcin Wojtas) - support speed in spi command (Marek Vasut) - add W25N01GV spinand (Robert Marko) - move cadence_qspi to use spi-mem (Vignesh Raghavendra) - add octal mode (Vignesh

Re: [PATCH v3] Add support for SoM "VoCore2".

2020-01-27 Thread Mauro Condarelli
I just trimmed too much. This is also the cause of MMC/SD misbehavior (missing interrupt). I will send another patch *after* some serious testing. Regards Mauro On 1/27/20 1:41 PM, Stefan Roese wrote: > On 25.01.20 22:12, Mauro Condarelli wrote: >> Small patch series to add support for VoCore/VoCo

Re: [PATCH v4 06/10] arm: dts: k3-j721e-r5: Add fs_loader node

2020-01-27 Thread Keerthy
On 27/01/20 7:44 pm, Tom Rini wrote: On Mon, Jan 27, 2020 at 10:07:31AM +0530, Keerthy wrote: On 24/01/20 8:25 pm, Tom Rini wrote: On Wed, Jan 22, 2020 at 09:30:01AM +0530, Keerthy wrote: Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed

Re: [PATCH v4 02/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-27 Thread Keerthy
On 27/01/20 7:46 pm, Tom Rini wrote: On Mon, Jan 27, 2020 at 10:46:19AM +0530, Keerthy wrote: On 27/01/20 10:01 am, Keerthy wrote: On 24/01/20 8:24 pm, Tom Rini wrote: On Wed, Jan 22, 2020 at 09:29:57AM +0530, Keerthy wrote: Move the generic elf loading/validating functions to lib/ so

[PATCHv2] libfdt: Revert 6dcb8ba4 from upstream libfdt

2020-01-27 Thread Tom Rini
In upstream libfdt, 6dcb8ba4 "libfdt: Add helpers for accessing unaligned words" introduced changes to support unaligned reads for ARM platforms and 11738cf01f15 "libfdt: Don't use memcpy to handle unaligned reads on ARM" improved the performance of these helpers. In practice however, this only oc

Re: [PATCH v4 06/12] arm: mvebu: clearfog: Add option for 2.5 Gbps SFP

2020-01-27 Thread Joel Johnson
On 2020-01-27 09:27, Joel Johnson wrote: On 2020-01-27 00:20, Baruch Siach wrote: Hi Joel, On Mon, Jan 27 2020, Joel Johnson wrote: On 2020-01-26 22:29, Baruch Siach wrote: On Mon, Jan 27 2020, Joel Johnson wrote: While newer Linux kernels provide autoconfiguration of SFP, provide an option

[PATCH 4/4] mtd: rawnand: denali: set SPARE_AREA_SKIP_BYTES based on DT compatible

2020-01-27 Thread Masahiro Yamada
Currently, the denali NAND driver in U-Boot configures the SPARE_AREA_SKIP_BYTES based on the CONFIG option. Recently, Linux kernel merged a patch that associates the proper value for this register with the DT compatible string. Do likewise for U-Boot too. The denali_spl.c still uses CONFIG_NAND

[PATCH 1/4] mtd: rawnand: denali_dt: insert udelay() after reset deassert

2020-01-27 Thread Masahiro Yamada
When the reset signal is de-asserted, the HW-controlled bootstrap starts running unless it is disabled in the SoC integration. It issues some commands to detect a NAND chip, and sets up registers automatically. Until this process finishes, software should avoid any register access. Without this de

[PATCH 3/4] ARM: uniphier: move NAND reset assertion to U-Boot proper from SPL

2020-01-27 Thread Masahiro Yamada
The comment /* deassert reset */ is wrong. It asserts the reset. It no longer needs to stay in SPL. The NAND controller reset is handled in the driver. So, this assert can be moved to the board_init() of U-Boot proper. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_init.c

[PATCH 2/4] ARM: uniphier: remove adhoc reset deassertion for the NAND controller

2020-01-27 Thread Masahiro Yamada
Now that the reset controlling of the Denali NAND driver (denali_dt.c) works for this platform, remove the adhoc reset deassert code. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_init.c | 2 -- arch/arm/mach-uniphier/clk/Makefile | 4 ++-- arch/arm/mach-uniphier/clk/clk

Re: [PATCH] net: Handle disabling of compilation for SPL builds

2020-01-27 Thread Tom Rini
On Mon, Jan 27, 2020 at 12:40:17PM +, Nathan Rossi wrote: > Whilst the net/ directory is excluded from libs-y when > CONFIG_SPL_NET_SUPPORT is disabled, this does not prevent SPL builds > trying to compile net/ objects. During SPL builds overwrite the value of > CONFIG_NET with CONFIG_SPL_NET_

Re: [PATCH v4 01/10] env: nowhere: set default enviroment

2020-01-27 Thread Keerthy
On 27/01/20 7:42 pm, Tom Rini wrote: On Mon, Jan 27, 2020 at 02:34:17PM +0100, Wolfgang Denk wrote: Dear Keerthy, In message you wrote: Set default enviroment so that set_env calls succeed when only ENV_IS_NOWHERE set. Signed-off-by: Keerthy --- Changes in v4: * Reworded commit l

Re: [PATCH v4 06/12] arm: mvebu: clearfog: Add option for 2.5 Gbps SFP

2020-01-27 Thread Joel Johnson
On 2020-01-27 00:20, Baruch Siach wrote: Hi Joel, On Mon, Jan 27 2020, Joel Johnson wrote: On 2020-01-26 22:29, Baruch Siach wrote: On Mon, Jan 27 2020, Joel Johnson wrote: While newer Linux kernels provide autoconfiguration of SFP, provide an option for setting in U-Boot Kconfig for use prio

[PATCH 1/4] cmd: mvebu: bubt: add A38x support

2020-01-27 Thread Joel Johnson
Add support for Armada 38x devices in bubt flashing utility. This is based on (and streamlined from) the support in the SolidRun master-a38x vendor fork branch. Signed-off-by: Joel Johnson --- cmd/mvebu/bubt.c | 69 +++- 1 file changed, 68 insertions

[PATCH 3/4] cmd: mvebu: bubt: verify A38x target device type

2020-01-27 Thread Joel Johnson
Ensure that the device to which an image is being written includes header information indicating boot support for the destination device. This is derived from the support in the SolidRun master-a38x vendor fork branch. Signed-off-by: Joel Johnson --- cmd/mvebu/bubt.c | 49 +

[PATCH 2/4] cmd: mvebu: bubt: correct U-Boot spelling

2020-01-27 Thread Joel Johnson
Replace "U-BOOT" text with correct spelling Signed-off-by: Joel Johnson --- cmd/mvebu/bubt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c index d399fb6da4..b80b81c82a 100644 --- a/cmd/mvebu/bubt.c +++ b/cmd/mvebu/bubt.c @@ -346,7

[PATCH 4/4] arm: mvebu: clearfog: enable bubt command

2020-01-27 Thread Joel Johnson
With support added for Armada 38x, include the bubt command in ClearFog defconfig. Signed-off-by: Joel Johnson --- configs/clearfog_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/clearfog_defconfig b/configs/clearfog_defconfig index c938448c30..0d7e19e731 100644 --- a/con

Re: [PATCH 2/3] mx7dsabre: Enable DM_ETH

2020-01-27 Thread Joris OFFOUGA
Hi Fabio, Le lun. 27 janv. 2020 à 16:58, Fabio Estevam a écrit : > Hi Joris, > > On Mon, Jan 20, 2020 at 5:37 PM Fabio Estevam wrote: > > > > Hi Joris, > > > > On Mon, Jan 20, 2020 at 5:32 PM Joris Offouga > wrote: > > > > > This thread : > > > https://lists.denx.de/pipermail/u-boot/2020-Janua

Re: [PATCH 0/7] J721e: Add support for DFU boot mode

2020-01-27 Thread Andreas Dannenberg
On Mon, Jan 27, 2020 at 05:59:22PM +0530, Vignesh Raghavendra wrote: > This series adds support to boot via USB DFU mode. > > Vignesh Raghavendra (7): > arm: mach-k3: j721e: Rename BOOT_DEVICE_USB to BOOT_DEVICE_DFU > arm: mach-k3: sysfw-loader: Add support to download SYSFW via DFU > arm: d

Re: [PATCH 2/3] mx7dsabre: Enable DM_ETH

2020-01-27 Thread Fabio Estevam
Hi Joris, On Mon, Jan 20, 2020 at 5:37 PM Fabio Estevam wrote: > > Hi Joris, > > On Mon, Jan 20, 2020 at 5:32 PM Joris Offouga wrote: > > > This thread : > > https://lists.denx.de/pipermail/u-boot/2020-January/395560.html > > This is an unrelated issue. wandboard support several versions and > t

[PATCH 00/21] dm: Various enhancements to prepare for ACPI

2020-01-27 Thread Simon Glass
This series contains various minor enhancements needed to implement the programmatic generation of ACPI tables on x86 devices. These are mostly generic routines and are likely to be useful elsewhere. It also includes a few test improvements to support checking console output more easily. Simon G

Re: [GIT] Pull request: u-boot-dfu (26.01.2020)

2020-01-27 Thread Tom Rini
On Mon, Jan 27, 2020 at 04:00:28PM +0100, Guillermo Rodriguez wrote: > El lun., 27 ene. 2020 a las 14:51, Marek Vasut () escribió: > > > > On 1/27/20 2:35 PM, Guillermo Rodriguez wrote: > > > El lunes, 27 de enero de 2020, Marek Vasut escribió: > > > > > >> On 1/27/20 2:26 PM, Guillermo Rodriguez

[PATCH 19/21] console: Add a function to read a line of the output / eof

2020-01-27 Thread Simon Glass
When recording the console output for testing it is useful to be able to read the output a line at a time to check that the output is correct. Also we need to check that we get to the end of the output. Add a console function to return the next line and another to see how must data is left. Signe

[PATCH 21/21] test: Add a way to check each line of console output

2020-01-27 Thread Simon Glass
When writing tests to check the output from commands it is useful to be able to check the output line by line using an assertion. Add helper macros to support this and to check that there is no unexpected trailing data. Also some commands produce a dump using print_buffer(). Add a way to check tha

[PATCH 16/21] bloblist: Tidy up a few comments and code-style nits

2020-01-27 Thread Simon Glass
Add a messing error code to bloblist_new() and tidy up the line length in bloblist_addrec(). Signed-off-by: Simon Glass --- common/bloblist.c | 5 ++--- include/bloblist.h | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/bloblist.c b/common/bloblist.c index 0c8711

[PATCH 20/21] test: Enable console recording in tests

2020-01-27 Thread Simon Glass
At present we reset the console buffer before each test but do not actually set the recording flag. Without this, the output is not recorded. Update the code to set the flag before the test and clear it afterwards. Signed-off-by: Simon Glass --- test/dm/test-main.c | 4 ++-- 1 file changed, 2

[PATCH 17/21] bloblist: Zero records when adding

2020-01-27 Thread Simon Glass
It is convenient for bloblist to zero out the contents of a records when it is added. This saves the callers having to do it. Update the API accordingly. Signed-off-by: Simon Glass --- common/bloblist.c | 3 +++ doc/README.bloblist | 4 ++-- test/bloblist.c | 27 +++

[PATCH 18/21] sandbox: pmic: Correct i2c pmic emulator platdata method

2020-01-27 Thread Simon Glass
This currently reads the uclass's private data in the ofdata_to_platdata method which is not allowed, since the uclass has not read it from the device tree. This happens in the probe method. Fix it by adding a probe() method and moving the code there. Signed-off-by: Simon Glass --- drivers/pow

[PATCH 15/21] bloblist: Add a new function to add or check size

2020-01-27 Thread Simon Glass
A common check is to see if a blob is present, create it if not and make sure that the size is large enough. Add a function to handle this. Signed-off-by: Simon Glass --- common/bloblist.c | 15 +++ include/bloblist.h | 13 + test/bloblist.c| 34

[PATCH 14/21] dm: core: Drop uclass_find_next_free_req_seq() conditions

2020-01-27 Thread Simon Glass
These conditions are not needed and just reduce build coverage. Drop them. Signed-off-by: Simon Glass --- drivers/core/uclass.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index c520ef113a..cd6ee47146 100644 --- a/drivers/core/uclass.c ++

[PATCH 12/21] dm: core: Add a way to read platdata for all child devices

2020-01-27 Thread Simon Glass
When generating ACPI tables we need to make sure that all devices have read their platform data, so that they can generate the tables correctly. Rather than adding this code in ACPI, create a core function to handle it. Signed-off-by: Simon Glass --- drivers/core/device.c | 36

[PATCH 10/21] dm: core: Reimplement ofnode_read_size()

2020-01-27 Thread Simon Glass
Now that we have ofnode_read_prop() we can rewrite this function using that one, reducing the amount of duplicated code. Update ofnode_read_size() and move it up next to the other similar functions. Signed-off-by: Simon Glass --- drivers/core/ofnode.c | 29 ++--- 1 file

[PATCH 13/21] dm: core: Add a way to iterate through children, probing each

2020-01-27 Thread Simon Glass
It is sometimes useful to process all children, making sure they are probed first. Add functions to help with this and a macro to make it more convenient. Signed-off-by: Simon Glass --- drivers/core/device.c | 22 ++ include/dm/device.h | 39 +++

[PATCH 08/21] dm: core: Rename ofnode_get_chosen_prop()

2020-01-27 Thread Simon Glass
This function is actually intended to read a string rather than a property. All of its current callers use it that way. Also there is no way to return the length of the property from this function. Rename it to better indicate its purpose, using ofnode_read as the prefix since this matches most ot

[PATCH 11/21] dm: core: Add ofnode_get_chosen_prop()

2020-01-27 Thread Simon Glass
Add a function to read a property from the chosen node, providing access to its length. Update ofnode_get_chosen_string() to make use of it. Signed-off-by: Simon Glass --- arch/sandbox/dts/test.dts | 1 + drivers/core/ofnode.c | 11 --- include/dm/ofnode.h | 12

[PATCH 05/21] dm: core: Use const device for the dev_read_...() interface

2020-01-27 Thread Simon Glass
These functions do not modify the device so should use a const pointer to it. Update the code accordingly. Signed-off-by: Simon Glass --- drivers/core/read.c | 97 +++-- include/dm/read.h | 205 +++- 2 files changed, 159 insertions(+),

[PATCH 07/21] dm: core: Update comment for ofnode_get_chosen_node()

2020-01-27 Thread Simon Glass
The current comment is a big vague and misleading. Rewrite it to state precisely what the function does. Signed-off-by: Simon Glass --- include/dm/ofnode.h | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 4282169706..62

[PATCH 09/21] dm: core: Add ofnode_read_prop()

2020-01-27 Thread Simon Glass
Add a new function to read a property that supports reading the length as well. Reimplement ofnode_read_string() using it and fix its comment. Signed-off-by: Simon Glass --- drivers/core/ofnode.c | 31 --- include/dm/ofnode.h | 13 - test/dm/ofnode.c

  1   2   >