[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 a/include/configs/cl-som-im

[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 Babic

[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 10

[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(+) diff

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 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 are

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 >>>

[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. Signed-off-b

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 th

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 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 > Reviewed

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 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, wher

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 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 Acked-

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 > Reviewed-

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 Ri

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 engi

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 Kernel

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 -- Max

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] [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 configura

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 > --- > ar

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 n

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 A

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] [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 next-20180

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 onl

Re: [U-Boot] [UBOOT PATCH] gpio: zynq: Used platdata structure for storing static data instead of priv

2018-07-24 Thread Michal Simek
On 24.7.2018 01:48, Simon Glass wrote: > On 20 July 2018 at 03:06, Vipul Kumar wrote: >> This patch used platdata structure instead of priv for storing static >> information read from DT. >> >> Signed-off-by: Vipul Kumar >> --- >> drivers/gpio/zynq_gpio.c | 67 >> ---

Re: [U-Boot] [PATCH] sunxi: enable SATA on Banana Pi M2 Berry

2018-07-24 Thread Maxime Ripard
On Tue, Jul 24, 2018 at 12:22:19AM +0200, Simon Baatz wrote: > Banana Pi M2 Ultra and M2 Berry are very similar boards. SATA can be > enabled exactly the same as for M2 Ultra introduced in > commit daa8b75a5527 ("sunxi: enable SATA on Banana Pi M2 Ultra"). > > Signed-off-by: Simon Baatz Acked-b

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 acco

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@lists.

[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] [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 HS4

[U-Boot] [PATCH v2 1/6] configs: stm32f429-evaluation: 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/stm32f429-evaluation_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/stm32f429-evaluation_defconfig b/configs/stm32f429-evaluation_defconfig index 1b14a4964

[U-Boot] [PATCH v2 0/6] Add support of CONFIG_BLK for STM32Fx platforms

2018-07-24 Thread Patrice Chotard
This series : _ adds support of CONFIG_BLK flag to STM32Fx platforms _ enables CONFIG_BLK flag for STM32Fx based boards _ adds missing clk_free() call in error path _ adds read of "cd_inverted" DT property Changes in v2: - replace devfdt_get_addr() by dev_read_addr() - re-introduce arm_

[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 aa7403f3c516..6f07ff1558

[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 c4d94d102cc1..1cd780

[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 4de03edcc2ca

[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 --- a/dr

[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

[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 Sig

[U-Boot] [PATCH v3 4/5] stm32mp1: use new function led default state

2018-07-24 Thread Patrick Delaunay
Initialize the led with the default state defined in device tree. Reviewed-by: Simon Glass Signed-off-by: Patrick Delaunay --- Changes in v3: - minor update after Simon review - include led.h to avoid compilation warning on stm32mp1 board Changes in v2: None board/st/stm32mp1/stm32mp1.c | 4

[U-Boot] [PATCH v3 1/5] stm32mp1: add gpio led support

2018-07-24 Thread Patrick Delaunay
This patch add the 4 LED available on the ED1 board and activated gpio led driver. Reviewed-by: Simon Glass Signed-off-by: Patrick Delaunay --- Changes in v3: None Changes in v2: None arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 24 configs/stm32mp15_basic_defconfig

[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

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] 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 fi

[U-Boot] [PATCH] mailmap: Fix broken email from fit_image.c

2018-07-24 Thread Michal Simek
The patch "tools/mkimage: Fix DTC run command to handle file names with space" (sha1: a6e9810495bc929b6beafb88f557cdaadf87fc83) contains comma in name which is confusing patman. Fix it by defining Mirza's email in mailmap. Signed-off-by: Michal Simek --- .mailmap | 1 + 1 file changed, 1 insert

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 l

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

2018-07-24 Thread Tuomas Tynkkynen
Hi Patrice, On 07/24/2018 12:39 PM, Patrice Chotard wrote: Add missing read of "cd_inverted" property in DT. If your platform uses GPIOs for card detection, it's simpler and more readable to use GPIO_ACTIVE_(LOW|HIGH) in the gpio flags instead of using the cd-inverted property. See Linux com

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

2018-07-24 Thread Patrice CHOTARD
Hi Tuomas On 07/24/2018 01:22 PM, Tuomas Tynkkynen wrote: > Hi Patrice, > > > On 07/24/2018 12:39 PM, Patrice Chotard wrote: >> Add missing read of "cd_inverted" property in DT. >> > > If your platform uses GPIOs for card detection, it's > simpler and more readable to use GPIO_ACTIVE_(LOW|HIGH)

[U-Boot] [PATCH v3 0/6] Add support of CONFIG_BLK for STM32Fx platforms

2018-07-24 Thread Patrice Chotard
This series : - adds support of CONFIG_BLK flag to STM32Fx platforms - enables CONFIG_BLK flag for STM32Fx based boards - adds missing clk_free() call in error path Changes in v3: - remove usage of "cd_inverted" DT property in dm_mmc_getcd() Changes in v2: - replace devfdt_get_addr() b

[U-Boot] [PATCH v3 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 v3: None 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 aa74

[U-Boot] [PATCH v3 1/6] configs: stm32f429-evaluation: Enable CONFIG_BLK

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

[U-Boot] [PATCH v3 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 v3 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 v3: None 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

Re: [U-Boot] [U-Boot, v1, 1/2] spi: stm32_qspi: assign functional operation mode in _stm32_qspi_gen_ccr

2018-07-24 Thread Tom Rini
On Mon, Jul 09, 2018 at 03:32:37PM +0200, Patrice Chotard wrote: > From: Christophe Kerello > > This patch assigns the functional operation mode in _stm32_qspi_gen_ccr > function. > > Signed-off-by: Christophe Kerello > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- To

Re: [U-Boot] m68k: m5253evbe: Remove this board

2018-07-24 Thread Tom Rini
On Mon, Jul 09, 2018 at 10:44:51AM -0400, Tom Rini wrote: > The m5253evbe board has been marked as orphan since June of 2014 and > should have been dropped a while ago. Do so now. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, 2/2] ARM: DTS: Resync Logic PD SOM-LV 37xx devkit with Linux 4.18-RC4

2018-07-24 Thread Tom Rini
On Mon, Jul 09, 2018 at 08:18:44PM -0500, Adam Ford wrote: > There have been some significant changes to the DM37 SOM-LV device > tree. This patch re-syncs it with Linux. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/logicpd-som-lv-37xx-devkit.dts > b/arch/arm/dts/logicpd-som-lv-

[U-Boot] [PATCH v3 6/6] mmc: arm_pl180_mmci: Remove cd_inverted host's struct field

2018-07-24 Thread Patrice Chotard
As platform uses GPIOs for card detection, it's simpler and more readable to use GPIO_ACTIVE_(LOW|HIGH) in the gpio flags instead of using the cd-inverted property. Reported-by: Tuomas Tynkkynen Signed-off-by: Patrice Chotard --- Changes in v3: - remove usage of "cd_inverted" DT property in

Re: [U-Boot] [U-Boot, v1, 2/2] spi: stm32_qspi: rework mode management

2018-07-24 Thread Tom Rini
On Mon, Jul 09, 2018 at 03:32:38PM +0200, Patrice Chotard wrote: > From: Christophe Kerello > > This patch solves quad read issue with Macronix/Micron spi nor. > > Signed-off-by: Christophe Kerello > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc De

[U-Boot] [PATCH v3 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 v3: None 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_defconfi

Re: [U-Boot] Convert CONFIG_DA8XX_GPIO to Kconfig

2018-07-24 Thread Tom Rini
On Tue, Jul 10, 2018 at 07:01:20AM -0500, Adam Ford wrote: > This converts the following to Kconfig: >CONFIG_DA8XX_GPIO > > Signed-off-by: Adam Ford > > diff --git a/configs/calimain_defconfig b/configs/calimain_defconfig > index 7908cfcc34..bc704ff7bd 100644 Applied to u-boot/master, than

Re: [U-Boot] mtd: nand: add new enum for storing ECC algorithm

2018-07-24 Thread Tom Rini
On Tue, Jul 10, 2018 at 11:48:08AM +0200, Philippe Reynes wrote: > From: Rafał Miłecki > > Our nand_ecc_modes_t is already a bit abused by value NAND_ECC_SOFT_BCH. > This enum should store ECC mode only and putting algorithm details there > is a bad idea. It would result in too many values impos

Re: [U-Boot] ARM: dts: am3517-evm-uboot: Add reg-shift for UART

2018-07-24 Thread Tom Rini
On Tue, Jul 10, 2018 at 05:04:38AM -0500, Adam Ford wrote: > With the resync of the omap3.dtsi file, the reg-shift was removed > so it breaks the UART. Adding the reg-shift into the > am3517-evm-u-boot.dtsi keeps the reg-shift for U-Boot, but keeps > the dts/dtsi files clean from Linux. > > Sign

Re: [U-Boot] [U-Boot, 1/2] ARM: DTS: Resync LogicPD-Torpedo-37xx-devkit with Linux 4.18-RC4

2018-07-24 Thread Tom Rini
On Mon, Jul 09, 2018 at 08:18:14PM -0500, Adam Ford wrote: > There have been some refactoring of the DTS files for the Logic PD > DM37 Torpedo. This patch re-sync's the DTS files with Linux > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts > b/arch/arm

Re: [U-Boot] ARM: dts: Resync OMAP3 and omap36xx with Linux 4.18-RC4

2018-07-24 Thread Tom Rini
On Mon, Jul 09, 2018 at 08:14:25PM -0500, Adam Ford wrote: > There have been several minor changes to the OMAP3.dtsi, so this > patch re-syncs it with Linux. An addition include/dt-binding was > also brought with it. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/omap3.dtsi b/arch/

Re: [U-Boot] doc: Replace DocBook with sphinx-based docs

2018-07-24 Thread Tom Rini
On Tue, Jul 10, 2018 at 08:40:17AM +0200, Mario Six wrote: > The Linux kernel moved to sphinx-based documentation and got rid of the > DocBook based documentation quite a while ago. Hence, the DocBook > documentation for U-Boot should be converted as well. > > To achieve this, import the necessar

Re: [U-Boot] ARM: DTS: am3517-evm-u-boot: Mark MMC1 with cd-inverted

2018-07-24 Thread Tom Rini
On Tue, Jul 10, 2018 at 05:23:37AM -0500, Adam Ford wrote: > In order to use the device tree for MMC, the card-detect pin > needs to be inverted. This patch places this into the > am3517-evm-u-boot.dtsi file to keep the main DTS and DTSI files > clean and in-sync with Linux > > Signed-off-by: Ad

Re: [U-Boot] [U-Boot, 1/1] bios_emulator: remove assignment without effect

2018-07-24 Thread Tom Rini
On Sun, Mar 18, 2018 at 11:01:23AM +0100, Heinrich Schuchardt wrote: > Assigning a parameter which is not used afterwards has not effect. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] ARM: DTS: Resync am3517-evm.dts with Linux 4.18-rc4

2018-07-24 Thread Tom Rini
On Mon, Jul 09, 2018 at 07:52:48PM -0500, Adam Ford wrote: > Several changes have been made to the AM3517-evm and the underlying > am3517.dtsi file. This patch re-sync's the DTS and DTSI files with > Linux. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/am3517-evm.dts b/arch/arm/dt

Re: [U-Boot] ARM: configs: omap3_logic: remove Legacy OMAP3 USB driver

2018-07-24 Thread Tom Rini
On Fri, Jul 13, 2018 at 03:27:13PM -0500, Adam Ford wrote: > Only the MUSB driver is currently supported on the omap3_logic > boards. The driver is using the new-musb and not the legacy > version, so this patch removes the dead code references. > > Signed-off-by: Adam Ford > > diff --git a/con

[U-Boot] [PATCH] kconfig: Replace spaces with tabs

2018-07-24 Thread Michal Simek
Trivial Kconfig cleanup. Use tabs instead of spaces. Signed-off-by: Michal Simek --- Kconfig | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Kconfig b/Kconfig index cb953144c9da..db0f545e459b 100644 --- a/Kconfig +++ b/Kconfig @@ -144,24 +1

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

2018-07-24 Thread Michal Simek
On 24.7.2018 08:10, Luis Araneda wrote: > 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: stere

Re: [U-Boot] [UBOOT PATCH] Kconfig: Move config SYS_MALLOC_LEN to Kconfig for zynq

2018-07-24 Thread Michal Simek
On 20.7.2018 11:41, Vipul Kumar wrote: > From: Siva Durga Prasad Paladugu > > This patch moves the the config SYS_MALLOC_LEN to > Kconfig. It will be just for Zynq arch and to do > will be for all other archs. > > Signed-off-by: Siva Durga Prasad Paladugu > Signed-off-by: Vipul Kumar > --- >

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

2018-07-24 Thread Marek Vasut
On 07/24/2018 08:25 AM, Aaron Williams wrote: > 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 fol

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

2018-07-24 Thread Marek Vasut
On 07/24/2018 10:10 AM, Chee, Tien Fong wrote: > 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.

[U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-24 Thread Michal Simek
There is no reason to limit gzip usage only for OS_BOOT and kernel image type. Signed-off-by: Michal Simek --- common/spl/spl_fit.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index 9eabb1c1058b..dbf5ac33a845 100644 --- a/c

Re: [U-Boot] [PATCH] ARM: mx6ul: Apply ERR011115 errata workaround

2018-07-24 Thread Marcin Niestroj
Hi Stefano, On 23.07.2018 10:09, Stefano Babic wrote: Hi Marcin, On 19/07/2018 13:37, Marcin Niestroj wrote: ERR05 in IMX6UL errata says to use OCRAM memory above 0x908000 (instead of 0x907000) for silicon revision 1.2 shipped prior date code 1740. As we cannot check affected targets in r

Re: [U-Boot] [RFC PATCH 0/4] arm: zynq: implement FPGA load from SPL

2018-07-24 Thread Michal Simek
Hi, On 20.7.2018 18:17, Luis Araneda wrote: > Hi Michal, > > On Fri, Jul 20, 2018 at 6:38 AM Michal Simek wrote: >> On 20.7.2018 01:37, Luis Araneda wrote: >>> Hi Michal, >>> >>> On Thu, Jul 19, 2018 at 2:23 AM Michal Simek >>> wrote: >> We need that functionality first but then enable it for

[U-Boot] [PATCH v4 0/8] LS1046A SMMU enabling patches

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor This patch series adds the required devices setup and device tree fixups for SMMU enablement on LS1046A chips. The approach taken tries to mimic the implementation of PAMU LIODN setup on booke powerpc. First 4 patches contain some fixes and add some missing bits & pieces. L

[U-Boot] [PATCH v4 2/8] armv8: ls1046a: advertise QMan v3 in configuration

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor The QMan IP block in this SoC is version 3.2 so advertise this in the SoC configuration header. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-fsl-layerscap

[U-Boot] [PATCH v4 1/8] armv8: fsl-layerscape: add missing register blocks base address defines

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor Add defines for the edma and qdma register block base addresses. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h b/arc

[U-Boot] [PATCH v4 8/8] armv8: ls1046a: setup SEC ICIDs and fix up device tree

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor Add support for SEC ICID configuration and apply it for ls1046a. Also add code to make the necessary device tree fixups. Also included in this patch, while adding the new required JR defines sanitize the preexisting ones by dropping the CONFIG_ prefixes. Signed-off-by: Laur

[U-Boot] [PATCH v4 7/8] armv8: ls1046a: setup fman ports ICIDs and device tree

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor Add support for ICID setting of fman ports and the required device tree fixups. Signed-off-by: Laurentiu Tudor --- arch/arm/cpu/armv8/fsl-layerscape/icid.c | 82 +++ .../arm/cpu/armv8/fsl-layerscape/ls1046_ids.c | 30 +++ .../asm/arch-fsl-layersca

[U-Boot] [PATCH v4 6/8] armv8: ls1046a: add icid setup for qman portals

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor Add support for ICID setting of qman portals and the required device tree fixups. Also fix an endiness issue in portal setup code. Signed-off-by: Laurentiu Tudor --- .../arm/cpu/armv8/fsl-layerscape/ls1046_ids.c | 16 +++ .../asm/arch-fsl-layerscape/fsl_portals.h

[U-Boot] [PATCH v4 5/8] armv8: ls1046a: initial icid setup support

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor Add infrastructure for ICID setup and device tree fixup on ARM platforms. This include basic ICID setup for several devices. Signed-off-by: Laurentiu Tudor --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 1 + arch/arm/cpu/armv8/fsl-layerscape/icid.c | 110 +

[U-Boot] [PATCH v4 3/8] misc: fsl_portals: setup QMAN_BAR{E} also on ARM platforms

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor QMAN_BAR{E} register setup was disabled on ARM platforms, however the register does need to be set. Enable the code also on ARMs and fix the CONFIG_SYS_QMAN_MEM_PHYS define to the correct value so that the newly enabled code works. Signed-off-by: Laurentiu Tudor --- arch/

[U-Boot] [PATCH v4 4/8] armv8: fsl-layerscape: add missing debug stream ID

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor Add a define with a value for the missing debug stream ID. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/stream_id_lsch2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-fsl-layerscape/stream_id_lsch2.h b/arch/

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

2018-07-24 Thread Michal Simek
Avnet Ultra96 is rebranded Xilinx zcu100 revC/D. Add new defconfig files and point to origin internal board name. Signed-off-by: Michal Simek --- MAINTAINERS| 1 + arch/arm/dts/Makefile | 1 + arch/arm/dts/avnet-ultra96-rev1.dts| 19 +++ bo

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

2018-07-24 Thread Luis Araneda
Hi Michal, On Tue, Jul 24, 2018 at 8:39 AM Michal Simek wrote: > [...] > This should be tuned more. That file is long because you support all > silicon version which is not needed at all. z7 is quite new product > where 3_0 tables are used. It means just manually remove that > PCW_SILICON_VERSION

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

2018-07-24 Thread Simon Glass
Hi Maxime, On 24 July 2018 at 00:58, Maxime Ripard wrote: > 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

[U-Boot] [PATCH v3] 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] [PATCH] armv8: layerscape: Enable EHCI access for LS1012A

2018-07-24 Thread York Sun
On 07/10/2018 07:11 PM, Ran Wang wrote: > Hi York, > >> -Original Message- >> From: York Sun >> Sent: Wednesday, July 11, 2018 05:06 >> To: Ran Wang ; Albert Aribaud >> >> Cc: u-boot@lists.denx.de >> Subject: Re: [PATCH] armv8: layerscape: Enable EHCI access for LS1012A >> >> On 07/02/201

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-24 Thread York Sun
On 07/24/2018 06:07 AM, Michal Simek wrote: > There is no reason to limit gzip usage only for OS_BOOT and kernel image > type. > > Signed-off-by: Michal Simek > --- > > common/spl/spl_fit.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/common/spl/spl_fit.c b/comm

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

2018-07-24 Thread Sam Protsenko
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: >> >> if (!strcmp(argv[1], "u

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

2018-07-24 Thread Sam Protsenko
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. > > In case of error in dfu_confi

  1   2   >