[U-Boot] [PATCH v2] ARM: am335x: Add phyCORE AM335x R2 support

2019-04-25 Thread Niel Fourie
Support for Phytech phyCORE AM335x R2 SOM (PCL060) on the Phytec phyBOARD-Wega AM335x. CPU : AM335X-GP rev 2.1 Model: Phytec AM335x phyBOARD-WEGA DRAM: 256 MiB NAND: 256 MiB MMC: OMAP SD/MMC: 0 eth0: ethernet@4a10 Working: - Eth0 - i2C - MMC/SD - NAND - UART - USB (host)

Re: [U-Boot] [PATCH] phycore-pcl060: U-boot support for Phytec phyCORE PCL060

2019-04-25 Thread Niel Fourie
Hi All, On 4/19/19 11:47 AM, Marek Vasut wrote: --- arch/arm/dts/Makefile| 3 +- arch/arm/dts/am335x-phycore-som.dtsi | 327 ++ arch/arm/dts/am335x-wega-rdk-u-boot.dtsi | 35 +++ arch/arm/dts/am335x-wega-rdk.dts | 23 ++

[U-Boot] [PATCH v3 2/2] regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs

2019-04-25 Thread Matti Vaittinen
BD71837 and BD71847 is PMIC intended for powering single-core, dual-core, and quad-core SoC’s such as NXP-i.MX 8M. BD71847 is used for example on NXP imx8mm EVK. Add regulator driver for ROHM BD71837 and BD71847 PMICs. BD71837 contains 8 bucks and 7 LDOS. BD71847 is reduced version containing 6

Re: [U-Boot] [PATCH] imx: mx6sabresd: fix boot hang with video

2019-04-25 Thread Anatolij Gustschin
On Thu, 25 Apr 2019 02:36:22 + Peng Fan peng@nxp.com wrote: ... > Signed-off-by: Peng Fan > --- > arch/arm/dts/imx6q.dtsi | 1 + > arch/arm/dts/imx6qdl.dtsi| 1 + > configs/mx6sabresd_defconfig | 6 +++--- > 3 files changed, 5 insertions(+), 3 deletions(-) Reviewed-by:

Re: [U-Boot] [PATCH 1/2] smbios: add parsing API

2019-04-25 Thread Christian Gmeiner
Am Di., 16. Apr. 2019 um 13:38 Uhr schrieb Christian Gmeiner : > > Add an very simple API to be able to access SMBIOS strings > like vendor, model and bios version. > ping > Signed-off-by: Christian Gmeiner > --- > include/smbios.h| 37 ++ > lib/Kconfig | 6 ++ >

Re: [U-Boot] [PATCH 1/4 v4] watchdog: Implement generic watchdog_reset() version

2019-04-25 Thread Stefan Roese
On 12.04.19 11:46, Michal Simek wrote: On 12. 04. 19 10:32, Stefan Roese wrote: On 12.04.19 10:22, Michal Simek wrote: On 11. 04. 19 15:58, Stefan Roese wrote: This patch tries to implement a generic watchdog_reset() function that can be used by all boards that want to service the watchdog

Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-25 Thread Stefano Babic
On 25/04/19 09:31, Jun Nie wrote: >> >> I merged Joris' series and build is in progress. >> >> Regards, >> Stefano >> > Great! I will prepare my patch based on that. But I cannot find latest > pico patch on denx master repo. Right. > Did you merge it to your own repo and > pulled to denx master

Re: [U-Boot] [PATCH v3 1/9] Revert "pico-imx7d: Add LCD support"

2019-04-25 Thread Jun Nie
Fabio Estevam 于2019年4月25日周四 上午11:28写道: > > Hi Jun, > > On Wed, Apr 24, 2019 at 11:53 PM Jun Nie wrote: > > > It blocks boot up with default defconfig. I see it is suggested to be > > reverted in mailist weeks ago. I thought you guys knew about it. > > Please keep in mind that the rationale of a

Re: [U-Boot] [PATCH V2 2/5] pico-imx7d: defconfig: Add DT file hooks

2019-04-25 Thread Stefano Babic
On 04/04/19 14:00, Joris Offouga wrote: > This patch adds DT file hooks for Pico i.MX7D SOM and variant boards > > Signed-off-by: Joris Offouga > --- > configs/pico-hobbit-imx7d_defconfig | 3 ++- > configs/pico-imx7d_defconfig| 3 ++- > configs/pico-pi-imx7d_defconfig | 3 ++- > 3

[U-Boot] [PATCH] arm: kirkwood: openrd: Mark openrd boards as maintained again

2019-04-25 Thread Stefan Roese
With the latest size increase of the openrd boards, they all compile clean again. Let's mark them as maintained again and add the Travis job. Please note that I can only compile-test these targets as I don't have access to one of those boards. Signed-off-by: Stefan Roese Cc: Albert ARIBAUD Cc:

Re: [U-Boot] [PATCH 1/2] smbios: add parsing API

2019-04-25 Thread Alexander Graf
On 16.04.19 13:38, Christian Gmeiner wrote: > Add an very simple API to be able to access SMBIOS strings > like vendor, model and bios version. > > Signed-off-by: Christian Gmeiner > --- > include/smbios.h| 37 ++ > lib/Kconfig | 6 ++ > lib/Makefile| 1 + >

[U-Boot] [PATCH 2/4 v5] watchdog: cadence: Remove driver specific "timeout-sec" handling

2019-04-25 Thread Stefan Roese
Now that we have a generic DT property "timeout-sec" handling, the driver specific implementation can be dropped. This patch also changes the timeout restriction to the min and max values (clipping). Before this patch, the value provided via "timeout-sec" was used if the parameter was too high or

[U-Boot] [PATCH 4/4 v5] watchdog: at91sam9_wdt: Remove now superfluous wdt start and reset

2019-04-25 Thread Stefan Roese
With the new generic function, the scattered other functions are now removed to be replaced by the generic one. The new version also enables the configuration of the watchdog timeout via the DT "timeout-sec" property (if enabled via CONFIG_OF_CONTROL). The watchdog servicing is enabled via

[U-Boot] uboot of platdata question

2019-04-25 Thread Peng Fan
Hi Simon, We have such piece dtb in device tree, however with SPL_OF_PLATDATA, it failed to compile. It could not correct get address-cells/size-cells from cpus node. Actually It not find the address-cell/size-cell property from cpus node. Do you have any suggestions? /{ cpus {

Re: [U-Boot] [PATCH 2/3] sound: tegra: Add the binding file for tegra-audio

2019-04-25 Thread Jon Hunter
Hi Simon, On 25/04/2019 02:11, Simon Glass wrote: > Hi Jon, > > On Wed, 24 Apr 2019 at 03:15, Jon Hunter wrote: >> >> >> On 24/04/2019 04:56, Simon Glass wrote: >>> This file was missed when adding the sound driver to U-Boot. Bring it in >>> from Linux 5.0. >>> >>> Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 1/3] rockchip: rk3399: add tpl support

2019-04-25 Thread Heiko Stuebner
Hi Simon, Am Donnerstag, 25. April 2019, 00:26:28 CEST schrieb Simon Glass: > On Thu, 18 Apr 2019 at 10:47, Heiko Stübner wrote: > > > > Am Donnerstag, 18. April 2019, 08:35:49 CEST schrieb Philipp Tomsich: > > > Simon, > > > > > > > On 18.04.2019, at 06:32, Simon Glass wrote: > > > > > > > >

Re: [U-Boot] [PATCH V2 2/5] pico-imx7d: defconfig: Add DT file hooks

2019-04-25 Thread Stefano Babic
On 25/04/19 11:18, Joris OFFOUGA wrote: > > > Le jeu. 25 avr. 2019 à 11:12, Stefano Babic > a écrit : > > On 25/04/19 11:00, Stefano Babic wrote: > > On 04/04/19 14:00, Joris Offouga wrote: > >> This patch adds DT file hooks for Pico i.MX7D SOM and variant

Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-25 Thread Stefano Babic
On 25/04/19 04:56, Jun Nie wrote: > Fabio Estevam 于2019年4月24日周三 下午6:31写道: >> >> On Wed, Apr 24, 2019 at 1:00 AM Jun Nie wrote: >>> >>> Copy device tree files from Linux directly. >>> >>> Signed-off-by: Jun Nie >> >> There is a series from Joris that does the pico-mx7d DM conversion. > > When

[U-Boot] [PATCH 2/2] imx6qdl: add alias for usb0/1

2019-04-25 Thread Peng Fan
Without this alias, `fastboot 0/1` will return error -ENODEV. Signed-off-by: Peng Fan --- arch/arm/dts/imx6qdl.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/imx6qdl.dtsi b/arch/arm/dts/imx6qdl.dtsi index 83eeb5cc59..ba20eb696f 100644 --- a/arch/arm/dts/imx6qdl.dtsi +++

[U-Boot] [PATCH 1/2] imx: mx6sabresd: fix usb functions when DM enabled

2019-04-25 Thread Peng Fan
Enable pinctrl/regulator to let `usb start` could correctly configure iomux and enable vbus for usb usage. Signed-off-by: Peng Fan --- configs/mx6sabresd_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index

Re: [U-Boot] [PATCH V2 2/5] pico-imx7d: defconfig: Add DT file hooks

2019-04-25 Thread Joris OFFOUGA
Le jeu. 25 avr. 2019 à 11:00, Stefano Babic a écrit : > On 04/04/19 14:00, Joris Offouga wrote: > > This patch adds DT file hooks for Pico i.MX7D SOM and variant boards > > > > Signed-off-by: Joris Offouga > > --- > > configs/pico-hobbit-imx7d_defconfig | 3 ++- > >

Re: [U-Boot] [PATCH V2 2/5] pico-imx7d: defconfig: Add DT file hooks

2019-04-25 Thread Joris OFFOUGA
Le jeu. 25 avr. 2019 à 11:12, Stefano Babic a écrit : > On 25/04/19 11:00, Stefano Babic wrote: > > On 04/04/19 14:00, Joris Offouga wrote: > >> This patch adds DT file hooks for Pico i.MX7D SOM and variant boards > >> > >> Signed-off-by: Joris Offouga > >> --- > >>

[U-Boot] [PATCH v3 0/2] support for ROHM BD71837 and BD71847 PMICs

2019-04-25 Thread Matti Vaittinen
Patch series to support for ROHM BD71837 and BD71847 PMICs. ROHM BD71837 and BD71847 is PMIC intended for powering single-core, dual-core, and quad-core SoC’s such as NXP-i.MX 8M. BD71847 is used for example on NXP imx8mm EVK. Series adds PMIC driver with register read and write support, and

Re: [U-Boot] [PATCH V2 2/5] pico-imx7d: defconfig: Add DT file hooks

2019-04-25 Thread Joris Offouga
Le 25/04/2019 à 11:26, Stefano Babic a écrit : On 25/04/19 11:18, Joris OFFOUGA wrote: Le jeu. 25 avr. 2019 à 11:12, Stefano Babic mailto:sba...@denx.de>> a écrit : On 25/04/19 11:00, Stefano Babic wrote: > On 04/04/19 14:00, Joris Offouga wrote: >> This patch adds DT file

Re: [U-Boot] [PATCH V2 2/5] pico-imx7d: defconfig: Add DT file hooks

2019-04-25 Thread Stefano Babic
On 25/04/19 11:00, Stefano Babic wrote: > On 04/04/19 14:00, Joris Offouga wrote: >> This patch adds DT file hooks for Pico i.MX7D SOM and variant boards >> >> Signed-off-by: Joris Offouga >> --- >> configs/pico-hobbit-imx7d_defconfig | 3 ++- >> configs/pico-imx7d_defconfig| 3 ++- >>

Re: [U-Boot] [PATCH] net: fec_mxc: not access reserved register on i.MX8

2019-04-25 Thread Peng Fan
Hi Joe, > On Mon, Apr 15, 2019 at 12:18 AM Peng Fan wrote: > > > > We should not access reserved register on i.MX8, otherwise met SERROR > > > > Signed-off-by: Peng Fan > > Acked-by: Joe Hershberger Will you pick up this patch? Thanks, Peng. ___

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-25 Thread Peng Fan
> Subject: Re: Booting MX6 via Serial Download after DM conversion > > Hi Peng, > > On Tue, Apr 23, 2019 at 11:18 PM Peng Fan wrote: > > > Not try this. > > uuu should support SPL file being loaded, then if SPL could runs into > > fastboot mode to interactive with uuu, then u-boot-dtb.img

[U-Boot] [PATCH] dma: ti: k3-udma: Do not touch RT registers before channel configuration

2019-04-25 Thread Vignesh Raghavendra
From: Peter Ujfalusi Upcoming sysfw (2019.03) will not open the channelized firewalls during init, it only going to do so in response to the channel configuration message. Remove the channel state checks done before the channel configuration and move it after the configuration for warning

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-25 Thread Peng Fan
Hi Fabio, > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年4月25日 6:23 > To: Peng Fan > Cc: Abel Vesa ; Stefano Babic ; > Lukasz Majewski ; Michael Trimarchi > ; dl-uboot-imx ; > Jagan Teki ; Marcel Ziswiler > ; U-Boot-Denx ; > Adam Ford ; Ye Li ; Otavio

[U-Boot] [PATCH 1/4 v5] watchdog: Implement generic watchdog_reset() version

2019-04-25 Thread Stefan Roese
This patch tries to implement a generic watchdog_reset() function that can be used by all boards that want to service the watchdog device in U-Boot. This watchdog servicing is enabled via CONFIG_WATCHDOG. Without this approach, new boards or platforms needed to implement a board specific version

[U-Boot] [PATCH 3/4 v5] watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup

2019-04-25 Thread Stefan Roese
With the generic watchdog driver now implemented, this patch removes some legacy stuff from the MPC8xx watchdog driver and its Kconfig integration. CONFIG_MPC8xx_WATCHDOG is completely removed and hw_watchdog_reset() is made static, as the watchdog will now get serviced via the DM infrastructure

Re: [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-25 Thread Jun Nie
> > I merged Joris' series and build is in progress. > > Regards, > Stefano > Great! I will prepare my patch based on that. But I cannot find latest pico patch on denx master repo. Did you merge it to your own repo and pulled to denx master later, just like linux work flow? I am not familiar with

Re: [U-Boot] [PATCH v4 1/2] dlmalloc: fix malloc range at end of ram

2019-04-25 Thread Simon Goldschmidt
On Thu, Apr 25, 2019 at 1:59 AM Simon Glass wrote: > > Hi, > > On Wed, 24 Apr 2019 at 05:53, Tom Rini wrote: > > > > On Wed, Apr 24, 2019 at 01:49:52PM +0200, Simon Goldschmidt wrote: > > > On Wed, Apr 24, 2019 at 1:27 PM Tom Rini wrote: > > > > > > > > On Tue, Apr 23, 2019 at 09:54:10PM -0600,

[U-Boot] [PATCH v3 1/2] regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot

2019-04-25 Thread Matti Vaittinen
https://source.codeaurora.org/external/imx/uboot-imx cherry picked, styled and merged commits: - MLK-18387 pmic: Add pmic driver for BD71837: e9a3bec2e95a - MLK-18590 pmic: bd71837: Change to use new fdt API: acdc5c297a96 Signed-off-by: Ye Li Signed-off-by: Matti Vaittinen --- Changelog v2 =>

[U-Boot] [PATCH v3 00/11] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-04-25 Thread Lukasz Majewski
This patch series brings the files from Linux kernel to provide clocks support as it is used on the Linux kernel with common clock framework [CCF] setup. This series also fixes several problems with current clocks and provides sandbox tests for functions addded to clk-uclass.c file. Design

Re: [U-Boot] [PATCH V2 2/5] pico-imx7d: defconfig: Add DT file hooks

2019-04-25 Thread Stefano Babic
On 25/04/19 11:57, Joris Offouga wrote: > > Le 25/04/2019 à 11:26, Stefano Babic a écrit : >> On 25/04/19 11:18, Joris OFFOUGA wrote: >>> >>> Le jeu. 25 avr. 2019 à 11:12, Stefano Babic >> > a écrit : >>> >>> On 25/04/19 11:00, Stefano Babic wrote: >>> > On

Re: [U-Boot] [EXT] Re: [PATCH 2/5] dm: spi: Convert Freescale ESPI driver to driver model

2019-04-25 Thread Chuanhua Han
Hi,jagan Thank you for your replay! > -Original Message- > From: Jagan Teki > Sent: 2019年4月24日 14:57 > To: Chuanhua Han > Cc: Jagan Teki ; Wolfgang Denk ; > Shengzhou Liu ; Ruchika Gupta > ; U-Boot-Denx ; Jiafei Pan > ; Yinbo Zhu > Subject: [EXT] Re: [U-Boot] [PATCH 2/5] dm: spi:

[U-Boot] [PATCH] mmc: sdhci: Read capabilities register before updating host caps

2019-04-25 Thread Прокопенко Тимур Низамович
From: Timur Prokopenko Date: Thu, 4 Apr 2019 11:05:05 +0300 Subject: [U-Boot] [PATCH] mmc: sdhci: Read capabilities register and update host caps U-Boot doesn't analyze SDHCI capabilities register while choosing speed mode and sets HS mode unconditionally which is incorrect. This patch

Re: [U-Boot] [PATCH V2 2/5] pico-imx7d: defconfig: Add DT file hooks

2019-04-25 Thread Fabio Estevam
Hi Stefano, On Thu, Apr 25, 2019 at 7:28 AM Stefano Babic wrote: > Just SOM it is quite weird if there is not an evaluation board to > support it. Anyway, I fix the name, thanks. Yes, for U-Boot purpose we can either use: imx7d-pico-pi or imx7d-pico-hobbit for the CONFIG_DEFAULT_DEVICE_TREE

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-25 Thread Fabio Estevam
Hi Peng, On Thu, Apr 25, 2019 at 4:17 AM Peng Fan wrote: > After check, it is not U-Boot issue, it is imx_usb should update to support > new u-boot-dtb.img. > > With your patch, file u-boot-dtb.img > u-boot-dtb.img: u-boot legacy uImage, U-Boot 2019.04-00664-gdbe9a81ff0\270, > Firmware/ARM, >

Re: [U-Boot] [PATCH v4 1/2] dlmalloc: fix malloc range at end of ram

2019-04-25 Thread Tom Rini
On Thu, Apr 25, 2019 at 09:32:22AM +0200, Simon Goldschmidt wrote: > On Thu, Apr 25, 2019 at 1:59 AM Simon Glass wrote: > > > > Hi, > > > > On Wed, 24 Apr 2019 at 05:53, Tom Rini wrote: > > > > > > On Wed, Apr 24, 2019 at 01:49:52PM +0200, Simon Goldschmidt wrote: > > > > On Wed, Apr 24, 2019 at

Re: [U-Boot] [PATCH] watchdog: Kconfig: update WDT help message

2019-04-25 Thread Stefan Roese
On 25.04.19 12:57, Patrice Chotard wrote: Restart operation never exists and reset operation never makes the watchdog expire immediately but expire_now operation does. Signed-off-by: Patrice Chotard --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH] cmd: part: unify syntax of uuid according to start/size subcommands

2019-04-25 Thread roman . stratiienko
From: Roman Stratiienko This allows retrieving uuid of the partition using it's name. Signed-off-by: Roman Stratiienko --- cmd/part.c | 40 ++-- 1 file changed, 10 insertions(+), 30 deletions(-) diff --git a/cmd/part.c b/cmd/part.c index bee204f..57657ec

Re: [U-Boot] [EXT] Re: [PATCH 2/2] fsl_qspi: Improve QSPI driver to incorporate 4 byte commands

2019-04-25 Thread Rajat Srivastava
> -Original Message- > From: Vignesh Raghavendra > Sent: Wednesday, April 24, 2019 10:17 PM > To: Rajat Srivastava ; u-boot@lists.denx.de; > ja...@openedev.com > Cc: Ashish Kumar > Subject: [EXT] Re: [PATCH 2/2] fsl_qspi: Improve QSPI driver to incorporate 4 > byte commands > >

Re: [U-Boot] [PATCH] phycore-pcl060: U-boot support for Phytec phyCORE PCL060

2019-04-25 Thread Eugeniu Rosca
On Thu, Apr 25, 2019 at 1:33 PM Marek Vasut wrote: [..] > The commit message should contain the commit ID in Linux from which the > files came , since when someone decides to upgrade those files in the > future, they will be able to generate a diff from that commit to Linux > version that's

[U-Boot] [PATCH v3 02/11] cmd: Do not show frequency for clocks which .get_rate() return error

2019-04-25 Thread Lukasz Majewski
It may happen that some UCLASS_CLK clocks drivers work as a "managers", to call other, proper clocks. This situation is present in the iMX{6|8} clocks when supporting CONFIG_CLK (and CCF). To avoid bogus output of "clk dump" we omit clocks which return error value - allowing reusing default

Re: [U-Boot] [PATCH] phycore-pcl060: U-boot support for Phytec phyCORE PCL060

2019-04-25 Thread Marek Vasut
On 4/25/19 10:31 AM, Niel Fourie wrote: > Hi All, Hi, > On 4/19/19 11:47 AM, Marek Vasut wrote: >>> --- >>>   arch/arm/dts/Makefile    |   3 +- >>>   arch/arm/dts/am335x-phycore-som.dtsi | 327 ++ >>>   arch/arm/dts/am335x-wega-rdk-u-boot.dtsi |  35 +++ >>>

[U-Boot] [PATCH v3 01/11] dm: Fix documentation entry as there is no UCLASS_CLOCK uclass

2019-04-25 Thread Lukasz Majewski
There is no UCLASS_CLOCK uclass defined. Instead we do use the UCLASS_CLK. Signed-off-by: Lukasz Majewski Reviewed-by: Simon Glass --- Changes in v3: None include/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clk.h b/include/clk.h index

[U-Boot] [PATCH v3 06/11] dm: clk: Define clk_get_parent() for clk operations

2019-04-25 Thread Lukasz Majewski
This commit adds the clk_get_parent() function, which is responsible for getting the parent's struct clock pointer. U-boot's DM support for getting parent is different (the parent relationship is in udevice) than the one in common clock framework (CCF) in Linux. To obtain the pointer to struct

[U-Boot] [PATCH v3 10/11] clk: test: Provide unit test for clk_get_parent_rate() method

2019-04-25 Thread Lukasz Majewski
This commit provides sandbox unit test for clk_get_parent_rate() method. For testing the default test clocks setup had to be adjusted to emulate structure similar to clocks in the Common Clock Framework [CCF] (for iMX devices). The clk_get_parent_rate() relies on dev->driver_data having the

[U-Boot] [PATCH v3 03/11] clk: Remove clock ID check in .get_rate() of clk_fixed_*

2019-04-25 Thread Lukasz Majewski
This check requires the struct clk passed to .get_rate() to be always cleared out as any clock with valid ID causes -EINVAL return value. The return code of fixed clocks shall always be returned. Signed-off-by: Lukasz Majewski --- Changes in v3: None drivers/clk/clk_fixed_factor.c | 3 ---

[U-Boot] [PATCH] watchdog: Kconfig: update WDT help message

2019-04-25 Thread Patrice Chotard
Restart operation never exists and reset operation never makes the watchdog expire immediately but expire_now operation does. Signed-off-by: Patrice Chotard --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig

Re: [U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190423

2019-04-25 Thread Tom Rini
On Tue, Apr 23, 2019 at 11:30:58AM +0200, Neil Armstrong wrote: > Hi Tom, > > This PR includes the previous nacked u-boot-amlogic-20190411 PR but include > the > fix for the warning : > regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset > > This PR adds support for 3

Re: [U-Boot] [RESEND] [PULL] u-boot-stm32 for v2019.07-rc1​ (round 2)

2019-04-25 Thread Tom Rini
On Tue, Apr 23, 2019 at 02:02:28PM +, Patrice CHOTARD wrote: > Hi Tom > > Please find the pull request for STM32 round 2 > As requested, i removed the Change-Id in commit messages. > > The following changes since commit 1f4ae66eaab29bfb5d1eb44996f7826c9cd01ed1: > > Merge tag

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

2019-04-25 Thread Tom Rini
On Wed, Apr 24, 2019 at 09:22:43AM -0600, Simon Glass wrote: > Hi Tom, > > Build/test: > https://travis-ci.org/sglass68/u-boot/builds/523770406 > > > The following changes since commit 6c5f8dd540d7a8eff244d4c27a09451ca12c8d20: > > Merge branch 'master' of git://git.denx.de/u-boot-usb

Re: [U-Boot] Pull request for UEFI sub-system for v2019.07-rc1 (3)

2019-04-25 Thread Tom Rini
On Tue, Apr 23, 2019 at 07:00:08PM +0200, Heinrich Schuchardt wrote: > Cc: U-Boot Mailing List > > The following changes since commit 6c5f8dd540d7a8eff244d4c27a09451ca12c8d20: > > Merge branch 'master' of git://git.denx.de/u-boot-usb (2019-04-21 > 19:00:04 -0400) > > are available in the Git

Re: [U-Boot] [PATCH V2 2/5] pico-imx7d: defconfig: Add DT file hooks

2019-04-25 Thread Joris Offouga
Le 25/04/2019 à 12:28, Stefano Babic a écrit : On 25/04/19 11:57, Joris Offouga wrote: Le 25/04/2019 à 11:26, Stefano Babic a écrit : On 25/04/19 11:18, Joris OFFOUGA wrote: Le jeu. 25 avr. 2019 à 11:12, Stefano Babic mailto:sba...@denx.de>> a écrit : On 25/04/19 11:00, Stefano Babic

Re: [U-Boot] [PATCH 6/8] imx8: cpu: get temperature when print cpu desc

2019-04-25 Thread Stefano Babic
Hi Peng, On 12/04/19 09:55, Peng Fan wrote: > Read the temperature when print cpu inforation. > > Signed-off-by: Peng Fan > --- > arch/arm/mach-imx/imx8/cpu.c | 35 +-- > 1 file changed, 33 insertions(+), 2 deletions(-) > > diff --git

Re: [U-Boot] [PATCH v2 5/5] board: toradex: add colibri imx8qxp 2gb wb it v1.0b module support

2019-04-25 Thread Stefano Babic
Hi Marcel, On 09/04/19 17:25, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > This commit adds initial support for the Toradex Colibri iMX8QXP 2GB WB > IT V1.0B module. Unlike the V1.0A early access samples exclusively > booting from SD card, they are now strapped to boot from eFuses which >

Re: [U-Boot] [PATCH v2] ARM: am335x: Add phyCORE AM335x R2 support

2019-04-25 Thread Marek Vasut
On 4/25/19 10:32 AM, Niel Fourie wrote: > Support for Phytech phyCORE AM335x R2 SOM (PCL060) on the Phytec > phyBOARD-Wega AM335x. > > CPU : AM335X-GP rev 2.1 > Model: Phytec AM335x phyBOARD-WEGA > DRAM: 256 MiB > NAND: 256 MiB > MMC: OMAP SD/MMC: 0 > eth0: ethernet@4a10 > > Working: >

Re: [U-Boot] [PATCH v2 5/5] board: toradex: add colibri imx8qxp 2gb wb it v1.0b module support

2019-04-25 Thread Marcel Ziswiler
Hi Stefano On Thu, 2019-04-25 at 12:48 +0200, Stefano Babic wrote: > Hi Marcel, > > On 09/04/19 17:25, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > > This commit adds initial support for the Toradex Colibri iMX8QXP > > 2GB WB > > IT V1.0B module. Unlike the V1.0A early access samples

[U-Boot] [PATCH v3 11/11] clk: Port Linux common clock framework [CCF] for imx6q to U-boot (tag: 5.0-rc3)

2019-04-25 Thread Lukasz Majewski
This commit brings the files from Linux kernel to provide clocks support as it is used on the Linux kernel with common clock framework [CCF] setup. The directory structure has been preserved. The ported code only supports reading information from PLL, MUX, Divider, etc and enabling/disabling the

[U-Boot] [PATCH v3 07/11] dm: clk: Define clk_get_parent_rate() for clk operations

2019-04-25 Thread Lukasz Majewski
This commit adds the clk_get_parent_rate() function, which is responsible for getting the rate of parent clock. Unfortunately, u-boot's DM support for getting parent is different (the parent relationship is in udevice) than the one in common clock framework (CCF) in Linux. To alleviate this

[U-Boot] [PATCH v3 04/11] clk: Extend struct clk to provide information regarding clock rate

2019-04-25 Thread Lukasz Majewski
This commit extends the struct clk to provide information regarding the clock rate. As a result the clock tree traversal is performed at most once, and further reads are using the cached value. Signed-off-by: Lukasz Majewski --- Changes in v3: None include/clk.h | 2 ++ 1 file changed, 2

[U-Boot] [PATCH v3 05/11] clk: Provide struct clk for fixed rate clock (clk_fixed_rate.c)

2019-04-25 Thread Lukasz Majewski
Up till now the fixed rate clock ('osc') has been added to UCLASS_CLK without declaring struct clk. As a result it was only accessible by iterating the udevice's uclass list. This is a problem for clock code, which operates on pointers to struct clk (like clk_get_rate()), not udevices. After

[U-Boot] [PATCH v3 09/11] clk: test: Provide unit test for clk_get_by_id() method

2019-04-25 Thread Lukasz Majewski
This commit provides sandbox unit test for clk_get_by_id() method. To test it default test clocks setup had to be adjusted to emulate structure similar to clocks in the Common Clock Framework [CCF] (for iMX devices). The clk_get_by_id() relies on dev->driver_data having the pointer to struct

[U-Boot] [PATCH v3 08/11] dm: clk: Define clk_get_by_id() for clk operations

2019-04-25 Thread Lukasz Majewski
This commit adds the clk_get_by_id() function, which is responsible for getting the udevice with matching clk->id. Such approach allows re-usage of inherit DM list relationship for the same class (UCLASS_CLK). As a result - we don't need any other external list - it is just enough to look for

Re: [U-Boot] [PATCH v3 0/7] AM65x HS device support

2019-04-25 Thread Andrew F. Davis
On 4/12/19 12:54 PM, Andrew F. Davis wrote: > Hello all, > > This series brings up HS device support on the AM65x platform. Support > for HS on K3 family devices is a bit different than previous devices > but for the most part all that has been abstracted into the SECDEV > package, allowing for a

Re: [U-Boot] [PATCH] arm: mvebu: turris_omnia: Use thumb instructions in SPL to save space

2019-04-25 Thread Marek Behún
Stefan, thanks for this. My workaround for this was to increase CONFIG_SPL_SIZE from 140 KiB to 160 KiB, in include/configs/turris_omnia.h. But yours works as well. Perhaps we should do both if the image increases in the future... Reviewed-by: Marek Behún On Thu, 25 Apr 2019 07:32:12 +0200

[U-Boot] [PATCH 1/4] i2c: mvtwsi: fix disabling i2c slave on Armada 38x

2019-04-25 Thread Marek Behún
Commit 173ec351 ("i2c: mvtwsi: disable i2c slave on Armada 38x") adds slave disabling code on port 0 into bind method. This does not work on Turris Omnia in SPL, because at the time the bind method is called in SPL, arch/arm/mach-mvebu/spl.c has not yet set DM translation offset, so the bind

Re: [U-Boot] [RESEND PATCH 1/2] net: rtl8169: Implement ->hwaddr_write() callback

2019-04-25 Thread Joe Hershberger
Hi Thierry, On Thu, Apr 25, 2019 at 8:32 AM Thierry Reding wrote: > > On Tue, Apr 16, 2019 at 04:36:16PM +, Joe Hershberger wrote: > > On Tue, Apr 16, 2019 at 11:21 AM Thierry Reding > > wrote: > > > > > > From: Thierry Reding > > > > > > Implement this callback that allows the MAC address

Re: [U-Boot] [PATCH v2 5/5] board: toradex: add colibri imx8qxp 2gb wb it v1.0b module support

2019-04-25 Thread Stefano Babic
Hi Marcel, On 25/04/19 14:35, Marcel Ziswiler wrote: > Hi Stefano > > On Thu, 2019-04-25 at 12:48 +0200, Stefano Babic wrote: >> Hi Marcel, >> >> On 09/04/19 17:25, Marcel Ziswiler wrote: >>> From: Marcel Ziswiler >>> >>> This commit adds initial support for the Toradex Colibri iMX8QXP >>> 2GB

[U-Boot] [PATCH] i2c: mvtwsi: Fix delay time for Turris Omnia

2019-04-25 Thread Marek Behún
Commit c68c6243 ("i2c: mvtwsi: Make delay times frequency-dependent") broke the default configuration of the Turris Omnia target. With i2c frequency at 100kHz the twsi_wait function call to ndelay(tick) the tick variable is computed to 10340 (nanoseconds). Since ndelay calls

Re: [U-Boot] [PATCH v2 2/2] net: eth-uclass: Support device tree MAC addresses

2019-04-25 Thread Thierry Reding
On Wed, Apr 17, 2019 at 09:32:26PM -0700, Simon Glass wrote: > Hi Thierry, > > On Wed, 17 Apr 2019 at 08:03, Thierry Reding > wrote: > > > On Wed, Apr 17, 2019 at 02:49:22PM +0300, Grygorii Strashko wrote: > > > > > > > > > On 16.04.19 19:24, Thierry Reding wrote: > > > > From: Thierry Reding

Re: [U-Boot] [PATCH v2 0/2] Fix compilation error if CONFIG_USB is disabled

2019-04-25 Thread Tom Rini
On Thu, Apr 25, 2019 at 01:13:24PM +, Ajay Kaher wrote: > > Tom, [PATCH v2 1/2] reviewed by 'Matthias Brugger'. > But no update on [Patch v2 2/2] (includes changes in include/configs/rpi.h) Since Matthias is the Pi custodian, I'm expecting a PR from him with the changes. Thanks! > > -

Re: [U-Boot] [PATCH] pico-imx6ul: Add DWARF baseboard support

2019-04-25 Thread Stefano Babic
Hi Otavio, On 07/04/19 21:46, Otavio Salvador wrote: > This add the boot menu option for the DWARF baseboard as well as a > specific config file for users which wish to use it as a pre-defined > board. > > Signed-off-by: Otavio Salvador > --- An entry for the board in MAINTAINERS

Re: [U-Boot] [PATCH v3 3/9] imx: mx7: Add empty arch_cpu_init if skipped

2019-04-25 Thread Jun Nie
> Please describe what ATF/OP-TEE initialization has done > when booting into uboot. > > I think SKIP_LOWLEVEL_INIT is mostly for lowlevel_init, > not arch_cpu_init. > > init_aips/init_csu/isolate_resources/init_snvs might be > done in your ATF, I am not sure, but imx_enet_mdio_fixup, >

[U-Boot] [PATCH v2 4/5] CONFIG_SYS_[DI]CACHE_OFF: convert to Kconfig

2019-04-25 Thread Trevor Woerner
CONFIG_SYS_[DI]CACHE_OFF had been partially converted to Kconfig parameters; only for the ARC architecture. This patch turns these two parameters into Kconfig items everywhere else they are found. All of the include/configs/* and defconfig changes in this patch are for arm machines only. The

[U-Boot] [PATCH v2 5/5] CONFIG_SPL_SYS_[DI]CACHE_OFF: add

2019-04-25 Thread Trevor Woerner
While converting CONFIG_SYS_[DI]CACHE_OFF to Kconfig, there are instances where these configuration items are conditional on SPL. This commit adds SPL variants of these configuration items, uses CONFIG_IS_ENABLED(), and updates the configurations as required. Acked-by: Alexey Brodkin

[U-Boot] [PATCH v2 2/5] CONFIG_SYS_[DI]CACHE_OFF: remove superfluous "1"

2019-04-25 Thread Trevor Woerner
This config is the only config that uses: #define CONFIG_SYS_DCACHE_OFF 1 in its #define. Remove the superfluous "1" so this cache #define is like all the others. Signed-off-by: Trevor Woerner --- Changes in v2: None include/configs/origen.h | 2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] [PATCH v2 3/5] CONFIG_SYS_[DI]CACHE_OFF: remove commented lines

2019-04-25 Thread Trevor Woerner
Eventually these configuration items will be converted to Kconfig, therefore there's little point in leaving commented-out versions of them in include/configs. Signed-off-by: Trevor Woerner --- Changes in v2: None include/configs/uniphier.h | 4

[U-Boot] [PATCH v2 1/5] CONFIG_SYS_[ID]CACHE_OFF: unify the 'any' case

2019-04-25 Thread Trevor Woerner
According to De Morgan's Law[1]: !(A && B) = !A || !B !(A || B) = !A && !B There are 5 places in the code where we find: #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF)) and 4 places in the code where we find: #if

Re: [U-Boot] [PATCH 1/2] fdtdec: Use fdt_setprop_u32() for fdtdec_set_phandle()

2019-04-25 Thread Thierry Reding
On Mon, Apr 15, 2019 at 10:08:20AM +0200, Thierry Reding wrote: > From: Thierry Reding > > The fdt_setprop_u32() function does everything that we need, so we > really only use the function as a convenience wrapper, in which case it > can simply be a static inline function. > > Signed-off-by:

[U-Boot] [PATCH 0/4] Fixes for Turris Omnia

2019-04-25 Thread Marek Behún
Hi Stefan, could you please review and apply these patches for Turris Omnia? Marek Marek Behún (3): i2c: mvtwsi: fix disabling i2c slave on Armada 38x mvebu: turris_omnia: remove redundant code arm: mvebu: turris_omnia: add XHCI to defconfig Pierre Bourdon (1): mvebu: turris_omnia: fix

[U-Boot] [PATCH 3/4] mvebu: turris_omnia: fix eeprom/mcu device names

2019-04-25 Thread Marek Behún
From: Pierre Bourdon Commit c4bd12a7dad4 ("i2c: mux: Generate longer i2c mux name") changed the naming scheme of i2c devices within a mux. This broke references to i2c@0 in the Turris Omnia board initialization code. Signed-off-by: Pierre Bourdon Reviewed-by: Marek Behún ---

Re: [U-Boot] [PATCH v2 3/4] pci_ep: add pci_ep sandbox driver

2019-04-25 Thread Ramon Fried
On Thu, Apr 25, 2019 at 2:29 AM Simon Glass wrote: > > Hi Ramon, > > On Wed, 24 Apr 2019 at 12:54, Ramon Fried wrote: > > Please add a commit message. > > > > > Signed-off-by: Ramon Fried > > --- > > > > arch/sandbox/dts/test.dts | 4 + > > configs/sandbox64_defconfig |

Re: [U-Boot] [PATCH v2 0/2] Fix compilation error if CONFIG_USB is disabled

2019-04-25 Thread Ajay Kaher
Tom, [PATCH v2 1/2] reviewed by 'Matthias Brugger'. But no update on [Patch v2 2/2] (includes changes in include/configs/rpi.h) - Ajay On 11/04/19, 10:56 AM, "akaher" wrote: Fix compilation error if CONFIG_USB is disabled [Patch v2 1/2]: CONFIG_CMD_USB depends upon

[U-Boot] [PATCH v2 0/5] Kconfig conversion: CONFIG_SYS_[DI]CACHE_OFF

2019-04-25 Thread Trevor Woerner
This series of patches starts with a couple clean-up patches for various items related to CONFIG_SYS_[DI]CACHE_OFF, then converts these two configuration items to the Kconfig system. CONFIG_SYS_[DI]CACHE_OFF had been minimally converted to Kconfig, but only for the arc architecture; all other

Re: [U-Boot] [PATCH v2 2/2] net: eth-uclass: Support device tree MAC addresses

2019-04-25 Thread Thierry Reding
On Thu, Apr 18, 2019 at 07:30:05PM +0300, Grygorii Strashko wrote: > > > On 17.04.19 18:03, Thierry Reding wrote: > > On Wed, Apr 17, 2019 at 02:49:22PM +0300, Grygorii Strashko wrote: > >> > >> > >> On 16.04.19 19:24, Thierry Reding wrote: > >>> From: Thierry Reding > >>> > >>> Add the

Re: [U-Boot] [PATCH 6/8] imx8: cpu: get temperature when print cpu desc

2019-04-25 Thread Peng Fan
Hi Stefano. > Subject: Re: [PATCH 6/8] imx8: cpu: get temperature when print cpu desc > > Hi Peng, > > On 12/04/19 09:55, Peng Fan wrote: > > Read the temperature when print cpu inforation. > > > > Signed-off-by: Peng Fan > > --- > > arch/arm/mach-imx/imx8/cpu.c | 35 >

Re: [U-Boot] [PATCH 6/8] imx8: cpu: get temperature when print cpu desc

2019-04-25 Thread Stefano Babic
On 25/04/19 15:46, Peng Fan wrote: > Hi Stefano. > >> Subject: Re: [PATCH 6/8] imx8: cpu: get temperature when print cpu desc >> >> Hi Peng, >> >> On 12/04/19 09:55, Peng Fan wrote: >>> Read the temperature when print cpu inforation. >>> >>> Signed-off-by: Peng Fan >>> --- >>>

Re: [U-Boot] [RESEND PATCH 1/2] net: rtl8169: Implement ->hwaddr_write() callback

2019-04-25 Thread Thierry Reding
On Tue, Apr 16, 2019 at 04:36:16PM +, Joe Hershberger wrote: > On Tue, Apr 16, 2019 at 11:21 AM Thierry Reding > wrote: > > > > From: Thierry Reding > > > > Implement this callback that allows the MAC address to be set for the > > Ethernet card. This is necessary in order for the device to

[U-Boot] [PATCH 4/4] arm: mvebu: turris_omnia: add XHCI to defconfig

2019-04-25 Thread Marek Behún
Add XHCI_HOST and XHCI_MVEBU to defconfig, so that user's can by default boot from USB on Turris Omnia. Signed-off-by: Marek Behún --- configs/turris_omnia_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index

[U-Boot] [PATCH 2/4] mvebu: turris_omnia: remove redundant code

2019-04-25 Thread Marek Behún
The i2c slave disabling is done by mvtwsi driver and is not needed here. Signed-off-by: Marek Behún Cc: Baruch Siach --- board/CZ.NIC/turris_omnia/turris_omnia.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c

Re: [U-Boot] [PATCH 1/4] i2c: mvtwsi: fix disabling i2c slave on Armada 38x

2019-04-25 Thread Pierre Bourdon
On Thu, Apr 25, 2019 at 3:30 PM Marek Behún wrote: > > Commit 173ec351 ("i2c: mvtwsi: disable i2c slave on Armada 38x") adds > slave disabling code on port 0 into bind method. This does not work > on Turris Omnia in SPL, because at the time the bind method is called in > SPL,

Re: [U-Boot] [PATCH 1/4] i2c: mvtwsi: fix disabling i2c slave on Armada 38x

2019-04-25 Thread Marek Behún
:) I did not know about that, thanks. On Thu, 25 Apr 2019 15:35:10 +0200 Pierre Bourdon wrote: > On Thu, Apr 25, 2019 at 3:30 PM Marek Behún > wrote: > > > > Commit 173ec351 ("i2c: mvtwsi: disable i2c slave on Armada 38x") > > adds slave disabling code on port 0 into bind method. This does not

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-25 Thread Peng Fan
> Subject: Re: Booting MX6 via Serial Download after DM conversion > > Hi Peng, > > On Thu, Apr 25, 2019 at 4:17 AM Peng Fan wrote: > > > After check, it is not U-Boot issue, it is imx_usb should update to support > new u-boot-dtb.img. > > > > With your patch, file u-boot-dtb.img > >

Re: [U-Boot] [PATCH v3 4/9] pico-imx7d: Correct uart clock root

2019-04-25 Thread Jun Nie
Fabio Estevam 于2019年4月24日周三 下午6:32写道: > > On Wed, Apr 24, 2019 at 1:00 AM Jun Nie wrote: > > > +config IMX_CONSOLE_UART_ID > > + int "UART ID for console" > > + default 1 > > + depends on ARCH_MX7 > > + help > > + Specify the UART ID that's for serial console. > >

[U-Boot] [PATCH v2 1/2] RISCV: image: Add booti support.

2019-04-25 Thread Atish Patra
This patch adds booti support for RISC-V Linux kernel. The existing bootm method will also continue to work as it is. It depends on the following kernel patch which adds the header to the flat Image. https://patchwork.kernel.org/patch/10913869/ Tested on HiFive Unleashed and QEMU.

[U-Boot] [PATCH v2 2/2] RISCV: image: Parse Image.gz support in booti.

2019-04-25 Thread Atish Patra
Add gz parsing logic so that booti can parse both Image and Image.gz. Signed-off-by: Atish Patra --- arch/riscv/lib/image.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/arch/riscv/lib/image.c b/arch/riscv/lib/image.c index

  1   2   3   >