Re: [U-Boot] ext4: massive corruption with ext4write

2018-07-24 Thread Aaron Williams
On Monday, July 23, 2018 11:15:59 PM PDT Aaron Williams wrote: > External Email > > Hi all, > > It looks like after a certain amount of data has been written that all hell > breaks loose with the ext4 filesystem. > > In my case, I have the following files on a 64G USB thumb drive with two >

[U-Boot] [PATCH 1/4] configs: opos6uldev: undef CONFIG_POWER_DOMAIN when SPL_BUILD

2018-07-24 Thread Peng Fan
Because CONFIG_POWER_DOMAIN is enabled in defconfig, however driver/power/domain is not built for SPL, there is build failure when power_domain_on added to device_probe. Because power domain is not needed in SPL, let's undef it. Signed-off-by: Peng Fan Cc: "Sébastien Szymanski" Cc: Stefano

Re: [U-Boot] [PATCH v2 07/13] sunxi: add clock code for H6

2018-07-24 Thread Maxime Ripard
On Sat, Jul 21, 2018 at 04:20:26PM +0800, Icenowy Zheng wrote: > The new Allwinner H6 SoC has a brand new CCU layout. > > Add clock code for it. > > Signed-off-by: Icenowy Zheng Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel

Re: [U-Boot] [PATCH v2 08/13] sunxi: use sun6i-style watchdog for H6

2018-07-24 Thread Maxime Ripard
On Sat, Jul 21, 2018 at 04:20:27PM +0800, Icenowy Zheng wrote: > The H6 SoC has a sun6i-style watchdog in its timer part. > > Enable the usage of it. > > Signed-off-by: Icenowy Zheng Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and

Re: [U-Boot] [PATCH v2 06/13] sunxi: change GIC address on H6

2018-07-24 Thread Maxime Ripard
On Sat, Jul 21, 2018 at 04:20:25PM +0800, Icenowy Zheng wrote: > As the Allwinner H6 chip has a new memory map, its GIC MMIO address is > thus different. > > Change the address on H6. > > Signed-off-by: Icenowy Zheng > Reviewed-by: Andre Przywara Acked-by: Maxime Ripard Maxime -- Maxime

Re: [U-Boot] [PATCH V3 1/2] mmc: add HS400 support

2018-07-24 Thread Peng Fan
Hi Faiz, It's 2 months since this patchset out (: > > On Saturday 19 May 2018 06:24 PM, Peng Fan wrote: > > Add HS400 support. > > Selecting HS400 needs first select HS199 according to spec, so use a > > dedicated function for HS400. > > Add HS400 related macros. > > Remove the restriction of

Re: [U-Boot] [PATCH v2 13/13] sunxi: add support for Pine H64 board

2018-07-24 Thread Maxime Ripard
On Sat, Jul 21, 2018 at 04:20:32PM +0800, Icenowy Zheng wrote: > Pine H64 is a SBC with Allwinner H6 SoC produced by Pine64. It features > 1GiB/2GiB/4GiB(3GiB usable) DRAM, two USB 2.0 ports, one USB 3.0 port > and a mPCIE slot. > > Add support for it. > > The device tree is from Linux

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-24 Thread Michal Simek
On 23.7.2018 20:41, Simon Glass wrote: > Hi Michal, > > On 23 July 2018 at 03:08, Michal Simek wrote: >> >> On 20.7.2018 21:31, Stefan Herbrechtsmeier wrote: >>> Hi Michal, >>> >>> Am 12.07.2018 um 16:04 schrieb Michal Simek: There should be proper bank name setup to distiguish between

[U-Boot] [PATCH 3/4] dm: core: device: enable power domain in probe

2018-07-24 Thread Peng Fan
Enable power domain associated with the device when probe. Signed-off-by: Peng Fan Cc: Simon Glass --- drivers/core/device.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/core/device.c b/drivers/core/device.c index d5f5fc31b0..207d566b71 100644 --- a/drivers/core/device.c

[U-Boot] [PATCH 2/4] power-domain: add dummy functions when CONFIG_POWER_DOMAIN not defined

2018-07-24 Thread Peng Fan
Add dummy functions when CONFIG_POWER_DOMAIN not defined. Signed-off-by: Peng Fan Reviewed-by: Simon Glass --- include/power-domain.h | 28 1 file changed, 28 insertions(+) diff --git a/include/power-domain.h b/include/power-domain.h index aba8c0f65c..fe2a1c5119

Re: [U-Boot] [PATCH 3/3] rockchip: fix incorrect detection of ram size

2018-07-24 Thread Dr. Philipp Tomsich
Marty, > On 6 Jul 2018, at 05:11, Marty E. Plummer wrote: > > On Sat, May 19, 2018 at 02:08:53PM +0200, Dr. Philipp Tomsich wrote: >> Marty, >> >>> On 19 May 2018, at 12:40, Marty E. Plummer wrote: >>> >>> So explain to me what you'd like me to do here, if you would. What I >>> gather from

Re: [U-Boot] [PATCH v2 04/13] sunxi: change ATF position for H6

2018-07-24 Thread Maxime Ripard
On Sat, Jul 21, 2018 at 04:20:23PM +0800, Icenowy Zheng wrote: > H6 has different SRAM A2 address, so the ATF load address is also > different. > > Add judgment code to sunxi 64-bit FIT generation script. It will judge > the SoC by the device tree's name. > > Signed-off-by: Icenowy Zheng

Re: [U-Boot] [PATCH v2 03/13] sunxi: change RMR64's RVBAR address for H6

2018-07-24 Thread Maxime Ripard
On Sat, Jul 21, 2018 at 04:20:22PM +0800, Icenowy Zheng wrote: > Allwinner H6 has a different RVBAR address with A64/H5. > > Add conditional RVBAR configuration into the code which does RMR switch. > > Signed-off-by: Icenowy Zheng > Reviewed-by: Andre Przywara Acked-by: Maxime Ripard Maxime

Re: [U-Boot] [PATCH v2 05/13] sunxi: add config for SPL at 0x20000 on H6

2018-07-24 Thread Maxime Ripard
On Sat, Jul 21, 2018 at 04:20:24PM +0800, Icenowy Zheng wrote: > On the new Allwinner H6 SoC, the SRAM A2 address (SPL load address) is > at 0x2, which is different with any old Allwinner SoCs. > > Add SPL position and size configuration for this. > > Signed-off-by: Icenowy Zheng >

Re: [U-Boot] [PATCH 11/20] w1: enumerate sandbox driver if configured

2018-07-24 Thread Maxime Ripard
On Mon, Jul 23, 2018 at 05:48:25PM -0600, Simon Glass wrote: > Hi, > > On 20 July 2018 at 08:01, Lukasz Majewski wrote: > > Hi Eugen, > > > > Thanks for (re-)bringing the One wire support to u-boot. > > > >> Add a sandbox eeprom on the bus as a device, if sandbox driver is > >> configured. > >>

Re: [U-Boot] [PATCH v2 2/5] Revert "dm: led: auto probe() LEDs with "default-state""

2018-07-24 Thread Patrick DELAUNAY
Hi Simon, > From: s...@google.com On Behalf Of Simon Glass > Sent: mardi 24 juillet 2018 01:48 > > Hi Patrick, > > On 23 July 2018 at 03:41, Patrick Delaunay wrote: > > This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7. > > A revert should have a motivation and a discussion of the

Re: [U-Boot] [PATCH] ddr: altera: Add ECC DRAM scrubbing support for Stratix 10

2018-07-24 Thread Chee, Tien Fong
On Mon, 2018-07-23 at 11:46 +0200, Marek Vasut wrote: > On 07/23/2018 10:20 AM, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > The SDRAM must first be rewritten by zeroes if ECC is used to > > initialize > > the ECC metadata. Make the CPU overwrite the DRAM with zeroes in

Re: [U-Boot] [PATCH v2 09/13] sunxi: add UART0 setup for H6

2018-07-24 Thread Maxime Ripard
On Sat, Jul 21, 2018 at 04:20:28PM +0800, Icenowy Zheng wrote: > The UART0 on H6 is available at PH bank (and PF bank, but the PF one is > muxed with SD card). > > Add pinmux configuration. > > Signed-off-by: Icenowy Zheng > Reviewed-by: Andre Przywara Acked-by: Maxime Ripard Maxime --

[U-Boot] [PATCH v2] arm: zynq: add support for the zybo z7 board

2018-07-24 Thread Luis Araneda
The board is manufactured by Digilent Main features: - Soc: XC7Z010 (Z7-10) or XC7Z020 (Z7-20) - RAM: 1 GB DDR3L - FLASH: 16 MB QSPI - 1 Gbps Ethernet - USB 2.0 - microSD slot - Pcam camera connector - HDMI Tx and Rx - Audio codec: stereo out, stereo in, mic - 5 (Z7-10) or 6 (Z7-20) Pmod ports - 6

Re: [U-Boot] ext4: massive corruption with ext4write

2018-07-24 Thread Aaron Williams
Hi all, It looks like after a certain amount of data has been written that all hell breaks loose with the ext4 filesystem. In my case, I have the following files on a 64G USB thumb drive with two partitions, a small FAT partition with the rest of the space dedicated to ext4 created using

[U-Boot] [PATCH] tools: genboardscfg: move buildman path to first

2018-07-24 Thread Peng Fan
To system which has kconfiglib installed, genboardscfg will use system kconfiglib, we need it use U-Boot owned version, so move the buildman path to first. Signed-off-by: Peng Fan Cc: Masahiro Yamada Cc: Simon Glass Cc: Tom Rini --- tools/genboardscfg.py | 2 +- 1 file changed, 1

[U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-07-24 Thread Peng Fan
Add u-boot,off-on-delay-us for fixed regulator. Depends on board design, the gpio regulator sometimes connects with a big capacitance. When need to off, then on the regulator, if there is no enough delay, the voltage does not drop to 0, so introduce this property to handle such case.

Re: [U-Boot] [PATCH v2 02/13] sunxi: add basic memory map definitions of H6 SoC

2018-07-24 Thread Maxime Ripard
On Sat, Jul 21, 2018 at 04:20:21PM +0800, Icenowy Zheng wrote: > The Allwinner H6 SoC come with a totally new memory map. > > Add basical definition of the new memory map into a header file, and let > the cpu.h header include it in the situation of H6. > > Signed-off-by: Icenowy Zheng >

Re: [U-Boot] [PATCH v2 04/13] sunxi: change ATF position for H6

2018-07-24 Thread Andre Przywara
Hi, On 21/07/18 09:20, Icenowy Zheng wrote: > H6 has different SRAM A2 address, so the ATF load address is also > different. > > Add judgment code to sunxi 64-bit FIT generation script. It will judge > the SoC by the device tree's name. This might need to become more flexible in the future,

Re: [U-Boot] [PATCH v2 22/26] mmc: Change mode when switching to a boot partition

2018-07-24 Thread Faiz Abbas
Hi, On Thursday 21 September 2017 08:00 PM, Jean-Jacques Hiblot wrote: > Boot partitions do not support HS200. Changing to a lower performance mode > is required to access them. I see that the spec says "HS200 and HS400 modes are not supported during *boot operation*". Can you point out where it

Re: [U-Boot] [PATCH v2 10/13] sunxi: add MMC support for H6

2018-07-24 Thread Maxime Ripard
On Sat, Jul 21, 2018 at 04:20:29PM +0800, Icenowy Zheng wrote: > The Allwinner H6 SoC has 3 MMC controllers like the ones in A64, with > the MMC2 come with the capability to do crypto by EMCE. > > Add MMC support for H6. EMCE support is not added yet. > > Signed-off-by: Icenowy Zheng > --- >

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-24 Thread Michal Simek
On 23.7.2018 20:29, Stefan Herbrechtsmeier wrote: > Hi Michal, > > > Am 23.07.2018 um 11:08 schrieb Michal Simek: >> On 20.7.2018 21:31, Stefan Herbrechtsmeier wrote: >>> Am 12.07.2018 um 16:04 schrieb Michal Simek: There should be proper bank name setup to distiguish between different

Re: [U-Boot] [PATCH V3 1/2] mmc: add HS400 support

2018-07-24 Thread Faiz Abbas
Hi, On Saturday 19 May 2018 06:24 PM, Peng Fan wrote: > Add HS400 support. > Selecting HS400 needs first select HS199 according to spec, so use > a dedicated function for HS400. > Add HS400 related macros. > Remove the restriction of only using the low 6 bits of > EXT_CSD_CARD_TYPE, using all the

Re: [U-Boot] [linux-sunxi] Re: [PATCH v2 10/13] sunxi: add MMC support for H6

2018-07-24 Thread Icenowy Zheng
于 2018年7月24日 GMT+08:00 下午4:37:43, Maxime Ripard 写到: >On Sat, Jul 21, 2018 at 04:20:29PM +0800, Icenowy Zheng wrote: >> The Allwinner H6 SoC has 3 MMC controllers like the ones in A64, with >> the MMC2 come with the capability to do crypto by EMCE. >> >> Add MMC support for H6. EMCE support is

Re: [U-Boot] [PATCH v2 05/13] sunxi: add config for SPL at 0x20000 on H6

2018-07-24 Thread Icenowy Zheng
于 2018年7月24日 GMT+08:00 下午4:34:52, Maxime Ripard 写到: >On Sat, Jul 21, 2018 at 04:20:24PM +0800, Icenowy Zheng wrote: >> On the new Allwinner H6 SoC, the SRAM A2 address (SPL load address) >is >> at 0x2, which is different with any old Allwinner SoCs. >> >> Add SPL position and size

[U-Boot] [PATCH] Cleanup CONFIG_BOOTDELAY on cl-som-imx7

2018-07-24 Thread Alex Kiernan
CONFIG_BOOTDELAY has been migrated to Kconfig, but cl-som-imx7 was missed. We can just delete the assignments as the config already has the correct value. Signed-off-by: Alex Kiernan --- include/configs/cl-som-imx7.h | 2 -- 1 file changed, 2 deletions(-) diff --git

[U-Boot] [PATCH 4/4] dm: power-domain: query power domain after get device

2018-07-24 Thread Peng Fan
This is to test power_domain_on in device_probe. If the device has a power-domain property, enable it when probe the device. So add the test to check whether it is powered on or not. Signed-off-by: Peng Fan Cc: Simon Glass --- test/dm/power-domain.c | 2 ++ 1 file changed, 2 insertions(+)

Re: [U-Boot] [PATCH 2/3] rockchip: add support for veyron-speedy (ASUS Chromebook C201)

2018-07-24 Thread Dr. Philipp Tomsich
> On 24 Jul 2018, at 07:12, Marty E. Plummer wrote: > > On Fri, Jul 13, 2018 at 12:31:49PM +0200, Dr. Philipp Tomsich wrote: >> >>> On 7 May 2018, at 02:20, Marty E. Plummer wrote: >>> >>> On Mon, May 07, 2018 at 12:12:54AM +0200, klaus.go...@theobroma-systems.com >>>

Re: [U-Boot] [PATCH v1 4/6] mmc: arm_pl180_mmci: Update to support CONFIG_BLK

2018-07-24 Thread Patrice CHOTARD
Hi Simon On 07/24/2018 01:48 AM, Simon Glass wrote: > Hi Patrice, > > On 20 July 2018 at 01:44, Patrice Chotard wrote: >> Config flag CONFIG_BLK becomes mandatory, update arm_pl180_mmci >> to support this config. >> >> This driver is used by STM32Fx and by Vexpress platforms. >> Only STM32Fx

Re: [U-Boot] [PATCH v2 12/13] sunxi: add support for Allwinner H6 SoC

2018-07-24 Thread Maxime Ripard
On Sat, Jul 21, 2018 at 04:20:31PM +0800, Icenowy Zheng wrote: > Allwinner H6 is a new SoC from Allwinner features USB3 and PCIe > interfaces. > > This patch adds support for it. > > The corresponding DTSI file, from Linux next-20180720, is also > introduced. > > Signed-off-by: Icenowy Zheng

Re: [U-Boot] [PATCH v2.1 11/13] sunxi: add DRAM support to H6

2018-07-24 Thread Maxime Ripard
On Mon, Jul 23, 2018 at 06:13:34AM +0800, Icenowy Zheng wrote: > The Allwinner H6 SoC comes with a set of new DRAM controller+PHY combo. > Both the controller and the PHY seem to be originate from DesignWare, > and are similar to the ones in ZynqMP SoCs. > > This commit introduces an initial DRAM

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-24 Thread Stefan Herbrechtsmeier
Am 24.07.2018 um 10:37 schrieb Michal Simek: On 23.7.2018 20:29, Stefan Herbrechtsmeier wrote: Am 23.07.2018 um 11:08 schrieb Michal Simek: On 20.7.2018 21:31, Stefan Herbrechtsmeier wrote: Am 12.07.2018 um 16:04 schrieb Michal Simek: There should be proper bank name setup to distiguish

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-24 Thread Stefan Herbrechtsmeier
Am 24.07.2018 um 12:31 schrieb Michal Simek: On 23.7.2018 20:42, Stefan Herbrechtsmeier wrote: Am 23.07.2018 um 13:43 schrieb Michal Simek: Reading registers for finding out output value is not working because input value is read instead in case of tristate. Reported-by: Stefan

[U-Boot] i.MX6Q SPL won't boot U-Boot from NAND

2018-07-24 Thread Adam Ford
I am trying to boot an i.MX6Q via SPL to U-Boot and eventually, use Falcon mode to start the kernel. I can boot via SPL over USB. I have enabled the NAND and SPL NAND, and i can confirm that mxs_nand_spl.c is being built in. The board is imx6q_logic Unfortunately, I have run into two issues.

Re: [U-Boot] Ethernet sandox driver issue

2018-07-24 Thread Joe Hershberger
Hi Steven, On Mon, Jul 23, 2018 at 6:26 AM, Steven Stoner wrote: > Hello there, > > Sorry about this but I could use some assistance. I am trying to get the > ethernet to work under the sandbox and am having issues. I saw and applied > the patch from Joe Hershberger-2 that seemed to be

Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to support i.MX8

2018-07-24 Thread Fabio Estevam
On Tue, Jul 24, 2018 at 3:27 PM, Troy Kisky wrote: > Didn't we already discuss this and decide to be consistent with CONFIG_MX6 /7 > and the rest ? Good point. Peng, please use CONFIG_MX8 instead. Thanks ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to support i.MX8

2018-07-24 Thread Troy Kisky
On 7/23/2018 5:51 PM, Fabio Estevam wrote: > Hi Peng, > > On Mon, Jul 23, 2018 at 9:45 PM, Peng Fan wrote: > >> In V1, I use CONFIG_IMX8, but I think there is no need to use it, because >> CONFIG_ARCH_IMX8 could do same thing. > > Yes, I prefer to drop "ARCH" for consistency. > >> I could

Re: [U-Boot] [PATCH V3 1/2] mmc: add HS400 support

2018-07-24 Thread Peng Fan
> > On Tuesday 24 July 2018 02:14 PM, Peng Fan wrote: > > Hi Faiz, > > > > It's 2 months since this patchset out (: > > Has it already been accepted? No. I did not receive response from Jaehoon. > > > drivers/mmc/Kconfig > >> > >> On Saturday 19 May 2018 06:24 PM, Peng Fan wrote: > >>> Add

[U-Boot] [PATCH v3 0/5] dm: led: remove auto probe in binding function

2018-07-24 Thread Patrick Delaunay
Hi, The commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7 introduce auto probe of LED in binding function but that cause issue on my board. This first patch of this patchset activateis the LED on my board to explain the issue, the second patch revert this commit and the third one propose an other

Re: [U-Boot] [UBOOT PATCH v2] net: zynq_gem: convert to use livetree

2018-07-24 Thread Michal Simek
Hi, On 23.7.2018 07:48, Siva Durga Prasad Paladugu wrote: > Hi Joe/Michal, > > Can you please take it up if it is fine. joe: Can you please take it via your tree? There are some patches before this. Thanks, Michal ___ U-Boot mailing list

[U-Boot] [PATCH v3 5/5] sandbox: led: use new function to configure default state

2018-07-24 Thread Patrick Delaunay
Initialize the led with the default state defined in device tree in board_init and solve issue with test for led default state. Reviewed-by: Simon Glass Signed-off-by: Patrick Delaunay --- Led default-state is correctly handle in Sandbox, tested with: ./u-boot -d ./arch/sandbox/dts/test.dtb

[U-Boot] [PATCH] arm64: zynqmp: Enable soft gpio driver for zcu102 and zcu100

2018-07-24 Thread Michal Simek
Enable soft gpio driver for zcu102 and zcu100. Signed-off-by: Michal Simek --- configs/xilinx_zynqmp_zcu100_revC_defconfig | 1 + configs/xilinx_zynqmp_zcu102_rev1_0_defconfig | 1 + configs/xilinx_zynqmp_zcu102_revA_defconfig | 1 + configs/xilinx_zynqmp_zcu102_revB_defconfig | 1 + 4

Re: [U-Boot] [PATCH V3 1/2] mmc: add HS400 support

2018-07-24 Thread Faiz Abbas
Hi Peng, On Tuesday 24 July 2018 02:14 PM, Peng Fan wrote: > Hi Faiz, > > It's 2 months since this patchset out (: Has it already been accepted? > drivers/mmc/Kconfig >> >> On Saturday 19 May 2018 06:24 PM, Peng Fan wrote: >>> Add HS400 support. >>> Selecting HS400 needs first select HS199

[U-Boot] [PATCH v2 4/6] mmc: arm_pl180_mmci: Update to support CONFIG_BLK

2018-07-24 Thread Patrice Chotard
Config flag CONFIG_BLK becomes mandatory, update arm_pl180_mmci to support this config. This driver is used by STM32Fx and by Vexpress platforms. Only STM32Fx are DM ready. No DM code is isolated and will be removed easily when wexpress will be converted to DM. Signed-off-by: Patrice Chotard

[U-Boot] [PATCH v2 3/6] configs: stm32f469-disco: Enable CONFIG_BLK

2018-07-24 Thread Patrice Chotard
CONFIG_BLK config flag becomes mandatory, enable it. Signed-off-by: Patrice Chotard --- Changes in v2: None configs/stm32f469-discovery_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/stm32f469-discovery_defconfig b/configs/stm32f469-discovery_defconfig index

[U-Boot] [PATCH v2 6/6] mmc: arm_pl180_mmci: Add "cd_inverted" DT property read

2018-07-24 Thread Patrice Chotard
Add missing read of "cd_inverted" property in DT. Signed-off-by: Patrice Chotard --- Changes in v2: None drivers/mmc/arm_pl180_mmci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c index 1cd780b3eec0..75d1a367ceb6 100644 ---

Re: [U-Boot] ext4: massive corruption with ext4write

2018-07-24 Thread Aaron Williams
On Monday, July 23, 2018 11:25:41 PM PDT Aaron Williams wrote: > External Email > > On Monday, July 23, 2018 11:15:59 PM PDT Aaron Williams wrote: > > > External Email > > > > > > > > Hi all, > > > > > > > > It looks like after a certain amount of data has been written that all > > hell breaks

[U-Boot] [PATCH v2 2/6] configs: stm32f746-disco: Enable CONFIG_BLK

2018-07-24 Thread Patrice Chotard
CONFIG_BLK config flag becomes mandatory, enable it. Signed-off-by: Patrice Chotard --- Changes in v2: None configs/stm32f746-disco_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_defconfig index

[U-Boot] [PATCH v2 5/6] mmc: arm_pl180_mmci: Add missing clk_free

2018-07-24 Thread Patrice Chotard
Add missing clk_free() call in case of failure when enabling the clock. Signed-off-by: Patrice Chotard --- Changes in v2: None drivers/mmc/arm_pl180_mmci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c index

[U-Boot] [PATCH v3 3/5] dm: led: move default state support in led uclass

2018-07-24 Thread Patrick Delaunay
This patch save common LED property "default-state" value in post bind of LED uclass. The configuration for this default state is only performed when led_default_state() is called; It can be called in your board_init() or it could added in init_sequence_r[] in future. Reviewed-by: Simon Glass

[U-Boot] [PATCH v3 2/5] Revert "dm: led: auto probe() LEDs with "default-state""

2018-07-24 Thread Patrick Delaunay
This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7. because this patch adds the probe of LED driver during the binding phasis. It is not allowed in driver model because the drivers (clock, pincontrol) needed by the LED driver can be also probed before the binding of all the device and it

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-24 Thread Michal Simek
On 23.7.2018 20:42, Stefan Herbrechtsmeier wrote: > Hi Michal, > > Am 23.07.2018 um 13:43 schrieb Michal Simek: >> Reading registers for finding out output value is not working because >> input value is read instead in case of tristate. >> >> Reported-by: Stefan Herbrechtsmeier >> Signed-off-by:

[U-Boot] [PATCH v2 6/6] ARM: dts: stm32mp157: Add ADC DT node

2018-07-24 Thread Fabrice Gasnier
Add ADC device tree node. This allows to get analog conversions on stm32mp157. Signed-off-by: Fabrice Gasnier --- Changes in v2: None --- arch/arm/dts/stm32mp157.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/stm32mp157.dtsi

Re: [U-Boot] [PATCH v2] cmd: fastboot: Validate user input

2018-07-24 Thread Lukasz Majewski
Hi Sam, > On Sat, Jun 30, 2018 at 7:20 AM, Simon Glass wrote: > > On 29 June 2018 at 11:59, Sam Protsenko > > wrote: > >> In case when user provides '-' as USB controller index, like this: > >> > >> => fastboot - > >> > >> data abort occurs in strcmp() function in do_fastboot(), here:

[U-Boot] [PATCH V2] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries

2018-07-24 Thread Adam Ford
Several boards do not use the default UART3, so they do a check for ifdef CONFIG_SPL_BUILD and enable the pointer for CONFIG_SYS_NS16550_COMx to point to OMAP34XX_UARTx. Let's consoldate this all into one place, and remove them from the individual boards. Signed-off-by: Adam Ford --- V2:

[U-Boot] [PATCH v2 3/6] dt-bindings: Document STM32 ADC DT bindings

2018-07-24 Thread Fabrice Gasnier
This patch adds documentation of device tree bindings for the STM32 ADC. It's based on linux-v4.18-rc* dt-bindings, at the time of writing: - Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt Signed-off-by: Fabrice Gasnier Reviewed-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 1/6] clk: add clk_valid()

2018-07-24 Thread Fabrice Gasnier
Add clk_valid() to check for optional clocks are valid. Call clk_valid() in test/dm/clk.c and add relevant test routine to sandbox clk tests. Signed-off-by: Fabrice Gasnier --- Changes in v2: - add test case for 'clk_valid()', e.g. in test/dm/clk.c and sandbox. - Update TRUE/FALSE comments to

[U-Boot] [PATCH 1/1] arm: socfpga: Add support for the ReflexCES R329 board

2018-07-24 Thread Xavier Ruppen
The ReflexCES PCIe carrier board Arria 10 SoC SoM (R329) provides access to all the features of the Arria 10 SoC SoM (R315) (Ethernet, OTG USB, Transceivers, UART) and adds further functions, including SFP+ connectors, PCIe x8 Gen3, USB3.0 and a wifi interface. No fpga portion is provided in

Re: [U-Boot] [PATCH 2/6] dm: adc: uclass: get reference regulator once

2018-07-24 Thread Fabrice Gasnier
On 07/24/2018 01:48 AM, Simon Glass wrote: > Hi Fabrice, > > On 23 July 2018 at 06:35, Fabrice Gasnier wrote: >> device_get_supply_regulator() only needs to be called once. >> But each time there's call to adc_vxx_value() for instance, it calls >> adc_vxx_platdata_update() ->

[U-Boot] [PATCH v2 0/6] Add support for STM32 ADC

2018-07-24 Thread Fabrice Gasnier
This series adds support for STM32 Analog to Digital Converter. STM32 ADC support is originally based on Linux kernel v4.18-rcs: - First two patches brings some changes in clk and adc uclass - Next two patches add STM32 ADC dt-bindings and driver for STM32MP1 and STM32H7 - Last patches add

[U-Boot] [PATCH 05/10] net: sandbox: Allow fake eth to handle more than 1 packet response

2018-07-24 Thread Joe Hershberger
Use up to the max allocated receive buffers so be able to test more complex situations. Signed-off-by: Joe Hershberger --- arch/sandbox/include/asm/eth.h | 10 +--- drivers/net/sandbox.c | 57 ++ 2 files changed, 52 insertions(+), 15

[U-Boot] [PATCH 09/10] test: eth: Add a test for the target being pinged

2018-07-24 Thread Joe Hershberger
The target will respond to pings while doing other network handling. Make sure that the response happens and is correct. This currently corrupts the ongoing operation of the device if it happens to be awaiting an ARP reply of its own to whatever serverip it is attempting to communicate with. In

[U-Boot] [PATCH 04/10] net: sandbox: Share the priv structure with tests

2018-07-24 Thread Joe Hershberger
If tests want to implement tx handlers, they will likely need access to the details in the priv structure. Signed-off-by: Joe Hershberger --- arch/sandbox/include/asm/eth.h | 19 +++ drivers/net/sandbox.c | 19 --- 2 files changed, 19 insertions(+), 19

[U-Boot] [PATCH 07/10] net: sandbox: Add a priv ptr for tests to use

2018-07-24 Thread Joe Hershberger
Signed-off-by: Joe Hershberger --- arch/sandbox/include/asm/eth.h | 9 + drivers/net/sandbox.c | 20 2 files changed, 29 insertions(+) diff --git a/arch/sandbox/include/asm/eth.h b/arch/sandbox/include/asm/eth.h index 6dabbf00ab..6bb3f1bbfd 100644 ---

[U-Boot] [PATCH 00/10] net: Fix packet corruption issue when handling asynch replies

2018-07-24 Thread Joe Hershberger
The issue [1] was reported by (Peter) Tran Tien Dat. Unfortunately his fix for the issue broke notmal operation and I don't feel is a good way to address the issue. Also, the situation was not covered in the unit tests, so we'll add them now. First we refactor the unit test capability of the

[U-Boot] [PATCH 03/10] net: sandbox: Make the fake eth driver response configurable

2018-07-24 Thread Joe Hershberger
Make the send handler registerable so tests can check for different things. Signed-off-by: Joe Hershberger --- arch/sandbox/include/asm/eth.h | 17 ++ drivers/net/sandbox.c | 53 ++ 2 files changed, 66 insertions(+), 4 deletions(-)

[U-Boot] [PATCH 06/10] net: Add an accessor to know if waiting for ARP

2018-07-24 Thread Joe Hershberger
This single-sources the state of the ARP. Signed-off-by: Joe Hershberger --- include/net.h | 1 + net/arp.c | 11 --- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/net.h b/include/net.h index f9984ae86c..63718a47f2 100644 --- a/include/net.h +++

[U-Boot] [PATCH v2 4/6] adc: Add driver for STM32 ADC

2018-07-24 Thread Fabrice Gasnier
This patch adds support for STMicroelectronics STM32 ADC (analog to digital converter). It's originally based on Linux kernel v4.18-rcs drivers/iio/adc/stm32-adc*. It's composed of: - core driver (UCLASS_SIMPLE_BUS) manages common resources (clk, regu). - child drivers (UCLASS_ADC) declare each

[U-Boot] [PATCH v2 5/6] configs: stm32mp15: enable ADC

2018-07-24 Thread Fabrice Gasnier
Enable ADC on stm32mp15. - CONFIG_CMD_ADC - CONFIG_STM32_ADC Signed-off-by: Fabrice Gasnier Reviewed-by: Simon Glass --- Changes in v2: None configs/stm32mp15_basic_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/stm32mp15_basic_defconfig

[U-Boot] [PATCH v2 2/6] dm: adc: uclass: get reference regulator once

2018-07-24 Thread Fabrice Gasnier
device_get_supply_regulator() only needs to be called once. But each time there's call to adc_vxx_value() for instance, it calls adc_vxx_platdata_update() -> device_get_supply_regulator(). So, move device_get_supply_regulator() to pre_probe() routine. This also allows vdd_supply/vss_supply to be

Re: [U-Boot] [PATCH v2 1/3] dfu: Fix data abort in dfu_free_entities()

2018-07-24 Thread Lukasz Majewski
Hi Sam, > On Fri, Jul 13, 2018 at 4:35 PM, Sam Protsenko > wrote: > > Commit 5d8fae79163e ("dfu: avoid memory leak") brings a regression > > which described below. This patch is effectively reverting that > > commit, adding corresponding comment to avoid such regressions in > > future. > > > >

[U-Boot] [PATCH 01/10] net: sandbox: Move disabled flag into priv struct

2018-07-24 Thread Joe Hershberger
Store the per-device data with the device. Signed-off-by: Joe Hershberger --- drivers/net/sandbox.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c index b71c8f88d9..60fe065ee5 100644 ---

[U-Boot] [PATCH 08/10] test: eth: Add a test for ARP requests

2018-07-24 Thread Joe Hershberger
This tests that ARP requests made to this target's IP address are responded-to by the target when it is doing other networking operations. This currently corrupts the ongoing operation of the device if it happens to be awaiting an ARP reply of its own to whatever serverip it is attempting to

[U-Boot] [PATCH 10/10] net: Don't overwrite waiting packets with asynchronous replies

2018-07-24 Thread Joe Hershberger
Peter originally sent a fix, but it breaks a number of other things. This addresses the original reported issue in a different way. That report was: > U-Boot has 1 common buffer to send Ethernet frames, pointed to by > net_tx_packet. When sending to an IP address without knowing the MAC >

[U-Boot] [PATCH 02/10] net: sandbox: Refactor sandbox send function

2018-07-24 Thread Joe Hershberger
Make the behavior of the send function reusable. Signed-off-by: Joe Hershberger --- arch/sandbox/include/asm/eth.h | 20 + drivers/net/sandbox.c | 176 - 2 files changed, 124 insertions(+), 72 deletions(-) diff --git

Re: [U-Boot] [PATCH] arm64: zynqmp: Add support for Avnet Ultra96

2018-07-24 Thread Marek Vasut
On 07/24/2018 04:38 PM, Michal Simek wrote: > Avnet Ultra96 is rebranded Xilinx zcu100 revC/D. Add new defconfig files > and point to origin internal board name. > > Signed-off-by: Michal Simek > --- [...] > diff --git a/arch/arm/dts/avnet-ultra96-rev1.dts >

Re: [U-Boot] [PATCH] ARM: uniphier: enable distro boot

2018-07-24 Thread Masahiro Yamada
2018-07-20 21:47 GMT+09:00 Masahiro Yamada : > Switch to the distro boot for UniPhier platform. > > - Remove the environment vairalbes used to load images from raw >block devices. > > - Keep the command to download images via tftp. This will be >useful to boot the kernel when no valid

Re: [U-Boot] [PATCH] mtd: nand: denali: correct buffer alignment for DMA transfer

2018-07-24 Thread Masahiro Yamada
2018-07-19 10:13 GMT+09:00 Masahiro Yamada : > The NAND framework makes sure to pass in the buffer with at least > chip->buf_align alignment. Currently, the Denali NAND driver only > requests 16 byte alignment. This causes unaligned cache operations > for the DMA transfer. > > [Error Example] >

[U-Boot] [GIT PULL] u-boot-uniphier/master

2018-07-24 Thread Masahiro Yamada
Hi Tom, Please pull UniPhier updates + Kconfig warning fix. Thanks. The following changes since commit 323a73adc9a1bf2de43fe03bdd9c3038ce7c2784: mtd: nand: add new enum for storing ECC algorithm (2018-07-23 14:33:21 -0400) are available in the git repository at:

[U-Boot] [PATCH 2/2] armv8: make SPL exception vectors optional

2018-07-24 Thread Andre Przywara
Even though the exception vector table is a fundamental part of the ARM architecture, U-Boot mostly does not make real use of it, except when crash dumping. But having it in takes up quite some space, partly due to the architectural alignment requirement of 2KB. Since we don't take special care of

Re: [U-Boot] [PATCH v3 2/5] Revert "dm: led: auto probe() LEDs with "default-state""

2018-07-24 Thread Simon Glass
On 24 July 2018 at 02:58, Patrick Delaunay wrote: > > This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7. > because this patch adds the probe of LED driver during the > binding phasis. It is not allowed in driver model because > the drivers (clock, pincontrol) needed by the LED driver

Re: [U-Boot] [PATCH] tools: genboardscfg: move buildman path to first

2018-07-24 Thread Simon Glass
Hi Peng, On 24 July 2018 at 00:27, Peng Fan wrote: > To system which has kconfiglib installed, genboardscfg will > use system kconfiglib, we need it use U-Boot owned version, > so move the buildman path to first. > > Signed-off-by: Peng Fan > Cc: Masahiro Yamada > Cc: Simon Glass > Cc: Tom

Re: [U-Boot] [PATCH 2/4] power-domain: add dummy functions when CONFIG_POWER_DOMAIN not defined

2018-07-24 Thread Simon Glass
Hi Peng, On 24 July 2018 at 01:45, Peng Fan wrote: > Add dummy functions when CONFIG_POWER_DOMAIN not defined. > > Signed-off-by: Peng Fan > Reviewed-by: Simon Glass > --- > include/power-domain.h | 28 > 1 file changed, 28 insertions(+) > > diff --git

Re: [U-Boot] [PATCH 3/4] dm: core: device: enable power domain in probe

2018-07-24 Thread Simon Glass
On 24 July 2018 at 01:45, Peng Fan wrote: > Enable power domain associated with the device when probe. > > Signed-off-by: Peng Fan > Cc: Simon Glass > --- > drivers/core/device.c | 7 +++ > 1 file changed, 7 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH 11/17] fs: add mkdir interface

2018-07-24 Thread Simon Glass
Hi, On 23 July 2018 at 19:45, AKASHI Takahiro wrote: > On Mon, Jul 23, 2018 at 07:56:58PM -0400, Tom Rini wrote: >> On Mon, Jul 23, 2018 at 05:48:13PM -0600, Simon Glass wrote: >> > Hi, >> > >> > On 20 July 2018 at 11:35, Heinrich Schuchardt wrote: >> > > On 07/20/2018 04:57 AM, AKASHI Takahiro

Re: [U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-07-24 Thread Simon Glass
On 24 July 2018 at 02:11, Peng Fan wrote: > Add u-boot,off-on-delay-us for fixed regulator. > > Depends on board design, the gpio regulator sometimes > connects with a big capacitance. When need to off, then > on the regulator, if there is no enough delay, > the voltage does not drop to 0, so

Re: [U-Boot] [PATCH 1/4] configs: opos6uldev: undef CONFIG_POWER_DOMAIN when SPL_BUILD

2018-07-24 Thread Simon Glass
Hi Peng, On 24 July 2018 at 01:45, Peng Fan wrote: > Because CONFIG_POWER_DOMAIN is enabled in defconfig, > however driver/power/domain is not built for SPL, there is build > failure when power_domain_on added to device_probe. > Because power domain is not needed in SPL, let's undef it. > >

Re: [U-Boot] [PATCH v2 2/6] dm: adc: uclass: get reference regulator once

2018-07-24 Thread Simon Glass
On 24 July 2018 at 08:31, Fabrice Gasnier wrote: > device_get_supply_regulator() only needs to be called once. > But each time there's call to adc_vxx_value() for instance, it calls > adc_vxx_platdata_update() -> device_get_supply_regulator(). > > So, move device_get_supply_regulator() to

Re: [U-Boot] [PATCH v2 1/6] clk: add clk_valid()

2018-07-24 Thread Simon Glass
On 24 July 2018 at 08:31, Fabrice Gasnier wrote: > Add clk_valid() to check for optional clocks are valid. > Call clk_valid() in test/dm/clk.c and add relevant test routine to > sandbox clk tests. > > Signed-off-by: Fabrice Gasnier > --- > > Changes in v2: > - add test case for 'clk_valid()',

Re: [U-Boot] [PATCH 4/4] dm: power-domain: query power domain after get device

2018-07-24 Thread Simon Glass
On 24 July 2018 at 01:45, Peng Fan wrote: > This is to test power_domain_on in device_probe. > If the device has a power-domain property, enable it > when probe the device. So add the test to check > whether it is powered on or not. > > Signed-off-by: Peng Fan > Cc: Simon Glass > --- >

Re: [U-Boot] [PATCH v2 6/6] ARM: dts: stm32mp157: Add ADC DT node

2018-07-24 Thread Simon Glass
On 24 July 2018 at 08:31, Fabrice Gasnier wrote: > Add ADC device tree node. This allows to get analog conversions on > stm32mp157. > > Signed-off-by: Fabrice Gasnier > --- > > Changes in v2: None > > --- > arch/arm/dts/stm32mp157.dtsi | 32 > 1 file changed, 32

Re: [U-Boot] [PATCH] tools: genboardscfg: move buildman path to first

2018-07-24 Thread Peng Fan
Hi Simon, > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: 2018年7月25日 10:45 > To: Peng Fan > Cc: U-Boot Mailing List ; dl-linux-imx > ; Masahiro Yamada ; > Tom Rini > Subject: Re: [PATCH] tools: genboardscfg: move buildman path to

Re: [U-Boot] [PATCH 1/4] configs: opos6uldev: undef CONFIG_POWER_DOMAIN when SPL_BUILD

2018-07-24 Thread Peng Fan
Hi Simon, > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: 2018年7月25日 10:46 > To: Peng Fan > Cc: U-Boot Mailing List ; dl-linux-imx > ; Sébastien Szymanski > ; Stefano Babic > Subject: Re: [PATCH 1/4] configs: opos6uldev: undef

Re: [U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-07-24 Thread Fabio Estevam
Hi Peng, On Tue, Jul 24, 2018 at 5:11 AM, Peng Fan wrote: > .../devicetree/bindings/regulator/fixed-regulator.txt| 16 > > drivers/power/regulator/fixed.c | 6 ++ > 2 files changed, 22 insertions(+) > create mode 100644 >

Re: [U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-07-24 Thread Peng Fan
Hi Fabio, > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018年7月25日 10:59 > To: Peng Fan > Cc: Simon Glass ; U-Boot-Denx ; > dl-linux-imx ; Breno Matheus Lima > Subject: Re: [U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, > off-on-delay-us > >

  1   2   >