Re: [PATCH 09/10] usb: Use ofnode as usb_get_dr_mode() parameter

2020-02-18 Thread Neil Armstrong
On 19/02/2020 02:54, Kever Yang wrote: > ofnode is more common and no need to convert to offset after we migrate > other API to use ofnode. > > Signed-off-by: Kever Yang > --- > > drivers/usb/cdns3/core.c | 2 +- > drivers/usb/common/common.c| 7 +++ >

Re: [PATCH v4 0/5] usb: host: dwc2: use driver model for PHY and CLOCK

2020-02-18 Thread Simon Goldschmidt
On Tue, Feb 18, 2020 at 6:53 PM Marek Vasut wrote: > > On 2/18/20 9:34 AM, Patrick Delaunay wrote: > > > > In this serie I update the DWC2 host driver to use the device tree > > information and the associated PHY and CLOCK drivers when they are > > availables. > > > > The V4 is rebased on latest

Re: [PATCH v6] Add support for SoM "VoCore2".

2020-02-18 Thread Stefan Roese
On 18.02.20 09:34, Mauro Condarelli wrote: Small patch to add support for VoCore/VoCore2 board. VoCore is open hardware and runs OpenWrt/LEDE. It has WIFI, USB, UART, 20+ GPIOs but is only one inch square. It will help you to make a smart house, study embedded system or even make the tiniest

Re: [PATCH] arm: mvebu: clearfog: add scsi target to distro-boot

2020-02-18 Thread Stefan Roese
On 17.02.20 19:37, Josua Mayer wrote: Support for sata devices via the scsi command is available and already enabled by default for the Clearfog Base and Pro. This change adds scsi to the list of boot targets used by distro-boot. Signed-off-by: Josua Mayer Cc: Stefan Roese Reviewed-by:

RE: [PATCH] arch: arm: Fix SZ_64K undeclared compilation error

2020-02-18 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Bharat Kumar >Reddy >Sent: Tuesday, February 18, 2020 4:19 PM >To: Wasim Khan ; Priyanka Jain >; vladimir.olovyanni...@broadcom.com >Cc: u-boot@lists.denx.de >Subject: Re: [PATCH] arch: arm: Fix SZ_64K undeclared compilation error > >Looks

[PATCH] bdinfo: Show information about fdt blob via bdinfo

2020-02-18 Thread Heiko Schocher
PowerPC target supports OF booting, so print the fdt address and size in bdinfo. Signed-off-by: Heiko Schocher --- Travis build: https://travis-ci.org/hsdenx/u-boot-test/builds/651885430 cmd/bdinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index

Re: [PATCH] doc: i2c: gpio: Document deblock sequence on probe

2020-02-18 Thread Heiko Schocher
Hello Marek, Am 18.02.2020 um 18:24 schrieb Marek Vasut: Document the gpio-i2c deblocking sequence binding. Signed-off-by: Marek Vasut --- doc/device-tree-bindings/i2c/i2c-gpio.txt | 2 ++ 1 file changed, 2 insertions(+) Thanks! Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software

Re: [PATCH v4 07/17] spi: dw: Add mem_ops

2020-02-18 Thread Sean Anderson
On 2/18/20 8:39 PM, Rick Chen wrote: >>> >>> Patch 6 and 7 shall be applied via spi tree. >>> You mix them together, the patchwork will become complicated. >>> It will be better for me to wait for a period of time to get the >>> approval(Reviewed-by or Acked-by) of SPI MAINTAINER. >>> >>> Thanks

[PATCH v2 4/4] pci: Avoid auto-config when chain loading

2020-02-18 Thread Simon Glass
When U-Boot is not the first-stage bootloader we don't want to re-configure the PCI devices, since this has already been done. Add a check to avoid this. Signed-off-by: Simon Glass --- Changes in v2: - Drop patch 'dm: Avoid initing built-in devices when chain loading' drivers/pci/pci-uclass.c

[PATCH v2 2/4] x86: apl: Skip init code when chain loading

2020-02-18 Thread Simon Glass
When U-Boot is not the first-stage bootloader the FSP-S init must be skipped. Update it to add a check. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/apollolake/fsp_s.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/cpu/apollolake/fsp_s.c

[PATCH v2 3/4] x86: cpu: Skip init code when chain loading

2020-02-18 Thread Simon Glass
When U-Boot is not the first-stage bootloader the interrupt and cache init must be skipped, as well as init for various peripherals. Update the code to add checks for this. Signed-off-by: Simon Glass --- Changes in v2: - Drop the other check in interrupt_init() which is not needed now

[PATCH v2 1/4] x86: fsp: Allow skipping init code when chain loading

2020-02-18 Thread Simon Glass
It is useful to be able to boot the same x86 image on a device with or without a first-stage bootloader. For example, with chromebook_coral, it is helpful for testing to be able to boot the same U-Boot (complete with FSP) on bare metal and from coreboot. It allows checking of things like CPU

[PATCH v2 0/4] x86: Improve support for chain-loading U-Boot

2020-02-18 Thread Simon Glass
This little series adds a few checks into the code to allow better operation when booting a build from a previous-state loader such as coreboot. At present we have a 'coreboot' target but this runs very different code from the bare-metal targets, such as coral. There is very little in common

[PATCH 05/10] usb: dwc3-generic: Use dev_read_addr() instead of devfdt_get_addr()

2020-02-18 Thread Kever Yang
Use more common API so that we can support live DT. Signed-off-by: Kever Yang --- drivers/usb/dwc3/dwc3-generic.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 820cc7075c..ced0f53bfd 100644

[PATCH 10/10] usb: Use ofnode as usb_get_maximum_speed() parameter

2020-02-18 Thread Kever Yang
ofnode is more common and no need to convert to offset after we migrate other API to use ofnode. Signed-off-by: Kever Yang --- drivers/usb/cdns3/gadget.c | 2 +- drivers/usb/common/common.c | 5 ++--- drivers/usb/dwc3/dwc3-generic.c | 2 +- include/linux/usb/otg.h | 4 ++-- 4

[PATCH 06/10] usb: host: dwc3-sti-glue: Migrate to use ofnode API

2020-02-18 Thread Kever Yang
Use ofnode_ instead of fdt_ or fdtdec_ APIs so that the driver can support live DT. Signed-off-by: Kever Yang --- drivers/usb/host/dwc3-sti-glue.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/drivers/usb/host/dwc3-sti-glue.c

[PATCH 09/10] usb: Use ofnode as usb_get_dr_mode() parameter

2020-02-18 Thread Kever Yang
ofnode is more common and no need to convert to offset after we migrate other API to use ofnode. Signed-off-by: Kever Yang --- drivers/usb/cdns3/core.c | 2 +- drivers/usb/common/common.c| 7 +++ drivers/usb/dwc3/dwc3-generic.c| 6 +++---

[PATCH 07/10] usb: musb-new: Migrate to use ofnode API

2020-02-18 Thread Kever Yang
Use ofnode_ instead of fdt_ APIs so that the driver can support live DT. Signed-off-by: Kever Yang --- drivers/usb/musb-new/ti-musb.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c index

[PATCH 08/10] usb: dwc3: core: reorder the header file including sequence

2020-02-18 Thread Kever Yang
Make the including header file in correct sequence. Signed-off-by: Kever Yang --- drivers/usb/dwc3/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 77c555e769..504d85a9b7 100644 ---

[PATCH 00/10] usb: Covert to support Live DT

2020-02-18 Thread Kever Yang
This patch set convert to use APIs leading with dev_ or ofnode_ which supports live DT instead of fdt_ or fdtdec or devfdt_. Two functions update there parameter from offset to ofnode: - usb_get_maximum_speed() - usb_get_dr_mode() Kever Yang (10): usb: dwc3-of-simple: Drop redundant

[PATCH 01/10] usb: dwc3-of-simple: Drop redundant inclding header file

2020-02-18 Thread Kever Yang
The fdtdec.h is no use in this file, remove the include code. Signed-off-by: Kever Yang --- drivers/usb/host/dwc3-of-simple.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c index 45df614b09..e4abc6f3b9 100644 ---

[PATCH 02/10] usb: ehci-msm: Use dev interface to get device address

2020-02-18 Thread Kever Yang
Use dev_read_addr_ptr() instead of devfdt_get_addr() so that we can support live DT. Signed-off-by: Kever Yang --- drivers/usb/host/ehci-msm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c index

[PATCH 04/10] usb: dwc3-generic: Migrate to use ofnode API for bind function

2020-02-18 Thread Kever Yang
Use ofnode_ instead of fdt_ APIs so that the driver can support live DT. Signed-off-by: Kever Yang --- drivers/usb/dwc3/dwc3-generic.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index

[PATCH 03/10] usb: cdns3: Migrate to use ofnode API for bind function

2020-02-18 Thread Kever Yang
Use ofnode_ instead of fdt_ APIs so that the driver can support live DT. Signed-off-by: Kever Yang --- drivers/usb/cdns3/core.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index 8c8e02169e..d6ccd3e73c

[PATCH 2/2] rockchip: video: Convert to use APIs which support live DT

2020-02-18 Thread Kever Yang
Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the driver can support live DT. Signed-off-by: Kever Yang --- drivers/video/rockchip/rk3288_mipi.c | 1 - drivers/video/rockchip/rk3399_mipi.c | 1 - drivers/video/rockchip/rk_edp.c | 2 +-

[PATCH 2/2] rockchip: evb-rv1108: Use syscon API to get grf base

2020-02-18 Thread Kever Yang
Use syscon API to get grf base instead of get from dts. Signed-off-by: Kever Yang --- board/rockchip/evb_rv1108/evb_rv1108.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/board/rockchip/evb_rv1108/evb_rv1108.c b/board/rockchip/evb_rv1108/evb_rv1108.c index

[PATCH 1/2] rockchip: elgin-rv1108: Use syscon API to get grf base

2020-02-18 Thread Kever Yang
Use syscon API to get grf base instead of get from dts. Signed-off-by: Kever Yang --- board/elgin/elgin_rv1108/elgin_rv1108.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/board/elgin/elgin_rv1108/elgin_rv1108.c b/board/elgin/elgin_rv1108/elgin_rv1108.c index

[PATCH 1/2] rockchip: video: Use ofnode_decode_display_timing() to parse timing

2020-02-18 Thread Kever Yang
Use ofnode_decode_display_timing() instead of fdtdec_decode_display_timing() to parse display timing, so that we can support live DT. Signed-off-by: Kever Yang --- drivers/video/rockchip/rk_lvds.c | 3 +-- drivers/video/rockchip/rk_mipi.c | 3 +-- 2 files changed, 2 insertions(+), 4

Re: [PATCH v4 03/17] clk: Unconditionally recursively en-/dis-able clocks

2020-02-18 Thread Rick Chen
Hi Sean > On 2/18/20 2:20 AM, Rick Chen wrote: > > Hi Sean > > > >> For clocks not in the CCF, their parents will not have UCLASS_CLK, so we > >> just enable them as normal. The enable count is local to the struct clk, > >> but this will never result in the actual en-/dis-able op being called >

Re: [PATCH v4 07/17] spi: dw: Add mem_ops

2020-02-18 Thread Rick Chen
Hi Sean > >> The dw spi devices on the Kendryte K210 must be operated in a specific > >> fasion which cannot be achived through multiple writes to via dw_spi_xfer > >> (as it is currently written). This patch adds an implementation of exec_op, > >> which gives correct behaviour when

Re: [PATCH 1/2] dm: core: Add a flag for power domain control on device removal

2020-02-18 Thread Simon Glass
Hi Anatolij, On Tue, 18 Feb 2020 at 12:42, Anatolij Gustschin wrote: > > Hi Simon, > > On Tue, 18 Feb 2020 11:31:26 -0700 > Simon Glass s...@chromium.org wrote: > > > Hi Anatolij, > > > > On Mon, 17 Feb 2020 at 04:36, Anatolij Gustschin wrote: > > > > > > In various cases a power domain must

Re: [U-Boot] [RFC/RFT PATCH v4 3/3] image: Add compressed Image parsing support in booti.

2020-02-18 Thread Tom Rini
On Sun, Feb 16, 2020 at 04:48:22PM -0800, Atish Patra wrote: > On Fri, Feb 14, 2020 at 8:43 AM Tom Rini wrote: > > > > On Thu, Feb 13, 2020 at 11:32:52PM +0200, David Abdurachmanov wrote: > > > On Thu, Feb 13, 2020 at 6:17 PM Tom Rini wrote: > > > > > > > > On Wed, Feb 05, 2020 at 12:01:38AM

Re: [PATCH v6 0/7] rsa: extend rsa_verify() for UEFI secure boot

2020-02-18 Thread Tom Rini
On Mon, Feb 17, 2020 at 10:42:41AM +0900, AKASHI Takahiro wrote: > Hi Tom, > > On Fri, Feb 14, 2020 at 07:29:37AM -0500, Tom Rini wrote: > > On Mon, Jan 27, 2020 at 07:27:33PM +0900, AKASHI Takahiro wrote: > > > > > # This patch set is a prerequisite for UEFI secure boot. > > > > > > The

Re: [PATCH 1/2] dm: core: Add a flag for power domain control on device removal

2020-02-18 Thread Anatolij Gustschin
Hi Simon, On Tue, 18 Feb 2020 11:31:26 -0700 Simon Glass s...@chromium.org wrote: > Hi Anatolij, > > On Mon, 17 Feb 2020 at 04:36, Anatolij Gustschin wrote: > > > > In various cases a power domain must stay enabled after device > > removal when booting OS (i.e. serial debug console or

[PATCH] mx7dsabresd: Boot in non secure by default

2020-02-18 Thread Fabio Estevam
Booting a mainline kernel in secure mode on i.MX7D causes only one CPU to be brought up. Change it to booting in non secure mode by default, which allows the two CPUs to be brought up. It does have a side effect of not probing the CAAM driver. If CAAM driver is needed then a secure world OS such

[PATCH 4/5] dt-bindings: pinctrl: add i.MXRT1020 pins definition

2020-02-18 Thread Giulio Benetti
Add i.MXRT1020 pins definition. Signed-off-by: Giulio Benetti --- include/dt-bindings/pinctrl/pins-imxrt1020.h | 763 +++ 1 file changed, 763 insertions(+) create mode 100644 include/dt-bindings/pinctrl/pins-imxrt1020.h diff --git a/include/dt-bindings/pinctrl/pins-imxrt1020.h

[PATCH 1/5] clk: imx: add i.IMXRT1020 clk driver

2020-02-18 Thread Giulio Benetti
Add i.MXRT1020 clk driver support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/Kconfig | 16 ++ drivers/clk/imx/Makefile| 1 + drivers/clk/imx/clk-imxrt1020.c | 227 include/dt-bindings/clock/imxrt1020-clock.h |

[PATCH 5/5] Add support for i.MXRT1020-EVK board

2020-02-18 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/imxrt1020-evk-u-boot.dtsi| 44 arch/arm/dts/imxrt1020-evk.dts| 198 ++ arch/arm/mach-imx/imxrt/Kconfig | 5 +

[PATCH 3/5] ARM: dts: imxrt1020: add dtsi file

2020-02-18 Thread Giulio Benetti
Add dtsi file for i.MXRT1020. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020.dtsi | 133 1 file changed, 133 insertions(+) create mode 100644 arch/arm/dts/imxrt1020.dtsi diff --git a/arch/arm/dts/imxrt1020.dtsi b/arch/arm/dts/imxrt1020.dtsi new

[PATCH 2/5] Add i.MXRT1020 support

2020-02-18 Thread Giulio Benetti
Signed-off-by: Giulio Benetti --- arch/arm/mach-imx/imxrt/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/imxrt/Kconfig b/arch/arm/mach-imx/imxrt/Kconfig index e3aff11d48..f28d52d3b7 100644 --- a/arch/arm/mach-imx/imxrt/Kconfig +++

[PATCH 0/5] i.MXRT1020 add basic support

2020-02-18 Thread Giulio Benetti
Add Soc i.MXRT1020 to i.MXRT family and its evk support. This Soc has many in common with i.MXRT1050 except clock init and pins listing. Giulio Benetti (5): clk: imx: add i.IMXRT1020 clk driver Add i.MXRT1020 support ARM: dts: imxrt1020: add dtsi file dt-bindings: pinctrl: add i.MXRT1020

Re: [RFC PATCH] serial: ns16550: Move PCI access from ofdata_to_platdata() to probe()

2020-02-18 Thread Simon Glass
On Tue, 18 Feb 2020 at 05:36, Wolfgang Wallner wrote: > > Currently the ofdata_to_platdata() method calls dev_read_addr_pci(), > which potentially accesses the parent PCI bus. If this happens before > the parent PCI bus is probed the resulting address will be wrong. > > This behavior was

Re: [PATCH] mpc83xx, abb: remove suvd3 board

2020-02-18 Thread Simon Glass
On Tue, 18 Feb 2020 at 10:04, Heiko Schocher wrote: > > the mpc83xxx suvd3 variant is not longer used, so > remove it. > > Signed-off-by: Holger Brunck > Signed-off-by: Heiko Schocher > --- > Travis build: > > https://travis-ci.org/hsdenx/u-boot-test/builds/651885101 > >

Re: [PATCH] x86: p2sb: Drop 'apl' prefix

2020-02-18 Thread Simon Glass
On Tue, 18 Feb 2020 at 07:32, Wolfgang Wallner wrote: > > Drop the Apollo Lake prefix 'apl' from the functions, types and > variables in the P2SB driver. > > The P2SB is not Apollo Lake specific, and as such it was moved in > commit 2999846c1127 ("x86: Move P2SB from Apollo Lake to a more generic

Re: [PATCH 1/1] dm: pinctrl: include linux/errno.h in pinctrl.h

2020-02-18 Thread Simon Glass
On Mon, 17 Feb 2020 at 06:14, Sébastien Szymanski wrote: > > Otherwise the compilation fails with PINCTRL_GENERIC=n : > > In file included from drivers/pinctrl/nxp/pinctrl-imx8m.c:7:0: > include/dm/pinctrl.h: In function ‘pinctrl_generic_set_state’: > include/dm/pinctrl.h:319:10: error: ‘EINVAL’

Re: [PATCH 1/2] dm: core: Add a flag for power domain control on device removal

2020-02-18 Thread Simon Glass
Hi Anatolij, On Mon, 17 Feb 2020 at 04:36, Anatolij Gustschin wrote: > > In various cases a power domain must stay enabled after device > removal when booting OS (i.e. serial debug console or display). > Add a flag to selectively skip switching off a power domain. > > Fixes: 52edfed65de9 ("dm:

Re: [PATCH v3] dm: core: Move "/chosen" and "/firmware" node scan

2020-02-18 Thread Simon Glass
On Tue, 18 Feb 2020 at 07:44, Patrick Delaunay wrote: > > Use the new function dm_scan_fdt_ofnode_path() to scan all the nodes > which aren't devices themselves but may contain some: > - "/chosen" > - "/clocks" > - "/firmware" > > The patch removes the strcmp call in recursive function

Re: [PATCH v2 01/10] net: eth-uclass: eth_get_dev based on SEQ_ALIAS instead of probe order

2020-02-18 Thread Simon Glass
Hi Keerthy, On Mon, 17 Feb 2020 at 22:10, Keerthy wrote: > > In case of multiple eth interfaces currently eth_get_dev > fetches the device based on the probe order which can be > random hence try with the alias. > > Signed-off-by: Keerthy > --- > > Changes in v2: > > * Fixed comments from Tom

Re: [PATCH v4 0/5] usb: host: dwc2: use driver model for PHY and CLOCK

2020-02-18 Thread Marek Vasut
On 2/18/20 9:34 AM, Patrick Delaunay wrote: > > In this serie I update the DWC2 host driver to use the device tree > information and the associated PHY and CLOCK drivers when they are > availables. > > The V4 is rebased on latest master (v2020.04-rc2). > CI-Tavis build is OK: >

Re: [PATCH] ARM: socfpga: Add initial support for the ABB SECU board

2020-02-18 Thread Marek Vasut
On 2/18/20 8:47 AM, Holger Brunck wrote: > Hi Marek and Wolfgang, > >>> In message <20200217173249.4805-1-ma...@denx.de> you wrote: board/keymile/Kconfig | 11 +- board/keymile/common/ivm.c | 18 +- board/keymile/secu1/Makefile|

Re: [PATCH] ARM: socfpga: Add initial support for the ABB SECU board

2020-02-18 Thread Marek Vasut
On 2/18/20 1:54 AM, Tan, Ley Foon wrote: [...] >> diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c >> index fee7f03c8c..80dae73bb6 100644 >> --- a/board/keymile/common/ivm.c >> +++ b/board/keymile/common/ivm.c >> @@ -328,7 +328,23 @@ static int ivm_populate_env(unsigned char

Re: [PATCH v2 3/8] board: sunxi: change trace level for phy errors managed by uclass

2020-02-18 Thread Marek Vasut
On 2/18/20 9:38 AM, Patrick Delaunay wrote: > As the error message is now displayed by generic phy functions, > the pr_err can be change to pr_idebug. pr_debug(), not pr_ i debug()

Re: [PATCH v2 6/8] usb: dwc3: change trace level for phy errors managed by uclass

2020-02-18 Thread Marek Vasut
On 2/18/20 9:38 AM, Patrick Delaunay wrote: > As the error message is now displayed by generic phy functions, > the pr_err can be change to pr_debug. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > drivers/usb/dwc3/core.c | 12 ++-- > 1 file changed, 6

Re: [PATCH v2 1/8] phy: generic: add error trace to detect PHY issue in uclass

2020-02-18 Thread Marek Vasut
On 2/18/20 9:38 AM, Patrick Delaunay wrote: [...] > static inline struct phy_ops *phy_dev_ops(struct udevice *dev) > { > @@ -109,56 +110,86 @@ int generic_phy_get_by_name(struct udevice *dev, const > char *phy_name, > int generic_phy_init(struct phy *phy) > { > struct phy_ops const

Re: NanoPi-M4 boot issue

2020-02-18 Thread Trevor Woerner
cc'ing some maintainers... On Sat 2020-02-15 @ 01:16:36 AM, Trevor Woerner wrote: > Hi, > > I'm trying to build an image for a NanoPi-M4 but it is not able to get out of > TPL. The U-Boot build seems to be constructing the idbloader.img properly, but > the board is failing to boot. Note that

Re: [PATCH] image.h: use uint32_t instead of u32 in android_image_get_dtb*

2020-02-18 Thread Masahiro Yamada
On Mon, Feb 17, 2020 at 7:24 PM Eugeniu Rosca wrote: > > Replace 'u32' by 'uint32_t' in image.h, since the former may lead to > build failures in U-Boot tooling (see [1]). > > Avoid using 'uint', since it is not a fixed-width type [2], potentially > leading to a dangerous mismatch between the

Re: [PATCH] fixdep: fix U-Boot own code to handle only valid symbol characters

2020-02-18 Thread Masahiro Yamada
On Tue, Feb 18, 2020 at 8:06 PM Masahiro Yamada wrote: > > Currently, fixdep skips parsing include/linux/kconfig.h, but if it > parsed it, it would translate the following code in kconfig.h > > config_enabled(CONFIG_VAL(option##_MODULE) > > into: > > $(wildcard

Re: [PATCH 4/4] i2c: gpio: Run deblock sequence on probe

2020-02-18 Thread Marek Vasut
On 2/18/20 8:11 AM, Heiko Schocher wrote: > Hello Marek, > > Am 07.02.2020 um 16:57 schrieb Marek Vasut: >> Add deblock dequence for the I2C bus, needed on some devices. This >> sequence >> is issued once, when probing the driver, and is controlled by DT >> property, >> "i2c-gpio,deblock". >> >>

Re: [PATCH 3/4] i2c: Add option to send start condition after deblocking

2020-02-18 Thread Marek Vasut
On 2/18/20 8:07 AM, Heiko Schocher wrote: > Hello Marek, Hi, > Am 07.02.2020 um 16:57 schrieb Marek Vasut: >> Add option to send start condition after deblocking SDA. >> >> Signed-off-by: Marek Vasut >> --- >>   drivers/i2c/i2c-uclass.c | 23 --- >>   include/i2c.h   

[PATCH] doc: i2c: gpio: Document deblock sequence on probe

2020-02-18 Thread Marek Vasut
Document the gpio-i2c deblocking sequence binding. Signed-off-by: Marek Vasut --- doc/device-tree-bindings/i2c/i2c-gpio.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/device-tree-bindings/i2c/i2c-gpio.txt b/doc/device-tree-bindings/i2c/i2c-gpio.txt index ba56ed5dea..e29eeba9e6

[PATCH V3 1/2] ARM: socfpga: Permit overriding the default timer frequency

2020-02-18 Thread Marek Vasut
The default timer rate may be different than 25 MHz, permit overriding the default rate in board configuration file. Ultimatelly, this should be properly handled by a clock driver, however that is not available on Gen5 yet. Signed-off-by: Marek Vasut Cc: Ley Foon Tan Cc: Simon Goldschmidt ---

[PATCH V3 2/2] ARM: socfpga: Add missing Denali NAND config options

2020-02-18 Thread Marek Vasut
The Denali SPL shim won't build without these options set, set them accordingly to fix the build error and let the SPL shim to work correctly. Signed-off-by: Marek Vasut Cc: Ley Foon Tan Cc: Simon Goldschmidt --- V2: No changes V2: Drop CONFIG_SYS_NAND_USE_FLASH_BBT ---

[PATCH] mpc83xx, abb: remove suvd3 board

2020-02-18 Thread Heiko Schocher
the mpc83xxx suvd3 variant is not longer used, so remove it. Signed-off-by: Holger Brunck Signed-off-by: Heiko Schocher --- Travis build: https://travis-ci.org/hsdenx/u-boot-test/builds/651885101 arch/powerpc/cpu/mpc83xx/Kconfig | 4 - board/keymile/km83xx/Kconfig | 19

Re: [PATCH 1/1] efi_loader: EFI_RNG_PROTOCOL

2020-02-18 Thread Sughosh Ganu
On Tue, 18 Feb 2020 at 19:44, Heinrich Schuchardt wrote: > > > On 2/18/20 11:26 AM, Sughosh Ganu wrote: > > > > On Sat, 15 Feb 2020 at 04:04, Heinrich Schuchardt > > wrote: > > > > Do not use quotation marks for Kconfig help text. > > Replace rng abbreviation

Re: [PATCH v4 07/17] spi: dw: Add mem_ops

2020-02-18 Thread Sean Anderson
On 2/18/20 3:34 AM, Rick Chen wrote: > Hi Sean > >> The dw spi devices on the Kendryte K210 must be operated in a specific >> fasion which cannot be achived through multiple writes to via dw_spi_xfer >> (as it is currently written). This patch adds an implementation of exec_op, >> which gives

[PATCH] tools: image-host.c: remove uboot_aes.h

2020-02-18 Thread Philippe Reynes
The include uboot_aes.h is not usefull and it breaks the compilation on android, so we remove it. Signed-off-by: Philippe Reynes --- tools/image-host.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/image-host.c b/tools/image-host.c index 9483561..76a361b 100644 ---

[PATCH v1 2/2] cpu: clk: riscv: populate proper CPU core clk frequency

2020-02-18 Thread Sagar Shrikant Kadam
Fetch core clock frequency from prci if clock-frequency for CPU nodes is missing in device tree, so that the cmd "#cpu detail" will show the correct CPU frequency. U-Boot command "#cpu detail" is showing wrong frequency values. This patch fixes this issue by getting the core clock set in prci

[PATCH v1 1/2] fu540: prci: add request and free clock handlers

2020-02-18 Thread Sagar Shrikant Kadam
Add handlers to check if a valid clock id is used to request clock by any driver using clk_request/clk_free API calls. Signed-off-by: Sagar Shrikant Kadam Tested-by: Vincent Chen --- drivers/clk/sifive/fu540-prci.c | 24 1 file changed, 24 insertions(+) diff --git

[PATCH v1 0/2] display proper CPU frequency on hifive-unleashed

2020-02-18 Thread Sagar Shrikant Kadam
U-Boot cmd "cpu detail" shows wrong values, as the current cpu driver is fetching cpu_freq by reading the dt node property "clock-frequency". There should be a fallback mechanism to handle a case where this property if not present in DT it should be read from the prci driver. This patch series

[PATCH v2] ARM: zynq: Rename defconfig to be align with ZynqMP and Versal

2020-02-18 Thread Michal Simek
Just cosmetic change before real switch. Signed-off-by: Michal Simek --- Changes in v2: - Cover this new file by MAINTAINERS fragment board/xilinx/zynq/MAINTAINERS | 1 + configs/{zynq_virt_defconfig => xilinx_zynq_virt_defconfig} | 0 2 files changed, 1

[PATCH 2/2] ARM: zynq: Switch to single zynq configurations

2020-02-18 Thread Michal Simek
There are a lot of zynq configurations which can be merged together and use only one for all. The similar change has been done for ZynqMP by commit be1b6c32d940 ("arm64: zynqmp: Use zynqmp_virt platform") Build SPL with u-boot.img for zc706 like this. export DEVICE_TREE=zynq-zc706 && make

[PATCH 0/2] ARM: zynq: Start to use unified configurations

2020-02-18 Thread Michal Simek
Hi, over the time there are a lot of zynq configurations which are almost the same. It just increasing amount of time for building/testing/maintaining that's why this patch starts to use xilinx_zynq_virt_defconfig which is all in one configurations which can be used on all zynq board. The series

[PATCH 1/2] Makefile: Add environment variable DEVICE_TREE to header

2020-02-18 Thread Michal Simek
Users have option to overwrite default device tree (CONFIG_DEFAULT_DEVICE_TREE) via environment variable DEVICE_TREE. Feature has been added long time ago by commit 74de8c9a1672 ("dts/Makefile: Build the user specified dts") for a little bit different reason. But this variable can be also used

Re: use invd instead of wbinvd in real mode start code

2020-02-18 Thread Andy Shevchenko
On Tue, Feb 18, 2020 at 4:43 PM Tom Rini wrote: > On Tue, Feb 18, 2020 at 01:29:04PM +0200, Andy Shevchenko wrote: > > On Tue, Feb 18, 2020 at 1:06 PM Heiko Schocher wrote: > > > Am 18.02.2020 um 11:45 schrieb Andy Shevchenko: > > > > On Tue, Feb 18, 2020 at 7:48 AM Heiko Schocher wrote: > > >

[PATCH] ARM: zynq: Change zc770 xm011 Nand x16 configurations

2020-02-18 Thread Michal Simek
Instead of symlink include origin file and just change model description. Difference is not in DT but in ps7_init configurations which is taken based on device tree name that's why the same DT can't be used. Also update model and update comments to match configurations. Signed-off-by: Michal

[PATCH v3] dm: core: Move "/chosen" and "/firmware" node scan

2020-02-18 Thread Patrick Delaunay
Use the new function dm_scan_fdt_ofnode_path() to scan all the nodes which aren't devices themselves but may contain some: - "/chosen" - "/clocks" - "/firmware" The patch removes the strcmp call in recursive function dm_scan_fdt_live() and also corrects a conflict with the 2 applied patches in

Re: use invd instead of wbinvd in real mode start code

2020-02-18 Thread Tom Rini
On Tue, Feb 18, 2020 at 01:29:04PM +0200, Andy Shevchenko wrote: > On Tue, Feb 18, 2020 at 1:06 PM Heiko Schocher wrote: > > Am 18.02.2020 um 11:45 schrieb Andy Shevchenko: > > > On Tue, Feb 18, 2020 at 7:48 AM Heiko Schocher wrote: > > ... > > > > How the feed back line is organized? I mean

Re: [PATCH] include/eeprom.h: fix build errors

2020-02-18 Thread Tom Rini
On Tue, Feb 18, 2020 at 08:39:42AM +, Rasmus Villemoes wrote: > CMD_EEPROM and ENV_IS_IN_EEPROM can be selected independently, and > cmd/eeprom.o gets built in either case, so whether to declare the real > prototypes needs to follow the same logic as whether cmd/eeprom.c is > built. Otherwise

[PATCH] x86: p2sb: Drop 'apl' prefix

2020-02-18 Thread Wolfgang Wallner
Drop the Apollo Lake prefix 'apl' from the functions, types and variables in the P2SB driver. The P2SB is not Apollo Lake specific, and as such it was moved in commit 2999846c1127 ("x86: Move P2SB from Apollo Lake to a more generic location") from the Apollo Lake folder to the intel_common

Re: [PATCH 1/1] efi_loader: EFI_RNG_PROTOCOL

2020-02-18 Thread Heinrich Schuchardt
On 2/18/20 11:26 AM, Sughosh Ganu wrote: On Sat, 15 Feb 2020 at 04:04, Heinrich Schuchardt mailto:xypron.g...@gmx.de>> wrote: Do not use quotation marks for Kconfig help text. Replace rng abbreviation by full words. Signed-off-by: Heinrich Schuchardt mailto:xypron.g...@gmx.de>>

Re: [PATCH v4 03/17] clk: Unconditionally recursively en-/dis-able clocks

2020-02-18 Thread Sean Anderson
On 2/18/20 2:20 AM, Rick Chen wrote: > Hi Sean > >> For clocks not in the CCF, their parents will not have UCLASS_CLK, so we >> just enable them as normal. The enable count is local to the struct clk, >> but this will never result in the actual en-/dis-able op being called >> (unless the same

RE: [PATCH v2] dm: core: Move "/chosen" and "/firmware" node scan

2020-02-18 Thread Patrick DELAUNAY
Hi, > From: Simon Glass > Sent: lundi 17 février 2020 04:56 > > Hi Patrick, > > On Thu, 13 Feb 2020 at 11:48, Patrick Delaunay > wrote: > > > > Use the new function dm_scan_fdt_ofnode_path() to scan all the nodes > > which aren't devices themselves but may contain some: > > - "/chosen" > > -

Re: [PATCH] common: fix regression on block cache init

2020-02-18 Thread Angelo Dureghello
Hi Simon, sorry for the late reply, startup assembly code that is actually accessing (re-adjusting) "got" after relocation is in : microblaze m68k I cannot test microblaze stuff btw. Regards, Angelo On Mon, Jan 27, 2020 at 9:21 AM Simon Goldschmidt wrote: > > On Sun, Jan 26, 2020 at 7:30

[PATCH] net: phy: dp83867: Add SGMII mode type switching

2020-02-18 Thread Michal Simek
This patch adds ability to switch beetween two PHY SGMII modes. Some hardware, for example, FPGA IP designs may use 6-wire mode which enables differential SGMII clock to MAC. Patch description, dt flags have been done in mainline Linux by commit a2111c460c0c ("net: phy: dp83867: Add documentation

[PATCH] env: Kconfig: Adding default values for Microblaze

2020-02-18 Thread Michal Simek
From: Varalaxmi Bingi This patch will add default values for ENV_OFFSET and ENV_SECT_SIZE for Microblaze. Signed-off-by: Varalaxmi Bingi Signed-off-by: Michal Simek --- env/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/env/Kconfig b/env/Kconfig index

[RFC PATCH] serial: ns16550: Move PCI access from ofdata_to_platdata() to probe()

2020-02-18 Thread Wolfgang Wallner
Currently the ofdata_to_platdata() method calls dev_read_addr_pci(), which potentially accesses the parent PCI bus. If this happens before the parent PCI bus is probed the resulting address will be wrong. This behavior was triggered by commit 82de42fa1468 ("dm: core: Allocate parent data separate

[PATCH 16/16] arm64: zynqmp: Move pinctrl node under firmware node

2020-02-18 Thread Michal Simek
Pinctrl is handled via firmare interface that's why move it there without reg property and new compatible string. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp.dtsi | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/arm/dts/zynqmp.dtsi

Re: [PATCH] kbuild: fixdep: Resync this with v4.17

2020-02-18 Thread Tom Rini
On Tue, Feb 18, 2020 at 08:37:44PM +0900, Masahiro Yamada wrote: > On Tue, Feb 18, 2020 at 8:32 PM Masahiro Yamada wrote: > > > > Hi Tom, > > > > On Tue, Feb 18, 2020 at 11:29 AM Tom Rini wrote: > > > > > > The previous kbuild resync > > > > > > Precisely, it was "kconfig resync", not "kbuild

[PATCH 11/16] arm64: zynqmp: Do not duplicate flash partition label property

2020-02-18 Thread Michal Simek
From: Amit Kumar Mahapatra In kernel 5.4, support has been added for reading MTD devices via the nvmem API. For this the mtd devices are registered as read-only NVMEM providers under sysfs with the same name as the flash partition label property. So if flash partition label property of multiple

[PATCH 14/16] arm64: zynqmp: Fix GIC compatible property

2020-02-18 Thread Michal Simek
dtbs_check is showing warning around GIC compatible property as interrupt-controller@f901: compatible: ['arm,gic-400', 'arm,cortex-a15-gic'] is not valid under any of the given schemas Similar change has been done also by Linux kernel commit 5400cdc1410b ("ARM: dts: sunxi: Fix GIC

[PATCH 13/16] arm64: zynqmp: Fix addresses in partition definitions

2020-02-18 Thread Michal Simek
Node name should be @ which is not how partitions are described. Issue was found by running dtbs_check as: flash@0: 'partition@qspi-device-tree', 'partition@qspi-fsbl-uboot', 'partition@qspi-linux', 'partition@qspi-rootfs' do not match any of the regexes: ... Signed-off-by: Michal Simek ---

[PATCH 12/16] arm64: zynqmp: Sync DP subsystem

2020-02-18 Thread Michal Simek
Sync DP subsystem with the latest state in Xilinx U-Boot repository. This binding hasn't been approved in mainline Linux but it is much better than ancient version which this patch removes. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-clk-ccf.dtsi | 6 +-

[PATCH 15/16] arm64: zynqmp: Change bus naming to axi

2020-02-18 Thread Michal Simek
Linux dtbs_check reports issue with bus name reported as amba-apu@0: $nodename:0: 'amba-apu@0' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' amba: $nodename:0: 'amba' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' That's why change bus names to axi. Signed-off-by: Michal Simek

[PATCH 07/16] arm64: zynqmp: Sync zynqmp fpga manager with mainline

2020-02-18 Thread Michal Simek
From: Nava kishore Manne Sync zynqmp fpga manager with mainline. Signed-off-by: Nava kishore Manne Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-clk-ccf.dtsi | 4 arch/arm/dts/zynqmp.dtsi | 12 +++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git

[PATCH 09/16] arm64: zynqmp: Remove second copy of reset-controller

2020-02-18 Thread Michal Simek
Reset controller is handled via firmware that's why it should be the part of firmware node. Origin solution hasn't been removed when above change was applied by commit b07e97b4ba27 ("arm64: zynqmp: Use reset header in zynqmp.dtsi"). Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp.dtsi | 5

[PATCH 05/16] ARM: zynq: Fix spi name node

2020-02-18 Thread Michal Simek
None name address should be aligned with address. DTC 1.5.1 is reporting issues related to that. arch/arm/boot/dts/zynq-zc770-xm010.dts:106.10-119.4: Warning (spi_bus_reg): /amba/spi@e0007000/flash@0: SPI bus unit address format error, expected "1"

[PATCH 10/16] arm64: dts: zynqmp: Add clk cells for sdhci

2020-02-18 Thread Michal Simek
From: Ashok Reddy Soma Add clock-cells and clock-output-names for sdhci0 and sdhci1. These are needed for linux sdhci driver from 5.4 version onwards. Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp.dtsi | 4 1 file changed, 4 insertions(+) diff

[PATCH 08/16] arm64: zynqmp: Add 'no-1-8-v' property for ZynqMP Boards

2020-02-18 Thread Michal Simek
From: Manish Narani Modify dts files to add 'no-1-8-v' property for all the ZynqMP boards. User can remove this property to enable the UHS mode. This is to keep the same speed (HS) modes across all the stages of the Linux Boot. Due to power cycling limitation of some of the ZynqMP boards, some

[PATCH 06/16] arm64: zynqmp: Remove unused zynqmp-clk.dtsi

2020-02-18 Thread Michal Simek
All boards have been converted to firmware based driver that's why we can remove this file now. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-clk.dtsi | 244 --- 1 file changed, 244 deletions(-) delete mode 100644 arch/arm/dts/zynqmp-clk.dtsi diff --git

[PATCH 02/16] ARM: dts: zynq: replace gpio-key, wakeup with wakeup-source property

2020-02-18 Thread Michal Simek
From: Sudeep Holla Most of the legacy "gpio-key,wakeup" boolean property is already replaced with "wakeup-source". However few occurrences of old property has popped up again, probably from the remnants in downstream trees. Replace the legacy properties with the unified "wakeup-source" property

  1   2   >