[PATCH v2 4/8] board: presidio-asic: Add I2C support

2020-02-26 Thread Alex Nemirovsky
Add I2C board support for Cortina Access Presidio Engineering Board Signed-off-by: Alex Nemirovsky --- Changes in v2: None configs/cortina_presidio-asic-emmc_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/cortina_presidio-asic-emmc_defconfig

[PATCH v2 0/8] Cortina Access Drivers Package 2

2020-02-26 Thread Alex Nemirovsky
This release adds the following drivers and integrates support into the Cortina Access Presidio Engineering Board: CA SoC eMMC/SD controller CA SoC I2C controller CA Soc LED controller CA SPI NAND and NOR controller Changes in v2: - Add I2C controller - Add LED controller -

[PATCH v2 2/8] board: presidio-asic: Add eMMC board support

2020-02-26 Thread Alex Nemirovsky
Add initial eMMC support for Cortina Access Presidio Engineering Board Signed-off-by: Alex Nemirovsky --- Changes in v2: None configs/cortina_presidio-asic-emmc_defconfig | 33 1 file changed, 33 insertions(+) create mode 100644

[PATCH v2 1/8] mmc: ca_dw_mmc: add DesignWare based DM support for CAxxxx SoCs

2020-02-26 Thread Alex Nemirovsky
From: Arthur Li Initial DesignWare based DM support for Cortina Access CA SoCs. Signed-off-by: Arthur Li Signed-off-by: Alex Nemirovsky --- Changes in v2: - Add I2C controller - Add LED controller - Add SPI NAND and NOR controller MAINTAINERS | 2 + drivers/mmc/Kconfig

Re: [PATCH 05/10] usb: dwc3-generic: Use dev_read_addr() instead of devfdt_get_addr()【请注意,邮件由s...@google.com代发】

2020-02-26 Thread Kever Yang
Hi Simon, On 2020/2/20 上午10:23, Simon Glass wrote: Hi Kever, On Tue, 18 Feb 2020 at 18:55, Kever Yang wrote: 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(-)

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

2020-02-26 Thread Kever Yang
Hi Patrice, On 2020/2/20 下午4:53, Patrice CHOTARD wrote: Hi Kever On 2/19/20 2:54 AM, Kever Yang wrote: 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

Re: [PATCH v6 16/16] travis: add packages for UEFI secure boot test

2020-02-26 Thread AKASHI Takahiro
On Wed, Feb 26, 2020 at 09:28:56AM -0500, Tom Rini wrote: > On Wed, Feb 26, 2020 at 01:54:48PM +0900, AKASHI Takahiro wrote: > > > Pytest for UEFI secure boot will use several host commands. > > In particular, Test setup relies on efitools, whose version must be v1.5.2 > > or later. So fetch a

Re: [PATCH] misc: k3_avs: Fix possible NULL pointer deference

2020-02-26 Thread Lokesh Vutla
On 14/02/20 5:52 PM, Vignesh Raghavendra wrote: > Its possible that k3_avs_priv is NULL because the driver may not have > been probed yet. Therefore check if pointer is valid before > dereferencing it. > > Signed-off-by: Vignesh Raghavendra Applied to u-boot-ti Thanks and regards, Lokesh

Re: [U-Boot] [PATCH] defconfig: k2x_hs: Remove DTB_RESELECT to fix DHCP issue

2020-02-26 Thread Lokesh Vutla
On 14/02/20 7:35 PM, Andrew F. Davis wrote: > From: Madan Srinivas > > This fixes the inadvertent definition of CONFIG_DTB_RESELECT and > CONFIG_MULTI_DTB_FIT in the K2x HS defconfigs, that happened as part of > a resync of the defconfigs. > > The inclusion of these config options causes

[GIT PULL] TI changes for v2020.04-rc4

2020-02-26 Thread Lokesh Vutla
Hi Tom, Please find the pull request for v2020.04-rc4 containing TI specific changes. Travis-CI build: https://travis-ci.org/lokeshvutla/u-boot/builds/655346045 Thanks and regards, Lokesh The following changes since commit 548ce227d3d852455c6395c0cec30af0cda77b09: Prepare v2020.04-rc3

Re: [PATCH v3][ 4/6] board: tbs2910: enable CONFIG_DISTRO_DEFAULTS

2020-02-26 Thread Denis 'GNUtoo' Carikli
On Mon, 10 Feb 2020 09:40:50 -0500 Tom Rini wrote: > That said, the "bring in PXE" part of DISTRO_DEFAULTS predates sysboot > being pulled out of the PXE code, where it was historically > introduced. I would like to see a patch to change this part, > stand-alone and CC'ing the distribution folks

[PATCH][v4 5/6] board: tbs2910: Enable distro_boot support.

2020-02-26 Thread Denis 'GNUtoo' Carikli
This keeps the compatibility with the old bootcmd. The fdtfile environment variable also needed to be set to imx6q-tbs2910.dtb to enable booting mainline kernels otherwise with extlinux.conf it tries to load mx6-tbs2910.dtb instead. With arm-linux-gnueabi-gcc 9.2.0-1 from the Parabola GNU/Linux

[PATCH][v4 6/6] board: tbs2910: add documentation

2020-02-26 Thread Denis 'GNUtoo' Carikli
This documents the u-boot installation procedure and the hardware in order to get started. Signed-off-by: Denis 'GNUtoo' Carikli --- doc/board/index.rst | 1 + doc/board/tbs/index.rst | 9 ++ doc/board/tbs/tbs2910.rst | 179 ++ 3 files changed,

[PATCH][v4 3/6] board: tbs2910: move CONFIG_BOOTCOMMAND from header to defconfig

2020-02-26 Thread Denis 'GNUtoo' Carikli
This doesn't affect the size of the image: with arm-linux-gnueabi-gcc 9.2.0-1 from the Parabola GNU/Linux distribution, the text, data, bss and total sizes remain unchanged. Signed-off-by: Denis 'GNUtoo' Carikli --- configs/tbs2910_defconfig | 2 ++ include/configs/tbs2910.h | 8 2

[PATCH][v4 4/6] board: tbs2910: enable CONFIG_DISTRO_DEFAULTS

2020-02-26 Thread Denis 'GNUtoo' Carikli
The side effect is that it increase the size of the resultimg image, which is already very close to the size limit. With arm-linux-gnueabi-gcc 9.2.0-1 from the Parabola GNU/Linux distribution, we have the following size increase: - text: 8744 bytes - data: 132 bytes - bss: 60 bytes - total: 8936

[PATCH][v4 2/6] board: tbs2910: disable CONFIG_GZIP

2020-02-26 Thread Denis 'GNUtoo' Carikli
As that the resulting image is already very close to the size limit, and that CONFIG_GZIP is not strictly required, removing it shouldn't hurt. With arm-linux-gnueabi-gcc 9.2.0-1 from the Parabola GNU/Linux distribution we have the following size reduction: - text: 9752 - data: 0 - bss: 16 -

[PATCH][v4 1/6] board: tbs2910: disable loadb and loads commands

2020-02-26 Thread Denis 'GNUtoo' Carikli
The loadb and loads commands are not needed for booting. There are also more reliable and faster alternatives to loadb and loads that can be used with the current configuration. As that the resulting image is already very close to the size limit, removing the loadb and loads commands shouldn't

Re: [PATCH 4/4] imx: pmic: Set proper pmic name for iMX53 HSC|DDC boards

2020-02-26 Thread Jaehoon Chung
On 2/26/20 8:37 PM, Lukasz Majewski wrote: > After the > commit 4213609cc7fb ("drivers: core: use strcmp when find device by name") > the exact DTS node name for PMIC device must be provided. > > This patch fixes this issue by providing full DTS node name ('mc34708@8'). > > Signed-off-by: Lukasz

sunxi: Pine A64 LTS crashes for make pine64-lts_defconfig + CONFIG_LOG

2020-02-26 Thread Heinrich Schuchardt
Hello Jagan, hello Maxime, when I try to enable additional options in .config for the Pine A64 LTS I end up in an endless loop returning into the ARM trusted firmware (ATF) and then SPL. Do you have an idea where to search? Do we run into an image size problem? Here is an example: make

Re: [PATCH 1/2] rpi: add an RPi Kconfig to configure size of initial page reservation

2020-02-26 Thread Kyle Evans
On Wed, Feb 26, 2020 at 3:38 PM wrote: > > From: Kyle Evans > > While the nearly-universal default for the Raspberry Pi family is to use > spin tables and the spin table implementation provided by the Raspberry Pi > Foundation, FreeBSD and others may use a PSCI implementation instead. > >

[PATCH 2/2] rpi: use the newly-added RPI_EFI_NR_SPIN_PAGES

2020-02-26 Thread kevans
From: Kyle Evans Some systems may use a slightly larger stub to do PSCI for booting the RPi family. The number of pages has been made configurable so that operating systems building U-Boot for use in these kinds of environments can reserve more memory in the EFI memory map. Signed-off-by: Kyle

[PATCH 1/2] rpi: Kconfig option for initial page reservation

2020-02-26 Thread kevans
From: Kyle Evans While the nearly-universal default for the Raspberry Pi family is to use spin tables and the spin table implementation provided by the Raspberry Pi Foundation, FreeBSD and others may use a PSCI implementation instead. Accommodate these setups by allowing them to configure for

[PATCH 1/2] rpi: add an RPi Kconfig to configure size of initial page reservation

2020-02-26 Thread kevans
From: Kyle Evans While the nearly-universal default for the Raspberry Pi family is to use spin tables and the spin table implementation provided by the Raspberry Pi Foundation, FreeBSD and others may use a PSCI implementation instead. Accommodate these setups by allowing them to configure for

[PATCH v5 5/6] test: log: test syslog logging driver

2020-02-26 Thread Heinrich Schuchardt
Provide unit tests for the syslog logging driver. Signed-off-by: Heinrich Schuchardt --- v5: no change v4: provide more comments move uts and expected to a common structure expect 'uboot:' not 'uboot[1]:' in syslog message v3: new patch ---

[PATCH v5 2/6] log: syslog driver

2020-02-26 Thread Heinrich Schuchardt
Provide a log driver that broadcasts RFC 3164 messages to syslog servers. rsyslog is one implementation of such a server. The messages are sent to the local broadcast address 255.255.255.255 on port 514. The environment variable log_hostname can be used to provide the HOSTNAME field for the

[PATCH v5 4/6] test: log functions with CONFIG_LOG=n

2020-02-26 Thread Heinrich Schuchardt
If CONFIG_LOG=n, we still expect output for log_err(), log_warning(), log_notice(), log_info() and in case of DEBUG=1 also for log_debug(). Provide unit tests verifying this. The tests depend on: CONFIG_CONSOLE_RECORD=y CONFIG_LOG=n CONFIG_UT_LOG=y It may be necessary

[PATCH v5 6/6] configs: sandbox: enable LOG_SYSLOG

2020-02-26 Thread Heinrich Schuchardt
For testing purposes enable the syslog logging driver. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- v5: no change v4: no change --- configs/sandbox64_defconfig| 1 + configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + 3

[PATCH v5 0/6] log: syslog logging driver

2020-02-26 Thread Heinrich Schuchardt
This patch series provides a logging driver to send syslog messages via UDP port 514 to a syslog server and a unit test for the syslog driver. For testing LOG_SYSLOG is enabled on the sandbox. For CONFIG_LOG=n a patch enables printf() or debug() output for log_* functions. A unit test for this

[PATCH v5 1/6] log: correct CONFIG_LOG_TEST prerequisites

2020-02-26 Thread Heinrich Schuchardt
An error undefined reference to `do_log_test' occurs for CONFIG_CMD_LOG=y, CONFIG_LOG_TEST=y, CONGIG_UNIT_TEST=n Make CONFIG_UNIT_TEST a prerequisite. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- v5: no change v4: no change --- common/Kconfig | 2

[PATCH v5 3/6] log: output for CONFIG_LOG=n

2020-02-26 Thread Heinrich Schuchardt
If CONFIG_LOG=n, we should still output errors, warnings, notices, infos, and for DEBUG=1 also debug messages. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- v5: no change v4: no change --- include/log.h | 10 +- 1 file changed, 5 insertions(+), 5

Re: [PATCH 1/1] drivers/rng: add Amlogic hardware RNG driver

2020-02-26 Thread Heinrich Schuchardt
On 2/26/20 8:32 PM, Sughosh Ganu wrote: On Wed, 26 Feb 2020 at 23:34, Heinrich Schuchardt mailto:xypron.g...@gmx.de>> wrote: On 2/26/20 11:51 AM, Sughosh Ganu wrote: > > On Tue, 25 Feb 2020 at 03:56, Heinrich Schuchardt mailto:xypron.g...@gmx.de> >

[PATCH] rk3399: Add four clocks to clock driver needed by framebuffer

2020-02-26 Thread Wolfram Joost
This patch adds the four clock gates - ACLK_VOP0 - ACLK_VOP1 - HCLK_VOP0 - HCLK_VOP1 to the rockchip rk3399 clock drivers. These clock gates were referenced by arch/arm/dts/rk3399.dtsi for vopb and vopl. The driver drivers/video/rockchip/rk3399_vop.c won't get probed without these clocks and

Re: [PATCH 1/1] drivers/rng: add Amlogic hardware RNG driver

2020-02-26 Thread Sughosh Ganu
On Wed, 26 Feb 2020 at 23:34, Heinrich Schuchardt wrote: > On 2/26/20 11:51 AM, Sughosh Ganu wrote: > > > > On Tue, 25 Feb 2020 at 03:56, Heinrich Schuchardt > > wrote: > > > > Add support for the hardware random number generator of Amlogic SOCs. > > > >

[PATCH 1/1] doc: driver-model: there is no UCLASS_ETHERNET

2020-02-26 Thread Heinrich Schuchardt
%s/UCLASS_ETHERNET/UCLASS_ETH/g Signed-off-by: Heinrich Schuchardt --- Resenct cc u-boot@lists.denx.de --- doc/driver-model/design.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/driver-model/design.rst b/doc/driver-model/design.rst index 5247ecc276..e37b51bf43

Re: [U-Boot-Custodians] RFC: Migration target date for DM_ETH

2020-02-26 Thread Heinrich Schuchardt
On 2/26/20 7:58 PM, Christophe Leroy wrote: Le 09/08/2019 à 08:30, Heinrich Schuchardt a écrit : Currently dozens of boards still do not use the driver model for the network devices. This makes integration between devices in the UEFI sub-system with the U-Boot devices complicated. See:

Re: [PATCH 1/1] include/ata.h: remove invalid links

2020-02-26 Thread Heinrich Schuchardt
On 2/26/20 5:05 AM, Tom Rini wrote: On Wed, Feb 26, 2020 at 04:57:51AM +0100, Heinrich Schuchardt wrote: On 2/25/20 10:30 PM, Tom Rini wrote: On Tue, Feb 25, 2020 at 10:04:53PM +0100, Heinrich Schuchardt wrote: Remove invalid URLs for "Information Technology - AT Attachment-3 Interface

Re: [U-Boot-Custodians] RFC: Migration target date for DM_ETH

2020-02-26 Thread Christophe Leroy
Le 09/08/2019 à 08:30, Heinrich Schuchardt a écrit : Currently dozens of boards still do not use the driver model for the network devices. This makes integration between devices in the UEFI sub-system with the U-Boot devices complicated. See:

Re: [PATCH] raspberrypi: reserve first two pages in efi memory map

2020-02-26 Thread Kyle Evans
On Wed, Feb 26, 2020 at 12:26 PM Kyle Evans wrote: > > On Wed, Feb 26, 2020 at 12:06 PM Matthias Brugger wrote: > > > > > > > > On 26/02/2020 15:03, kev...@freebsd.org wrote: > > > From: Kyle Evans > > > > > > The psci stub provided by Raspberry Pi is around 5k in size, thus residing > > > in

Pull request for UEFI sub-system for efi-2020-04-rc4

2020-02-26 Thread Heinrich Schuchardt
The following changes since commit 548ce227d3d852455c6395c0cec30af0cda77b09: Prepare v2020.04-rc3 (2020-02-26 07:53:20 -0500) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2020-04-rc4 for you to fetch changes up to

Re: [PATCH] raspberrypi: reserve first two pages in efi memory map

2020-02-26 Thread Kyle Evans
On Wed, Feb 26, 2020 at 12:06 PM Matthias Brugger wrote: > > > > On 26/02/2020 15:03, kev...@freebsd.org wrote: > > From: Kyle Evans > > > > The psci stub provided by Raspberry Pi is around 5k in size, thus residing > > in the first two pages of memory. Without this reservation, the next stage >

Re: [PATCH 03/18] clk: imx: clk-imxrt1050: setup PLL5 for video in non-SPL

2020-02-26 Thread Giulio Benetti
On 2/26/20 6:59 PM, Fabio Estevam wrote: Hi Giulio, On Wed, Feb 26, 2020 at 2:54 PM Giulio Benetti wrote: Yes, it's a good idea. Doing this I've taken this[1] as example. So I don't know where in u-boot PLLs are initialized according to a dts file, can you please provide me an example? I

Re: [PATCH] raspberrypi: reserve first two pages in efi memory map

2020-02-26 Thread Matthias Brugger
On 26/02/2020 15:03, kev...@freebsd.org wrote: > From: Kyle Evans > > The psci stub provided by Raspberry Pi is around 5k in size, thus residing > in the first two pages of memory. Without this reservation, the next stage > or OS assume they're free to use the second page and may get

Re: [PATCH 03/18] clk: imx: clk-imxrt1050: setup PLL5 for video in non-SPL

2020-02-26 Thread Fabio Estevam
Hi Giulio, On Wed, Feb 26, 2020 at 2:54 PM Giulio Benetti wrote: > Yes, it's a good idea. Doing this I've taken this[1] as example. > So I don't know where in u-boot PLLs are initialized according to a dts > file, can you please provide me an example? I will be happy to modify > this according

Re: [PATCH 1/1] drivers/rng: add Amlogic hardware RNG driver

2020-02-26 Thread Heinrich Schuchardt
On 2/26/20 11:51 AM, Sughosh Ganu wrote: On Tue, 25 Feb 2020 at 03:56, Heinrich Schuchardt mailto:xypron.g...@gmx.de>> wrote: Add support for the hardware random number generator of Amlogic SOCs. Signed-off-by: Heinrich Schuchardt mailto:xypron.g...@gmx.de>> ---  

[PATCH] configs: am335x_evm: Enable Fastboot

2020-02-26 Thread Sam Protsenko
This config option was present in am335x_boneblack_defconfig, but we have to use generic am335x_evm_defconfig now, as BBB defconfig was removed in commit 8fa7f65dd02c ("configs: Remove am335x_boneblack_defconfig"). So this patch merely brings that option back. Tested on BeagleBone Black: =>

Re: [PATCH 03/18] clk: imx: clk-imxrt1050: setup PLL5 for video in non-SPL

2020-02-26 Thread Giulio Benetti
Hi Fabio, On 2/26/20 6:37 PM, Fabio Estevam wrote: Hi Giulio, On Wed, Feb 26, 2020 at 2:16 PM Giulio Benetti wrote: mxsfb needs PLL5 as source, so let's setup it and set it as source for mxsfb(lcdif). Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-imxrt1050.c | 13 -

[PATCH] configs: am335x_evm: Enable DFU over TFTP support

2020-02-26 Thread Sam Protsenko
DFU over TFTP flashing method might be helpful in order to speed-up the flashing process of big images (as DFU works over USB EP0, which is quite slow). Also, it's a good backup option in the case when USB got broken (either in software or hardware), to avoid resorting to SD card boot. This

Re: [PATCH 00/18] i.MXRT1050 add LCDIF support

2020-02-26 Thread Giulio Benetti
Forgot to mention that this patchset needs this patch before: https://patchwork.ozlabs.org/patch/1232248/ -- Giulio Benetti Benetti Engineering sas On 2/26/20 6:15 PM, Giulio Benetti wrote: This patchset add support for LCDIF on i.MXRT1050 evk. This requires PLL5 to be setup, mxsfb needs to

Re: [PATCH 03/18] clk: imx: clk-imxrt1050: setup PLL5 for video in non-SPL

2020-02-26 Thread Fabio Estevam
Hi Giulio, On Wed, Feb 26, 2020 at 2:16 PM Giulio Benetti wrote: > > mxsfb needs PLL5 as source, so let's setup it and set it as source for > mxsfb(lcdif). > > Signed-off-by: Giulio Benetti > --- > drivers/clk/imx/clk-imxrt1050.c | 13 - > 1 file changed, 12 insertions(+), 1

[PATCH 16/18] arch: arm: dts: imxrt1050-evk: add lcdif node

2020-02-26 Thread Giulio Benetti
Add lcdif node and its pinctrl. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 57 ++ 1 file changed, 57 insertions(+) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt1050-evk.dts index 56b75986e2..f3e3baa6dc 100644 ---

[PATCH] configs: am335x_evm: Use default log level

2020-02-26 Thread Sam Protsenko
Commit 920e3343 ("configs: am335x_evm: Reduce size of SPL") reduces log level from 4 (default) to 3 in order to reduce SPL size. Arguably the disadvantages of such a decision outweigh the benefits: (+) reducing SPL footprint by 1 KiB, but even with loglevel=4 we still have 2 KiB of

[PATCH 17/18] configs: imxrt1050-evk: enable video support/console

2020-02-26 Thread Giulio Benetti
Enable DM_VIDEO subsystem and its BACKLIGHT_GPIO. Then enable SYS_WHITE_ON_BLACK to have classic black background on display. Need also to enable CONFIG_SYS_CONSOLE_ENV_OVERWRITE to retrieve stdin/stdout/stderr from CONFIG_EXTRA_ENV_SETTINGS. Signed-off-by: Giulio Benetti ---

[PATCH 18/18] configs: imxrt1050-evk: temporary disable DCACHE

2020-02-26 Thread Giulio Benetti
mxsfb needs a dcache function not implemented in cortex-M7, so for the moment let's keep dcache not enabled. Signed-off-by: Giulio Benetti --- configs/imxrt1050-evk_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/imxrt1050-evk_defconfig b/configs/imxrt1050-evk_defconfig

[PATCH 13/18] imxrt1050_evk: add 16bpp video support if video layer enabled

2020-02-26 Thread Giulio Benetti
i.MXRT1050 provides mxsfb compatible lcd controller, so let's enable video mxsfb driver with 16bpp depth if CONFIG_DM_VIDEO is selected since board has 16bpp only connection. Signed-off-by: Giulio Benetti --- include/configs/imxrt1050-evk.h | 15 +++ 1 file changed, 15 insertions(+)

[PATCH 14/18] ARM: dts: i.mxrt1050: add lcdif node

2020-02-26 Thread Giulio Benetti
Add lcdif node to SoC. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index b1d98e6feb..0123f4788c 100644 --- a/arch/arm/dts/imxrt1050.dtsi +++

[PATCH 08/18] video: mxsfb: refactor for using display_timings

2020-02-26 Thread Giulio Benetti
struct display_timings provides more informations such clock and DE polarity, so let's refactor the code to use struct display_timings instead of struct ctfb_res_modes, so we'll become able to get clock and DE polarity settings and set register according to them in the next patch. Signed-off-by:

[PATCH 15/18] ARM: dts: imxrt1050: allow this dtsi file to be compiled in Linux

2020-02-26 Thread Giulio Benetti
Linux doesn't provide skeleton.dtsi file so let's remove its include and provide #address-cells/size-cells = <1> that were defined in skeleton.dtsi before. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH 12/18] video: mxsfb: enable setting ENABLE negative polarity

2020-02-26 Thread Giulio Benetti
ENABLE signal can now be flipped by writing its bitmask on vdctrl0 register. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 648e1c22fe..8a5a61c9fb 100644 ---

[PATCH 07/18] video: mxsfb: add support for i.MXRT

2020-02-26 Thread Giulio Benetti
Add support for i.MXRT by adding CONFIG_IMXRT in register structure and adding .compatible = "fsl,imxrt-lcdif". Signed-off-by: Giulio Benetti --- arch/arm/include/asm/arch-imxrt/imx-regs.h | 6 ++ arch/arm/include/asm/mach-imx/regs-lcdif.h | 6 +++--- drivers/video/mxsfb.c

[PATCH 11/18] video: mxsfb: enable setting PIXDATA on negative edge

2020-02-26 Thread Giulio Benetti
DOTCLK signal can now be flipped by writing its bitmask on vdctrl0 register. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 4d33e24e1a..648e1c22fe 100644 ---

[PATCH 09/18] video: mxsfb: enable setting HSYNC negative polarity

2020-02-26 Thread Giulio Benetti
HSYNC signal can now be flipped according to display_flags bitmaks by writing its bitmask on vdctrl0 register. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/video/mxsfb.c

[PATCH 06/18] video: mxsfb: add support for DM CLK

2020-02-26 Thread Giulio Benetti
Allow using DM CLK instead of mxs_set_lcdclk() so we can avoid to implement a special function to set lcd clock on i.MXRT. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 30 +- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git

[PATCH 10/18] video: mxsfb: enable setting VSYNC negative polarity

2020-02-26 Thread Giulio Benetti
VSYNC signal can now be flipped by writing its bitmask on vdctrl0 register. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 9912cf3d82..4d33e24e1a 100644 --- a/drivers/video/mxsfb.c

[PATCH 03/18] clk: imx: clk-imxrt1050: setup PLL5 for video in non-SPL

2020-02-26 Thread Giulio Benetti
mxsfb needs PLL5 as source, so let's setup it and set it as source for mxsfb(lcdif). Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-imxrt1050.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imxrt1050.c

[PATCH 04/18] videomodes: add helper function to convert from ctfb to display_timing

2020-02-26 Thread Giulio Benetti
This function converts from "struct ctf_res_modes" to "struct display_timing". Signed-off-by: Giulio Benetti --- drivers/video/videomodes.c | 29 + drivers/video/videomodes.h | 3 +++ 2 files changed, 32 insertions(+) diff --git a/drivers/video/videomodes.c

[PATCH 00/18] i.MXRT1050 add LCDIF support

2020-02-26 Thread Giulio Benetti
This patchset add support for LCDIF on i.MXRT1050 evk. This requires PLL5 to be setup, mxsfb needs to use display_timing to retrieve if Lcd has inverted PIXCLOCK from dts. With this patchset applied we temporary loose DCache support until it will get implemented, since a function in mxsfb.c is

[PATCH 05/18] sunxi: display: use common video_ctfb_mode_to_display_timing()

2020-02-26 Thread Giulio Benetti
Since video_ctfb_mode_to_display_timing() has been implemented by moving sunxi_ctfb_mode_to_display_timing() to video_modes.c and it's meant to be used by other video subsystem, let's use it instead of local sunxi_ctfb_mode_to_display_timing(). Signed-off-by: Giulio Benetti ---

[PATCH 02/18] clk: imx: imxrt1050-clk: fix typo in clock name "video:"

2020-02-26 Thread Giulio Benetti
"video:" must be "video", ":" is a typo. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-imxrt1050.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imxrt1050.c b/drivers/clk/imx/clk-imxrt1050.c index 44ca52c013..e33d426363 100644 ---

[PATCH 01/18] clk: imx: pllv3: add enable_bit

2020-02-26 Thread Giulio Benetti
pllv3 PLLs have powerdown/up bits but enable bits too. Specifically "enable bit" enable the pll output, so when dis/enabling pll by setting/clearing power_bit we must also set/clear enable_bit. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 9 + 1 file changed, 9

Re: [ANN] U-Boot v2020.04-rc3 released

2020-02-26 Thread Andy Shevchenko
On Wed, Feb 26, 2020 at 5:27 PM Bin Meng wrote: > On Wed, Feb 26, 2020 at 11:01 PM Andy Shevchenko > wrote: > > On Wed, Feb 26, 2020 at 2:59 PM Tom Rini wrote: ... > > Still Edison doesn't boot (IIRC I saw Bin's PR which by some reason > > has not been pulled). > > > > Yes, it's currently in

Re: [ANN] U-Boot v2020.04-rc3 released

2020-02-26 Thread Andy Shevchenko
On Wed, Feb 26, 2020 at 5:57 PM Lukasz Majewski wrote: > > On Wed, Feb 26, 2020 at 05:01:29PM +0200, Andy Shevchenko wrote: > > > On Wed, Feb 26, 2020 at 2:59 PM Tom Rini > > > wrote: ... > > > Still Edison doesn't boot (IIRC I saw Bin's PR which by some reason > > > has not been pulled). > >

[cmd]:"env edit" vs "env set",do we need both options for "env" command ??

2020-02-26 Thread Adarsh Babu Kalepalli
Hi, Are'nt "env edit" vs "env set" redundant ??. "env edit" allows modification of the environment variable value in the next line,whereas "env set" requires the mention of the environment variable value in the same line. If the values for environment variables are not provided ,in either case

Re: [PATCH] watchdog: mpc8xx: Revert the 8xx watchdog back to CONFIG_HW_WATCHDOG

2020-02-26 Thread Christophe Leroy
Le 25/02/2020 à 17:40, Tom Rini a écrit : On Thu, Feb 20, 2020 at 07:39:51AM +, Christophe Leroy wrote: Commit f3729ba6e7b2 ("watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup") switched the watchdog to CONFIG_WATCHDOG. But this is not compatible with the 8xx because it starts

[PATCH] watchdog: Don't select CONFIG_WATCHDOG and CONFIG_HW_WATCHDOG at the same time

2020-02-26 Thread Christophe Leroy
Commit 06985289d452 ("watchdog: Implement generic watchdog_reset() version") introduced an automatic selection of CONFIG_WATCHDOG by CONFIG_WDT. But for boards selecting CONFIG_HW_WATCHDOG, like boards have a powerpc 8xx, CONFIG_WATCHDOG shall not be selected as they are mutually exclusive. Make

Re: [PATCH] usb: ehci: Fix "EHCI timed out on TD - token=XXXX" error on ehci-hcd

2020-02-26 Thread Tom Rini
On Wed, Feb 26, 2020 at 12:29:55PM +0100, Lukasz Majewski wrote: > This patch aims to improve robustness of 'usb' command operation on the > ehci-hcd IP block as it ports to contemporary U-Boot the patch described > and provided in [1] (originally applicable to U-Boot 2016.05). > > According to

Re: [ANN] U-Boot v2020.04-rc3 released

2020-02-26 Thread Lukasz Majewski
Hi Tom, > On Wed, Feb 26, 2020 at 05:01:29PM +0200, Andy Shevchenko wrote: > > On Wed, Feb 26, 2020 at 2:59 PM Tom Rini > > wrote: > > > > > > Hey all, > > > > > > It's two days late, but here is v2020.04-rc3. The series to add > > > htmldocs tests to CI that I added on Monday took longer

Re: [ANN] U-Boot v2020.04-rc3 released

2020-02-26 Thread Tom Rini
On Wed, Feb 26, 2020 at 05:01:29PM +0200, Andy Shevchenko wrote: > On Wed, Feb 26, 2020 at 2:59 PM Tom Rini wrote: > > > > Hey all, > > > > It's two days late, but here is v2020.04-rc3. The series to add > > htmldocs tests to CI that I added on Monday took longer than I had > > expected to go

Re: [PATCH 1/1] cmd: fat: remove unused includes

2020-02-26 Thread Simon Glass
On Tue, 25 Feb 2020 at 22:26, Heinrich Schuchardt wrote: > > Remove unused includes from cmd/fat.c. > > Signed-off-by: Heinrich Schuchardt > --- > cmd/fat.c | 6 -- > 1 file changed, 6 deletions(-) > Reviewed-by: Simon Glass

Re: [PATCH 1/1] README: replace reference to boards.cfg

2020-02-26 Thread Simon Glass
On Mon, 24 Feb 2020 at 10:36, Heinrich Schuchardt wrote: > > boards.cfg is not delivered with the U-Boot source. So it is preferable to > look at configs/*_defconfig to identify available deconfigs. > > Fix a typo. > > Signed-off-by: Heinrich Schuchardt > --- > README | 4 ++-- > 1 file

Re: [PATCH 1/1] Kconfig: fix typos in CMD_BEDBUG description

2020-02-26 Thread Simon Glass
On Tue, 25 Feb 2020 at 12:44, Heinrich Schuchardt wrote: > > Fix documentation bug reported by 'make refcheckdocs'. > > Signed-off-by: Heinrich Schuchardt > --- > cmd/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

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

2020-02-26 Thread Simon Glass
Hi Michal, On Tue, 18 Feb 2020 at 09:02, Michal Simek wrote: > > 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

Re: [PATCH 1/1] doc: fix references to driver-model

2020-02-26 Thread Simon Glass
On Tue, 25 Feb 2020 at 12:35, Heinrich Schuchardt wrote: > > Fix some errors pointed out by 'make refcheckdocs'. > > Signed-off-by: Heinrich Schuchardt > --- > doc/README.drivers.eth | 2 +- > doc/README.fdt-control | 2 +- > drivers/i2c/davinci_i2c.c | 2 +- > drivers/i2c/kona_i2c.c

Re: [U-Boot] [PATCH v2 08/10] bootstage: Correct relocation algorithm

2020-02-26 Thread Simon Glass
Hi Heinrich, On Sat, 25 Jan 2020 at 01:59, Heinrich Schuchardt wrote: > > On 10/22/19 1:26 AM, Simon Glass wrote: > > At present bootstage relocation assumes that it is possible to point back > > to memory available before relocation, so it does not relocate the > > strings. However this is not

Re: [PATCH 2/2] video: meson: Use reserving memory function without kernel linear mapping

2020-02-26 Thread Simon Glass
Hi Michae, On Mon, 24 Feb 2020 at 22:10, Michael Trimarchi wrote: > > Memory reserved for the simple framebuffer should not be used > and part of memory linear mapping. See > https://patchwork.kernel.org/patch/10486131/ for more detailed > background information and discussion. > >

Re: [PATCH] spl.h: make self-contained

2020-02-26 Thread Simon Glass
On Mon, 24 Feb 2020 at 10:26, Masahiro Yamada wrote: > > The static inline function spl_phase needs . > > Some functions take pointers to struct blk_desc or image_header. > Add forward declarations. > > Signed-off-by: Masahiro Yamada > --- > > include/spl.h | 4 > 1 file changed, 4

Re: [PATCH 1/2] common: fdt: Add a function for reserving memory without kernel linear mapping

2020-02-26 Thread Simon Glass
Hi Michael, On Mon, 24 Feb 2020 at 22:10, Michael Trimarchi wrote: > > The intent is to reserve memory _and_ prevent it from being included > in the kernel's linear map. For thos reason it is also necessary to include > the > 'no-map' property for this reserved-mem node. > > From

Re: [PATCH] dm: make uclass_find_first_device() return error when no defice is found

2020-02-26 Thread Simon Glass
Hi Masahiro, On Mon, 24 Feb 2020 at 23:58, Masahiro Yamada wrote: > > uclass_find_first_device() succeeds even if it cannot find any device. > So, the caller must check the return code and also *devp is not NULL. > > Returning -ENODEV will be sensible in this case. > > Signed-off-by: Masahiro

Re: [ANN] U-Boot v2020.04-rc3 released

2020-02-26 Thread Bin Meng
Hi Andy, On Wed, Feb 26, 2020 at 11:01 PM Andy Shevchenko wrote: > > On Wed, Feb 26, 2020 at 2:59 PM Tom Rini wrote: > > > > Hey all, > > > > It's two days late, but here is v2020.04-rc3. The series to add > > htmldocs tests to CI that I added on Monday took longer than I had > > expected to

Re: [PATCH 3/7] Kconfig: Escape variables to make in default strings

2020-02-26 Thread Tom Rini
On Wed, Feb 26, 2020 at 11:35:18AM +0900, Masahiro Yamada wrote: > On Tue, Feb 25, 2020 at 3:05 AM Tom Rini wrote: > > > > We have some variables that need to include a variable to pass to make > > to evaluate later, typically ARCH and BOARDDIR, to find a file to use. > > The way we're doing this

Re: [PATCH 4/7] Kconfig: Remove redundant variable sets

2020-02-26 Thread Tom Rini
On Wed, Feb 26, 2020 at 11:41:02AM +0900, Masahiro Yamada wrote: > On Tue, Feb 25, 2020 at 3:06 AM Tom Rini wrote: > > > > In a few places we have Kconfig entries that set SPL_LDSCRIPT to what is > > the default value anyways. Drop these. > > > > Cc: Michal Simek > > Cc: Rick Chen > > Cc:

Re: [ANN] U-Boot v2020.04-rc3 released

2020-02-26 Thread Andy Shevchenko
On Wed, Feb 26, 2020 at 2:59 PM Tom Rini wrote: > > Hey all, > > It's two days late, but here is v2020.04-rc3. The series to add > htmldocs tests to CI that I added on Monday took longer than I had > expected to go all green in CI. I was going to do this yesterday after > applying the fixes

Re: [PATCH v6 16/16] travis: add packages for UEFI secure boot test

2020-02-26 Thread Tom Rini
On Wed, Feb 26, 2020 at 01:54:48PM +0900, AKASHI Takahiro wrote: > Pytest for UEFI secure boot will use several host commands. > In particular, Test setup relies on efitools, whose version must be v1.5.2 > or later. So fetch a new version of deb package directly. > Please note it has a dependency

Re: [PATCH] efi_selftest: Ensure we include the object directory for generated headers

2020-02-26 Thread Tom Rini
On Wed, Feb 26, 2020 at 09:53:23AM +0900, Masahiro Yamada wrote: > Hi Tom, > > > On Sat, Feb 22, 2020 at 6:52 AM Tom Rini wrote: > > > > On Fri, Feb 21, 2020 at 10:34:01PM +0100, Heinrich Schuchardt wrote: > > > On 2/21/20 9:48 PM, Tom Rini wrote: > > > > The current rules for generating -I

[PATCH] raspberrypi: reserve first two pages in efi memory map

2020-02-26 Thread kevans
From: Kyle Evans The psci stub provided by Raspberry Pi is around 5k in size, thus residing in the first two pages of memory. Without this reservation, the next stage or OS assume they're free to use the second page and may get catastrophic results from clobbering it. Signed-off-by: Kyle Evans

[PATCH 03/15] spi: spi-mem: allow specifying whether an op is DTR or not

2020-02-26 Thread Pratyush Yadav
Each phase is given a separate 'is_dtr' field so mixed protocols like 4S-4D-4D can be supported. Signed-off-by: Pratyush Yadav --- drivers/spi/spi-mem.c | 24 include/spi-mem.h | 8 2 files changed, 32 insertions(+) diff --git a/drivers/spi/spi-mem.c

[PATCH 07/15] mtd: spi-nor-core: Add a ->setup() hook

2020-02-26 Thread Pratyush Yadav
nor->setup() can be used by flashes to configure settings in case they have any peculiarities that can't be easily expressed by the generic spi-nor framework. This includes things like different opcodes, dummy cycles, page size, uniform/non-uniform sector sizes, etc. Move related declarations to

[PATCH 10/15] mtd: spi-nor-core: Add support for DTR protocol

2020-02-26 Thread Pratyush Yadav
Double Transfer Rate (DTR) is SPI protocol in which data is transferred on each clock edge as opposed to on each clock cycle. Make framework-level changes to allow supporting flashes in DTR mode. Right now, mixed DTR modes are not supported. So, for example a mode like 4S-4D-4D will not work. All

[PATCH 02/15] spi: set mode bits for "spi-rx-dtr" and "spi-tx-dtr"

2020-02-26 Thread Pratyush Yadav
These two DT properties express DTR receive and transmit capabilities of a SPI flash and controller. Introduce two new mode bits: SPI_RX_DTR and SPI_TX_DTR which correspond to the new DT properties. Set these bits when the two corresponding properties are present in the device tree.

[ANN] U-Boot v2020.04-rc3 released

2020-02-26 Thread Tom Rini
Hey all, It's two days late, but here is v2020.04-rc3. The series to add htmldocs tests to CI that I added on Monday took longer than I had expected to go all green in CI. I was going to do this yesterday after applying the fixes that I pushed but got side-tracked, so here we are. Once again,

[PATCH 01/15] dt-bindings: spi: allow expressing DTR capability

2020-02-26 Thread Pratyush Yadav
Allow spi devices to express DTR receive and transmit capabilities via the properties "spi-rx-dtr" and "spi-tx-dtr". Signed-off-by: Pratyush Yadav --- Corresponding Kernel DT patch at https://lore.kernel.org/linux-mtd/20200226093703.19765-2-p.ya...@ti.com/

  1   2   >