Re: [U-Boot] [PATCH v5 11/13] misc: Sort Makefile entries

2018-08-06 Thread Anatolij Gustschin
On Mon, 6 Aug 2018 16:18:47 +0200 Anatolij Gustschin ag...@denx.de wrote: > From: Mario Six > > Makefile entries should be sorted. > > Reviewed-by: Anatolij Gustschin > Reviewed-by: Simon Glass > Signed-off-by: Mario Six > Signed-off-by: Anatolij Gustschin > --- > v4 -> v5: > Drop re-order

[U-Boot] [PATCH 2/4] mips: Add arch/mips/include/asm/atomic.h

2018-08-06 Thread Stefan Roese
This is needed for the UBIFS support. The file is a copy of arch/xtensa/include/asm/atomic.h Signed-off-by: Stefan Roese Cc: Daniel Schwierzeck --- arch/mips/include/asm/atomic.h | 54 ++ 1 file changed, 54 insertions(+) create mode 100644 arch/mips/include/asm/

[U-Boot] [PATCH 3/4] mips: Add LinkIt Smart 7688 support

2018-08-06 Thread Stefan Roese
The LinkIt Smart 7688 modules have a MT7688 SoC with 128 MiB of RAM and 32 MiB of flash (SPI NOR). The mt7628a.dtsi file is imported from Linux v4.17. This patch also includes 2 targets. One is the target that can be programmed into the SPI NOR flash and a 2nd target "xxx-ram" is added to support

[U-Boot] [PATCH 1/4] mips: Add basic MediaTek MT7620/88 support

2018-08-06 Thread Stefan Roese
This patch adds basic support for the MediaTek MT7620/88 SoCs. Parts of the code is copied from the MediaTek GitHub repository: https://github.com/MediaTek-Labs/linkit-smart-uboot.git Support for the LinkIt Smart 7688 module and the Gardena Smart Gateway both based on the MT7688 will be added in

[U-Boot] [PATCH 4/4] mips: Add Gardena Smart-Gateway board support

2018-08-06 Thread Stefan Roese
The Gardena Smart-Gateway boards have a MT7688 SoC with 128 MiB of RAM and 8 MiB of flash (SPI NOR) and additional 128MiB SPI NAND storage. This patch also includes 2 targets. One is the target that can be programmed into the SPI NOR flash and a 2nd target "xxx-ram" is added to support loading and

[U-Boot] [PATCH 3/4] cmd: mtd: Don't use with negative return codes for shell commands

2018-08-06 Thread Stefan Roese
When negative return codes are used in commands (do_foo()), the shell prints these messages: exit not allowed from main input shell. Change the return codes in the new mtd commands to use only positive values and these annoying warnings are gone. Signed-off-by: Stefan Roese Cc: Miquel Raynal C

Re: [U-Boot] [BUG] qemu-x86_defconfig does not build with GCC 8.1

2018-08-06 Thread Andy Shevchenko
On Sun, Jul 29, 2018 at 3:09 PM, Heinrich Schuchardt wrote: > On 07/29/2018 02:40 AM, Bin Meng wrote: > Ubuntu Cosmic has gcc 8.2. Setting up a virtual machine with > virt-manager is quite easy. Can you check if output of `gcc -v` has --enable-default-pie? If so (I bet it is the case), can you t

[U-Boot] [PATCH 2/4] mtd: nand: Don't abort erase operation when a bad block is detected

2018-08-06 Thread Stefan Roese
It was noticed, that the erase command (mtd erase spi-nand0) aborts upon the first bad block. With this change, bad blocks are now skipped and the erase operation will continue. Signed-off-by: Stefan Roese Cc: Miquel Raynal Cc: Boris Brezillon Cc: Jagan Teki --- drivers/mtd/nand/core.c | 2 +-

[U-Boot] [PATCH 1/4] spi: spi-mem: Add optional half-duplex SPI transfer mode

2018-08-06 Thread Stefan Roese
Some SPI controller might now support full-duplex SPI transfers. This option can be enabled to use half-duplex operation mode for such SPI controllers. Signed-off-by: Stefan Roese Cc: Miquel Raynal Cc: Boris Brezillon Cc: Jagan Teki --- drivers/spi/Kconfig | 8 drivers/spi/spi-mem

[U-Boot] [PATCH 4/4] cmd: mtd: Add info text to mtd erase subcommand

2018-08-06 Thread Stefan Roese
Adding this info helps seeing, what really is being erased - especially if no arguments are passed for offset and size. Now this is the output: => mtd erase spi-nand0 Erasing 0x ... 0x07ff (65536 page(s)) nand: attempt to erase a bad/reserved block @600 nand: attempt to erase a bad

[U-Boot] [PATCH] common: Increase LOGLEVEL back to 6

2018-08-06 Thread Stefan Roese
Commit 6a3e65dea3e5 ("common: Drop LOGLEVEL to 4") reduced the loglevel resulting in pr_warn() messages fro e.g. UBI are not shown anymore. With this change back to 6, messages like this appear again: nand: attempt to erase a bad/reserved block @600 Signed-off-by: Stefan Roese Cc: Tom Rini

Re: [U-Boot] [PATCH] sf: Add SPI_FLASH_4BYTE_MODE_ONLY option to support 4-byte mode

2018-08-06 Thread Simon Goldschmidt
Stefan Roese schrieb am Mo., 6. Aug. 2018, 16:34: > Some SPI NOR chips only support 4-byte mode addressing. Here the default > 3-byte mode does not work and leads to incorrect accesses. Setting this > option enables the use of such SPI NOR chips, that only support this > 4-byte mode. > I think i

Re: [U-Boot] [PATCH] sf: Add SPI_FLASH_4BYTE_MODE_ONLY option to support 4-byte mode

2018-08-06 Thread Stefan Roese
Hi Simon, On 06.08.2018 17:15, Simon Goldschmidt wrote: Stefan Roese mailto:s...@denx.de>> schrieb am Mo., 6. Aug. 2018, 16:34: Some SPI NOR chips only support 4-byte mode addressing. Here the default 3-byte mode does not work and leads to incorrect accesses. Setting this option

Re: [U-Boot] [PATCH] sf: Add SPI_FLASH_4BYTE_MODE_ONLY option to support 4-byte mode

2018-08-06 Thread Simon Goldschmidt
Stefan Roese schrieb am Mo., 6. Aug. 2018, 17:23: > Hi Simon, > > On 06.08.2018 17:15, Simon Goldschmidt wrote: > > > > > > Stefan Roese mailto:s...@denx.de>> schrieb am Mo., 6. Aug. > > 2018, 16:34: > > > > Some SPI NOR chips only support 4-byte mode addressing. Here the > default > > 3-

Re: [U-Boot] [PATCH] sf: Add SPI_FLASH_4BYTE_MODE_ONLY option to support 4-byte mode

2018-08-06 Thread Stefan Roese
On 06.08.2018 17:27, Simon Goldschmidt wrote: Stefan Roese mailto:s...@denx.de>> schrieb am Mo., 6. Aug. 2018, 17:23: Hi Simon, On 06.08.2018 17:15, Simon Goldschmidt wrote: > > > Stefan Roese mailto:s...@denx.de> >> sch

Re: [U-Boot] [PATCH] sf: Add SPI_FLASH_4BYTE_MODE_ONLY option to support 4-byte mode

2018-08-06 Thread Simon Goldschmidt
Stefan Roese schrieb am Mo., 6. Aug. 2018, 17:29: > > > On 06.08.2018 17:27, Simon Goldschmidt wrote: > > > > > > Stefan Roese mailto:s...@denx.de>> schrieb am Mo., 6. Aug. > > 2018, 17:23: > > > > Hi Simon, > > > > On 06.08.2018 17:15, Simon Goldschmidt wrote: > > > > > > > >

Re: [U-Boot] [PATCH] sf: Add SPI_FLASH_4BYTE_MODE_ONLY option to support 4-byte mode

2018-08-06 Thread Stefan Roese
On 06.08.2018 17:33, Simon Goldschmidt wrote: Stefan Roese mailto:s...@denx.de>> schrieb am Mo., 6. Aug. 2018, 17:29: On 06.08.2018 17:27, Simon Goldschmidt wrote: > > > Stefan Roese mailto:s...@denx.de> >> schrieb am Mo., 6.

Re: [U-Boot] [PATCH] sf: Add SPI_FLASH_4BYTE_MODE_ONLY option to support 4-byte mode

2018-08-06 Thread Simon Goldschmidt
Stefan Roese schrieb am Mo., 6. Aug. 2018, 17:36: > On 06.08.2018 17:33, Simon Goldschmidt wrote: > > > > > > Stefan Roese mailto:s...@denx.de>> schrieb am Mo., 6. Aug. > > 2018, 17:29: > > > > > > > > On 06.08.2018 17:27, Simon Goldschmidt wrote: > > > > > > > > > Stefan Roese

Re: [U-Boot] [PATCH] gpio: xilinx: Return 0 from xilinx_gpio_set_value

2018-08-06 Thread Stefan Herbrechtsmeier
Am 06.08.2018 um 08:36 schrieb Michal Simek: .set_value functions have no specified return value and gpio_uclass is not working with it too. But this patch is returning 0 to be in sync with others DM gpio drivers. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/g

Re: [U-Boot] [PATCH v2] gpio: xilinx: Add support for using label property

2018-08-06 Thread Stefan Herbrechtsmeier
Am 06.08.2018 um 08:42 schrieb Michal Simek: Add support for reading label property from DT and set up bank name based on that. If label property is not present full device node name is used. Signed-off-by: Michal Simek --- Changes in v2: - Use strdup drivers/gpio/xilinx_gpio.c | 10 +++

[U-Boot] [PATCH v1] Makefile: Don't generate position independent code

2018-08-06 Thread Andy Shevchenko
Since gcc-8 the --enabled-default-pie starts producing code which assembler can't translate in case of U-Boot. The build fails with {standard input}: Assembler messages: {standard input}:21100: Error: junk at end of line, first unrecognized character is `@' {standard input}:21120: Error: ju

Re: [U-Boot] [PATCH v4 1/4] misc: docs: Fix comments in misc.h

2018-08-06 Thread Anatolij Gustschin
On Tue, 31 Jul 2018 14:24:12 +0200 Mario Six mario@gdsys.cc wrote: ... > --- > include/misc.h | 84 > ++ > 1 file changed, 44 insertions(+), 40 deletions(-) Applied to u-boot-staging/ag...@denx.de, thanks! -- Anatolij _

Re: [U-Boot] [PATCH v4 2/4] misc: uclass: Add enable/disable function

2018-08-06 Thread Anatolij Gustschin
On Tue, 31 Jul 2018 14:24:13 +0200 Mario Six mario@gdsys.cc wrote: ... > --- > drivers/misc/misc-uclass.c | 10 ++ > include/misc.h | 27 +++ > 2 files changed, 37 insertions(+) Applied to u-boot-staging/ag...@denx.de, thanks! -- Anatolij _

Re: [U-Boot] [PATCH v4 3/4] test: Add tests for misc uclass

2018-08-06 Thread Anatolij Gustschin
On Tue, 31 Jul 2018 14:24:14 +0200 Mario Six mario@gdsys.cc wrote: ... > --- > arch/sandbox/dts/test.dts | 4 ++ > drivers/misc/Makefile | 2 +- > drivers/misc/misc_sandbox.c | 133 > > test/dm/Makefile| 1 + > test/dm/mis

Re: [U-Boot] [PATCH v4 4/4] misc: Add gdsys_ioep driver

2018-08-06 Thread Anatolij Gustschin
On Tue, 31 Jul 2018 14:24:15 +0200 Mario Six mario@gdsys.cc wrote: ... > --- > .../devicetree/bindings/misc/gdsys,io-endpoint.txt | 20 ++ > drivers/misc/Kconfig | 5 + > drivers/misc/Makefile | 1 + > drivers/misc/gdsys_ioep.c

Re: [U-Boot] [PATCH v4 12/13] misc: Add gdsys_soc driver

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:17 +0200 Mario Six mario@gdsys.cc wrote: ... > --- > .../devicetree/bindings/misc/gdsys,soc.txt | 16 + > drivers/misc/Kconfig | 9 +++ > drivers/misc/Makefile | 1 + > drivers/misc/gdsys_soc.c

Re: [U-Boot] [PATCH v4 13/13] misc: Add IHS FPGA driver

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:18 +0200 Mario Six mario@gdsys.cc wrote: ... > --- > .../devicetree/bindings/misc/gdsys,iocon_fpga.txt | 19 + > .../devicetree/bindings/misc/gdsys,iocpu_fpga.txt | 19 + > drivers/misc/Kconfig | 9 + > drivers/misc/Makefile

Re: [U-Boot] [BUG] qemu-x86_defconfig does not build with GCC 8.1

2018-08-06 Thread Heinrich Schuchardt
On 08/06/2018 05:13 PM, Andy Shevchenko wrote: > On Sun, Jul 29, 2018 at 3:09 PM, Heinrich Schuchardt > wrote: >> On 07/29/2018 02:40 AM, Bin Meng wrote: > >> Ubuntu Cosmic has gcc 8.2. Setting up a virtual machine with >> virt-manager is quite easy. > > Can you check if output of `gcc -v` has

Re: [U-Boot] [v2 patch] net: fman: Support both new and legacy FMan Compatibles

2018-08-06 Thread Joe Hershberger
On Mon, Aug 6, 2018 at 2:14 AM, Zhao Qiang wrote: > Recently the FMan Port and MAC compatibles were changed. > This patch aligns the FMan Port and MAC compatibles > to the new FMan device tree binding document. > The FMan device tree binding document can be found in the Linux > kernel: > version

Re: [U-Boot] [PATCH v1] Makefile: Don't generate position independent code

2018-08-06 Thread Heinrich Schuchardt
On 08/06/2018 06:00 PM, Andy Shevchenko wrote: > Since gcc-8 the --enabled-default-pie starts producing code which assembler > can't translate in case of U-Boot. The build fails with > > {standard input}: Assembler messages: > {standard input}:21100: Error: junk at end of line, first unrecogni

Re: [U-Boot] [PATCH v1] Makefile: Don't generate position independent code

2018-08-06 Thread Andy Shevchenko
On Mon, 2018-08-06 at 18:56 +0200, Heinrich Schuchardt wrote: > On 08/06/2018 06:00 PM, Andy Shevchenko wrote: > > Fix all these by disabling PIE on Makefile level. > With the patch building with gcc-8.1 works on i386. Does it mean you are actually run it and it works? > But the interesting >

[U-Boot] [PATCH 1/1] riscv: allow native compilation

2018-08-06 Thread Heinrich Schuchardt
If environment variable CROSS_COMPILE is not set, this indicates native compilation. In this case we should not set an arbitrary value which is not applicable for 64bit anyway. Signed-off-by: Heinrich Schuchardt --- arch/riscv/config.mk | 4 1 file changed, 4 deletions(-) diff --git a/arch

Re: [U-Boot] [PATCH v1] Makefile: Don't generate position independent code

2018-08-06 Thread Heinrich Schuchardt
On 08/06/2018 07:11 PM, Andy Shevchenko wrote: > On Mon, 2018-08-06 at 18:56 +0200, Heinrich Schuchardt wrote: >> On 08/06/2018 06:00 PM, Andy Shevchenko wrote: > >>> Fix all these by disabling PIE on Makefile level. > >> With the patch building with gcc-8.1 works on i386. > > Does it mean you a

[U-Boot] [PATCH 00/42] clk: Add Allwinner CLK, RESET support

2018-08-06 Thread Jagan Teki
This series is refined version of Allwinner CLK, RESET support for previous RFC[3] which implements CLK and RESET for - USB - MMC - SPI - UART This series depends on 'musb shutdown' series [1] and Linux dts(i) sync series [2]. Since this series supporting MMC, the previous version[4] DM_MMC migra

[U-Boot] [PATCH 01/42] clk: Kconfig: Ascending order to sub directiory kconfigs

2018-08-06 Thread Jagan Teki
sourcing of sub directiory kconfig files are not in proper order, so keep them in ascending order. Signed-off-by: Jagan Teki Reviewed-by: Joe Hershberger --- drivers/clk/Kconfig | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig

[U-Boot] [PATCH 02/42] clk: Add Allwinner A64 CLK driver

2018-08-06 Thread Jagan Teki
Add initial clock driver for Allwinner A64. Implement USB clock enable and disable functions for OHCI, EHCI, OTG and USBPHY gate and clock registers. Signed-off-by: Jagan Teki --- arch/arm/include/asm/arch-sunxi/ccu.h | 47 drivers/clk/Kconfig | 1 + driv

[U-Boot] [PATCH 03/42] reset: Add default request ops

2018-08-06 Thread Jagan Teki
Missing request ops from respective uclass driver generating "synchronous abort" in Allwinner platform, may be in arm. So add default request ops and give a chance to uclass driver to think whether they really need request or not. Signed-off-by: Jagan Teki --- drivers/reset/reset-uclass.c | 10 +

[U-Boot] [PATCH 04/42] reset: Add Allwinner RESET driver

2018-08-06 Thread Jagan Teki
Add common reset driver for all Allwinner SoC's. Since CLK and RESET share common DT compatible, it is CLK driver job is to bind the reset driver. So add CLK bind call on respective SoC driver by passing ccu map descriptor so-that reset deassert, deassert operations held based on reset register ma

[U-Boot] [PATCH 08/42] clk: sunxi: Add Allwinner A31 CLK driver

2018-08-06 Thread Jagan Teki
Add initial clock driver for Allwinner A31. - Implement USB ahb1 and USB clocks via ccu_clk_map descriptor for A31, so it can accessed in common clk enable and disable functions from clk_sunxi.c - Implement USB ahb1 and USB resets via ccu_reset_map descriptor for A31, so it can accessed in c

[U-Boot] [PATCH 06/42] clk: sunxi: Add Allwinner A10/A20 CLK driver

2018-08-06 Thread Jagan Teki
Add initial clock driver for Allwinner A10/A20. - Implement USB ahb and USB clocks via ccu_clk_map descriptor for A10/A20, so it can accessed in common clk enable and disable functions from clk_sunxi.c - Implement USB resets via ccu_reset_map descriptor for A10/A20, so it can accessed in com

[U-Boot] [PATCH 05/42] clk: sunxi: Add Allwinner H3/H5 CLK driver

2018-08-06 Thread Jagan Teki
Add initial clock driver for Allwinner H3/H5. - Implement USB bus and USB clocks via ccu_clk_map descriptor for H3/H5, so it can accessed in common clk enable and disable functions from clk_sunxi.c - Implement USB bus and USB resets via ccu_reset_map descriptor for H3/H5, so it can accessed

[U-Boot] [PATCH 11/42] clk: sunxi: Add Allwinner A83T CLK driver

2018-08-06 Thread Jagan Teki
Add initial clock driver for Allwinner A83T. - Implement USB bus and USB clocks via ccu_clk_map descriptor for A83T, so it can accessed in common clk enable and disable functions from clk_sunxi.c - Implement USB bus and USB resets via ccu_reset_map descriptor for A83T, so it can accessed in

[U-Boot] [PATCH 10/42] clk: sunxi: a23: Add CLK support for A33

2018-08-06 Thread Jagan Teki
A33 has separate clock driver in Linux because of few clock differences wrt to A23 like audio etc,. these may not useful for U-Boot so added a33 ccu compatible on existing a23 clock driver. Signed-off-by: Jagan Teki --- drivers/clk/sunxi/Kconfig | 6 +++--- drivers/clk/sunxi/clk_a23.c | 2 ++

[U-Boot] [PATCH 07/42] clk: sunxi: Add Allwinner A10s/A13 CLK driver

2018-08-06 Thread Jagan Teki
Add initial clock driver for Allwinner A10s/A13. - Implement USB ahb and USB clocks via ccu_clk_map descriptor for A10s/A13, so it can accessed in common clk enable and disable functions from clk_sunxi.c - Implement USB resets via ccu_reset_map descriptor for A10s/A13, so it can accessed in

[U-Boot] [PATCH 12/42] clk: sunxi: Add Allwinner R40 CLK driver

2018-08-06 Thread Jagan Teki
Add initial clock driver for Allwinner R40. - Implement USB bus and USB clocks via ccu_clk_map descriptor for R40, so it can accessed in common clk enable and disable functions from clk_sunxi.c - Implement USB bus and USB resets via ccu_reset_map descriptor for R40, so it can accessed in com

[U-Boot] [PATCH 15/42] musb-new: sunxi: Use CLK and RESET support

2018-08-06 Thread Jagan Teki
Now clock and reset drivers are available for respective SoC's so use clk and reset ops on musb driver. Signed-off-by: Jagan Teki --- drivers/usb/musb-new/sunxi.c | 82 +++- 1 file changed, 53 insertions(+), 29 deletions(-) diff --git a/drivers/usb/musb-new/sunxi

[U-Boot] [PATCH 17/42] sunxi: usb: Switch to Generic host controllers

2018-08-06 Thread Jagan Teki
Once of key blocker for using USB Generic host controller drivers in Allwinner are CLK and RESET drivers, now these available for USB usage. So switch to use EHCI and OHCI Generic controllers. Enabling USB is wisely a board choise, so Enable USB_OHCI_HCD where it already have USB_EHCI_HCD Signed-

[U-Boot] [PATCH 16/42] phy: sun4i-usb: Use CLK and RESET support

2018-08-06 Thread Jagan Teki
Now clock and reset drivers are available for respective SoC's so use clk and reset ops on phy driver. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 77 --- 1 file changed, 57 insertions(+), 20 deletions(-) diff --git a/drivers/phy/allwinner/phy-s

[U-Boot] [PATCH 36/42] sunxi: A23/A33/V3S: Enable DM_MMC

2018-08-06 Thread Jagan Teki
Enable DM_MMC for Allwinner A23/A33/V3S SoC. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 9e7021c574..3de595c687 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch

[U-Boot] [PATCH 21/42] clk: sunxi: Implement AHB bus MMC resets

2018-08-06 Thread Jagan Teki
Implement AHB bus MMC resets for all Allwinner SoC clock drivers via reset map descriptor table. Signed-off-by: Jagan Teki --- drivers/clk/sunxi/clk_a23.c | 3 +++ drivers/clk/sunxi/clk_a31.c | 4 drivers/clk/sunxi/clk_a64.c | 3 +++ drivers/clk/sunxi/clk_a83t.c | 3 +++ drivers/clk/sunx

[U-Boot] [PATCH 18/42] usb: host: Drop [e-o]hci-sunxi drivers

2018-08-06 Thread Jagan Teki
Now Allwinner platform is all set to use Generic USB controller drivers, so remove the legacy sunxi drivers. Signed-off-by: Jagan Teki --- drivers/usb/host/Makefile | 2 - drivers/usb/host/ehci-sunxi.c | 204 - drivers/usb/host/ohci-sunxi.c | 233 ---

[U-Boot] [PATCH 19/42] clk: sunxi: Implement AHB bus MMC clocks

2018-08-06 Thread Jagan Teki
Implement AHB bus MMC clocks for all Allwinner SoC clock drivers via clock map descriptor table. Signed-off-by: Jagan Teki --- drivers/clk/sunxi/clk_a10.c | 4 drivers/clk/sunxi/clk_a10s.c | 3 +++ drivers/clk/sunxi/clk_a23.c | 3 +++ drivers/clk/sunxi/clk_a31.c | 4 drivers/clk/sun

[U-Boot] [PATCH 09/42] clk: sunxi: Add Allwinner A23 CLK driver

2018-08-06 Thread Jagan Teki
Add initial clock driver for Allwinner A23. - Implement USB bus and USB clocks via ccu_clk_map descriptor for A23, so it can accessed in common clk enable and disable functions from clk_sunxi.c - Implement USB bus and USB resets via ccu_reset_map descriptor for A23, so it can accessed in com

[U-Boot] [PATCH 13/42] clk: sunxi: Add Allwinner V3S CLK driver

2018-08-06 Thread Jagan Teki
Add initial clock driver for Allwinner V3S. - Implement USB bus and USB clocks via ccu_clk_map descriptor for V3S, so it can accessed in common clk enable and disable functions from clk_sunxi.c - Implement USB bus and USB resets via ccu_reset_map descriptor for V3S, so it can accessed in com

[U-Boot] [PATCH 20/42] clk: sunxi: Implement direct MMC clocks

2018-08-06 Thread Jagan Teki
Implement direct MMC clocks for all Allwinner SoC clock drivers via clock map descriptor table. This includes adding ccu_clk_set_rate function pointer, which indeed support CLK set_rate API, so update clock handling in sunxi_mmc driver to support both no-dm and dm code. Signed-off-by: Jagan Teki

[U-Boot] [PATCH 22/42] reset: Add get reset by name optionally

2018-08-06 Thread Jagan Teki
Reset is an optional for some controllers with some families of CPU's with same SoC where the common IP driver can handle to drive the entire SoC families. optional reset get by name is useful for those drivers to make common way of reset handling. Example, In Allwinner SoC with MMC controllers ha

[U-Boot] [PATCH 24/42] dm: mmc: sunxi: Add CLK and RESET support

2018-08-06 Thread Jagan Teki
Now CLK and RESET driver for Allwinner SoC are available, so add the relevant operations on mmc sunxi driver. Signed-off-by: Jagan Teki --- drivers/mmc/sunxi_mmc.c | 60 +++-- 1 file changed, 46 insertions(+), 14 deletions(-) diff --git a/drivers/mmc/sunxi_mm

[U-Boot] [PATCH 28/42] sunxi: A20: Enable DM_MMC

2018-08-06 Thread Jagan Teki
Enable DM_MMC for Allwinner A20 SoC. Tested on A20-OLinuXino-LIME2. Cc: Stefan Mavrodiev Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index dce81b7d53..3fc30ee268 100644 -

[U-Boot] [PATCH 23/42] reset: Add reset valid

2018-08-06 Thread Jagan Teki
Add reset_valid to check whether given reset is valid or not. Signed-off-by: Jagan Teki --- include/reset.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/reset.h b/include/reset.h index a5af31f549..70130bb886 100644 --- a/include/reset.h +++ b/include/reset.h @@ -315,4

[U-Boot] [PATCH 42/42] clk: sunxi: Implement UART resets

2018-08-06 Thread Jagan Teki
Implement UART resets for all relevant Allwinner SoC clock drivers via reset map descriptor table. Signed-off-by: Jagan Teki --- drivers/clk/sunxi/clk_a23.c | 6 ++ drivers/clk/sunxi/clk_a31.c | 7 +++ drivers/clk/sunxi/clk_a64.c | 6 ++ drivers/clk/sunxi/clk_a83t.c | 6 ++ dr

[U-Boot] [PATCH 14/42] sunxi: Enable CLK

2018-08-06 Thread Jagan Teki
CLK and DM_RESET drivers are now available for most of the Allwinner platforms, so enable in mach-sunxi/Kconfig Enabling CLK will select DM_RESET by default. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach

[U-Boot] [PATCH 29/42] mmc: sunxi: Add mmc, emmc H5/A64 compatible

2018-08-06 Thread Jagan Teki
Added H5, A64 compatible for mmc and emmc. Signed-off-by: Jagan Teki --- drivers/mmc/sunxi_mmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 3011ec9498..5191a3e3dd 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_mmc.c

[U-Boot] [PATCH 27/42] sunxi: Use mmc_bootdev=2 for MMC2 boot

2018-08-06 Thread Jagan Teki
With DM_MMC the mmc devices are probed as per dt status and eMMC can probed maximum device of 2, if all nodes like mmc0, mmc1 and mmc2 status are 'okay'. So update mmc_bootdev to 2 and add boot order as 2, 1, 0 devices. so-that it can to boot any identified device even if the respective device sta

[U-Boot] [PATCH 34/42] sunxi: V40: Enable DM_MMC

2018-08-06 Thread Jagan Teki
Enable DM_MMC for Allwinner V40 SoC. Tested on BPI-M2 Ultra, BPI-M2 Berry. Cc: Lothar Felten Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index d28ab9879f..584d22bfaf 1006

[U-Boot] [PATCH 41/42] clk: sunxi: Implement UART clocks

2018-08-06 Thread Jagan Teki
Implement UART clocks for all Allwinner SoC clock drivers via clock map descriptor table. Signed-off-by: Jagan Teki --- drivers/clk/sunxi/clk_a10.c | 9 + drivers/clk/sunxi/clk_a10s.c | 5 + drivers/clk/sunxi/clk_a23.c | 6 ++ drivers/clk/sunxi/clk_a31.c | 7 +++ drivers/c

[U-Boot] [PATCH 39/42] spi: sun4i: Add CLK support

2018-08-06 Thread Jagan Teki
Add CLK support to enable AHB and MOD SPI clocks on sun4i_spi driver. Signed-off-by: Jagan Teki --- drivers/spi/sun4i_spi.c | 40 ++-- 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/drivers/spi/sun4i_spi.c b/drivers/spi/sun4i_spi.c index b86b5a

[U-Boot] [PATCH 40/42] spi: Add Allwinner A31 SPI driver

2018-08-06 Thread Jagan Teki
Add Allwinner sun6i SPI driver for A31, H3/H5 an A64. Signed-off-by: Jagan Teki --- drivers/spi/Kconfig | 6 + drivers/spi/Makefile| 1 + drivers/spi/sun6i_spi.c | 475 3 files changed, 482 insertions(+) create mode 100644 drivers/spi/sun6i_s

[U-Boot] [PATCH 37/42] clk: sunxi: Implement SPI clocks

2018-08-06 Thread Jagan Teki
Implement SPI AHB and MOD clocks for all Allwinner SoC clock drivers via clock map descriptor table. Signed-off-by: Jagan Teki --- drivers/clk/sunxi/clk_a10.c | 9 + drivers/clk/sunxi/clk_a10s.c | 7 +++ drivers/clk/sunxi/clk_a31.c | 9 + drivers/clk/sunxi/clk_a64.c | 5 ++

Re: [U-Boot] [PATCH v6 00/27] SPI-NAND support

2018-08-06 Thread Stefan Roese
Hi Miquel, I just noticed that when using this patchset version, I'm getting oopses / crashes while trying to attach an MTD partition to UBI using "ubi part". This did not happen with earlier versions. I digged a bit into it and noticed that for example mtd_read() in mtdcore.c has some differenc

Re: [U-Boot] [PATCH 0/2] sunxi: SPI: reset bus when enabling clock

2018-08-06 Thread Jagan Teki
On Sat, Aug 4, 2018 at 4:54 AM, Fahad Sadah wrote: > Hi all, > > The sun6i SPI peripheral needs to be reset before it can be used > > Add the necessary offset #defines and perform this reset > > Tested on Orange Pi R1 (Allwinner H2+ / sun8i) and successfully booted > from SPI Thanks for testing t

[U-Boot] [PATCH 32/42] mmc: sunxi: Add A83T emmc compatible

2018-08-06 Thread Jagan Teki
Add emmc compatible for A83T SoC. Cc: VishnuPatekar Signed-off-by: Jagan Teki --- drivers/mmc/sunxi_mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 5191a3e3dd..229a7b2811 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sun

[U-Boot] [PATCH 38/42] clk: sunxi: Implement SPI resets

2018-08-06 Thread Jagan Teki
Implement SPI resets for all relevant Allwinner SoC clock drivers via reset map descriptor table. Signed-off-by: Jagan Teki --- drivers/clk/sunxi/clk_a31.c | 4 drivers/clk/sunxi/clk_a64.c | 2 ++ drivers/clk/sunxi/clk_h3.c | 2 ++ drivers/clk/sunxi/clk_v3s.c | 1 + 4 files changed, 9 inse

[U-Boot] [PATCH 25/42] fastboot: sunxi: Update fastboot mmc default device

2018-08-06 Thread Jagan Teki
Usually eMMC is default env fat device for environment, if MMC_SUNXI_SLOT_EXTRA != 1 Sunxi always probed emmc device as 1. but with DM_MMC it can be more possible to probe eMMC as device 2 since for most of the sunxi platforms eMMC is configured mmc2. So update the fastboot mmc default device as 2

[U-Boot] [PATCH 33/42] sunxi: A83T: Enable DM_MMC

2018-08-06 Thread Jagan Teki
Enable DM_MMC for Allwinner A83T SoC. Tested on BPI-M3. Cc: VishnuPatekar Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index a82fa50d1b..d28ab9879f 100644 --- a/arch/arm/m

[U-Boot] [PATCH 26/42] env: sunxi: Update default env fat device

2018-08-06 Thread Jagan Teki
Usually eMMC is default env fat device for environment, if MMC_SUNXI_SLOT_EXTRA != 1 Sunxi always probed emmc device as 1. but with DM_MMC it can be more possible to probe eMMC as device 2 since for most of the sunxi platforms eMMC is configured mmc2. So update the env default device as 2 if DM_MM

[U-Boot] [PATCH 35/42] sunxi: A13/A31: Enable DM_MMC

2018-08-06 Thread Jagan Teki
Enable DM_MMC for Allwinner A13/A31 SoC. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 584d22bfaf..9e7021c574 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/

[U-Boot] [PATCH 30/42] sunxi: H3_H5: Enable DM_MMC

2018-08-06 Thread Jagan Teki
Enable DM_MMC for Allwinner H3/H5 SoCs. Tested on H3: BPI-M2+ H5: Orangepi pc2, prime, zero+2 Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 3fc30ee268..e911dd0722 1006

[U-Boot] [PATCH 31/42] sunxi: A64: Enable DM_MMC

2018-08-06 Thread Jagan Teki
Enable DM_MMC for Allwinner A64 SoCs. Tested on BPI-M64, Amarula A64-Relic Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index e911dd0722..a82fa50d1b 100644 --- a/arch/arm/m

Re: [U-Boot] [PATCH] spi: Zap fsl_espi driver

2018-08-06 Thread Jagan Teki
On Fri, Jul 6, 2018 at 5:18 PM, Jagan Teki wrote: > On Fri, May 11, 2018 at 11:51 AM, Jagan Teki > wrote: >> Dropped becuase >> - No proper changes related to since from 2015 >> - no dm conversion. >> >> Signed-off-by: Jagan Teki >> --- >> Note: Right now only drived removed, if there is no fur

Re: [U-Boot] [PATCH v6 00/27] SPI-NAND support

2018-08-06 Thread Jagan Teki
Are you planning to send the next version? On Sat, Aug 4, 2018 at 3:29 PM, Miquel Raynal wrote: > Hi Boris, > > Boris Brezillon wrote on Sat, 4 Aug 2018 > 10:34:55 +0200: > >> On Sat, 4 Aug 2018 09:23:05 +0200 >> Miquel Raynal wrote: >> >> > Hi Jagan, >> > >> > Jagan Teki wrote on Fri, 3 Aug 2

Re: [U-Boot] DM_SPI, DM_SPI_FLASH due 2018.09

2018-08-06 Thread Jagan Teki
On Mon, Aug 6, 2018 at 5:52 PM, Adam Ford wrote: > Tom / Jagan, > > Per MIGRATION.txt, (dated 14 March 2018) it shows the deadline for > CONFIG_DM_SPI and CONFIG_DM_SPI_FLASH to be 2018.09 which is already > in RC1 status. > > This document also lists some boards which were partially converted > a

Re: [U-Boot] [PATCH] common: Increase LOGLEVEL back to 6

2018-08-06 Thread Tom Rini
On Mon, Aug 06, 2018 at 05:13:44PM +0200, Stefan Roese wrote: > Commit 6a3e65dea3e5 ("common: Drop LOGLEVEL to 4") reduced the loglevel > resulting in pr_warn() messages fro e.g. UBI are not shown anymore. With > this change back to 6, messages like this appear again: > > nand: attempt to erase a

Re: [U-Boot] [PATCH v1] Makefile: Don't generate position independent code

2018-08-06 Thread Andy Shevchenko
On Mon, 2018-08-06 at 19:32 +0200, Heinrich Schuchardt wrote: > On 08/06/2018 07:11 PM, Andy Shevchenko wrote: > > On Mon, 2018-08-06 at 18:56 +0200, Heinrich Schuchardt wrote: > > > On 08/06/2018 06:00 PM, Andy Shevchenko wrote: > > > > Fix all these by disabling PIE on Makefile level. > > > With

Re: [U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions

2018-08-06 Thread Anatolij Gustschin
Hi Mario, On Fri, 3 Aug 2018 10:01:12 +0200 Mario Six mario@gdsys.cc wrote: ... > +int regmap_raw_read(struct regmap *map, uint offset, void *valp, size_t > val_len) > +{ > + void *ptr; > + > + ptr = map_physmem(map->ranges[0].start + offset, val_len, MAP_NOCACHE); > + > + switch

[U-Boot] [PATCH] Convert CONFIG_TWL4030_LED et al to Kconfig

2018-08-06 Thread Adam Ford
This converts the following to Kconfig: CONFIG_TWL4030_LED CONFIG_TWL4030_INPUT This also removes dead references to: CONFIG_TWL4030_KEYPAD Signed-off-by: Adam Ford --- configs/cairo_defconfig | 1 + configs/cm_t35_defconfig | 1 + configs/devkit8000_defconfig |

Re: [U-Boot] [PATCH v1] Makefile: Don't generate position independent code

2018-08-06 Thread Heinrich Schuchardt
On 08/06/2018 08:55 PM, Andy Shevchenko wrote: > On Mon, 2018-08-06 at 19:32 +0200, Heinrich Schuchardt wrote: >> On 08/06/2018 07:11 PM, Andy Shevchenko wrote: >>> On Mon, 2018-08-06 at 18:56 +0200, Heinrich Schuchardt wrote: On 08/06/2018 06:00 PM, Andy Shevchenko wrote: > Fix all these

Re: [U-Boot] [PATCH v1] Makefile: Don't generate position independent code

2018-08-06 Thread Andy Shevchenko
On Mon, Aug 6, 2018 at 10:40 PM, Heinrich Schuchardt wrote: > On 08/06/2018 08:55 PM, Andy Shevchenko wrote: >> On Mon, 2018-08-06 at 19:32 +0200, Heinrich Schuchardt wrote: >>> On 08/06/2018 07:11 PM, Andy Shevchenko wrote: On Mon, 2018-08-06 at 18:56 +0200, Heinrich Schuchardt wrote: >

Re: [U-Boot] [PATCH 1/4] spi: spi-mem: Add optional half-duplex SPI transfer mode

2018-08-06 Thread Boris Brezillon
Hi Stefan, On Mon, 6 Aug 2018 17:12:50 +0200 Stefan Roese wrote: > Some SPI controller might now support full-duplex SPI transfers. > This option can be enabled to use half-duplex operation mode for > such SPI controllers. > > Signed-off-by: Stefan Roese > Cc: Miquel Raynal > Cc: Boris Brezi

Re: [U-Boot] [PATCH 2/4] mtd: nand: Don't abort erase operation when a bad block is detected

2018-08-06 Thread Boris Brezillon
Hi Stefan, On Mon, 6 Aug 2018 17:12:51 +0200 Stefan Roese wrote: > It was noticed, that the erase command (mtd erase spi-nand0) aborts upon > the first bad block. With this change, bad blocks are now skipped and > the erase operation will continue. > That's not what the raw NAND framework doe

[U-Boot] [PATCH 1/1] efi_loader: avoid NULL dereference in efi_get_memory_map()

2018-08-06 Thread Heinrich Schuchardt
We should only dereference parameter memory_map_size after checking that it is valid. Fixes: 8e835554b36b ("efi_loader: check parameters of GetMemoryMap") Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_memory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib

Re: [U-Boot] [PATCH 4/6] mvebu: select boot device at SoC level

2018-08-06 Thread Dennis Gilmore
Weird git am failed for me so I had to tweak the patch. I must have done something wrong on my end. I did test on the helios4 after applying the set and it booted fine On 6 August 2018 2:13:33 pm GMT+02:00, Stefan Roese wrote: >Hi Baruch, > >On 06.08.2018 12:12, Baruch Siach wrote: >> Hi Dennis

[U-Boot] [PATCH 1/1] efi_loader: efi_dp_get_next_instance() superfluous statemt

2018-08-06 Thread Heinrich Schuchardt
Remove a superfluous statement in efi_dp_get_next_instance(). p is reassigned a value before the old one is used. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_device_path.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_devi

[U-Boot] [PATCH 1/1] efi_loader: efi_dp_get_next_instance() superfluous statemt

2018-08-06 Thread Heinrich Schuchardt
Remove a superfluous statement in efi_dp_get_next_instance(). p is reassigned a value before the old one is used. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_device_path.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_devi

Re: [U-Boot] [PATCH 3/4] cmd: mtd: Don't use with negative return codes for shell commands

2018-08-06 Thread Boris Brezillon
On Mon, 6 Aug 2018 17:12:52 +0200 Stefan Roese wrote: > When negative return codes are used in commands (do_foo()), the shell > prints these messages: > > exit not allowed from main input shell. > > Change the return codes in the new mtd commands to use only positive > values and these annoyin

Re: [U-Boot] [PATCH 4/4] cmd: mtd: Add info text to mtd erase subcommand

2018-08-06 Thread Boris Brezillon
On Mon, 6 Aug 2018 17:12:53 +0200 Stefan Roese wrote: > Adding this info helps seeing, what really is being erased - especially > if no arguments are passed for offset and size. Now this is the > output: > > => mtd erase spi-nand0 > Erasing 0x ... 0x07ff (65536 page(s)) > nand: at

Re: [U-Boot] [PATCH v6 00/27] SPI-NAND support

2018-08-06 Thread Boris Brezillon
On Mon, 6 Aug 2018 19:45:24 +0200 Stefan Roese wrote: > Hi Miquel, > > I just noticed that when using this patchset version, I'm > getting oopses / crashes while trying to attach an MTD > partition to UBI using "ubi part". This did not happen > with earlier versions. > > I digged a bit into it

Re: [U-Boot] [PATCH v2 3/3] configs: kirkwood: Move RTC_MV to DM and Kconfig

2018-08-06 Thread Chris Packham
On Tue, Aug 7, 2018 at 12:12 AM Stefan Roese wrote: > > Hi Chris, > > On 29.06.2018 00:38, Chris Packham wrote: > > Now that there is DM support in the RTC_MV driver update board configs > > to use it. > > > > Signed-off-by: Chris Packham > > I'm a bit late this time in the release cycle. This on

Re: [U-Boot] [PATCH v4 01/13] test: regmap: Increase size of syscon0 memory

2018-08-06 Thread Anatolij Gustschin
Hi Mario, On Fri, 3 Aug 2018 10:01:06 +0200 Mario Six mario@gdsys.cc wrote: ... > diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts > index e941cea3e5c..47cc961890f 100644 > --- a/arch/sandbox/dts/test.dts > +++ b/arch/sandbox/dts/test.dts > @@ -406,7 +406,7 @@ > > sys

Re: [U-Boot] [PATCH 1/1] distro_bootcmd: Switch bootefi to use loadaddr by default.

2018-08-06 Thread Alexander Graf
On 06.08.18 13:00, Kristian Amlie wrote: > Ping. Any objections to this change? I definitely don't want to have the bootefi path behave any different from the other distro boot targets. That would just cause confusion down the road. Do they (pxe boot, extlinux, etc) make use of loadaddr? Than

[U-Boot] [PATCH] sandbox: Move BSS after EFI sections

2018-08-06 Thread Alexander Graf
Something went wrong when writing the sandbox linker scripts and so we ended up with a .bss section marker right before the efi runtime sections. That obviously is a terrible idea, as it may result in overwriting efi runtime code and data. So let's move the .bss identifier behind the efi sections.

<    1   2   3   >