[U-Boot] [PATCH] arm64: zynqmp: Sync defconfigs in connection to DEFINE_TCM_OCM_MMAP

2018-07-11 Thread Michal Simek
CONFIG_MP was added to Kconfig with enabling CONFIG_DEFINE_TCM_OCM_MMAP=y for zynqmp boards. This option is enabled by default that's why it shouldn't be in defconfig. Signed-off-by: Michal Simek --- configs/xilinx_zynqmp_zc1232_revA_defconfig | 1 -

Re: [U-Boot] [RFC] arm: dts: am33xx: Sync DTS with Linux 4.16.11

2018-07-11 Thread Lokesh Vutla
Hi Felix, On Wednesday 11 July 2018 06:59 PM, Felix Brack wrote: > Hi Lokesh, many thanks for the feedback! > > On 10.07.2018 08:42, Lokesh Vutla wrote: >> Hi Felix, >> >> On Thursday 24 May 2018 02:32 PM, Felix Brack wrote: >>> Hello, >>> >>> I am working on a patch to synchronize the DTS files

Re: [U-Boot] [PATCH] watchdog: dm: Support manual relocation for watchdogs

2018-07-11 Thread Michal Simek
On 11.7.2018 22:13, Simon Glass wrote: > On 11 July 2018 at 08:41, Michal Simek wrote: >> Relocate watchdog ops as was done by: >> "dm: Add support for all targets which requires MANUAL_RELOC" >> (sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3) >> >> Signed-off-by: Michal Simek >> --- >> >>

Re: [U-Boot] [UBOOT PATCH] usb: dwc3: convert to livetree

2018-07-11 Thread Michal Simek
On 11.7.2018 17:01, Marek Vasut wrote: > On 06/11/2018 11:39 AM, Vipul Kumar wrote: >> Update the DWC3 USB driver to support a live tree. >> >> Signed-off-by: Vipul Kumar > > What about systems which do not use live tree, does it work on those ? > They are not affected because headers are

[U-Boot] ls1021a: problem with errata A009007

2018-07-11 Thread Heiko Schocher
Hello Ran Wang, I have ported successfully U-Boot to an ls1021a based board and works nice for the HW I have access to. Now the customer reports problems on his HW with SYS_FSL_ERRATUM_A009007 which is always activated. Board does not boot, and crashes in erratum_a009007() (Sorry I have no

Re: [U-Boot] UBI fixable bit-flip issue

2018-07-11 Thread Mark Spieth
On 12/07/18 15:22, Heiko Schocher wrote: Hello Mark, added Richard Weinberger to cc... Am 12.07.2018 um 02:28 schrieb Mark Spieth: Hi In the process of investigating a boot failure on one of our devices, the UBI: fixable bit-flip detected at PEB message was seen with the following

Re: [U-Boot] [PATCH v4 3/6] block: Add a function to find block device descriptor

2018-07-11 Thread Chee, Tien Fong
On Wed, 2018-07-11 at 14:13 -0600, Simon Glass wrote: > Hi Tien Fong, > > On 11 July 2018 at 08:23, Chee, Tien Fong > wrote: > > > > On Wed, 2018-07-11 at 08:02 -0600, Simon Glass wrote: > > > > > > Hi Tien, > > > > > > On 6 July 2018 at 02:26,   wrote: > > > > > > > > > > > > From: Tien

Re: [U-Boot] UBI fixable bit-flip issue

2018-07-11 Thread Heiko Schocher
Hello Mark, added Richard Weinberger to cc... Am 12.07.2018 um 02:28 schrieb Mark Spieth: Hi In the process of investigating a boot failure on one of our devices, the UBI: fixable bit-flip detected at PEB message was seen with the following behaviour during kernel load in u-boot. Read

Re: [U-Boot] [PATCH v4 2/6] cmd: ubifs: Factor out some checking codes into cmd_ubifs_mount()

2018-07-11 Thread Heiko Schocher
Hello tien.fong.chee, Am 06.07.2018 um 10:26 schrieb tien.fong.c...@intel.com: From: Tien Fong Chee cmd_ubifs_mount() function would be called directly instead of involving whole command machinery for mounting ubifs in generic firmware loader, so some checking codes need to be factored out

Re: [U-Boot] [PATCH v4 1/6] cmd: ubifs: Move ubifs_initialized checking into cmd_ubifs_umount()

2018-07-11 Thread Heiko Schocher
Hello Tien.fong.chee Am 06.07.2018 um 10:25 schrieb tien.fong.c...@intel.com: From: Tien Fong Chee cmd_ubifs_umount() function would be called directly instead of involving whole command machinery in generic firmware loader, so checking on ubifs_initialized status need to be done in

[U-Boot] [PATCH] arm: socfpga: Fix: Compile MCR instruction on ARM 32-bit only

2018-07-11 Thread Ley Foon Tan
MCR instruction only available in ARM 32-bit. So, compile MCR instruction when ARM 32-bit is enabled. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c index

[U-Boot] [PATCH] arm: dts: socfpga: stratix10: Fix memory node

2018-07-11 Thread Ley Foon Tan
Commit 5dfd5607af2114047bd ("ARM: socfpga: Pull DRAM size from DT") get memory size from DT. So, we need to update memory size in memory node. Otherwise, it cause U-boot hang. Signed-off-by: Ley Foon Tan --- arch/arm/dts/socfpga_stratix10_socdk.dts | 4 ++-- 1 file changed, 2 insertions(+), 2

[U-Boot] [PATCH v2] arm: socfpga: Fixes: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET

2018-07-11 Thread Ley Foon Tan
Commit bfc6bae8fa1f2d8a9c51548767b02f1a1e0ffe52 This commit rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET. Update with new CONFIG name. Signed-off-by: Ley Foon Tan Acked-by: Marek Vasut --- v2: - Rename commit title, add "Fixes:" tag - Add Acked-by from Marek --- arch/arm/Kconfig |

Re: [U-Boot] [GIT PULL] u-boot-mips

2018-07-11 Thread Tom Rini
On Wed, Jul 11, 2018 at 06:35:33PM +0200, Daniel Schwierzeck wrote: > Hi Tom, > > Travis CI build: > https://travis-ci.org/danielschwierzeck/u-boot/builds/402636234 > > > The following changes since commit e3396ffd720877976141fa0b76a0b8ee9643d7d1: > > Merge git://git.denx.de/u-boot-dm

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

2018-07-11 Thread Tom Rini
On Tue, Jul 10, 2018 at 02:58:16PM -0600, Simon Glass wrote: > Hi Tom, > > Here are some Python 3 fixes as mentioned on irc. I've left out the > two which cause problems. > > Travis run is here: > > https://travis-ci.org/sglass68/u-boot/builds/402281566 > > > The following changes since

[U-Boot] UBI fixable bit-flip issue

2018-07-11 Thread Mark Spieth
Hi In the process of investigating a boot failure on one of our devices, the UBI: fixable bit-flip detected at PEB message was seen with the following behaviour during kernel load in u-boot. Read [2285568] bytes UBI: fixable bit-flip detected at PEB 415 UBI: schedule PEB 415 for scrubbing

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

2018-07-11 Thread Simon Glass
Hi Stephen, On 11 July 2018 at 16:01, Stephen Warren wrote: > On 07/10/2018 02:24 PM, Simon Glass wrote: >> >> Hi Stephen, >> >> On 10 July 2018 at 13:53, Stephen Warren wrote: >>> >>> On 07/10/2018 12:47 PM, Tom Rini wrote: On Mon, Jul 09, 2018 at 01:53:43PM -0600, Simon Glass

Re: [U-Boot] [PATCH v2 21/21] dt-bindings: Add bindings for SPI NAND devices

2018-07-11 Thread Boris Brezillon
On Wed, 11 Jul 2018 17:25:29 +0200 Miquel Raynal wrote: > From: Boris Brezillon > > Add bindings for SPI NAND chips. > > Signed-off-by: Boris Brezillon > Signed-off-by: Miquel Raynal > --- > doc/device-tree-bindings/mtd/spi-nand.txt | 27 +++ > 1 file changed, 27

Re: [U-Boot] [PATCH v2 20/21] cmd: mtd: add 'mtd' command

2018-07-11 Thread Boris Brezillon
On Wed, 11 Jul 2018 17:25:28 +0200 Miquel Raynal wrote: > + > +static void mtd_show_device(struct mtd_info *mtd) > +{ > + printf("* %s", mtd->name); Printing the device type might be interesting? And maybe also the size, writesize, oobsize and erasesize? > + if (mtd->dev) > +

Re: [U-Boot] [PATCH v2 09/21] mtd: move NAND fiels into a raw/ subdirectory

2018-07-11 Thread Boris Brezillon
In your subject: s/fiels/files/ On Wed, 11 Jul 2018 17:25:17 +0200 Miquel Raynal wrote: > NAND flavors, like serial and parallel, have a lot in common and would > benefit to share code. Let's move raw (parallel) NAND specific code in a > raw/ subdirectory, to ease the addition of a core file in

Re: [U-Boot] [PATCH v2 04/21] mtd: Fallback to ->_read/write() when ->_read/write_oob() is missing

2018-07-11 Thread Boris Brezillon
On Wed, 11 Jul 2018 17:25:12 +0200 Miquel Raynal wrote: > Some MTD sublayers/drivers are implementing ->_read/write() and > not ->_read/write_oob(). > > While for NAND devices both are usually valid, for NOR devices, using > the _oob variant has no real meaning. But, as the MTD layer is

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

2018-07-11 Thread Stephen Warren
On 07/10/2018 02:24 PM, Simon Glass wrote: Hi Stephen, On 10 July 2018 at 13:53, Stephen Warren wrote: On 07/10/2018 12:47 PM, Tom Rini wrote: On Mon, Jul 09, 2018 at 01:53:43PM -0600, Simon Glass wrote: Hi Tom. Here are some test-coverage and DM core enhancements. Also it adds a way to

Re: [U-Boot] [PATCH 3/5] net: Make copy_filename() accept NULL src

2018-07-11 Thread Alexander Graf
> Am 11.07.2018 um 22:54 schrieb Joe Hershberger : > > Hey Alex, > >> On Thu, Jul 5, 2018 at 12:27 PM, Joe Hershberger >> wrote: >>> On Thu, Jul 5, 2018 at 6:49 AM, Alexander Graf wrote: On 07/04/2018 06:18 PM, Joe Hershberger wrote: > On Wed, Jul 4, 2018 at 4:25 AM,

Re: [U-Boot] [PATCH v3 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line

2018-07-11 Thread Eugeniu Rosca
Hi, On Fri, Jun 22, 2018 at 02:25:34PM +0200, Jean-Jacques Hiblot wrote: > +static int do_bind_unbind(cmd_tbl_t *cmdtp, int flag, int argc, > + char * const argv[]) > +{ > + int ret; > + bool bind; > + bool by_node; > + > + if (argc < 2) > +

Re: [U-Boot] [PATCH 3/5] net: Make copy_filename() accept NULL src

2018-07-11 Thread Joe Hershberger
Hey Alex, On Thu, Jul 5, 2018 at 12:27 PM, Joe Hershberger wrote: > On Thu, Jul 5, 2018 at 6:49 AM, Alexander Graf wrote: >> On 07/04/2018 06:18 PM, Joe Hershberger wrote: >>> >>> On Wed, Jul 4, 2018 at 4:25 AM, Alexander Graf wrote: On 07/04/2018 02:36 AM, Joe Hershberger wrote:

Re: [U-Boot] [RFC 4/8] clk: imx: imx6ul: Implement ENET clocks

2018-07-11 Thread Joe Hershberger
On Mon, Jul 9, 2018 at 1:30 PM, Jagan Teki wrote: > Add support for ENET clock on i.MX6UL platform. > > Signed-off-by: Jagan Teki Reviewed-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v4 3/6] block: Add a function to find block device descriptor

2018-07-11 Thread Simon Glass
Hi Tien Fong, On 11 July 2018 at 08:23, Chee, Tien Fong wrote: > On Wed, 2018-07-11 at 08:02 -0600, Simon Glass wrote: >> Hi Tien, >> >> On 6 July 2018 at 02:26, wrote: >> > >> > From: Tien Fong Chee >> > >> > Add a function to find the block device descriptor of the parent >> > device. >> >

Re: [U-Boot] [PATCH 2/2] sandbox: Don't disable ctrlc() on sandbox if in raw mode

2018-07-11 Thread Simon Glass
Hi Joe, On 11 July 2018 at 13:32, Joe Hershberger wrote: > On Tue, Jul 10, 2018 at 3:49 PM, Simon Glass wrote: >> Hi Joe, >> >> On 9 July 2018 at 13:26, Joe Hershberger wrote: >>> On Sun, Jul 8, 2018 at 9:39 PM, Simon Glass wrote: Hi Joe, On 2 July 2018 at 18:06, Joe

Re: [U-Boot] [PATCH] microblaze: Do not call timer init that early

2018-07-11 Thread Simon Glass
Hi Michal, On 11 July 2018 at 08:32, Michal Simek wrote: > Timer needs to be converted to DM but as of now it can't be called so > early because intc controller is not ready. Call it later in board_r.c. > Before this patch timer_init is called twice which is wrong. > > Signed-off-by: Michal

Re: [U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-11 Thread Simon Glass
Hi Tien, On 6 July 2018 at 02:28, wrote: > From: Tien Fong Chee > > This is file system generic loader which can be used to load > the file image from the storage into target such as memory. > The consumer driver would then use this loader to program whatever, > ie. the FPGA device. > >

Re: [U-Boot] [PATCH] watchdog: dm: Support manual relocation for watchdogs

2018-07-11 Thread Simon Glass
On 11 July 2018 at 08:41, Michal Simek wrote: > Relocate watchdog ops as was done by: > "dm: Add support for all targets which requires MANUAL_RELOC" > (sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3) > > Signed-off-by: Michal Simek > --- > > based on

Re: [U-Boot] [PATCH v3 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line

2018-07-11 Thread Simon Glass
Hi, On 11 July 2018 at 07:40, Tom Rini wrote: > > On Wed, Jul 11, 2018 at 03:31:39PM +0200, Michal Simek wrote: > > On 11.7.2018 14:46, Tom Rini wrote: > > > On Wed, Jul 11, 2018 at 07:57:13AM +0200, Michal Simek wrote: > > >> On 10.7.2018 18:40, Tom Rini wrote: > > >>> On Mon, Jul 09, 2018 at

Re: [U-Boot] [PATCH] watchdog: dm: Change uclass name to watchdog and enable DM_UC_FLAG_SEQ_ALIAS

2018-07-11 Thread Simon Glass
On 11 July 2018 at 00:45, Michal Simek wrote: > uclass name is used by dev_read_alias_seq which return seq number when > aliases are used. > > Code fragment: > 168 int dev_read_alias_seq(struct udevice *dev, int *devnump) > 169 { > 170 ofnode node = dev_ofnode(dev); > 171 const

Re: [U-Boot] [RFC 6/8] net: fec_mxc: Add clock support via CLK

2018-07-11 Thread Joe Hershberger
On Mon, Jul 9, 2018 at 1:30 PM, Jagan Teki wrote: > Now enet clock support available for imx6qdl and imx6ul, > via CLK framework, so add enable, set_rate support in > drivers. > > Signed-off-by: Jagan Teki Acked-by: Joe Hershberger ___ U-Boot mailing

Re: [U-Boot] [RFC 3/8] clk: imx: imx6q: Implement ENET clocks

2018-07-11 Thread Joe Hershberger
On Mon, Jul 9, 2018 at 1:30 PM, Jagan Teki wrote: > Add support for ENET clock on i.MX6QDL platform. > > Signed-off-by: Jagan Teki Reviewed-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 2/2] sandbox: Don't disable ctrlc() on sandbox if in raw mode

2018-07-11 Thread Joe Hershberger
On Tue, Jul 10, 2018 at 3:49 PM, Simon Glass wrote: > Hi Joe, > > On 9 July 2018 at 13:26, Joe Hershberger wrote: >> On Sun, Jul 8, 2018 at 9:39 PM, Simon Glass wrote: >>> Hi Joe, >>> >>> On 2 July 2018 at 18:06, Joe Hershberger wrote: In raw mode, handle ctrl-c as normal. This allows

Re: [U-Boot] [PATCH v3 2/2] net: mvgbe: convert to DM

2018-07-11 Thread Joe Hershberger
On Mon, Jul 9, 2018 at 4:34 AM, Chris Packham wrote: > Add driver model support to the mvgbe driver. As a temporary measure > both DM and non-DM uses are supported. Once all the users have been > converted the non-DM support can be dropped. > > Signed-off-by: Chris Packham Acked-by: Joe

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-11 Thread Marek Vasut
On 07/11/2018 07:30 PM, Trent Piepho wrote: > On Wed, 2018-07-11 at 08:56 -0500, Jason Rush wrote: >> On 7/11/2018 8:48 AM, Marek Vasut wrote: >>> On 07/11/2018 03:49 PM, Jason Rush wrote: My mistake. I did disable the dcache after scrubbing too. The code is almost identical to

Re: [U-Boot] [PATCH 3/3] net: zynq_gem: convert to use livetree

2018-07-11 Thread Joe Hershberger
Hi Siva, On Fri, Jul 6, 2018 at 5:10 AM, Siva Durga Prasad Paladugu wrote: > This patch updates the zynq gem driver to support > livetree. > > Signed-off-by: Siva Durga Prasad Paladugu > Signed-off-by: Vipul Kumar > --- > drivers/net/zynq_gem.c | 29 ++--- > 1 file

Re: [U-Boot] [PATCH v2 1/5] net: phy: add ofnode node to struct phy_device

2018-07-11 Thread Joe Hershberger
On Thu, Jul 5, 2018 at 12:02 PM, Grygorii Strashko wrote: > Now the UCLASS_ETH device "node" field is owerwritten by some network drivers > in > case of Ethernet PHYs which are linked to UCLASS_ETH device using > "phy-handle" DT property and when Ethernet PHY driver needs to read some >

[U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Nicolas Chauvet
Since commit f2faffecb016, tegra: Convert to use binman the dm-pre-reloc properties are removed. This leads U-Boot not to enable the display on paz00 This patch restore the dm-pre-reloc properties allowing the bootloader to output to the display panel v4: - Spell project name as appropriate v3:

[U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Nicolas Chauvet
Since commit f2faffecb016, tegra: Convert to use binman the dm-pre-reloc properties are removed. This leads uboot not to enable the display on paz00 This patch restore the dm-pre-reloc properties allowing the bootloader to output to the display panel v3: - Fix few typos v2: - Add more

Re: [U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Simon Glass
On 11 July 2018 at 11:24, Nicolas Chauvet wrote: > Since commit f2faffecb016, tegra: Convert to use binman > the dm-pre-reloc properties are removed. > > This leads uboot not to enable the display on paz00 U-Boot :-) > > This patch restore the dm-pre-reloc properties allowing > the bootloader

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-11 Thread Trent Piepho
On Wed, 2018-07-11 at 08:56 -0500, Jason Rush wrote: > On 7/11/2018 8:48 AM, Marek Vasut wrote: > > On 07/11/2018 03:49 PM, Jason Rush wrote: > > > > > > My mistake. I did disable the dcache after scrubbing too. The > > > code is almost identical to the Arria10 code where after > > > scrubbing

[U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Nicolas Chauvet
Since commit f2faffecb016, tegra: Convert to use binman the dm-pre-reloc properties are removed. This leads uboot not to enable the display on paz00 This patch restore the dm-pre-reloc properties allowing the bootloader to output to the display panel v3: - Fix few typos v2: - Add more

Re: [U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Simon Glass
On 11 July 2018 at 09:19, Nicolas Chauvet wrote: > Since commit f2faffecbd, tegra: Convert to use binman > the dm-pre-reloc properties are removed. > > This lead uboot not to enable the display on paz00 This leads U-Boot ... > > This patch restore the dm-pre-reloc properties allowing > the

[U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Nicolas Chauvet
Since commit f2faffecb016, tegra: Convert to use binman the dm-pre-reloc properties are removed. This lead uboot not to enable the display on paz00 This patch restore the dm-pre-reloc properties allowing the bootloader to output to the display panel v2: - Add more character to commit hash

Re: [U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Stephen Warren
On 07/11/2018 09:19 AM, Nicolas Chauvet wrote: Since commit f2faffecbd, tegra: Convert to use binman the dm-pre-reloc properties are removed. That commit hash is ambiguous; can we add a few more characters (e.g. "f2faffecb016")? Thanks for tracking this down.

[U-Boot] [GIT PULL] u-boot-mips

2018-07-11 Thread Daniel Schwierzeck
Hi Tom, Travis CI build: https://travis-ci.org/danielschwierzeck/u-boot/builds/402636234 The following changes since commit e3396ffd720877976141fa0b76a0b8ee9643d7d1: Merge git://git.denx.de/u-boot-dm (2018-07-10 10:29:14 -0400) are available in the Git repository at:

[U-Boot] [PATCH v2 21/21] dt-bindings: Add bindings for SPI NAND devices

2018-07-11 Thread Miquel Raynal
From: Boris Brezillon Add bindings for SPI NAND chips. Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- doc/device-tree-bindings/mtd/spi-nand.txt | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 doc/device-tree-bindings/mtd/spi-nand.txt

[U-Boot] [PATCH v2 16/21] mtd: spinand: Add initial support for Winbond W25M02GV

2018-07-11 Thread Miquel Raynal
From: Frieder Schrempf Add support for the W25M02GV chip. Signed-off-by: Frieder Schrempf Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- drivers/mtd/nand/spi/Makefile | 2 +- drivers/mtd/nand/spi/core.c| 1 + drivers/mtd/nand/spi/winbond.c | 143

[U-Boot] [PATCH v2 20/21] cmd: mtd: add 'mtd' command

2018-07-11 Thread Miquel Raynal
There should not be a 'nand' command, a 'sf' command and certainly not another 'spi-nand'. Write a 'mtd' command instead to manage all MTD devices at once. This should be the preferred way to access any MTD device. Signed-off-by: Miquel Raynal --- cmd/Kconfig | 5 + cmd/Makefile

[U-Boot] [PATCH v2 11/21] mtd: nand: Add core infrastructure to deal with NAND devices

2018-07-11 Thread Miquel Raynal
From: Boris Brezillon Add an intermediate layer to abstract NAND device interface so that some logic can be shared between SPI NANDs, parallel/raw NANDs, OneNANDs, ... Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- drivers/mtd/nand/Kconfig | 3 + drivers/mtd/nand/Makefile

[U-Boot] [PATCH v2 18/21] mtd: spinand: Add initial support for the MX35LF2GE4AB chip

2018-07-11 Thread Miquel Raynal
Add support for the MX35LF2GE4AB chip, which is similar to its cousin MX35LF1GE4AB, with two planes instead of one. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/spi/macronix.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH v2 13/21] spi: Extend the core to ease integration of SPI memory controllers

2018-07-11 Thread Miquel Raynal
From: Boris Brezillon Some controllers are exposing high-level interfaces to access various kind of SPI memories. Unfortunately they do not fit in the current spi_controller model and usually have drivers placed in drivers/mtd/spi-nor which are only supporting SPI NORs and not SPI memories in

[U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Nicolas Chauvet
Since commit f2faffecbd, tegra: Convert to use binman the dm-pre-reloc properties are removed. This lead uboot not to enable the display on paz00 This patch restore the dm-pre-reloc properties allowing the bootloader to output to the display panel Signed-off-by: Nicolas Chauvet ---

[U-Boot] [PATCH v2 14/21] mtd: nand: Add core infrastructure to support SPI NANDs

2018-07-11 Thread Miquel Raynal
From: Peter Pan Add a SPI NAND framework based on the generic NAND framework and the spi-mem infrastructure. In its current state, this framework supports the following features: - single/dual/quad IO modes - on-die ECC Signed-off-by: Peter Pan Signed-off-by: Boris Brezillon Signed-off-by:

[U-Boot] [PATCH v2 17/21] mtd: spinand: Add initial support for the MX35LF1GE4AB chip

2018-07-11 Thread Miquel Raynal
From: Boris Brezillon Add minimal support for the MX35LF1GE4AB SPI NAND chip. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/spi/Makefile | 2 +- drivers/mtd/nand/spi/core.c | 1 + drivers/mtd/nand/spi/macronix.c | 138

[U-Boot] [PATCH v2 06/21] mtd: fix build issue with includes

2018-07-11 Thread Miquel Raynal
Fix build errors produced by mtd.h and dm/device.h if not included in the right order. Signed-off-by: Miquel Raynal Reviewed-by: Jagan Teki --- include/linux/mtd/mtd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index

[U-Boot] [PATCH v2 05/21] mtd: add get/set of_node/flash_node helpers

2018-07-11 Thread Miquel Raynal
From: Brian Norris We are going to begin using the mtd->dev.of_node field for MTD device nodes, so let's add helpers for it. Also, we'll be making some conversions on spi_nor (and nand_chip eventually) too, so get that ready with their own helpers. Signed-off-by: Brian Norris Reviewed-by:

[U-Boot] [PATCH v2 19/21] mtd: uclass: add probe function

2018-07-11 Thread Miquel Raynal
The user might want to trigger the probe of any MTD device, export these functions so they can be called from a command source file. Signed-off-by: Miquel Raynal --- drivers/mtd/mtd-uclass.c | 9 + include/linux/mtd/mtd.h | 3 +++ 2 files changed, 12 insertions(+) diff --git

[U-Boot] [PATCH v2 10/21] mtd: rename nand into rawnand in Kconfig prompt

2018-07-11 Thread Miquel Raynal
Sync the Kconfig raw NAND entry title with the code architecture. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/raw/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index a820af61ce..6ef82cab88 100644 ---

[U-Boot] [PATCH v2 15/21] mtd: spinand: Add initial support for Micron MT29F2G01ABAGD

2018-07-11 Thread Miquel Raynal
From: Peter Pan Add a basic driver for Micron SPI NANDs. Only one device is supported right now, but the driver will be extended to support more devices afterwards. Signed-off-by: Peter Pan Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- drivers/mtd/nand/spi/Makefile | 2

[U-Boot] [PATCH v2 07/21] mtd: move definitions to enlarge their range

2018-07-11 Thread Miquel Raynal
Some helpers might be useful in a future 'mtd' U-Boot command to parse MTD device list. Signed-off-by: Miquel Raynal --- drivers/mtd/mtdcore.h | 6 -- include/linux/mtd/mtd.h | 6 ++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/mtdcore.h

[U-Boot] [PATCH v2 09/21] mtd: move NAND fiels into a raw/ subdirectory

2018-07-11 Thread Miquel Raynal
NAND flavors, like serial and parallel, have a lot in common and would benefit to share code. Let's move raw (parallel) NAND specific code in a raw/ subdirectory, to ease the addition of a core file in nand/ and the introduction of a spi/ subdirectory specific to SPI NANDs. Signed-off-by: Miquel

[U-Boot] [PATCH v2 12/21] mtd: nand: Pass mode information to nand_page_io_req

2018-07-11 Thread Miquel Raynal
From: Boris Brezillon The NAND sub-layers are likely to need the MTD_OPS_XXX mode information in order to decide if they should enable/disable ECC or how they should place the OOB bytes in the provided OOB buffer. Add a field to nand_page_io_req to pass this information. Signed-off-by: Boris

[U-Boot] [PATCH v2 03/21] mtd: Add sanity checks in mtd_write/read_oob()

2018-07-11 Thread Miquel Raynal
From: Boris Brezillon Unlike what's done in mtd_read/write(), there are no checks to make sure the parameters passed to mtd_read/write_oob() are consistent, which forces implementers of ->_read/write_oob() to do it, which in turn leads to code duplication and possibly errors in the logic. Do

[U-Boot] [PATCH v2 08/21] mtd: move all flash categories inside MTD submenu

2018-07-11 Thread Miquel Raynal
There is no reason to have NAND, SPI flashes and UBI sections outside of the MTD submenu in Kconfig. Signed-off-by: Miquel Raynal Reviewed-by: Jagan Teki --- drivers/mtd/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig

[U-Boot] [PATCH v2 02/21] mtd: Uninline mtd_write_oob and move it to mtdcore.c

2018-07-11 Thread Miquel Raynal
From: Ezequiel Garcia There's no reason for having mtd_write_oob inlined in mtd.h header. Move it to mtdcore.c where it belongs. Signed-off-by: Ezequiel Garcia Acked-by: Boris Brezillon Signed-off-by: Jacek Anaszewski Signed-off-by: Miquel Raynal --- drivers/mtd/mtdcore.c | 12

[U-Boot] [PATCH v2 04/21] mtd: Fallback to ->_read/write() when ->_read/write_oob() is missing

2018-07-11 Thread Miquel Raynal
Some MTD sublayers/drivers are implementing ->_read/write() and not ->_read/write_oob(). While for NAND devices both are usually valid, for NOR devices, using the _oob variant has no real meaning. But, as the MTD layer is supposed to hide as much as possible the flash complexity to the user,

[U-Boot] [PATCH v2 01/21] mtd: Fallback to ->_read/write_oob() when ->_read/write() is missing

2018-07-11 Thread Miquel Raynal
From: Boris Brezillon Some MTD sublayers/drivers are implementing ->_read/write_oob() and provide dummy wrappers for their ->_read/write() implementations. Let the core handle this case instead of duplicating the logic. Signed-off-by: Boris Brezillon Acked-by: Robert Jarzmik Acked-by: Brian

[U-Boot] [PATCH v2 00/21] SPI-NAND support

2018-07-11 Thread Miquel Raynal
During the last months, Boris Brezillon shared his work to support serial flashes within Linux. First, he delivered (and merged) a new layer called spi-mem. He also initiated in Linux MTD subsystem the move of all 'raw' NAND related code to a raw/ subdirectory, adding at the same time a NAND core

Re: [U-Boot] [PATCH 0/4] fix propagation of flags from do_env_default()

2018-07-11 Thread Yaniv Levinsky
Gentle ping. On 06/24/2018 07:16 PM, Yaniv Levinsky wrote: > The function do_env_default() doesn't propagate flags to himport_r(). It > causes > the "-f" option to have no effect on the execution of "env default" commands. > > Fix the call paths from do_env_default() to himport_r() to pass

Re: [U-Boot] [RFC PATCH 10/20] spi: Extend the core to ease integration of SPI memory controllers

2018-07-11 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Wed, 11 Jul 2018 20:07:19 +0530: > On Wed, Jul 11, 2018 at 7:25 PM, Miquel Raynal > wrote: > > Hi Jagan, > > > > Jagan Teki wrote on Fri, 6 Jul 2018 17:02:22 > > +0530: > > > >> On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal > >> wrote: > >> > From: Boris

Re: [U-Boot] [UBOOT PATCH] usb: dwc3: convert to livetree

2018-07-11 Thread Marek Vasut
On 06/11/2018 11:39 AM, Vipul Kumar wrote: > Update the DWC3 USB driver to support a live tree. > > Signed-off-by: Vipul Kumar What about systems which do not use live tree, does it work on those ? -- Best regards, Marek Vasut ___ U-Boot mailing

Re: [U-Boot] [RFC] Make U-Boot log great again

2018-07-11 Thread Sam Protsenko
On Tue, Jul 10, 2018 at 5:38 PM, Tom Rini wrote: > On Tue, Jul 10, 2018 at 11:01:14AM +0800, Bin Meng wrote: >> Hello, >> >> On Fri, Mar 23, 2018 at 1:44 PM, Bin Meng wrote: >> > Hi, >> > >> > On Sat, Feb 17, 2018 at 3:49 AM, Robert Nelson >> > wrote: >> >> On Fri, Feb 16, 2018 at 1:01 PM, Sam

[U-Boot] [PATCH] watchdog: dm: Support manual relocation for watchdogs

2018-07-11 Thread Michal Simek
Relocate watchdog ops as was done by: "dm: Add support for all targets which requires MANUAL_RELOC" (sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3) Signed-off-by: Michal Simek --- based on https://lists.denx.de/pipermail/u-boot/2018-July/334227.html --- drivers/watchdog/wdt-uclass.c | 23

Re: [U-Boot] [RFC PATCH 10/20] spi: Extend the core to ease integration of SPI memory controllers

2018-07-11 Thread Jagan Teki
On Wed, Jul 11, 2018 at 7:25 PM, Miquel Raynal wrote: > Hi Jagan, > > Jagan Teki wrote on Fri, 6 Jul 2018 17:02:22 > +0530: > >> On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal >> wrote: >> > From: Boris Brezillon >> > >> > Some controllers are exposing high-level interfaces to access various

[U-Boot] [PATCH] microblaze: Do not call timer init that early

2018-07-11 Thread Michal Simek
Timer needs to be converted to DM but as of now it can't be called so early because intc controller is not ready. Call it later in board_r.c. Before this patch timer_init is called twice which is wrong. Signed-off-by: Michal Simek --- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [U-Boot] [PATCH v1 5/6] microblaze: Support for watchdog_reset in Microblaze init

2018-07-11 Thread Michal Simek
On 29.6.2018 23:51, Shreenidhi Shedi wrote: > Signed-off-by: Shreenidhi Shedi > --- > > Changes in v1: None > > .../microblaze-generic/microblaze-generic.c | 43 +-- > 1 file changed, 39 insertions(+), 4 deletions(-) > > diff --git

Re: [U-Boot] [PATCH v1 6/6] watchdog: Convert Xilinx Axi watchdog driver to driver model

2018-07-11 Thread Michal Simek
please fill commit message. On 29.6.2018 23:51, Shreenidhi Shedi wrote: > Signed-off-by: Shreenidhi Shedi > --- > > Changes in v1: None > > drivers/watchdog/Kconfig | 8 +++ > drivers/watchdog/xilinx_tb_wdt.c | 107 --- > 2 files changed, 91

Re: [U-Boot] [PATCH v4 3/6] block: Add a function to find block device descriptor

2018-07-11 Thread Chee, Tien Fong
On Wed, 2018-07-11 at 08:02 -0600, Simon Glass wrote: > Hi Tien, > > On 6 July 2018 at 02:26,   wrote: > > > > From: Tien Fong Chee > > > > Add a function to find the block device descriptor of the parent > > device. > > > > Signed-off-by: Tien Fong Chee > > --- > >  

Re: [U-Boot] [PATCH v4 4/6] doc: Add new doc for file system firmware loader driver model

2018-07-11 Thread Chee, Tien Fong
On Wed, 2018-07-11 at 08:02 -0600, Simon Glass wrote: > Hi Tien, > > On 6 July 2018 at 02:27,   wrote: > > > > From: Tien Fong Chee > > > > Provide information about > > > > - overview of file system firmware loader driver model > > - describe storage device and partition in device tree

Re: [U-Boot] [PATCH v4 5/6] doc: dtbinding: Add file system firmware loader binding document

2018-07-11 Thread Chee, Tien Fong
On Wed, 2018-07-11 at 08:02 -0600, Simon Glass wrote: > On 6 July 2018 at 02:27,   wrote: > > > > From: Tien Fong Chee > > > > Add a document to describe file system firmware loader binding > > information. > > > > Signed-off-by: Tien Fong Chee > > --- > >  doc/device-tree-bindings/chosen.txt 

Re: [U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-11 Thread Chee, Tien Fong
On Wed, 2018-07-11 at 08:02 -0600, Simon Glass wrote: > Hi Tien, > > On 6 July 2018 at 02:28,   wrote: > > > > From: Tien Fong Chee > > > > This is file system generic loader which can be used to load > > the file image from the storage into target such as memory. > > The consumer driver would

Re: [U-Boot] [RFC PATCH 17/20] cmd: mtd: add 'mtd' command

2018-07-11 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Wed, 11 Jul 2018 16:01:09 +0200: > On Wed, 11 Jul 2018 15:51:39 +0200 > Miquel Raynal wrote: > > > > > + > > > > + argc -= 3; > > > > + argv += 3; > > > > + > > > > + /* Do the parsing */ > > > > + if (!strncmp(cmd, "read", 4) ||

[U-Boot] Kconfiglib documentation generation

2018-07-11 Thread Ulf Magnusson
Hello, Just as an FYI, Kconfiglib 2 (https://github.com/ulfalizer/kconfiglib) can generate nice Kconfig docs. See http://docs.zephyrproject.org/reference/kconfig/index.html for example output (warning: heavy page, lots of symbols). The script that generates the RST output for those docs is at

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-11 Thread Marek Vasut
On 07/11/2018 03:56 PM, Jason Rush wrote: > On 7/11/2018 8:48 AM, Marek Vasut wrote: >> On 07/11/2018 03:49 PM, Jason Rush wrote: >>> On 7/11/2018 3:55 AM, Marek Vasut wrote: On 07/11/2018 05:11 AM, Jason Rush wrote: [...] > However, if I press the HPS_RST push button on the

Re: [U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-11 Thread Simon Glass
Hi Tien, On 6 July 2018 at 02:28, wrote: > From: Tien Fong Chee > > This is file system generic loader which can be used to load > the file image from the storage into target such as memory. > The consumer driver would then use this loader to program whatever, > ie. the FPGA device. > >

Re: [U-Boot] [PATCH v4 4/6] doc: Add new doc for file system firmware loader driver model

2018-07-11 Thread Simon Glass
Hi Tien, On 6 July 2018 at 02:27, wrote: > From: Tien Fong Chee > > Provide information about > > - overview of file system firmware loader driver model > - describe storage device and partition in device tree source > - describe fie system firmware loader API > > Signed-off-by: Tien Fong Chee

Re: [U-Boot] [PATCH v4 5/6] doc: dtbinding: Add file system firmware loader binding document

2018-07-11 Thread Simon Glass
On 6 July 2018 at 02:27, wrote: > From: Tien Fong Chee > > Add a document to describe file system firmware loader binding > information. > > Signed-off-by: Tien Fong Chee > --- > doc/device-tree-bindings/chosen.txt | 21 + > doc/device-tree-bindings/misc/fs_loader.txt | 48

Re: [U-Boot] [PATCH v4 3/6] block: Add a function to find block device descriptor

2018-07-11 Thread Simon Glass
Hi Tien, On 6 July 2018 at 02:26, wrote: > From: Tien Fong Chee > > Add a function to find the block device descriptor of the parent > device. > > Signed-off-by: Tien Fong Chee > --- > drivers/block/blk-uclass.c | 23 +++ > include/blk.h | 9 + > 2

Re: [U-Boot] [RFC PATCH 17/20] cmd: mtd: add 'mtd' command

2018-07-11 Thread Boris Brezillon
On Wed, 11 Jul 2018 15:51:39 +0200 Miquel Raynal wrote: > > > + > > > + argc -= 3; > > > + argv += 3; > > > + > > > + /* Do the parsing */ > > > + if (!strncmp(cmd, "read", 4) || !strncmp(cmd, "write", 5)) { > > > + bool read, raw, woob; > > > + uint *waddr = NULL; > > > +

Re: [U-Boot] [PATCH v3 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line

2018-07-11 Thread Jagan Teki
On Fri, Jun 22, 2018 at 5:55 PM, Jean-Jacques Hiblot wrote: > In some cases it can be useful to be able to bind a device to a driver from > the command line. > The obvious example is for versatile devices such as USB gadget. > Another use case is when the devices are not yet ready at startup and

Re: [U-Boot] [RFC PATCH 10/20] spi: Extend the core to ease integration of SPI memory controllers

2018-07-11 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Fri, 6 Jul 2018 17:02:22 +0530: > On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal > wrote: > > From: Boris Brezillon > > > > Some controllers are exposing high-level interfaces to access various > > kind of SPI memories. Unfortunately they do not fit in the

Re: [U-Boot] [RFC PATCH] u-boot: remove driver lookup loop from env_save()

2018-07-11 Thread Wolfgang Denk
Dear Maxime, In message <20180711134735.vhhc7quuzcp42bo7@flea> you wrote: > > > If the feature is available, use cases will spring into mind. ... > > Right, but that would bring a much more significant rework as to how > the environments are handled than just the changes that are being >

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-11 Thread Jason Rush
On 7/11/2018 8:48 AM, Marek Vasut wrote: > On 07/11/2018 03:49 PM, Jason Rush wrote: >> On 7/11/2018 3:55 AM, Marek Vasut wrote: >>> On 07/11/2018 05:11 AM, Jason Rush wrote: >>> [...] >>> However, if I press the HPS_RST push button on the SoCKit (which is connected to

Re: [U-Boot] [RFC PATCH 17/20] cmd: mtd: add 'mtd' command

2018-07-11 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Wed, 6 Jun 2018 21:45:24 +0200: > Hi Miquel, > > On Wed, 6 Jun 2018 17:30:37 +0200 > Miquel Raynal wrote: > > > There should not be a 'nand' command, a 'sf' command and certainly not > > another 'spi-nand'. Write a 'mtd' command instead to manage all MTD >

Re: [U-Boot] [RFC PATCH] u-boot: remove driver lookup loop from env_save()

2018-07-11 Thread Maxime Ripard
On Wed, Jul 11, 2018 at 12:44:23PM +0200, Nicholas wrote: > > > > Maybe a solution could be to have an env_save() function which > > > > acts in a similar way as proposed in my patch and an > > > > env_save_prio() function, which acts like the env_load() > > > > i.e. looking for the best working

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-11 Thread Marek Vasut
On 07/11/2018 03:49 PM, Jason Rush wrote: > On 7/11/2018 3:55 AM, Marek Vasut wrote: >> On 07/11/2018 05:11 AM, Jason Rush wrote: >> [...] >> >>> However, if I press the HPS_RST push button on the SoCKit (which is >>> connected >>> to power on reset), occasionally U-Boot will lock up

  1   2   >