[PATCH 1/2] defconfig: espressobin: Include support for Gigadevice SPI

2020-08-30 Thread Andre Heider
From: Konstantin Porotchkin Include support for CONFIG_SPI_FLASH_GIGADEVICE for supporting newly produces EspressoBin boards (v7) Change-Id: I5d4b972cbe2ee5a9d52ce9908794ad4e1b59ee3b Signed-off-by: Konstantin Porotchkin Reviewed-on: http://vgitil04.il.marvell.com:8080/61236 Tested-by: iSoC Plat

[PATCH 2/2] defconfig: espressobin: Add support for ISSI SPI flashes

2020-08-30 Thread Andre Heider
From: Konstantin Porotchkin Enable support of ISSI SPI flashes found on EspressoBIN boards Change-Id: I6de61c48f108fb4f410f321b9db45887d23212e5 Signed-off-by: Konstantin Porotchkin Reviewed-on: http://vgitil04.il.marvell.com:8080/61455 Tested-by: iSoC Platform CI Reviewed-by: Grzegorz Jaszczyk

[PATCH v2 2/2] arm64: mvebu: a37xx: Add support for EspressoBIN with eMMC

2020-08-30 Thread Andre Heider
From: Konstantin Porotchkin Add support for additional EspressoBIN board with installed eMMC device (U11). Starting from this patch the DEVICE_TREE= must be added to "make" in order to distinguish between platforms wth and without eMMC on board. Regualr (no eMMC) EspressoBIN builds should use DTS

[PATCH v2 0/3] Rename ASPEED SoC clock name

2020-08-30 Thread Ryan Chen
This patch series refactor the exiting ASPEED clock name define sync with Linux kernel. And also add SPDX-License V2 : modify patch 2/3 title form "aspeed:clock:" -> "clock:aspeed:" description Ryan Chen (3): cosmetic: aspeed: ast2500: Rename clock header clock:aspeed: Sync with Linux kernel

[PATCH v2 3/3] cosmetic: aspeed: Modify for SPDX-License

2020-08-30 Thread Ryan Chen
Modify SPDX-License for furture patch warning Signed-off-by: Ryan Chen --- arch/arm/dts/ast2500-u-boot.dtsi | 1 + include/dt-bindings/clock/aspeed-clock.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/ast2500-u-boot.dtsi b/arch/arm/dts/ast2500-u-boot

[PATCH v2 1/3] cosmetic: aspeed: ast2500: Rename clock header

2020-08-30 Thread Ryan Chen
Rename the ast2500-scu.h to aspeed-clock.h. Signed-off-by: Ryan Chen --- arch/arm/dts/ast2500-u-boot.dtsi| 2 +- arch/arm/mach-aspeed/ast2500/sdram_ast2500.c| 2 +- drivers/clk/aspeed/clk_ast2500.c| 2 +- include/dt-bindings

[PATCH v2 2/3] clock:aspeed: Sync with Linux kernel clock header define

2020-08-30 Thread Ryan Chen
v2: modify title description aspeed:clock -> clock:aspeed Use kernel include/dt-bindings/clock/aspeed-clock.h define for clock driver. Signed-off-by: Ryan Chen --- arch/arm/dts/ast2500-u-boot.dtsi | 20 +++ drivers/clk/aspeed/clk_ast2500.c | 38 +++-- include/dt-bind

Re: [PATCH v5 17/17] test/py: add a test for uefi firmware update capsule of raw image

2020-08-30 Thread AKASHI Takahiro
On Fri, Aug 28, 2020 at 06:07:10AM +0200, Heinrich Schuchardt wrote: > On 8/3/20 7:43 AM, AKASHI Takahiro wrote: > > The test can run on sandbox build and it attempts to execute a firmware > > update via a capsule-on-disk, using a raw image capsule, > > CONFIG_EFI_CAPSULE_RAW. > > > > To run this t

Re: [PATCH v5 15/17] tools: add mkeficapsule command for UEFI capsule update

2020-08-30 Thread AKASHI Takahiro
On Fri, Aug 28, 2020 at 05:58:00AM +0200, Heinrich Schuchardt wrote: > On 8/3/20 7:43 AM, AKASHI Takahiro wrote: > > This is a utility mainly for test purpose. > > mkeficapsule -f: create a test capsule file for FIT image firmware > > > > Having said that, you will be able to customize the code t

Re: [PATCH v5 00/17] efi_loader: add capsule update support

2020-08-30 Thread AKASHI Takahiro
Lukasz, On Tue, Aug 25, 2020 at 02:42:01PM +0900, AKASHI Takahiro wrote: > Lukasz, > > Could you take the time to review my patches, especially > patch#1 to #4 and #12, please? A gentle ping. My patch series are stranded, waiting for your review. The discussion[1] about UPDATE_TFTP has some imp

[PATCH 1/2] arm64: dts: armada-3720-espressobin: sync with downstream

2020-08-30 Thread Andre Heider
This adds the disabled eMMC node. Signed-off-by: Andre Heider --- arch/arm/dts/armada-3720-espressobin.dts | 63 +--- 1 file changed, 23 insertions(+), 40 deletions(-) diff --git a/arch/arm/dts/armada-3720-espressobin.dts b/arch/arm/dts/armada-3720-espressobin.dts index 453

[PATCH 2/2] arm64: dts: armada-3720-espressobin-emmc: add emmc dts

2020-08-30 Thread Andre Heider
Add the downstream dts for the Espressobin with eMMC. Signed-off-by: Andre Heider --- arch/arm/dts/Makefile | 1 + arch/arm/dts/armada-3720-espressobin-emmc.dts | 19 +++ doc/README.marvell| 8 ++-- 3 files changed, 26 ins

[PATCH 2/2] pcie: pcie_advk: move setting of reference clock to the pcie driver

2020-08-30 Thread Andre Heider
From: Grzegorz Jaszczyk The settings of reference clock is done via pcie address space and not comphy address space - move the settings in appropriate place. This aligns hw initialization of pcie advk with Linux and also will allow to get rid of not comphy related operation from the comphy drive

[PATCH 1/2] xenon_sdhci: support for HS200 mode

2020-08-30 Thread Andre Heider
From: Wojciech Macek Add support for Marvell Xenon SDHCI HS200 mode. Changes focue mostly on correct PHY initialization. All procedure is similar to the one done by Linux driver, but simplified. Change-Id: I5e2396eeb23784f495abc18ea5a2eb7a92390730 Signed-off-by: Wojciech Macek Reviewed-on: htt

RE: [PATCH 0/3] Rename ASPEED SoC clock name

2020-08-30 Thread Ryan Chen
> -Original Message- > From: Cédric Le Goater > Sent: Saturday, August 29, 2020 4:46 PM > To: Ryan Chen ; ChiaWei Wang > ; BMC-SW ; > lu...@denx.de; eaja...@linux.ibm.com; s...@chromium.org; > u-boot@lists.denx.de; Joel Stanley > Subject: Re: [PATCH 0/3] Rename ASPEED SoC clock name >

[PATCH v2 07/11] Makefile: Support missing external blobs always

2020-08-30 Thread Simon Glass
At present binman warns about missing external blobs only when the BUILD_ROM is defined. Enable this behaviour always, since many boards are starting to use these (e.g. ARM Trusted Firmware's BL31). Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to support missing external blobs a

[PATCH v2 06/11] binman: Support generating FITs with multiple dtbs

2020-08-30 Thread Simon Glass
In some cases it is useful to generate a FIT which has a number of DTB images, selectable by configuration. Add support for this in binman, using a simple iterator and string substitution. Signed-off-by: Simon Glass --- Changes in v2: - Add a check for a missing fit,fdt-list property - Add a che

[PATCH v2 09/11] sunxi: Convert 64-bit boards to use binman

2020-08-30 Thread Simon Glass
At present 64-bit sunxi boards use the Makefile to create a FIT, using USE_SPL_FIT_GENERATOR. This is deprecated. Update sunxi to use binman instead. Signed-off-by: Simon Glass --- Changes in v2: - Add a 'fit-fdt-list' property - Fix 'board' typo in commit message Kconfig

[PATCH v2 10/11] sunxi: Drop the FIT-generator script

2020-08-30 Thread Simon Glass
This file is no-longer used. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) board/sunxi/mksunxi_fit_atf.sh | 87 -- 1 file changed, 87 deletions(-) delete mode 100755 board/sunxi/mksunxi_fit_atf.sh diff --git a/board/sunxi/mksunxi_fit_atf.sh b/b

[PATCH v2 08/11] binman: Allow FITs to be missing binaries

2020-08-30 Thread Simon Glass
In some cases a FIT may use an external binary that is not available. Handle this case by issuing a warning, as is done for sections. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to allow FITs to be missing binaries tools/binman/etype/fit.py | 12 1 file changed,

[PATCH v2 11/11] binman: Allow selecting default FIT configuration

2020-08-30 Thread Simon Glass
Add a new entry argument to the fit entry which allows selection of the default configuration to use. This is the 'default' property in the 'configurations' node. Update the Makefile to pass in the value of DEVICE_TREE or CONFIG_DEFAULT_DEVICE_TREE to provide this information. Signed-off-by: Simo

[PATCH v2 01/11] binman: Allow entry args to be required

2020-08-30 Thread Simon Glass
If an entry argument is needed by an entry but the entry argument is not present, then a strange error can occur when trying to read the file. Fix this by allowing arguments to be required. Select this option for the cros-ec-rw entry. If a filename is provided in the node, allow that to be used.

[PATCH v2 05/11] binman: Add support for ATF BL31

2020-08-30 Thread Simon Glass
Add an entry for ARM Trusted Firmware's 'BL31' payload, which is the device's main firmware. Typically this is U-Boot. Signed-off-by: Simon Glass --- Changes in v2: - Update docs to mention both bl31.bin and bl31.elf - Add the URL of ARM Trusted Firmware and mention of U-Boot docs - Fix copyrigh

[PATCH v2 03/11] libfdt: Detected out-of-space with fdt_finish()

2020-08-30 Thread Simon Glass
At present the Python sequential-write interface can produce an error when it calls fdt_finish(), since this needs to add a terminating tag to the end of the struct section. Fix this by automatically expanding the buffer if needed. Signed-off-by: Simon Glass --- (no changes since v1) scripts/

[PATCH v2 04/11] binman: Move 'external' support into base class

2020-08-30 Thread Simon Glass
At present we have an Entry_blob_ext which implement a blob which holds an external binary. We need to support other entry types that hold external binaries, e.g. Entry_blob_named_by_arg. Move the support into the base Entry class to allow this. Signed-off-by: Simon Glass --- Changes in v2: - Ad

[PATCH v2 02/11] binman: Fix up a few missing comments

2020-08-30 Thread Simon Glass
Tidy up a few test functions which lack argument comments. Rename one that has the same name as a different test. Also fix up the comment for PrepareImagesAndDtbs(). Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/control.py | 5 + tools/binman/ftest.py | 22 +

[PATCH v2 00/11] binman: Add support for generating more complex FITs

2020-08-30 Thread Simon Glass
This series allows binman to generate FITs that include multiple DTB images and the configuration to use them. It is then possible to remove the sunxi FIT generator script, so this series handles that also. With this, sunxi is fully converted to use binman. Changes in v2: - Add new patch to move

Re: [PATCH 3/3] binman: Build FIT image subentries with the section etype

2020-08-30 Thread Simon Glass
Hi Alper, On Sun, 30 Aug 2020 at 16:38, Alper Nebi Yasak wrote: > > On 30/08/2020 23:37, Simon Glass wrote: > > On Sun, 30 Aug 2020 at 12:17, Alper Nebi Yasak > > wrote: > >> Entry_section.ObtainContents() never returns False, so I'm removing the > >> checks for that, which contained the statem

Re: [PATCH u-boot-marvell] arm64: dts: armada-3720-espressobin: fix COMPHY nodes

2020-08-30 Thread Marek Behun
On Sun, 30 Aug 2020 08:38:32 +0200 Andre Heider wrote: > Hi Marek, > > On 19/08/2020 11:57, Marek Behún wrote: > > This commit fixes initialization of COMPHY on EspressoBin. > > > > Commit 22f418935be4 ("phy: marvell: a3700: Use comphy_mux on Armada > > 37xx.") introduced usage of comphy_mux on

Re: [PATCH 3/3] binman: Build FIT image subentries with the section etype

2020-08-30 Thread Alper Nebi Yasak
On 30/08/2020 23:37, Simon Glass wrote: > On Sun, 30 Aug 2020 at 12:17, Alper Nebi Yasak > wrote: >> Entry_section.ObtainContents() never returns False, so I'm removing the >> checks for that, which contained the statements the test didn't cover. > > If you put something in the FIT that depends

Re: [PATCH 4/5] usb: xhci: Add Qualcomm DWC3 xHCI driver

2020-08-30 Thread Marek Vasut
On 8/30/20 10:51 PM, Robert Marko wrote: > Hi, Hi, > I did some more testing and I can confirm that USB3.0 port works fine > with the PHY driver and old XHCI-DWC3 while with DWC3 generic one it > does not work. > I have been unable to figure out why is that exactly. Maybe it's the order of initi

Re: [PATCH 4/5] usb: xhci: Add Qualcomm DWC3 xHCI driver

2020-08-30 Thread Robert Marko
Hi, I did some more testing and I can confirm that USB3.0 port works fine with the PHY driver and old XHCI-DWC3 while with DWC3 generic one it does not work. I have been unable to figure out why is that exactly. Regards Robert On Thu, Aug 27, 2020 at 9:13 PM Marek Vasut wrote: > > On 8/27/20 9:0

Re: [PATCH 3/3] binman: Build FIT image subentries with the section etype

2020-08-30 Thread Simon Glass
Hi Alper, On Sun, 30 Aug 2020 at 12:17, Alper Nebi Yasak wrote: > > On 30/08/2020 00:20, Simon Glass wrote: > > On Tue, 25 Aug 2020 at 12:01, Alper Nebi Yasak > > wrote: > >> super().__init__(section, etype, node) > >> self._fit = None > >> -self._fit_content = default

Re: [PATCH v4 20/27] Makefile: Warn against using CONFIG_SPL_FIT_GENERATOR

2020-08-30 Thread Simon Glass
Hi Michal, On Wed, 26 Aug 2020 at 08:12, Michal Simek wrote: > > Hi, > > On 25. 08. 20 18:57, Simon Glass wrote: > > Hi Michal, > > > > On Tue, 25 Aug 2020 at 09:13, Michal Simek wrote: > >> > >> Hi Simon, > >> > >> On 25. 08. 20 17:04, Simon Glass wrote: > >>> Hi Michal, > >>> > >>> On Mon, 24

Re: [PATCH 0/7] binman: Add support for generating more complex FITs

2020-08-30 Thread Simon Glass
Hi Heinrich, On Tue, 25 Aug 2020 at 11:37, Heinrich Schuchardt wrote: > > On 8/25/20 6:57 PM, Simon Glass wrote: > > Hi Heinrich, > > > > On Tue, 25 Aug 2020 at 04:12, Heinrich Schuchardt > > wrote: > >> > >> On 25.08.20 06:07, Heinrich Schuchardt wrote: > >>> On 8/22/20 4:36 AM, Simon Glass wr

[PATCH v6 1/2] board: kontron: add sl28 support

2020-08-30 Thread Michael Walle
Add basic support for the Kontron SMARC-sAL28 board. This includes just the bare minimum to be able to bring up the board and boot linux. For now, the Single and Dual PHY variant is supported. Other variants will fall back to the basic variant. In particular, there is no watchdog support for now.

[PATCH v6 2/2] board: sl28: add board specific nvm command

2020-08-30 Thread Michael Walle
The board supports 16 configuration bits which can be manipulated with this command. See the board's README for a detailed explanation on each bit. Signed-off-by: Michael Walle --- board/kontron/sl28/Makefile | 2 +- board/kontron/sl28/README | 79 board/kontron/sl28/cmds.c

[PATCH v6 0/2] Basic Kontron SMARC-sAL28 board support

2020-08-30 Thread Michael Walle
Add basic board support for the Kontron SMARC-sAL28 board. Please note, that this board doesn't support TF-a (yet). Therefore, the u-boot SPL is the first code which is run and it has to set up the RAM. changes since v5: - moved CONFIG_ENV_OVERWRITE to defconfig. Thanks Kuldeep! changes since v4

[GIT] Pull request: u-boot-dfu (30.08.2019)

2020-08-30 Thread Lukasz Majewski
Dear Marek, Please find a set of DFU/Gadget related fixes: The following changes since commit 9f04a634ef331b4fc6b3e677f276156192a413c7: Merge branch '2020-08-27-misc-fixes' (2020-08-28 08:51:37 -0400) are available in the Git repository at: g...@gitlab.denx.de:u-boot/custodians/u-boot-dfu.

Re: [PATCH 3/3] binman: Build FIT image subentries with the section etype

2020-08-30 Thread Alper Nebi Yasak
On 30/08/2020 00:20, Simon Glass wrote: > On Tue, 25 Aug 2020 at 12:01, Alper Nebi Yasak > wrote: >> super().__init__(section, etype, node) >> self._fit = None >> -self._fit_content = defaultdict(list) >> +self._fit_images = {} > > Can you add a Properties comme

Re: Can't boot from sd-card on BeagleBone Black

2020-08-30 Thread Pavel Yermolenko
/It looks off a mSD card OK for me, have you tried holding down the button (the one near the mSD card) when powering on to tell it to force the mSD card? /Yes, of course, I keep S2 pushed about 5sec after power on/. / On 30/08/2020 19:47, Peter Robinson wrote: On Sun, Aug 30, 2020 at 6:41 PM P

Re: Can't boot from sd-card on BeagleBone Black

2020-08-30 Thread Peter Robinson
On Sun, Aug 30, 2020 at 6:41 PM Pavel Yermolenko wrote: > > Hello, > > I've tried two different default configurations while building u-boot: > > * am335x_boneblack_vboot_defconfig > * am335x_evm_defconfig > > I formatted sd-card with this script: > https://github.com/PacktPublishing/Mastering

Can't boot from sd-card on BeagleBone Black

2020-08-30 Thread Pavel Yermolenko
Hello, I've tried two different default configurations while building u-boot: * am335x_boneblack_vboot_defconfig * am335x_evm_defconfig I formatted sd-card with this script: https://github.com/PacktPublishing/Mastering-Embedded-Linux-Programming-Second-Edition/blob/master/format-sdcard.sh The

Re: [PATCH 0/3] Rename ASPEED SoC clock name

2020-08-30 Thread Cédric Le Goater
Hello Ryan, On 8/28/20 9:32 AM, Ryan Chen wrote: > This patch series refactor the exiting ASPEED clock name define sync > with Linux kernel. And also add SPDX-License All the patchset seems correct but the patch numbering is a bit confusing. I have received : [1/3] cosmetic: aspeed: ast2500:

Re: NVMe boot issues on RockPro64

2020-08-30 Thread Punit Agrawal
Hi Bin, Bin Meng writes: > Hi Punit, > > On Sat, Aug 29, 2020 at 8:30 AM Punit Agrawal wrote: >> >> Hi, >> >> I get the following errors when booting Linux from an ADATA XPG SX8200 >> NVMe on a RockPro64. >> >> [3.705205] rockchip-pcie f800.pcie: unexpected IRQ, INT0 >> [3.705226] r

Re: [PATCH] x86: qemu-x86_defconfig: Increase CONFIG_SYS_MALLOC_F_LEN

2020-08-30 Thread Simon Glass
On Tue, 25 Aug 2020 at 03:39, Stefan Roese wrote: > > With the upcoming increase of the malloc area in U-Boot > ("pci: pci-uclass: Dynamically allocate the PCI regions"), the CI QEMU > x86 test fails: > > U-Boot 2020.10-rc2-g0a668f6d38 (Aug 25 2020 - 06:12:51 +) > > alloc space exhausted > Err

Re: [PATCH v3 2/3] test: fdtdec: Add test for new no-map fdtdec_add_reserved_memory() parameter

2020-08-30 Thread Simon Glass
On Tue, 25 Aug 2020 at 05:42, Patrice Chotard wrote: > > Add a test to verify that the no-map property is added in reserved-memory > node when fdtdec_add_reserved_memory() no-map parameter is set to true. > > Signed-off-by: Patrice Chotard > > --- > > (no changes since v2) > > Changes in v2: >

Re: [PATCH] Revert "env: Warn on force access if ENV_ACCESS_IGNORE_FORCE set"

2020-08-30 Thread Alex Kiernan
On Sat, Aug 29, 2020 at 6:51 PM Marek Vasut wrote: > > On 8/29/20 4:14 PM, Alex Kiernan wrote: > > On Thu, Aug 27, 2020 at 5:20 PM Alex Kiernan wrote: > >> > >> On Thu, Aug 27, 2020 at 2:03 PM Tom Rini wrote: > >>> > >>> On Thu, Aug 27, 2020 at 11:49:25AM +0200, Marek Vasut wrote: > On 8/27

[PATCH 1/1] bootm: update image OS image size when decompressing

2020-08-30 Thread Heinrich Schuchardt
In bootm_load_os() the OS image is decompressed. In later stages of the boot process we need the decompressed size of the image. Update images->os.image_len after decompression. Passing the correct size is necessary if we want to check loaded EFI binararies for file truncation by comparing the lo

Q: sp805 watchdog is only for fsl ?

2020-08-30 Thread Ran Shalit
Hello, In watchdog sp805_wdt.c there is usage of gd->bus_clk which seems to be initialized only in fsl code. So, it seems that sp805 usage is limited to fsl chips. I think it could have been generic for any other chip if the clock was initialized using device tree. What do you think? Thanks