Re: [U-Boot] [PATCH v2] sunxi: move CONFIG_SYS_TEXT_BASE out of defconfigs

2018-03-13 Thread Jagan Teki
On Sun, Mar 4, 2018 at 5:19 AM, Andre Przywara wrote: > Commit 278b90ce786f ("configs: Migrate CONFIG_SYS_TEXT_BASE") made > CONFIG_SYS_TEXT_BASE a proper Kconfig variable, with the consequence > of moving the common definition shared by almost every sunxi board > into 123

[U-Boot] [PATCH] efi_loader: Allow width smaller than buffer stride in efi_gop Blt()

2018-03-13 Thread Ivan Gorinov
Current implementation of Blt() in EFI_GRAPHICS_OUTPUT_PROTOCOL assumes the memory buffer stride (number of bytes in a row) always matches the rectangle Width, ignoring non-zero Delta. Signed-off-by: Ivan Gorinov --- lib/efi_loader/efi_gop.c | 10 -- 1 file

[U-Boot] [PATCH v3 0/7] add inital SF tests

2018-03-13 Thread Liam Beguin
Hi all, This is the inital step to adding tests for the SF subsystem plus very minor fixes. It is based on work I found on the mailing list[1]. For now, it doesn't do much but I plan on adding code to reset the flash to its initial state (based on an env flag) and more code to test the `sf

[U-Boot] [PATCH v3 7/7] test/py: add spi_flash tests

2018-03-13 Thread Liam Beguin
Add basic tests for the spi_flash subsystem. Signed-off-by: Liam Beguin --- test/py/tests/test_sf.py | 217 +++ 1 file changed, 217 insertions(+) create mode 100644 test/py/tests/test_sf.py diff --git a/test/py/tests/test_sf.py

[U-Boot] [PATCH v3 1/7] spi: spi_flash: do not fail silently on bad user input

2018-03-13 Thread Liam Beguin
Make sure the user is notified instead of silently returning an error. Signed-off-by: Liam Beguin --- drivers/mtd/spi/spi_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index

[U-Boot] [PATCH v3 2/7] cmd: sf: fix map_physmem check

2018-03-13 Thread Liam Beguin
Make sure 0x00 is a valid address to read to. If `addr` is 0x00 then map_physmem() will return 0 which should be a valid address. Signed-off-by: Liam Beguin --- cmd/sf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sf.c b/cmd/sf.c index

[U-Boot] [PATCH v3 5/7] test/py: do not import pytest multiple times

2018-03-13 Thread Liam Beguin
Signed-off-by: Liam Beguin --- test/py/u_boot_utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/test/py/u_boot_utils.py b/test/py/u_boot_utils.py index 9acb92ddc448..64584494e463 100644 --- a/test/py/u_boot_utils.py +++ b/test/py/u_boot_utils.py @@ -11,7 +11,6 @@

[U-Boot] [PATCH v3 6/7] test/py: add generic CRC32 function

2018-03-13 Thread Liam Beguin
Add a generic function which can be used to compute the CRC32 value of a region of RAM. Signed-off-by: Liam Beguin --- test/py/u_boot_utils.py | 23 +++ 1 file changed, 23 insertions(+) diff --git a/test/py/u_boot_utils.py b/test/py/u_boot_utils.py

[U-Boot] [PATCH v3 3/7] test/py: README: fix typo

2018-03-13 Thread Liam Beguin
Fix a minor typo causing vim (and possibly other) to get confused with coloring. Signed-off-by: Liam Beguin --- test/py/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/README.md b/test/py/README.md index eefac377567a..000afce93c4a

[U-Boot] [PATCH v4 14/19] sunxi: DT: update device tree files for Allwinner H3 and H5 SoCs

2018-03-13 Thread Andre Przywara
Update the device tree files from the Linux tree as of: commit 776245ae02f63ba2b94596b892c597676e190e78 Author: Corentin Labbe Date: Tue Oct 31 09:19:11 2017 +0100 ARM: dts: sunxi: h3/h5: represent the mdio switch used by sun8i-h3-emac Since the H3 and H5 are

[U-Boot] [PATCH v4 13/19] sunxi: DT: A64: update board .dts files from Linux

2018-03-13 Thread Andre Przywara
Update the .dts files for the various boards with an Allwinner A64 SoC. This is as of v4.15-rc9, exactly Linux commit: commit bdfe4cebea11476d278b1b98dd0f7cdac8269d62 Author: Icenowy Zheng Date: Fri Nov 10 17:26:54 2017 +0800 arm64: allwinner: a64: add Ethernet PHY

[U-Boot] [PATCH v4 15/19] sunxi: DT: H5: update board .dts files from Linux

2018-03-13 Thread Andre Przywara
Update the .dts file for the various boards with an Allwinner H5 SoC. This is as of v4.15-rc9, exactly Linux commit: commit f88e9301948173dd35afad4a6939092c7f269aed Author: Sergey Matyukevich Date: Fri Nov 3 22:58:54 2017 +0300 arm64: dts: orange-pi-zero-plus2: fix

[U-Boot] [PATCH v3 4/7] test/py: README: add HOSTNAME to PYTHONPATH

2018-03-13 Thread Liam Beguin
As opposed to PATH, HOSTNAME is not appended to PYTHONPATH automatically. Lets add it to the examples to make it more obvious to new users. Signed-off-by: Liam Beguin --- test/py/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v4 18/19] sunxi: DT: H2+: update Opi-zero .dts

2018-03-13 Thread Andre Przywara
Update the .dts file for the OrangePi Zero board, using the H2+ SoC. This is as of v4.15-rc9, exactly Linux commit: commit 4904337fe34fa7fc529d6f4d9ee8b96fe7db310a Author: Corentin Labbe Date: Tue Oct 31 09:19:12 2017 +0100 ARM: dts: sunxi: Restore EMAC changes

[U-Boot] [PATCH v4 19/19] sunxi: DT: A64: add proper SoPine baseboard device tree

2018-03-13 Thread Andre Przywara
When the defconfig for the SoPine baseboard was added, there wasn't any proper DT for the board yet, so we used the Pine64 DT as a placeholder. Copy the DT file(s) meanwhile added in Linux over to U-Boot, and use them in our defconfig. Signed-off-by: Andre Przywara

[U-Boot] [PATCH v4 08/19] net: sun8i-emac: remove support for old binding

2018-03-13 Thread Andre Przywara
The original DT binding used by U-Boot's sun8i-emac driver was not really agreed upon, and deviated from the "official" binding now used by the kernel. Since now all U-Boot users have been converted to the new binding, we can remove support for the old DT nodes from the driver. Signed-off-by:

[U-Boot] [PATCH v4 12/19] sunxi: DT: A64: update device tree file for Allwinner A64 SoC

2018-03-13 Thread Andre Przywara
Updates the device tree file from the the Linux tree as of v4.15-rc9, exactly Linux commit: commit 16416084e06e1ebff51a9e7721a8cc4ccc186f28 Author: Corentin Labbe Date: Tue Oct 31 09:19:15 2017 +0100 arm64: dts: allwinner: add snps,dwmac-mdio compatible to

[U-Boot] [PATCH v4 17/19] sunxi: DT: H3: update libre-cc board .dts file

2018-03-13 Thread Andre Przywara
Update the board DT file to match the updated h3.dtsi base. This file is not (yet?) in Linux, so we can't update from there directly. Signed-off-by: Andre Przywara Acked-by: Maxime Ripard --- arch/arm/dts/sun8i-h3-libretech-all-h3-cc.dts | 8

[U-Boot] [PATCH v4 11/19] Revert "sunxi: Pine64: temporarily remove extra Pine64 non-plus DT"

2018-03-13 Thread Andre Przywara
Now with the MMC environment gone, we have enough space to accomodate the Pine64 "non-plus" .dtb again. This reverts commit 47952b8e42c2790150e16d3d4235b3a1ee0ba9bb. Signed-off-by: Andre Przywara --- configs/pine64_plus_defconfig | 1 + 1 file changed, 1 insertion(+)

[U-Boot] [PATCH v4 03/19] net: sun8i-emac: support new pinctrl DT bindings

2018-03-13 Thread Andre Przywara
The Linux kernel driver for the Allwinner pin controller gained support for generic properties, which are now also used in the DTs. The sun8i-emac Ethernet driver for new Allwinner MACs reads the pins from the DT, but so far only supported the old binding. Update the parsing routine to cope with

[U-Boot] [PATCH v4 07/19] arm: dts: sunxi: update H5 to new EMAC binding

2018-03-13 Thread Andre Przywara
The U-Boot driver for the sun8i-emac was using some preliminary DT binding. Now since Linux got its own driver in v4.15 and our driver can now cope with both bindings, let's convert the DT nodes used by the OrangePi PC2 over to the new bindings used by the kernel. Signed-off-by: Andre Przywara

[U-Boot] [PATCH v4 10/19] sunxi: revert disabling of features

2018-03-13 Thread Andre Przywara
In January some commits were introduced to mitigate the U-Boot image size issues we encountered on sunxi builds. Now with the MMC environment removed we can bring them back, as we practically don't have a size limit anymore. Signed-off-by: Andre Przywara Acked-by: Maxime

[U-Boot] [PATCH v4 16/19] sunxi: DT: H3: update board .dts files from Linux

2018-03-13 Thread Andre Przywara
Update the .dts file for the various boards with an Allwinner H3 SoC. This is as of v4.15-rc9, exactly Linux commit: commit 4904337fe34fa7fc529d6f4d9ee8b96fe7db310a Author: Corentin Labbe Date: Tue Oct 31 09:19:12 2017 +0100 ARM: dts: sunxi: Restore EMAC changes

[U-Boot] [PATCH v4 04/19] net: sun8i-emac: add support for new EMAC DT binding

2018-03-13 Thread Andre Przywara
The Ethernet MAC used in newer Allwinner SoCs (H3, A64, H5) got an upstream Linux driver in v4.15. This one uses a slightly different binding from the original one used by the U-Boot driver. The differences to the old binding are: - The "syscon" address is held in a separate node, referenced via a

[U-Boot] [PATCH v4 05/19] arm: dts: sunxi: update A64 to new EMAC binding

2018-03-13 Thread Andre Przywara
The U-Boot driver for the sun8i-emac was using some preliminary DT binding. Now since Linux got its own driver in v4.15 and our driver can now cope with both bindings, let's convert the DT nodes used for the Pine64+ board over to the new bindings used by the kernel. Signed-off-by: Andre Przywara

[U-Boot] [PATCH v4 06/19] arm: dts: sunxi: update H3 to new EMAC binding

2018-03-13 Thread Andre Przywara
The U-Boot driver for the sun8i-emac was using some preliminary DT binding. Now since Linux got its own driver in v4.15 and our driver can now cope with both bindings, let's convert the DT nodes used by the various H3 boards over to the new bindings used by the kernel. Signed-off-by: Andre

[U-Boot] [PATCH v4 09/19] sunxi: disable direct MMC environment

2018-03-13 Thread Andre Przywara
Since the dawn of time for the Allwinner support in mainline U-Boot we store the environment to the SD card and write directly at 544KB from the beginning of the device. This leads to problems when the U-Boot proper image grows beyond 504KB and eventually overlaps. With one release of having the

[U-Boot] [PATCH v4 01/19] sunxi: README.sunxi64: Add hint about non-debug of ARM Trusted Firmware

2018-03-13 Thread Andre Przywara
As we are running into issues where the final U-Boot FIT image file is exceeding our size limit, add a hint to the README.sunxi64 file to point out the possibility of building non-debug versions of the ATF binary. These are about 12KB smaller than the standard debug build, and so allow successful

[U-Boot] [PATCH v4 02/19] sunxi: gpio: add missing compatible strings

2018-03-13 Thread Andre Przywara
The sunxi GPIO driver is missing some compatible strings for recent SoCs. While most of the sunxi GPIO code seems to not rely on this (and so works anyway), the sunxi_name_to_gpio() function does and fails at the moment (for instance when resolving the MMC CD pin name). Add the compatible strings

[U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-03-13 Thread Andre Przywara
A minor update to the v3 version sent earlier this month. I reworked patch 09 to drop the direct MMC environment for 32-bit Allwinner boards as well and keep the current MMC offset. For now I also dropped the two patches changing (back) the MMC regulator. I still believe they are good to have and

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

2018-03-13 Thread Tom Rini
On Tue, Mar 13, 2018 at 11:22:28PM +0100, Dr. Philipp Tomsich wrote: > Tom, > > Please pull the following changes (rebased from what was previously our > next-branch) from u-boot-rockchip/master. > The respective run on TravisCI is >

Re: [U-Boot] Please pull u-boot-video/next

2018-03-13 Thread Tom Rini
On Tue, Mar 13, 2018 at 10:31:58PM +0100, Anatolij Gustschin wrote: > Hi Tom, > > The following changes since commit 5e62f828256d66e2b28def4f9ef20a2a05c2d04f: > > Prepare v2018.03-rc4 (2018-03-05 20:27:08 -0500) > > are available in the git repository at: > >

Re: [U-Boot] [PATCH v2 7/7] test/py: add spi_flash tests

2018-03-13 Thread Liam Beguin
Hi Stephen, On 13 March 2018 at 17:41, Stephen Warren wrote: > On 03/04/2018 09:22 PM, Liam Beguin wrote: >> >> Add basic tests for the spi_flash subsystem. > > > Looks good. A few small issues: > >> +def sf_prepare(u_boot_console, env__sf_config): > > ... >> >> +speed

Re: [U-Boot] [PATCH 3/3] test/py: add spi_flash tests

2018-03-13 Thread Liam Beguin
Hi Stephen, On Tue, 13 Mar 2018 at 17:22 Stephen Warren wrote: > On 03/03/2018 09:32 AM, Liam Beguin wrote: > > On 1 March 2018 at 16:56, Stephen Warren wrote: > >> On 02/26/2018 09:17 PM, Liam Beguin wrote: > >>> > >>> Add basic tests for the

Re: [U-Boot] [PATCH 1/2] test/py: add MMC/SD block read test

2018-03-13 Thread Tom Rini
On Tue, Mar 13, 2018 at 03:44:31PM -0600, Stephen Warren wrote: > On 02/20/2018 12:51 PM, Stephen Warren wrote: > >From: Stephen Warren > > > >Add a standalone MMC block read test. This allows direct testing of MMC > >access rather than relying on doing so as a side-effect of

Re: [U-Boot] [PATCH v3 00/10] splash screen on the stm32f769 disco board

2018-03-13 Thread Thierry Reding
On Tue, Mar 13, 2018 at 04:23:10PM +0100, Daniel Vetter wrote: > On Tue, Mar 13, 2018 at 02:49:59PM +0100, yannick fertre wrote: > > Version 3: > > - Replace some pr_error, pr_warn or pr_info by dev_error, dev_warn & > > dev_info. > > - Refresh stm32f769-disco_defconfig with last modification

[U-Boot] [PULL] Please pull u-boot-rockchip

2018-03-13 Thread Dr. Philipp Tomsich
Tom, Please pull the following changes (rebased from what was previously our next-branch) from u-boot-rockchip/master. The respective run on TravisCI is https://travis-ci.org/ptomsich/u-boot-rockchip/builds/352948410. Thanks, Philipp. The following changes since commit

Re: [U-Boot] [PATCH 1/2] test/py: add MMC/SD block read test

2018-03-13 Thread Stephen Warren
On 02/20/2018 12:51 PM, Stephen Warren wrote: From: Stephen Warren Add a standalone MMC block read test. This allows direct testing of MMC access rather than relying on doing so as a side-effect of e.g. DFU or UMS testing, which may not be enabled on all platforms. I

Re: [U-Boot] [PATCH v2 7/7] test/py: add spi_flash tests

2018-03-13 Thread Stephen Warren
On 03/04/2018 09:22 PM, Liam Beguin wrote: Add basic tests for the spi_flash subsystem. Looks good. A few small issues: +def sf_prepare(u_boot_console, env__sf_config): ... +speed = env__sf_config.get('speed', 0) +if isinstance(speed, list) and len(speed) == 2: +

[U-Boot] Please pull u-boot-video/next

2018-03-13 Thread Anatolij Gustschin
Hi Tom, The following changes since commit 5e62f828256d66e2b28def4f9ef20a2a05c2d04f: Prepare v2018.03-rc4 (2018-03-05 20:27:08 -0500) are available in the git repository at: git://git.denx.de/u-boot-video.git next for you to fetch changes up to d06717f853cd98a6a4536e5de5248e6c99a2b7bc:

Re: [U-Boot] [PATCH v2 6/7] test/py: add generic CRC32 function

2018-03-13 Thread Stephen Warren
On 03/04/2018 09:22 PM, Liam Beguin wrote: Add a generic function which can be used to compute the CRC32 value of a region of RAM. Patches 1-6, Reviewed-by: Stephen Warren ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 3/3] test/py: add spi_flash tests

2018-03-13 Thread Stephen Warren
On 03/03/2018 09:32 AM, Liam Beguin wrote: On 1 March 2018 at 16:56, Stephen Warren wrote: On 02/26/2018 09:17 PM, Liam Beguin wrote: Add basic tests for the spi_flash subsystem. diff --git a/test/py/tests/test_sf.py b/test/py/tests/test_sf.py +import re

Re: [U-Boot] [PATCH 1/2] ARM: dts: zynq: Update dts for Z-turn board

2018-03-13 Thread Alexander Graf
On 13.03.18 21:35, tos...@gmail.com wrote: > From: Anton Gerasimov > > Delete devices implemented in PL, stylistic changes. > > Signed-off-by: Anton Gerasimov > --- > arch/arm/dts/zynq-zturn-myir.dts | 64 > > 1

Re: [U-Boot] [PATCH v3 00/10] splash screen on the stm32f769 disco board

2018-03-13 Thread Brian Norris
On Tue, Mar 13, 2018 at 1:50 PM, Anatolij Gustschin wrote: > On Tue, 13 Mar 2018 16:23:10 +0100 > Daniel Vetter dan...@ffwll.ch wrote: > ... >> Shouldn't we patch the drivers/gpu/drm/stm driver instead of the >> drivers/video one? fbdev is kinda a dead end and not for adding new hw

[U-Boot] [PATCH 2/2] ARM: dts: zynq: Rename dts for Z-turn board

2018-03-13 Thread tossel
From: Anton Gerasimov Makes naming in line with other Zynq boards. Signed-off-by: Anton Gerasimov --- arch/arm/dts/Makefile| 2 +- arch/arm/dts/{zynq-zturn-myir.dts => zynq-zturn.dts} | 0 2 files changed, 1 insertion(+), 1

[U-Boot] [PATCH 1/2] ARM: dts: zynq: Update dts for Z-turn board

2018-03-13 Thread tossel
From: Anton Gerasimov Delete devices implemented in PL, stylistic changes. Signed-off-by: Anton Gerasimov --- arch/arm/dts/zynq-zturn-myir.dts | 64 1 file changed, 13 insertions(+), 51 deletions(-) diff --git

[U-Boot] [PATCH 0/2] Changes to Z-turn dts

2018-03-13 Thread tossel
From: Anton Gerasimov A device tree for MYIR Z-turn board was recently (almost) merged to Linux kernel and a few issues arised in the review process. The issues are fixed by the patches below. The dts is still not exactly the same as one in Linux because of

Re: [U-Boot] [PATCH v3 00/10] splash screen on the stm32f769 disco board

2018-03-13 Thread Anatolij Gustschin
On Tue, 13 Mar 2018 16:23:10 +0100 Daniel Vetter dan...@ffwll.ch wrote: ... > Shouldn't we patch the drivers/gpu/drm/stm driver instead of the > drivers/video one? fbdev is kinda a dead end and not for adding new hw > support ... this patch series adds display driver to U-Boot project, I don't

Re: [U-Boot] [PATCH 1/1] configs: sunxi: enable BLK, DM_MMC for Bananapi

2018-03-13 Thread Heinrich Schuchardt
On 03/13/2018 07:41 PM, Maxime Ripard wrote: > Hi, > > On Tue, Mar 13, 2018 at 06:37:23PM +0100, Heinrich Schuchardt wrote: >> doc/driver-model/MIGRATION.txt requires to move block drivers to the >> the driver model by v2018.05 >> >> So make the switch for the Bananapi block drivers. >> >>

Re: [U-Boot] [PATCH][Boards Need to Switch DM] spi: atmel: Full dm conversion

2018-03-13 Thread Jagan Teki
On Tue, Mar 13, 2018 at 10:57 AM, Wenyou Yang wrote: > On 3/7/2018 1:51 PM, Jagan Teki wrote: >> >> atmel_spi now support dt along with platform data, >> respective boards need to switch into dm for the same. >> >> Signed-off-by: Jagan Teki >> ---

Re: [U-Boot] [PATCH 1/1] configs: sunxi: enable BLK, DM_MMC for Bananapi

2018-03-13 Thread Maxime Ripard
Hi, On Tue, Mar 13, 2018 at 06:37:23PM +0100, Heinrich Schuchardt wrote: > doc/driver-model/MIGRATION.txt requires to move block drivers to the > the driver model by v2018.05 > > So make the switch for the Bananapi block drivers. > > Signed-off-by: Heinrich Schuchardt > ---

Re: [U-Boot] [uboot-snps-arc] Re: [PATCH 1/2] SPI Flash: add support of sst26wf* flash series

2018-03-13 Thread Eugeniy Paltsev
Hi Jagan, On Tue, 2018-03-13 at 22:11 +0530, Jagan Teki wrote: > On Tue, Feb 6, 2018 at 8:45 PM, Eugeniy Paltsev > wrote: > > sst26wf flash series block protection implementation differs > > from other SST series, so add implementation for sst26wf > >

[U-Boot] [PATCH 1/1] configs: sunxi: enable BLK, DM_MMC for Bananapi

2018-03-13 Thread Heinrich Schuchardt
doc/driver-model/MIGRATION.txt requires to move block drivers to the the driver model by v2018.05 So make the switch for the Bananapi block drivers. Signed-off-by: Heinrich Schuchardt --- This patch depends on mmc: sunxi: support cd-inverted

Re: [U-Boot] [PATCH v2 3/3] sunxi: Add A20-SOM204-EVB-eMMC board

2018-03-13 Thread Jagan Teki
On Fri, Feb 2, 2018 at 7:26 PM, Stefan Mavrodiev wrote: > A20-SOM204 board has option with onboard 16GB eMMC. The chip is wired > to MMC2 slot. > > This patch adds defconfig and dts files for this board. The dts is same > with mainline kernel. > > Signed-off-by: Stefan

Re: [U-Boot] [PATCH v2 2/3] sunxi: Add A20-SOM204-EVB board

2018-03-13 Thread Jagan Teki
On Fri, Feb 2, 2018 at 7:26 PM, Stefan Mavrodiev wrote: > This is new System-On-Module platform with universal dimm socket for > easy insertation. The EVB board is designed to be universal with > future modules. > > Base features of A20-SOM204 board includes: > * 1GB

Re: [U-Boot] [PATCH v2 1/3] Move CONFIG_PHY_ADDR to Kconfig

2018-03-13 Thread Jagan Teki
On Fri, Feb 2, 2018 at 7:23 PM, Stefan Mavrodiev wrote: > CONFIG_PHY_ADDR is used for old-style configuration. This makes > impossible changing the PHY address, if multiple boards share a same > config header file (for example include/configs/sunxi-common.h). > > Moving this to

[U-Boot] [PATCH v6 10/10] bootm: optee: Add a bootm command for type IH_OS_TEE

2018-03-13 Thread Bryan O'Donoghue
This patch makes it possible to verify the contents and location of an OPTEE image in DRAM prior to handing off control to that image. If image verification fails we won't try to boot any further. Signed-off-by: Bryan O'Donoghue Suggested-by: Andrew F. Davis

[U-Boot] [PATCH v6 04/10] optee: Add CONFIG_OPTEE_LOAD_ADDR

2018-03-13 Thread Bryan O'Donoghue
CONFIG_OPTEE_LOAD_ADDR is used to tell u-boot where to load the OPTEE binary into memory prior to handing off control to OPTEE. We need to pull this value out of u-boot in order to produce an IMX IVT/CSF signed pair for the purposes of secure boot. The best way to do that is to have

[U-Boot] [PATCH v6 05/10] optee: Add optee_image_get_entry_point()

2018-03-13 Thread Bryan O'Donoghue
Add a helper function for extracting the least significant 32 bits from the OPTEE entry point address, which will be good enough to load OPTEE binaries up to (2^32)-1 bytes. We may need to extend this out later on but for now (2^32)-1 should be fine. Signed-off-by: Bryan O'Donoghue

[U-Boot] [PATCH v6 03/10] optee: Add CONFIG_OPTEE_TZDRAM_BASE

2018-03-13 Thread Bryan O'Donoghue
OPTEE is currently linked to a specific area of memory called the TrustZone DRAM. This patch adds a CONFIG entry for the default address of TrustZone DRAM that a board-port can over-ride. The region that U-Boot sets aside for the OPTEE run-time should be verified before attempting to hand off to

[U-Boot] [PATCH v6 07/10] optee: Add optee_verify_bootm_image()

2018-03-13 Thread Bryan O'Donoghue
This patch adds optee_verify_bootm_image() which will be subsequently used to verify the parameters encoded in the OPTEE header match the memory allocated to the OPTEE region, OPTEE header magic and version prior to handing off control to the OPTEE image. Signed-off-by: Bryan O'Donoghue

[U-Boot] [PATCH v6 06/10] optee: Add optee_image_get_load_addr()

2018-03-13 Thread Bryan O'Donoghue
This patch adds optee_image_get_load_addr() a helper function used to calculate the load-address of an OPTEE image based on the lower entry-point address given in the OPTEE header. Signed-off-by: Bryan O'Donoghue Cc: Harinarayan Bhatta Cc: Andrew

[U-Boot] [PATCH v6 09/10] image: Add IH_OS_TEE for TEE chain-load boot

2018-03-13 Thread Bryan O'Donoghue
This patch adds a new type IH_OS_TEE. This new OS type will be used for chain-loading to Linux via a TEE. With this patch in-place you can generate a bootable OPTEE image like this: mkimage -A arm -T kernel -O tee -C none -d tee.bin uTee.optee where "tee.bin" is the input binary prefixed with

[U-Boot] [PATCH v6 08/10] optee: Add error printout

2018-03-13 Thread Bryan O'Donoghue
When encountering an error in OPTEE verification print out various details of the OPTEE header to aid in further debugging of encountered errors. Signed-off-by: Bryan O'Donoghue Cc: Harinarayan Bhatta Cc: Andrew F. Davis Cc: Tom Rini

[U-Boot] [PATCH v6 01/10] optee: Add lib entries for sharing OPTEE code across ports

2018-03-13 Thread Bryan O'Donoghue
This patch adds code to lib to enable sharing of useful OPTEE code between board-ports and architectures. The code on lib/optee/optee.c comes from the TI omap2 port. Eventually the OMAP2 code will be patched to include the shared code. The intention here is to add more useful OPTEE specific code

[U-Boot] [PATCH v6 02/10] optee: Add CONFIG_OPTEE_TZDRAM_SIZE

2018-03-13 Thread Bryan O'Donoghue
OPTEE is currently linked to a specific area of memory called the TrustZone DRAM. This patch adds a CONFIG entry for the default size of TrustZone DRAM that a board-port can over-ride. The region that U-Boot sets aside for the OPTEE run-time should be verified before attempting to hand off to the

[U-Boot] [PATCH v6 00/10] Add new OPTEE bootm support to u-boot

2018-03-13 Thread Bryan O'Donoghue
v6: - Fix CONFIG_BOOTM_TEE Manually editing .config file meant this disparity was missed. "Those whom the gods wish to destroy they first make mad" v5: This patchset now works by making a bootable OPTEE image mkimage -A arm -T kernel -O tee -C none -d tee.bin uTee.optee The concept is the

Re: [U-Boot] [PATCH 1/2] SPI Flash: add support of sst26wf* flash series

2018-03-13 Thread Jagan Teki
On Tue, Feb 6, 2018 at 8:45 PM, Eugeniy Paltsev wrote: > sst26wf flash series block protection implementation differs > from other SST series, so add implementation for sst26wf > lock/unlock/is_locked functions. How it is different from existing SST implementation,

[U-Boot] [PATCH v3 00/10] splash screen on the stm32f769 disco board

2018-03-13 Thread yannick fertre
Version 3: - Replace some pr_error, pr_warn or pr_info by dev_error, dev_warn & dev_info. - Refresh stm32f769-disco_defconfig with last modification done on v2018.3-rc4. - rework include files ordering. Version 2: - Replace debug log by pr_error, pr_warn or pr_info. - Rework bridge between ltdc &

[U-Boot] [PATCH v3 04/10] otm

2018-03-13 Thread yannick fertre
--- drivers/video/orisetech_otm8009a.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/video/orisetech_otm8009a.c b/drivers/video/orisetech_otm8009a.c index 81b11d7..aa8139a 100644 --- a/drivers/video/orisetech_otm8009a.c +++ b/drivers/video/orisetech_otm8009a.c @@

[U-Boot] [PATCH v3 10/10] board: Add STM32F769 SoC, discovery board support

2018-03-13 Thread yannick fertre
Signed-off-by: yannick fertre --- configs/stm32f769-disco_defconfig | 65 +++ 1 file changed, 65 insertions(+) create mode 100644 configs/stm32f769-disco_defconfig diff --git a/configs/stm32f769-disco_defconfig

[U-Boot] [PATCH v3 02/10] video: stm32: stm32_ltdc: update debug log

2018-03-13 Thread yannick fertre
Replace macro debug by pr_error, pr_warn or pr_info. Signed-off-by: yannick fertre --- drivers/video/stm32/stm32_ltdc.c | 67 ++-- 1 file changed, 30 insertions(+), 37 deletions(-) diff --git a/drivers/video/stm32/stm32_ltdc.c

[U-Boot] [PATCH v3 09/10] arm: dts: stm32: add display for STM32F769 disco board

2018-03-13 Thread yannick fertre
Enable the display controller, mipi dsi bridge & panel. Set panel display timings. Signed-off-by: yannick fertre --- arch/arm/dts/stm32f769-disco.dts | 71 1 file changed, 71 insertions(+) diff --git

Re: [U-Boot] [PATCH v3 00/10] splash screen on the stm32f769 disco board

2018-03-13 Thread Daniel Vetter
On Tue, Mar 13, 2018 at 02:49:59PM +0100, yannick fertre wrote: > Version 3: > - Replace some pr_error, pr_warn or pr_info by dev_error, dev_warn & dev_info. > - Refresh stm32f769-disco_defconfig with last modification done on > v2018.3-rc4. > - rework include files ordering. > > Version 2: > -

[U-Boot] [PATCH v3 08/10] arm: dts: stm32: add dsi for STM32F746

2018-03-13 Thread yannick fertre
Add mipi dsi bridge node in device-tree. Signed-off-by: yannick fertre --- arch/arm/dts/stm32f746.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/stm32f746.dtsi b/arch/arm/dts/stm32f746.dtsi index 8581df9..3b8af67 100644 ---

[U-Boot] [PATCH v3 06/10] video: add support of STM32 MIPI DSI controller driver

2018-03-13 Thread yannick fertre
Add the STM32 DSI controller driver that uses the Synopsys DesignWare MIPI DSI host controller bridge. Signed-off-by: yannick fertre --- drivers/video/stm32/Kconfig | 10 + drivers/video/stm32/Makefile| 1 + drivers/video/stm32/stm32_dsi.c | 426

[U-Boot] [PATCH v3 07/10] video: add support of panel rm68200

2018-03-13 Thread yannick fertre
Support for Raydium rm68200 720p dsi 2dl video mode panel. Signed-off-by: yannick fertre --- drivers/video/Kconfig | 8 + drivers/video/Makefile | 1 + drivers/video/raydium-rm68200.c | 326 3 files changed,

[U-Boot] [PATCH v3 04/10] video: add support of panel OTM8009A

2018-03-13 Thread yannick fertre
Support for Orise Tech otm8009a 480p dsi 2dl video mode panel. Signed-off-by: yannick fertre --- drivers/video/Kconfig | 8 + drivers/video/Makefile | 1 + drivers/video/orisetech_otm8009a.c | 327 + 3 files

[U-Boot] [PATCH v3 05/10] video: add MIPI DSI host controller bridge

2018-03-13 Thread yannick fertre
Add a Synopsys Designware MIPI DSI host bridge driver, based on the Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. Signed-off-by: yannick fertre --- drivers/video/Kconfig | 9 + drivers/video/Makefile | 1 + drivers/video/dw_mipi_dsi.c

[U-Boot] [PATCH v3 03/10] video: add support of panel OTM8009A

2018-03-13 Thread yannick fertre
Support for Orise Tech otm8009a 480p dsi 2dl video mode panel. Signed-off-by: yannick fertre --- drivers/video/Kconfig | 8 + drivers/video/Makefile | 1 + drivers/video/orisetech_otm8009a.c | 325 + 3 files

[U-Boot] [PATCH v3 03/10] video: add support of MIPI DSI interface

2018-03-13 Thread yannick fertre
Mipi_display.c contains a set of dsi helpers. This file is a copy of file drm_mipi_dsi.c (linux kernel). Signed-off-by: yannick fertre --- drivers/video/Kconfig| 7 + drivers/video/Makefile | 1 + drivers/video/mipi_display.c | 807

[U-Boot] [PATCH v3 02/10] video: add support of MIPI DSI interface

2018-03-13 Thread yannick fertre
Mipi_display.c contains a set of dsi helpers. This file is a copy of file drm_mipi_dsi.c (linux kernel). Signed-off-by: yannick fertre --- drivers/video/Kconfig| 7 + drivers/video/Makefile | 1 + drivers/video/mipi_display.c | 807

[U-Boot] [PATCH v3 01/10] video: stm32: stm32_ltdc: update debug log

2018-03-13 Thread yannick fertre
Replace macro debug by pr_error, pr_warn or pr_info. Signed-off-by: yannick fertre --- drivers/video/stm32/stm32_ltdc.c | 67 ++-- 1 file changed, 30 insertions(+), 37 deletions(-) diff --git a/drivers/video/stm32/stm32_ltdc.c

[U-Boot] [PATCH v3 01/10] video: stm32: stm32_ltdc: add bridge to display controller

2018-03-13 Thread yannick fertre
Manage a bridge insert between the display controller & a panel. Signed-off-by: yannick fertre --- drivers/video/stm32/stm32_ltdc.c | 107 ++- 1 file changed, 71 insertions(+), 36 deletions(-) diff --git

Re: [U-Boot] [PATCH v2 3/3] warp7: Set u-boot serial# based on OTP value

2018-03-13 Thread Fabio Estevam
On Tue, Mar 13, 2018 at 12:48 PM, Bryan O'Donoghue wrote: > u-boot has a standard "serial#" environment variable that is suitable > for storing the iSerial number we will supply via the USB device > descriptor. serial# is automatically picked up by the disk subsystem

Re: [U-Boot] [PATCH v2 2/3] imx: mx7: Add comment to describe OTP TESTER registers

2018-03-13 Thread Fabio Estevam
On Tue, Mar 13, 2018 at 12:48 PM, Bryan O'Donoghue wrote: > The tester registers provide a unique chip-level identifier which > get_board_serial() returns in a "struct tag_serialnr". > > This patch documents the properties of the registers; in summary. > > 31:0

Re: [U-Boot] [PATCH v2 1/3] imx: mx7: Fix CONFIG_SERIAL_TAG compilation

2018-03-13 Thread Fabio Estevam
On Tue, Mar 13, 2018 at 12:48 PM, Bryan O'Donoghue wrote: > Currently when we define CONFIG_SERIAL_TAG we will barf with a failure to > define "struct tag_serialnr". > > This structure is defined in , this patch includes > to fix. > > Signed-off-by: Bryan O'Donoghue

Re: [U-Boot] [PATCH v3 1/2] i.MX6: nand: add nandbcb update command

2018-03-13 Thread Jagan Teki
On Tue, Mar 13, 2018 at 9:16 PM, Fabio Estevam wrote: > Hi Jagan, > > On Tue, Mar 13, 2018 at 12:38 PM, Jagan Teki wrote: > >> Sorry, I'm just writing to Stefan to get his change on ML. > > Why don't you take his patch and submit it to the list? I

[U-Boot] [PATCH v2 2/3] imx: mx7: Add comment to describe OTP TESTER registers

2018-03-13 Thread Bryan O'Donoghue
The tester registers provide a unique chip-level identifier which get_board_serial() returns in a "struct tag_serialnr". This patch documents the properties of the registers; in summary. 31:0 OCOTP_TESTER0 (most significant) - FSL-wide unique, encoded LOT ID STD II/SJC CHALLENGE/ Unique ID

[U-Boot] [PATCH v2 1/3] imx: mx7: Fix CONFIG_SERIAL_TAG compilation

2018-03-13 Thread Bryan O'Donoghue
Currently when we define CONFIG_SERIAL_TAG we will barf with a failure to define "struct tag_serialnr". This structure is defined in , this patch includes to fix. Signed-off-by: Bryan O'Donoghue Cc: Fabio Estevam Cc: Peng Fan

[U-Boot] [PATCH v2 0/3] NXP WaARP7 set serial# from OTP fuses for USB iSerial

2018-03-13 Thread Bryan O'Donoghue
V2: - Fix compilation path for CONFIG_SERIAL_TAG Currently this is broken for imx7 - Add description of tester registers to arch/arm/mach-imx/mx7/soc.c - Utilise existing get_board_serial() instead of my previous patch ("warp7: usb: Introduce a get method for serial number") V1: Greetings.

[U-Boot] [PATCH v2 3/3] warp7: Set u-boot serial# based on OTP value

2018-03-13 Thread Bryan O'Donoghue
u-boot has a standard "serial#" environment variable that is suitable for storing the iSerial number we will supply via the USB device descriptor. serial# is automatically picked up by the disk subsystem in u-boot - thus providing a handy unique identifier in /dev/disk/by-id as detailed below.

Re: [U-Boot] [PATCH] net: sun8i_emac: Fix PHY initialization

2018-03-13 Thread Jagan Teki
On Wed, Feb 28, 2018 at 3:47 AM, Joe Hershberger wrote: > On Sat, Jan 27, 2018 at 11:53 PM, Samuel Holland wrote: >> The previous code tried to update the PHY parameters without waiting for >> autonegotiation to complete. This caused wrong values to

Re: [U-Boot] [PATCH v3 1/2] i.MX6: nand: add nandbcb update command

2018-03-13 Thread Fabio Estevam
Hi Jagan, On Tue, Mar 13, 2018 at 12:38 PM, Jagan Teki wrote: > Sorry, I'm just writing to Stefan to get his change on ML. Why don't you take his patch and submit it to the list? ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v3 1/2] i.MX6: nand: add nandbcb update command

2018-03-13 Thread Jagan Teki
On Tue, Mar 13, 2018 at 9:06 PM, Fabio Estevam wrote: > Hi Jagan, > > On Tue, Mar 13, 2018 at 11:58 AM, Jagan Teki wrote: > >> Please post it on ML for further discussion. > > Who is this message for? Sorry, I'm just writing to Stefan to get his

Re: [U-Boot] [PATCH v3 02/10] video: add support of MIPI DSI interface

2018-03-13 Thread Simon Glass
Hi, On 13 March 2018 at 07:50, yannick fertre wrote: > > Mipi_display.c contains a set of dsi helpers. > This file is a copy of file drm_mipi_dsi.c (linux kernel). > > Signed-off-by: yannick fertre > --- > drivers/video/Kconfig| 7 + >

Re: [U-Boot] [PATCH v3 1/2] i.MX6: nand: add nandbcb update command

2018-03-13 Thread Fabio Estevam
Hi Jagan, On Tue, Mar 13, 2018 at 11:58 AM, Jagan Teki wrote: > Please post it on ML for further discussion. Who is this message for? ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 0/5] DW SPI: fixes and improvements

2018-03-13 Thread Jagan Teki
On Mon, Mar 5, 2018 at 6:47 PM, Eugeniy Paltsev wrote: > Various fixes and improvements of designware spi driver. > > Eugeniy Paltsev (5): > DW SPI: fix tx data loss on FIFO flush > DW SPI: fix transmit only mode > DW SPI: refactor poll_transfer functions >

Re: [U-Boot] [PATCH RFC 0/2] sunxi: Build u-boot-sunxi-with-spl.bin on ARM64 as well

2018-03-13 Thread Jagan Teki
On Wed, Mar 7, 2018 at 2:01 PM, Maxime Ripard wrote: > On Tue, Mar 06, 2018 at 11:38:20PM +0200, Tuomas Tynkkynen wrote: >> For some reason we seem to have documented how to build >> u-boot-sunxi-with-spl.bin manually with cat but not have a build system >> rule for it.

Re: [U-Boot] [PATCH RFC 2/2] ARM: sunxi: Build u-boot-sunxi-with-spl.bin on ARM64 as well

2018-03-13 Thread Jagan Teki
On Wed, Mar 7, 2018 at 7:51 AM, André Przywara wrote: > Hi, > > On 06/03/18 21:38, Tuomas Tynkkynen wrote: >> In README.sunxi64 we tell the user how to optionally create >> u-boot-sunxi-with-spl.bin by manually running cat. Instead, have the >> build system create the file

  1   2   >