Re: [U-Boot] [PATCH v2 2/3] efi_loader: enumerate disk devices every time

2019-01-10 Thread Alexander Graf
On 11.01.19 05:29, AKASHI Takahiro wrote: > Alex, Heinrich and Simon, > > Thank you for your comments, they are all valuable but also make me > confused as different people have different requirements :) > I'm not sure that all of us share the same *ultimate* goal here. The shared ultimate goal

Re: [U-Boot] SPL Platdata howto?

2019-01-10 Thread Simon Goldschmidt
On Thu, Jan 10, 2019 at 1:57 PM Simon Glass wrote: > > Hi Simon, > > On Fri, 4 Jan 2019 at 00:15, Simon Goldschmidt > wrote: > > > > On Fri, Dec 21, 2018 at 10:20 PM Simon Goldschmidt > > wrote: > > > > > > > > > > > > Am Fr., 21. Dez. 2018, 22:16 hat Simon Glass > > > geschrieben: > > >> > >

Re: [U-Boot] [PATCH] of-platdata: improve documentation

2019-01-10 Thread Simon Goldschmidt
On Thu, Jan 10, 2019 at 1:57 PM Simon Glass wrote: > > On Mon, 7 Jan 2019 at 12:23, Simon Goldschmidt > wrote: > > > > Improve some things in the documentation of OF_PLATDATA that I found > > while porting socfgpa_gen5 to it. > > > > Signed-off-by: Simon Goldschmidt > > --- > > > > doc/driver-m

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Simon Goldschmidt
On Thu, Jan 10, 2019 at 5:54 PM Tom Rini wrote: > > On Thu, Jan 10, 2019 at 05:36:11PM +0100, Simon Goldschmidt wrote: > > Am 10.01.2019 um 16:56 schrieb Tom Rini: > > >On Thu, Jan 10, 2019 at 09:11:53AM +0100, Simon Goldschmidt wrote: > > >>On Thu, Jan 10, 2019 at 9:00 AM Stefano Babic wrote: >

Re: [U-Boot] [linux-sunxi] [PATCH 2/3] tools: mkimage: Add Allwinner eGON support

2019-01-10 Thread Jagan Teki
On Sat, Dec 22, 2018 at 7:06 AM Andre Przywara wrote: > > So far we used the separate mksunxiboot tool for generating a bootable > image for Allwinner SPLs, probably just for historical reasons. > > Use the mkimage framework to generate a so called eGON image the > Allwinner BROM expects. > The ne

Re: [U-Boot] [linux-sunxi] [PATCH 1/3] tools: mkimage: Add missing names for imx8mimage and loadables

2019-01-10 Thread Jagan Teki
On Sat, Dec 22, 2018 at 7:06 AM Andre Przywara wrote: > > At the moment "mkimage -T list" starts with two unknown entries, because > their IH_TYPE_ name is not listed in the uimage_type table. > > Add those two entries to get an OCD-compatible image type listing. > > Signed-off-by: Andre Przywara

Re: [U-Boot] [PATCH 1/1] sunxi: board: Add i2c initialization for sun50i

2019-01-10 Thread Jagan Teki
On Tue, Jan 8, 2019 at 3:47 PM Maxime Ripard wrote: > > On Tue, Jan 08, 2019 at 12:04:30PM +0200, Stefan Mavrodiev wrote: > > To use TWI0/1/2 the user can select CONFIG_I2C#_ENABLE. > > However even the controller is enabled, the mux for the pins > > are not set. > > > > This patch follows the exi

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Simon Goldschmidt
On Thu, Jan 10, 2019 at 5:54 PM Tom Rini wrote: > > On Thu, Jan 10, 2019 at 05:36:11PM +0100, Simon Goldschmidt wrote: > > Am 10.01.2019 um 16:56 schrieb Tom Rini: > > >On Thu, Jan 10, 2019 at 09:11:53AM +0100, Simon Goldschmidt wrote: > > >>On Thu, Jan 10, 2019 at 9:00 AM Stefano Babic wrote: >

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Simon Goldschmidt
On Thu, Jan 10, 2019 at 11:47 PM Stefano Babic wrote: > > Hi Tom, > > On 10/01/19 16:12, Tom Rini wrote: > > On Thu, Jan 10, 2019 at 03:51:51PM +0100, Stefano Babic wrote: > >> Hi Tom, > >> > >> On 10/01/19 15:44, Tom Rini wrote: > >>> On Thu, Jan 10, 2019 at 09:00:13AM +0100, Stefano Babic wrote:

Re: [U-Boot] [PATCH v2 2/3] efi_loader: enumerate disk devices every time

2019-01-10 Thread AKASHI Takahiro
Heinrich, On Thu, Jan 10, 2019 at 08:22:25PM +0100, Heinrich Schuchardt wrote: > On 1/10/19 10:22 AM, Alexander Graf wrote: > > > > > >> Am 10.01.2019 um 10:16 schrieb AKASHI Takahiro > >> : > >> > >>> On Thu, Jan 10, 2019 at 09:15:36AM +0100, Alexander Graf wrote: > >>> > >>> > > Am 10.01.

Re: [U-Boot] [PATCH v2 2/3] efi_loader: enumerate disk devices every time

2019-01-10 Thread AKASHI Takahiro
On Thu, Jan 10, 2019 at 05:57:11AM -0700, Simon Glass wrote: > Hi, > > On Wed, 9 Jan 2019 at 02:06, Alexander Graf wrote: > > > > > > > > On 13.12.18 08:58, AKASHI Takahiro wrote: > > > Heinrich, > > > > > > On Tue, Dec 11, 2018 at 08:55:41PM +0100, Heinrich Schuchardt wrote: > > >> On 11/15/18 5

Re: [U-Boot] [PATCH v2 2/3] efi_loader: enumerate disk devices every time

2019-01-10 Thread AKASHI Takahiro
Alex, Heinrich and Simon, Thank you for your comments, they are all valuable but also make me confused as different people have different requirements :) I'm not sure that all of us share the same *ultimate* goal here. So, first, let me reply to each of your comments. Through this process, I hope

[U-Boot] [PATCH] common: Kconfig: miscellaneous spelling fixes

2019-01-10 Thread Chris Packham
Signed-off-by: Chris Packham --- common/Kconfig | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/Kconfig b/common/Kconfig index 57bd16d9623c..2c017df4087c 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -308,7 +308,7 @@ config SILENT_CONSOLE help

[U-Boot] [PATCH 3/3] sunxi: H6: use writel_relaxed for DRAM timing register accesses

2019-01-10 Thread Andre Przywara
The timing registers in the DRAM controller can be programmed in any order, as they will only take effect once the controller is eventually "activated". Switch the MMIO writes in mctl_set_timing_lpddr3() over to use writel_relaxed(), since we don't need the stronger guarantee of the normal writel(

[U-Boot] [PATCH 2/3] arm: introduce _relaxed MMIO accessors

2019-01-10 Thread Andre Przywara
The normal MMIO accessor macros (readX/writeX) guarantee a strong ordering, even with normal memory accesses [1]. For some MMIO operations (framebuffers being a prominent example) this is not needed, and the rather costly barrier inserted on weakly ordered systems like ARM costs some performance. T

[U-Boot] [PATCH 1/3] arm: clean up asm/io.h

2019-01-10 Thread Andre Przywara
asm/io.h is the header file containing the central MMIO accessor macros. Judging by the header and the comments, it was apparently once copied from the Linux kernel, but has deviated since then heavily. Clean up the definitions by: - removing pointless Linux history - removing commented code - rem

[U-Boot] [PATCH 0/3] arm: Introduce writel/readl_relaxed accessors

2019-01-10 Thread Andre Przywara
Admittedly this is the long way round to solve some nasty SPL code size problem, but it looked beneficial to others as well, so here we go: arch/arm/include/asm/io.h looks like it's been around since the dawn of time, and was more or less blindly copied from Linux. We don't use and don't need most

Re: [U-Boot] [PATCH v6 15/20] sunxi: Enable CLK

2019-01-10 Thread André Przywara
On 10/01/2019 18:40, Jagan Teki wrote: > 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. Shame we don't have the new A80 DTs in our tree, otherwise we would have got away with a one

Re: [U-Boot] [PATCH v6 14/20] sunxi: A64: Update sun50i-a64-ccu.h

2019-01-10 Thread André Przywara
On 10/01/2019 18:40, Jagan Teki wrote: > Update sun50i-a64-ccu.h from the Linux sunxi/dt64-for-4.20 tree: > commit 679294497be31596e1c9c61507746d72b6b05f26 > Author: Rodrigo Exterckötter Tjäder > Date: Wed Sep 26 19:48:24 2018 + > arm64: dts: allwinner: a64: a64-olinuxino: set the PHY TX

Re: [U-Boot] [PATCH v6 13/20] clk: sunxi: Add Allwinner H6 CLK driver

2019-01-10 Thread André Przywara
On 10/01/2019 18:40, Jagan Teki wrote: > Add initial clock driver for Allwinner H6. > > - Implement UART bus clocks via ccu_clk_gate table for > H6, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement UART bus resets via ccu_reset table for H6, > so

Re: [U-Boot] Pull request: u-boot-sunxi/master

2019-01-10 Thread Tom Rini
On Thu, Jan 10, 2019 at 02:50:53PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this fix for the release v2019.01 > > Sorry for last minute trouble. > > thanks, > Jagan. > > The following changes since commit 54707a942009fae083dd78b58ff057127ba0e900: > > Prepare v2019.01-rc3 (2019-01-

Re: [U-Boot] [GIT PULL] Pull request: u-boot-imx u -boot-imx-20190110

2019-01-10 Thread Tom Rini
On Thu, Jan 10, 2019 at 09:06:52AM +0100, Stefano Babic wrote: > Hi Tom, > > some fixes for 2019.01. > Tag: u -boot-imx-20190110 > Travis: https://travis-ci.org/sbabic/u-boot-imx > > The following changes since commit 54707a942009fae083dd78b58ff057127ba0e900: > >

Re: [U-Boot] [PATCH v6 11/20] clk: sunxi: Implement UART clocks

2019-01-10 Thread André Przywara
On 10/01/2019 18:40, Jagan Teki wrote: > Implement UART clocks for all Allwinner SoC > clock drivers via ccu clock gate table. > > Signed-off-by: Jagan Teki Compared against each manual: Reviewed-by: Andre Przywara Thanks, Andre > --- > drivers/clk/sunxi/clk_a10.c | 9 + > drivers/

Re: [U-Boot] [PATCH v6 12/20] clk: sunxi: Implement UART resets

2019-01-10 Thread André Przywara
On 10/01/2019 18:40, Jagan Teki wrote: > Implement UART resets for all relevant Allwinner SoC > clock drivers via ccu reset table. > > Signed-off-by: Jagan Teki Compared against each manual: Reviewed-by: Andre Przywara Cheers, Andre. > --- > drivers/clk/sunxi/clk_a23.c | 6 ++ > driver

Re: [U-Boot] [PATCH] mmc: fsl_esdhc: Move ifdef to CONFIG_IS_ENABLED

2019-01-10 Thread Lukasz Majewski
Hi Adam, > For some boards, DM_REGULATOR and DM_GPIO may not be enabled in > SPL but enabled in U-Boot. So switching to CONFIG_IS_ENABLED from > ifdef allows the esdhc driver to function with some limited > functionality in SPL. > > Signed-off-by: Adam Ford > > diff --git a/drivers/mmc/fsl_esd

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Stefano Babic
Hi Tom, On 10/01/19 16:12, Tom Rini wrote: > On Thu, Jan 10, 2019 at 03:51:51PM +0100, Stefano Babic wrote: >> Hi Tom, >> >> On 10/01/19 15:44, Tom Rini wrote: >>> On Thu, Jan 10, 2019 at 09:00:13AM +0100, Stefano Babic wrote: Hi Tom, Soeren, On 09/01/19 23:39, Tom Rini wrote: >

Re: [U-Boot] [PATCH v1 2/2] x86: edison: Switch to CONFIG_OF_SEPARATE

2019-01-10 Thread Ferry Toth
Op 08-01-19 om 15:17 schreef Andy Shevchenko: There is no need for Intel Edison to have CONFIG_OF_EMBED to be enabled. Replace it with CONFIG_OF_SEPARATE. There is no functional change since u-boot.bin always contains DTB either embedded or attached. Signed-off-by: Andy Shevchenko Tested-by:

[U-Boot] [PATCH] mmc: fsl_esdhc: Move ifdef to CONFIG_IS_ENABLED

2019-01-10 Thread Adam Ford
For some boards, DM_REGULATOR and DM_GPIO may not be enabled in SPL but enabled in U-Boot. So switching to CONFIG_IS_ENABLED from ifdef allows the esdhc driver to function with some limited functionality in SPL. Signed-off-by: Adam Ford diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esd

Re: [U-Boot] [PATCH 3/3] arm: socfpga: gen5: remove hacked ETH RST handling

2019-01-10 Thread Marek Vasut
On 1/10/19 9:46 PM, Simon Goldschmidt wrote: > > > Am Do., 10. Jan. 2019, 21:40 hat Marek Vasut > geschrieben: > > On 1/10/19 8:49 PM, Simon Goldschmidt wrote: > > The 'designware_socfpga' ETH driver can now get the MACs out of reset > > via the socfpga reset d

Re: [U-Boot] [PATCH 3/3] arm: socfpga: gen5: remove hacked ETH RST handling

2019-01-10 Thread Simon Goldschmidt
Am Do., 10. Jan. 2019, 21:40 hat Marek Vasut geschrieben: > On 1/10/19 8:49 PM, Simon Goldschmidt wrote: > > The 'designware_socfpga' ETH driver can now get the MACs out of reset > > via the socfpga reset driver and can set PHY mode via syscon. > > > > This means we can now remove the ad-hoc code

Re: [U-Boot] [PATCH 2/3] arm: socfpga: gen5 enable designware_socfpga

2019-01-10 Thread Marek Vasut
On 1/10/19 9:43 PM, Simon Goldschmidt wrote: > > > Am Do., 10. Jan. 2019, 21:40 hat Marek Vasut > geschrieben: > > On 1/10/19 8:49 PM, Simon Goldschmidt wrote: > > Enable the socfpga specific designeware ethernet driver for all Gen5 > > and Arria10 defconfigs.

Re: [U-Boot] [PATCH 1/3] net: designware: socfpga: adapt to Gen5

2019-01-10 Thread Marek Vasut
On 1/10/19 9:42 PM, Simon Goldschmidt wrote: > > > Am Do., 10. Jan. 2019, 21:38 hat Marek Vasut > geschrieben: > > On 1/10/19 8:54 PM, Simon Goldschmidt wrote: > > Hi Marek, > > > > Am 10.01.2019 um 20:49 schrieb Simon Goldschmidt: > >> This driver was

Re: [U-Boot] [PATCH 2/3] arm: socfpga: gen5 enable designware_socfpga

2019-01-10 Thread Simon Goldschmidt
Am Do., 10. Jan. 2019, 21:40 hat Marek Vasut geschrieben: > On 1/10/19 8:49 PM, Simon Goldschmidt wrote: > > Enable the socfpga specific designeware ethernet driver for all Gen5 > > and Arria10 defconfigs. To make it work, enable REGMAP and SYSCON, > > too. > > > > This is required to remove the

Re: [U-Boot] [PATCH 1/3] net: designware: socfpga: adapt to Gen5

2019-01-10 Thread Simon Goldschmidt
Am Do., 10. Jan. 2019, 21:38 hat Marek Vasut geschrieben: > On 1/10/19 8:54 PM, Simon Goldschmidt wrote: > > Hi Marek, > > > > Am 10.01.2019 um 20:49 schrieb Simon Goldschmidt: > >> This driver was written for Arria10, but it applies to Gen5, too. > >> > >> The main difference is that Gen5 has 2

Re: [U-Boot] [PATCH 3/3] arm: socfpga: gen5: remove hacked ETH RST handling

2019-01-10 Thread Marek Vasut
On 1/10/19 8:49 PM, Simon Goldschmidt wrote: > The 'designware_socfpga' ETH driver can now get the MACs out of reset > via the socfpga reset driver and can set PHY mode via syscon. > > This means we can now remove the ad-hoc code to do this from > arch/arm/mach-socfpga. > > Signed-off-by: Simon G

Re: [U-Boot] [PATCH 2/3] arm: socfpga: gen5 enable designware_socfpga

2019-01-10 Thread Marek Vasut
On 1/10/19 8:49 PM, Simon Goldschmidt wrote: > Enable the socfpga specific designeware ethernet driver for all Gen5 > and Arria10 defconfigs. To make it work, enable REGMAP and SYSCON, > too. > > This is required to remove the hacky reset and phy mode handling in > arch/arm/mach-socfpga. Can the

Re: [U-Boot] [PATCH 1/3] net: designware: socfpga: adapt to Gen5

2019-01-10 Thread Marek Vasut
On 1/10/19 8:54 PM, Simon Goldschmidt wrote: > Hi Marek, > > Am 10.01.2019 um 20:49 schrieb Simon Goldschmidt: >> This driver was written for Arria10, but it applies to Gen5, too. >> >> The main difference is that Gen5 has 2 MACs (Arria10 has 3) and the >> syscon bits are encoded in the same regis

[U-Boot] [PATCH v1] dm: led: add TI LP5562 LED driver

2019-01-10 Thread Doug Zobel
Driver for the TI LP5562 4 channel LED controller. Supports independent on/off control of all 4 channels. Supports LED_BLINK on 3 independent channels: blue/green/red. The white channel can blink, but shares the blue channel blink rate. --- doc/device-tree-bindings/leds/leds-lp5562.txt | 61 ++

[U-Boot] [PATCH v1] Add LED driver for TI LP5562 controller

2019-01-10 Thread Doug Zobel
Add a DM driver for the TI LP5562 4 channel LED controller. Supports independent on/off control of all 4 channels (blue/green/red/white). Supports LED_BLINK on blue/green/red channels. White channel supports LED_BLINK, but the blink period is shared with the blue channel due to controller limi

Re: [U-Boot] [PATCH 1/3] net: designware: socfpga: adapt to Gen5

2019-01-10 Thread Simon Goldschmidt
Hi Marek, Am 10.01.2019 um 20:49 schrieb Simon Goldschmidt: This driver was written for Arria10, but it applies to Gen5, too. The main difference is that Gen5 has 2 MACs (Arria10 has 3) and the syscon bits are encoded in the same register, thus an offset is needed. This offset is already read

Re: [U-Boot] [PATCH PATCH v2 0/2] Use CONFIG_USB_GADGET and CONFIG_SPL_USB_GADGET to select the USB gadget code

2019-01-10 Thread Marek Vasut
On 1/10/19 3:44 PM, Jean-Jacques Hiblot wrote: > > This series applies on top of u-boot-usb. > > This series renames CONFIG_SPL_USB_GADGET_SUPPORT to CONFIG_SPL_USB_GADGET > for consistency. > It also uses CONFIG_USB_GADGET to compile-in the gadget code. This make > sure that the code is not incl

[U-Boot] [PATCH PATCH v2 1/2] Kconfig: rename CONFIG_SPL_USB_GADGET_SUPPORT as CONFIG_SPL_USB_GADGET

2019-01-10 Thread Jean-Jacques Hiblot
The SPL option for USB gadget should be named after the option for u-boot (CONFIG_USB_GADGET) Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None arch/arm/mach-imx/mx6/Kconfig| 2 +- arch/arm/mach-imx/spl.c | 2 +- common/spl/Kconfig |

[U-Boot] [PATCH PATCH v2 0/2] Use CONFIG_USB_GADGET and CONFIG_SPL_USB_GADGET to select the USB gadget code

2019-01-10 Thread Jean-Jacques Hiblot
This series applies on top of u-boot-usb. This series renames CONFIG_SPL_USB_GADGET_SUPPORT to CONFIG_SPL_USB_GADGET for consistency. It also uses CONFIG_USB_GADGET to compile-in the gadget code. This make sure that the code is not included if it is not needed. Some defconfigs had to be updated a

[U-Boot] [PATCH 2/3] arm: socfpga: gen5 enable designware_socfpga

2019-01-10 Thread Simon Goldschmidt
Enable the socfpga specific designeware ethernet driver for all Gen5 and Arria10 defconfigs. To make it work, enable REGMAP and SYSCON, too. This is required to remove the hacky reset and phy mode handling in arch/arm/mach-socfpga. Signed-off-by: Simon Goldschmidt --- configs/socfpga_arria5_de

[U-Boot] [PATCH 3/3] arm: socfpga: gen5: remove hacked ETH RST handling

2019-01-10 Thread Simon Goldschmidt
The 'designware_socfpga' ETH driver can now get the MACs out of reset via the socfpga reset driver and can set PHY mode via syscon. This means we can now remove the ad-hoc code to do this from arch/arm/mach-socfpga. Signed-off-by: Simon Goldschmdit Signed-off-by: Simon Goldschmidt --- .../mac

[U-Boot] [PATCH 1/3] net: designware: socfpga: adapt to Gen5

2019-01-10 Thread Simon Goldschmidt
This driver was written for Arria10, but it applies to Gen5, too. The main difference is that Gen5 has 2 MACs (Arria10 has 3) and the syscon bits are encoded in the same register, thus an offset is needed. This offset is already read from the devicetree, but for Arria10 it is always 0, which is p

[U-Boot] [PATCH 0/3] arm: socpfpga: gen5 clean up ETH RST & PHY mode

2019-01-10 Thread Simon Goldschmidt
Socfpga Gen5 uses ad-hoc code to unreset the ETH MACs and set their PHY mode. Change this to use the designware_socfpga net driver and remove the old ad-hoc code. Simon Goldschmidt (3): net: designware: socfpga: adapt to Gen5 arm: socfpga: gen5 enable designware_socfpga arm: socfpga: gen5:

Re: [U-Boot] [PATCH v2 2/3] efi_loader: enumerate disk devices every time

2019-01-10 Thread Heinrich Schuchardt
On 1/10/19 10:22 AM, Alexander Graf wrote: > > >> Am 10.01.2019 um 10:16 schrieb AKASHI Takahiro : >> >>> On Thu, Jan 10, 2019 at 09:15:36AM +0100, Alexander Graf wrote: >>> >>> > Am 10.01.2019 um 09:02 schrieb AKASHI Takahiro > : > > On Thu, Jan 10, 2019 at 08:30:13AM +0100, Ale

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

2019-01-10 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 Acked-by: Maxime Ripard --- drivers/usb/host/Makefile | 2 - drivers/usb/host/ehci-sunxi.c | 204 - drivers/usb/host/ohci-sunx

[U-Boot] [PATCH v6 18/20] musb-new: sunxi: Use CLK and RESET support

2019-01-10 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 Acked-by: Maxime Ripard Reviewed-by: Marek Vasut --- drivers/usb/musb-new/sunxi.c | 79 ++-- 1 file changed, 39 insertions(+), 40 de

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

2019-01-10 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 Acked-by: Maxime Ripard Reviewed-by: Marek Vasut --- drivers/phy/allwinner/phy-sun4i-usb.c | 77 --- 1 file changed, 57 insertions(+), 20 del

[U-Boot] [PATCH v6 17/20] reset: Add reset valid

2019-01-10 Thread Jagan Teki
Add reset_valid to check whether given reset is valid or not. Cc: Simon Glass 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 bc495a90c2..65aa7a4ce5 100644 --- a/include/reset.h +++ b/include/

[U-Boot] [PATCH v6 19/20] sunxi: usb: Switch to Generic host controllers

2019-01-10 Thread Jagan Teki
Onc 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 sunxi USB 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

[U-Boot] [PATCH v6 15/20] sunxi: Enable CLK

2019-01-10 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 v6 10/20] clk: sunxi: Add Allwinner V3S CLK driver

2019-01-10 Thread Jagan Teki
Add initial clock driver for Allwinner V3S. - Implement USB bus and USB clocks via ccu_clk_gate table 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 table for V3S, so it can accessed in common reset dea

[U-Boot] [PATCH v6 08/20] clk: sunxi: Add Allwinner A83T CLK driver

2019-01-10 Thread Jagan Teki
Add initial clock driver for Allwinner A83T. - Implement USB bus and USB clocks via ccu_clk_gate table 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 table for A83T, so it can accessed in common reset

[U-Boot] [PATCH v6 07/20] clk: sunxi: Add Allwinner A23/A33 CLK driver

2019-01-10 Thread Jagan Teki
Add initial clock driver for Allwinner A23/A33. - Implement USB bus and USB clocks via ccu_clk_gate table for A23/A33, so it can accessed in common clk enable and disable functions from clk_sunxi.c - Implement USB bus and USB resets via ccu_reset table for A23/A33, so it can accessed in comm

[U-Boot] [PATCH v6 13/20] clk: sunxi: Add Allwinner H6 CLK driver

2019-01-10 Thread Jagan Teki
Add initial clock driver for Allwinner H6. - Implement UART bus clocks via ccu_clk_gate table for H6, so it can accessed in common clk enable and disable functions from clk_sunxi.c - Implement UART bus resets via ccu_reset table for H6, so it can accessed in common reset deassert and assert

[U-Boot] [PATCH v6 14/20] sunxi: A64: Update sun50i-a64-ccu.h

2019-01-10 Thread Jagan Teki
Update sun50i-a64-ccu.h from the Linux sunxi/dt64-for-4.20 tree: commit 679294497be31596e1c9c61507746d72b6b05f26 Author: Rodrigo Exterckötter Tjäder Date: Wed Sep 26 19:48:24 2018 + arm64: dts: allwinner: a64: a64-olinuxino: set the PHY TX delay This should be a part of previous sync pa

[U-Boot] [PATCH v6 05/20] clk: sunxi: Add Allwinner A10s/A13 CLK driver

2019-01-10 Thread Jagan Teki
Add initial clock driver for Allwinner A10s/A13. - Implement USB ahb and USB clocks via ccu_clk_gate table for A10s/A13, so it can accessed in common clk enable and disable functions from clk_sunxi.c - Implement USB resets via ccu_reset table for A10s/A13, so it can accessed in common reset

[U-Boot] [PATCH v6 12/20] clk: sunxi: Implement UART resets

2019-01-10 Thread Jagan Teki
Implement UART resets for all relevant Allwinner SoC clock drivers via ccu reset 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 ++ drivers/clk/s

[U-Boot] [PATCH v6 11/20] clk: sunxi: Implement UART clocks

2019-01-10 Thread Jagan Teki
Implement UART clocks for all Allwinner SoC clock drivers via ccu clock gate 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/clk/sun

[U-Boot] [PATCH v6 09/20] clk: sunxi: Add Allwinner R40 CLK driver

2019-01-10 Thread Jagan Teki
Add initial clock driver for Allwinner R40. - Implement USB bus and USB clocks via ccu_clk_gate 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 table for R40, so it can accessed in common reset deassert

[U-Boot] [PATCH v6 06/20] clk: sunxi: Add Allwinner A31 CLK driver

2019-01-10 Thread Jagan Teki
Add initial clock driver for Allwinner A31. - Implement USB ahb1 and USB clocks via ccu_clk_gate table 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 table for A31, so it can accessed in common reset d

[U-Boot] [PATCH v6 03/20] clk: sunxi: Add Allwinner H3/H5 CLK driver

2019-01-10 Thread Jagan Teki
Add initial clock driver for Allwinner H3/H5. - Implement USB bus and USB clocks via ccu_clk_gate table 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 table for H3/H5, so it can accessed in common res

[U-Boot] [PATCH v6 04/20] clk: sunxi: Add Allwinner A10/A20 CLK driver

2019-01-10 Thread Jagan Teki
Add initial clock driver for Allwinner A10/A20. - Implement USB ahb and USB clocks via ccu_clk_gate table for A10/A20, so it can accessed in common clk enable and disable functions from clk_sunxi.c - Implement USB resets via ccu_reset table for A10/A20, so it can accessed in common reset dea

[U-Boot] [PATCH v6 02/20] reset: Add Allwinner RESET driver

2019-01-10 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 ccu reset table d

[U-Boot] [PATCH v6 01/20] clk: Add Allwinner A64 CLK driver

2019-01-10 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 via ccu clk gate table. Signed-off-by: Jagan Teki Acked-by: Maxime Ripard --- arch/arm/include/asm/arch-sunxi/ccu.h | 65 +++

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

2019-01-10 Thread Jagan Teki
This series fixes few comments from previous verision for Allwinner clock gates, resets and dropped clock tree patches which I have mentioned on previous series[1]. Changes for v6: - use ARRAY_SIZE for reset array instead of number - remove comment from sunxi_reset_request - Enable CONFIG_USB_OHC

Re: [U-Boot] [PATCH v5 15/26] clk: sunxi: Add ccu clock tree support

2019-01-10 Thread Jagan Teki
On Thu, Jan 10, 2019 at 6:21 AM André Przywara wrote: > > On 08/01/2019 19:12, Jagan Teki wrote: > > On Tue, Jan 8, 2019 at 5:09 PM Andre Przywara > > wrote: > >> > >> On Tue, 8 Jan 2019 16:27:14 +0530 > >> Jagan Teki wrote: > >> > >> Hi, > >> > >>> On Mon, Jan 7, 2019 at 6:35 AM André Przywara

Re: [U-Boot] [PATCH v4 1/6] pinctrl: mscc: Add gpio and pinctrl for Jaguar2 SOC family

2019-01-10 Thread Daniel Schwierzeck
Hi Horatio, Am 10.01.19 um 15:11 schrieb Gregory CLEMENT: > Hi Horatiu, > > On jeu., janv. 10 2019, Horatiu Vultur wrote: > >> The Jaguar2 SOC family has 63 gpio pins therefore I extended mscc-common >> to support new numbe of pins and remove any platform dependency from >> mscc-common. >> >>

Re: [U-Boot] [u-boot][PATCH] ls1046aqds: Bypass xfi port fixup for KR mode

2019-01-10 Thread York Sun
On 12/10/18 1:27 AM, Florinel Iordache wrote: > u-boot makes a fixup for LS1046AQDS board to setup the properties > 'fixed-link' and 'phy-connection-type' to 'xgmii' but in case of > backplane mode this fixup is not correct because it causes the KR link > to fail and so it must be bypassed in or

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Tom Rini
On Thu, Jan 10, 2019 at 05:36:11PM +0100, Simon Goldschmidt wrote: > Am 10.01.2019 um 16:56 schrieb Tom Rini: > >On Thu, Jan 10, 2019 at 09:11:53AM +0100, Simon Goldschmidt wrote: > >>On Thu, Jan 10, 2019 at 9:00 AM Stefano Babic wrote: > >>> > >>>Hi Tom, Soeren, > >>> > >>>On 09/01/19 23:39, Tom

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Simon Goldschmidt
Am 10.01.2019 um 16:56 schrieb Tom Rini: On Thu, Jan 10, 2019 at 09:11:53AM +0100, Simon Goldschmidt wrote: On Thu, Jan 10, 2019 at 9:00 AM Stefano Babic wrote: Hi Tom, Soeren, On 09/01/19 23:39, Tom Rini wrote: On Wed, Jan 09, 2019 at 05:01:37PM +0100, Stefano Babic wrote: Hi Soeren, On

Re: [U-Boot] [PATCH] pylibfdt: Use Python 2 in Makefile

2019-01-10 Thread Tom Rini
On Thu, Jan 10, 2019 at 05:56:56AM -0700, Simon Glass wrote: > On Tue, 8 Jan 2019 at 06:19, Josef Lusticky wrote: > > > > pylibfdt needs Python 2 to build. > > Replace $(PYTHON) with $(PYTHON2) in pylibfdt Makefile > > to ensure Python 2 is used to build it. > > > > This fixes build on systems whe

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Tom Rini
On Thu, Jan 10, 2019 at 09:11:53AM +0100, Simon Goldschmidt wrote: > On Thu, Jan 10, 2019 at 9:00 AM Stefano Babic wrote: > > > > Hi Tom, Soeren, > > > > On 09/01/19 23:39, Tom Rini wrote: > > > On Wed, Jan 09, 2019 at 05:01:37PM +0100, Stefano Babic wrote: > > >> Hi Soeren, > > >> > > >> On 08/01

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Tom Rini
On Thu, Jan 10, 2019 at 09:00:13AM +0100, Stefano Babic wrote: > Hi Tom, Soeren, > > On 09/01/19 23:39, Tom Rini wrote: [snip] > > Why default? Well, "everyone" > > agrees that defaulting to EFI application support means the widest > > choice of out of the box software support. > > I am unsure

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Tom Rini
On Thu, Jan 10, 2019 at 03:51:51PM +0100, Stefano Babic wrote: > Hi Tom, > > On 10/01/19 15:44, Tom Rini wrote: > > On Thu, Jan 10, 2019 at 09:00:13AM +0100, Stefano Babic wrote: > >> Hi Tom, Soeren, > >> > >> On 09/01/19 23:39, Tom Rini wrote: > >>> On Wed, Jan 09, 2019 at 05:01:37PM +0100, Stefa

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Tom Rini
On Thu, Jan 10, 2019 at 03:03:27PM +0100, Soeren Moch wrote: > > > On 10.01.19 03:30, Tom Rini wrote: > > On Thu, Jan 10, 2019 at 02:28:23AM +0100, Soeren Moch wrote: > >> > >> On 09.01.19 23:39, Tom Rini wrote: > >>> On Wed, Jan 09, 2019 at 05:01:37PM +0100, Stefano Babic wrote: > Hi Soeren

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Stefano Babic
Hi Tom, On 10/01/19 15:44, Tom Rini wrote: > On Thu, Jan 10, 2019 at 09:00:13AM +0100, Stefano Babic wrote: >> Hi Tom, Soeren, >> >> On 09/01/19 23:39, Tom Rini wrote: >>> On Wed, Jan 09, 2019 at 05:01:37PM +0100, Stefano Babic wrote: Hi Soeren, On 08/01/19 12:03, Soeren Moch wrote:

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (10.01.2019)

2019-01-10 Thread Jean-Jacques Hiblot
On 10/01/2019 15:12, Marek Vasut wrote: On 1/10/19 3:02 PM, Jean-Jacques Hiblot wrote: On 10/01/2019 09:51, Marek Vasut wrote: On 1/10/19 8:37 AM, Lukasz Majewski wrote: On Thu, 10 Jan 2019 01:53:23 +0100 Marek Vasut wrote: On 1/10/19 12:21 AM, Lukasz Majewski wrote: Dear Marek, I've bui

[U-Boot] [PATCH PATCH v2 2/2] usb: Make compiling gadget support optional

2019-01-10 Thread Jean-Jacques Hiblot
There is no need to compile and include this code if it is not used. CONFIG_USB_GADGET can be used for the purpose. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: - rebased on top of latest u-boot-usb Makefile | 4 ++-- configs/cm_t3517_defconfig

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Tom Rini
On Thu, Jan 10, 2019 at 09:00:13AM +0100, Stefano Babic wrote: > Hi Tom, Soeren, > > On 09/01/19 23:39, Tom Rini wrote: > > On Wed, Jan 09, 2019 at 05:01:37PM +0100, Stefano Babic wrote: > >> Hi Soeren, > >> > >> On 08/01/19 12:03, Soeren Moch wrote: > >>> Hi Stefano, > >>> > >>> On 08.01.19 11:24

Re: [U-Boot] [PATCH] arm: ti: boot: Fix am57xx evm fdtfile name

2019-01-10 Thread Sam Protsenko
Hi Lokesh, On Thu, Jan 10, 2019 at 4:47 AM Lokesh Vutla wrote: > > > > On 1/10/2019 1:55 AM, Praneeth Bajjuri wrote: > > am57xx evm uses am57xx-evm-reva3.dtb. > > update findfdt to pick the correct default dtb > > > > Signed-off-by: Praneeth Bajjuri > > --- > > include/environment/ti/boot.h | 2

[U-Boot] [PATCH v2] kbuild: fix parallel build race caused by u-boot.cfg regeneration

2019-01-10 Thread Masahiro Yamada
Multiple people have reported intermittent build failure in parallel building. Kever Yang reported this issue some time ago [1], but I could not get enough clue at that time. This time, Richard Purdie provided a full build log [2], which was very helpful for me to root-cause it. The cause of the

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (10.01.2019)

2019-01-10 Thread Marek Vasut
On 1/10/19 3:02 PM, Jean-Jacques Hiblot wrote: > > On 10/01/2019 09:51, Marek Vasut wrote: >> On 1/10/19 8:37 AM, Lukasz Majewski wrote: >>> On Thu, 10 Jan 2019 01:53:23 +0100 >>> Marek Vasut wrote: >>> On 1/10/19 12:21 AM, Lukasz Majewski wrote: > Dear Marek, > > I've build test

Re: [U-Boot] [PATCH v4 1/6] pinctrl: mscc: Add gpio and pinctrl for Jaguar2 SOC family

2019-01-10 Thread Gregory CLEMENT
Hi Horatiu, On jeu., janv. 10 2019, Horatiu Vultur wrote: > The Jaguar2 SOC family has 63 gpio pins therefore I extended mscc-common > to support new numbe of pins and remove any platform dependency from > mscc-common. > > Signed-off-by: Horatiu Vultur > --- > MAINTAINERS

Re: [U-Boot] [PATCH] kbuild: fix parallel build race caused by u-boot.cfg regeneration

2019-01-10 Thread Masahiro Yamada
On Wed, Jan 9, 2019 at 4:33 PM Masahiro Yamada wrote: > > Multiple people have reported intermittent build failure in parallel > building. > > Kever Yang reported this issue some time ago [1], but I could not > get enough clue at that time. > > This time, Richard Purdie provided a complete build l

Re: [U-Boot] [PATCH 2/2] board: tbs2910: Remove FIT support in defconfig to reduce u-boot size

2019-01-10 Thread Soeren Moch
On 10.01.19 03:30, Tom Rini wrote: > On Thu, Jan 10, 2019 at 02:28:23AM +0100, Soeren Moch wrote: >> >> On 09.01.19 23:39, Tom Rini wrote: >>> On Wed, Jan 09, 2019 at 05:01:37PM +0100, Stefano Babic wrote: Hi Soeren, On 08/01/19 12:03, Soeren Moch wrote: > Hi Stefano, > >>>

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (10.01.2019)

2019-01-10 Thread Jean-Jacques Hiblot
On 10/01/2019 09:51, Marek Vasut wrote: On 1/10/19 8:37 AM, Lukasz Majewski wrote: On Thu, 10 Jan 2019 01:53:23 +0100 Marek Vasut wrote: On 1/10/19 12:21 AM, Lukasz Majewski wrote: Dear Marek, I've build tested the patch set from Jean-Jacques on sunxi: ./tools/buildman/buildman.py --branc

Re: [U-Boot] Issue with compiling uboot for SoC-eds arria 10

2019-01-10 Thread Michael Nazzareno Trimarchi
Hi On Thu, Jan 10, 2019 at 2:16 PM Sujay Suresh wrote: > > Please specify clearly what you're trying to convey! > Please keep in the loop mainling list. I ask you: - what version of uboot do you build? - please send a reasonable log to rid it (using service like pastebin) and send a link to it

Re: [U-Boot] [PATCH v1 3/4] serial: add an of-platdata driver for "snps, dw-apb-uart"

2019-01-10 Thread Simon Glass
On Mon, 7 Jan 2019 at 14:14, Simon Goldschmidt wrote: > > Add a driver for the "snps,dw-apb-uart" used in socfpga and others. > > This driver is required to get OF_PLATDATA to work for socfpga. > It uses the ns16550 driver, converting the platdata from of-platdata > go the ns16550 format. > > Sign

Re: [U-Boot] [PATCH] drivers: serial: DEBUG_UART_SKIP_INIT depends on DEBUG_UART

2019-01-10 Thread Simon Glass
On Wed, 9 Jan 2019 at 12:27, Simon Goldschmidt wrote: > > DEBUG_UART_SKIP_INIT is used only by debug UART and thus should depend > on DEBUG_UART. > > Signed-off-by: Simon Goldschmidt > --- > > drivers/serial/Kconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH v3] xyz-modem: Fix timeout loop waiting with WATCHDOG

2019-01-10 Thread Simon Glass
On Tue, 8 Jan 2019 at 06:58, Lokesh Vutla wrote: > > Commit 2c77c0d6524eb ("xyz-modem: Change getc timeout loop waiting") > fixes the loop delay when using a hw watchdog, assuming that watchdog > kicking is taken care of by getc(). But the xyzmodem driver tries to > do a getc only after confirming

Re: [U-Boot] [PATCH] kbuild: fix parallel build race caused by u-boot.cfg regeneration

2019-01-10 Thread Simon Glass
On Wed, 9 Jan 2019 at 00:32, Masahiro Yamada wrote: > > Multiple people have reported intermittent build failure in parallel > building. > > Kever Yang reported this issue some time ago [1], but I could not > get enough clue at that time. > > This time, Richard Purdie provided a complete build log

Re: [U-Boot] [PATCH] pylibfdt: Use Python 2 in Makefile

2019-01-10 Thread Simon Glass
On Tue, 8 Jan 2019 at 06:19, Josef Lusticky wrote: > > pylibfdt needs Python 2 to build. > Replace $(PYTHON) with $(PYTHON2) in pylibfdt Makefile > to ensure Python 2 is used to build it. > > This fixes build on systems where Python 3 is the default version > of the "python" interpreter. > --- >

Re: [U-Boot] [PATCH] serial: ns16550: fix debug uart putc called before init

2019-01-10 Thread Simon Glass
On Wed, 9 Jan 2019 at 12:35, Simon Goldschmidt wrote: > > If _debug_uart_putc() is called before _debug_uart_init(), the > ns16550 debug uart driver hangs in a tight loop waiting for the > tx FIFO to get empty. > > As this can happen via a printf sneaking in before the port calls > debug_uart_init

Re: [U-Boot] [PATCH] Revert "dm: pinctrl: Prevent (re-)configuring pins when already done before relocation"

2019-01-10 Thread Simon Glass
On Wed, 9 Jan 2019 at 15:05, Lukasz Majewski wrote: > > This reverts commit a7f4b4b344396590845e6552c82829ef68ef9f89. > > As reported by Alex Kiernan the above optimization introduces a > regression in the below use case where: > > 1. Device has defined 'u-boot,dm-spl' property (@ eMMC DTS node) >

Re: [U-Boot] [PATCH v1 2/2] x86: edison: Switch to CONFIG_OF_SEPARATE

2019-01-10 Thread Simon Glass
On Tue, 8 Jan 2019 at 07:17, Andy Shevchenko wrote: > > There is no need for Intel Edison to have CONFIG_OF_EMBED to be enabled. > Replace it with CONFIG_OF_SEPARATE. > > There is no functional change since u-boot.bin always contains DTB > either embedded or attached. > > Signed-off-by: Andy Shevc

Re: [U-Boot] [PATCH 2/3] power: regulator: Introduce regulator_set_enable_if_allowed api

2019-01-10 Thread Simon Glass
On Sun, 6 Jan 2019 at 23:13, Lokesh Vutla wrote: > > regulator_set_enable() api throws an error in the following three cases: > - when requested to disable an always-on regulator > - when set_enable() ops not provided by regulator driver > - when enabling is actually failed.(Error returned by the

  1   2   >