[PATCH v2 2/3] configs: pico-imx6ul: convert DM_VIDEO

2020-07-30 Thread wig . cheng
From: Wig Cheng It's due to the warning messages issue after compiled: = WARNING == This board does not use CONFIG_DM_VIDEO Please update the board to use CONFIG_DM_VIDEO before the v2019.07 release. Failure to update by the deadline may result in

[PATCH v2 1/3] configs: pico-imx6ul: convert DM_USB

2020-07-30 Thread wig . cheng
From: Wig Cheng Here is the test commands: => ums 0 mmc 0 UMS: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x71 Signed-off-by: Wig Cheng --- configs/pico-imx6ul_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/pico-imx6ul_defconfig b/configs/pico-imx6ul_defconfig in

[PATCH v2 3/3] pico-imx6ul: convert ethernet function to DM_ETH

2020-07-30 Thread wig . cheng
From: Wig Cheng - Remove pinmux definition from pico-imx6ul.c - Enable NET_RANDOM_ETHADDR for temporary solution, because micrel_ksz8xxx driver does not support DM_ETH yet, so cannot read MAC address directly. Before enable DM_ETH: Net: FEC [PRIME] After enable DM_ETH: Net: Warning: usi

Re: [PATCH v1 3/3] pico-imx6ul: convert ethernet function to DM_ETH

2020-07-30 Thread wig
On 7/30/20 9:16 AM, Fabio Estevam wrote: On Tue, Jul 28, 2020 at 11:36 PM wrote: From: Wig Cheng - Remove pinmux definition from pico-imx6ul.c - Enable NET_RANDOM_ETHADDR for temporary solution, because micrel_ksz8xxx driver does not support DM_ETH yet, so cannot read MAC address directly.

Re: [PATCH v2 04/18] board: Introduce xenguest_arm64 board

2020-07-30 Thread AKASHI Takahiro
On Mon, Jul 20, 2020 at 02:02:10PM +0300, Anastasiia Lukianenko wrote: > From: Andrii Anisov > > Introduce a minimal Xen guest board running as a virtual > machine under Xen Project's hypervisor [1], [2]. > > Part of the code is ported from Xen mini-os and also uses > work initially done by diff

Re: [PATCH v2] travis: update sbsigntools to 0.9.4

2020-07-30 Thread Tom Rini
On Fri, Jul 31, 2020 at 09:44:30AM +0900, AKASHI Takahiro wrote: > On Thu, Jul 30, 2020 at 09:55:39AM -0400, Tom Rini wrote: > > On Wed, Jul 29, 2020 at 11:36:22AM +0900, AKASHI Takahiro wrote: > > > > > This version of sbsigntools is a prerequisite in testing "intermediate > > > certificates" sup

Re: [PATCH v1 2/3] configs: pico-imx6ul: convert DM_VIDEO

2020-07-30 Thread Fabio Estevam
On Wed, Jul 29, 2020 at 11:21 PM wig wrote: > It shows warning messages after compiled: > > = WARNING == > This board does not use CONFIG_DM_VIDEO Please update > the board to use CONFIG_DM_VIDEO before the v2019.07 release. > Failure to update by the deadl

Re: [PATCH v2] travis: update sbsigntools to 0.9.4

2020-07-30 Thread AKASHI Takahiro
On Thu, Jul 30, 2020 at 09:55:39AM -0400, Tom Rini wrote: > On Wed, Jul 29, 2020 at 11:36:22AM +0900, AKASHI Takahiro wrote: > > > This version of sbsigntools is a prerequisite in testing "intermediate > > certificates" support as part of UEFI secure boot as I added '--addcert' > > option to 'sbsi

[PATCH] ARM: stm32: Add fitImage its entry for 587-200 DHCOR SoM

2020-07-30 Thread Marek Vasut
The new 587-200 DHCOR SoM is compatible with the 587-100 prototype, hence just replicate the entries, as there is no pattern matching. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- board/dhelectronics/dh_stm32mp1/u-boot-dhcom.its | 14 ++ 1 file changed, 1

[PATCH] ARM: stm32: Add both PDK2 and DRC02 DT into DHCOM fitImage its

2020-07-30 Thread Marek Vasut
Include both PDK2 and DRC02 DTs in the DHCOM fitImage .its and implement support in SPL to select the correct configuration entry for U-Boot by using the machine compatible string from SPL DT. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- board/dhelectronics/dh_stm32m

[PATCH] ARM: dts: stm32: Update eth1addr from EEPROM if eth1 present

2020-07-30 Thread Marek Vasut
The STM32MP1 DHCOM has two ethernet interfaces, the on-SoM DWMAC and KS8851. Set eth1addr for the KS8851 to a MAC address of the DWMAC incremented by 1. The MAC of the DWMAC is set from on-SoM EEPROM already, but the MAC address of KS8851 was left uninitialized, so fix this. Signed-off-by: Marek V

Re: Improvements to FIT ciphering

2020-07-30 Thread Patrick Oppenlander
Hi Simon & Philippe, I've been thinking about this some more and have added a few points below. I will need feedback before proposing any patches for the remaining issues. On Fri, Jul 24, 2020 at 12:06 PM Patrick Oppenlander wrote: > > Issue #1 > > > Currently, mkimage treats the IV in

Re: [PATCH] mkimage: fit: include image cipher in configuration signature

2020-07-30 Thread Patrick Oppenlander
On Fri, Jul 31, 2020 at 12:59 AM Philippe REYNES wrote: > > Hi Patrick, > > > > From: Patrick Oppenlander > > > > This patch addresses issue #2 for signed configurations. > > > > -8<- > > This "line" will be included in the commit message ;) > Hi Philippe, apply using "git am --scissors

Re: efi_loader/RISC-V: misaligned load when running grubriscv64.efi

2020-07-30 Thread Atish Patra
On Thu, Jul 30, 2020 at 1:19 PM Heinrich Schuchardt wrote: > > Am 30. Juli 2020 22:11:39 MESZ schrieb Heinrich Schuchardt > : > >Am 30. Juli 2020 20:31:47 MESZ schrieb Atish Patra > >: > >>On Thu, Jul 30, 2020 at 4:04 AM Heinrich Schuchardt > >> wrote: > >>> > >>> On 30.07.20 12:16, Sean Anderson

Re: efi_loader/RISC-V: misaligned load when running grubriscv64.efi

2020-07-30 Thread Heinrich Schuchardt
Am 30. Juli 2020 22:11:39 MESZ schrieb Heinrich Schuchardt : >Am 30. Juli 2020 20:31:47 MESZ schrieb Atish Patra >: >>On Thu, Jul 30, 2020 at 4:04 AM Heinrich Schuchardt >> wrote: >>> >>> On 30.07.20 12:16, Sean Anderson wrote: >>> > On 7/30/20 6:03 AM, Heinrich Schuchardt wrote: >>> >> Dear Sean,

Re: efi_loader/RISC-V: misaligned load when running grubriscv64.efi

2020-07-30 Thread Heinrich Schuchardt
Am 30. Juli 2020 20:31:47 MESZ schrieb Atish Patra : >On Thu, Jul 30, 2020 at 4:04 AM Heinrich Schuchardt > wrote: >> >> On 30.07.20 12:16, Sean Anderson wrote: >> > On 7/30/20 6:03 AM, Heinrich Schuchardt wrote: >> >> Dear Sean, >> >> >> >> when trying to run grubriscv64.efi from the >> >> trini/u

[PATCH v10 1/2] spi: ca_sflash: Add CAxxxx SPI Flash Controller

2020-07-30 Thread Alex Nemirovsky
From: Pengpeng Chen Add SPI Flash controller driver for Cortina Access CA SoCs Signed-off-by: Pengpeng Chen Signed-off-by: Alex Nemirovsky CC: Jagan Teki CC: Vignesh R CC: Tom Rini --- (no changes since v9) Changes in v9: - Clean up MAINTAINERS changes Changes in v8: - No code chang

[PATCH v10 2/2] board: presidio-asic: Add SPI NOR support

2020-07-30 Thread Alex Nemirovsky
Add SPI NOR support for Cortina Access Presidio Engineering Board Signed-off-by: Alex Nemirovsky CC: Jagan Teki CC: Vignesh R CC: Tom Rini Add err processing while probe sf device --- Changes in v10: - Change forced driver probe call to error handling check Changes in v6: - None Changes i

Re: [PATCH v2 00/18] Add new board: Xen guest for ARM64

2020-07-30 Thread Julien Grall
Hi, On 20/07/2020 12:02, Anastasiia Lukianenko wrote: From: Anastasiia Lukianenko This work introduces Xen [1] guest ARM64 board support in U-Boot with para-virtualized (PV) [2] block and serial drivers: xenguest_arm64. I would like to give a try at the support. Do you have a branch which c

[PATCH v2 1/3] net: cortina_ni: Add eth support for Cortina Access CAxxxx SoCs

2020-07-30 Thread Alex Nemirovsky
From: Aaron Tseng Add Cortina Access Ethernet device driver for CA SoCs. This driver supports both legacy and DM_ETH network models. Signed-off-by: Aaron Tseng Signed-off-by: Alex Nemirovsky Signed-off-by: Abbie Chang CC: Joe Hershberger CC: Abbie Chang CC: Tom Rini --- Changes in v

[PATCH v2 3/3] board: presidio-asic: Add CAxxxx Ethernet support

2020-07-30 Thread Alex Nemirovsky
Add CA Ethernet support for the Cortina Access Presidio Engineering Board Signed-off-by: Alex Nemirovsky CC: Tom Rini --- Changes in v2: - only support DM_ETH network models by removing code for legacy mode support arch/arm/dts/ca-presidio-engboard.dts| 7 +++ board/cortina/

[PATCH v2 2/3] net: phy: ca_phy: Add driver for CAxxxx SoCs

2020-07-30 Thread Alex Nemirovsky
From: Abbie Chang Add phy driver support for MACs embedded inside Cortina Access SoCs Signed-off-by: Abbie Chang Signed-off-by: Alex Nemirovsky CC: Joe Hershberger CC: Tom Rini CC: Aaron Tseng Moved out PHY specific code out of Cortina NI Ethernet driver and into a Cortina Access PHY inte

Re: efi_loader/RISC-V: misaligned load when running grubriscv64.efi

2020-07-30 Thread Atish Patra
On Thu, Jul 30, 2020 at 4:04 AM Heinrich Schuchardt wrote: > > On 30.07.20 12:16, Sean Anderson wrote: > > On 7/30/20 6:03 AM, Heinrich Schuchardt wrote: > >> Dear Sean, > >> > >> when trying to run grubriscv64.efi from the > >> trini/u-boot-gitlab-ci-runner:bionic-20200526-18Jun2020 Docker image

Re: [PATCH v1 16/24] pci: Add PCI controller driver for OcteonTX / TX2

2020-07-30 Thread Stefan Roese
Hi Simon, On 28.07.20 21:01, Simon Glass wrote: Hi Stefan, On Fri, 24 Jul 2020 at 04:09, Stefan Roese wrote: From: Suneel Garapati Adds support for PCI ECAM/PEM controllers found on OcteonTX or OcteonTX2 SoC platforms. Signed-off-by: Suneel Garapati Cc: Simon Glass Cc: Bin Meng Signed

Re: [PATCH v1 15/24] ata: ahci: Add BAR index quirk for Cavium PCI SATA device

2020-07-30 Thread Stefan Roese
Hi Simon, On 28.07.20 21:01, Simon Glass wrote: Hi Stefan, On Fri, 24 Jul 2020 at 04:09, Stefan Roese wrote: From: Suneel Garapati For SATA controller found on OcteonTX SoC's, use non-standard PCI BAR0 instead of BAR5. Signed-off-by: Suneel Garapati Cc: Simon Glass Signed-off-by: Stefa

Re: [PATCH v1 06/24] pci: pci-uclass: Add multi entry support for memory regions

2020-07-30 Thread Stefan Roese
Hi Simon, On 28.07.20 21:01, Simon Glass wrote: Hi Stefan, On Fri, 24 Jul 2020 at 04:09, Stefan Roese wrote: From: Suneel Garapati Enable PCI memory regions in ranges property to be of multiple entry. This helps to add support for SoC's like OcteonTX/TX2 where every peripheral is on PCI bu

Re: [PATCH v1 03/24] pci: pci-uclass: Dynamically allocate the PCI regions

2020-07-30 Thread Stefan Roese
Hi Simon, On 28.07.20 21:01, Simon Glass wrote: Hi Stefan, On Fri, 24 Jul 2020 at 04:09, Stefan Roese wrote: Instead of using a fixed length pre-allocated array of regions, this patch moves to dynamically allocating the regions based on the number of available regions plus the necessary regi

Re: Finish off common.h reduction

2020-07-30 Thread Simon Glass
Hi Tom, On Tue, 28 Jul 2020 at 08:58, Simon Glass wrote: > > Hi Tom, > > I thought now (after rc1) might be a good time to do this series. Does > that sound right to you? I'm going ahead with it. I'll send whatever I get to by early next week. Regards, Simon

Re: [PATCH v1 01/24] fdtdec: Add API to read pci bus-range property

2020-07-30 Thread Stefan Roese
Hi Simon, On 28.07.20 21:01, Simon Glass wrote: On Fri, 24 Jul 2020 at 04:09, Stefan Roese wrote: From: Suneel Garapati Add fdtdec_get_pci_bus_range to read bus-range property values. Signed-off-by: Suneel Garapati Cc: Simon Glass Signed-off-by: Stefan Roese --- Changes in v1: - Added

Re: [PATCH] mkimage: fit: include image cipher in configuration signature

2020-07-30 Thread Philippe REYNES
Hi Patrick, > From: Patrick Oppenlander > > This patch addresses issue #2 for signed configurations. > > -8<- This "line" will be included in the commit message ;) > Including the image cipher properties in the configuration signature > prevents an attacker from modifying cipher, key

Re: [PATCH 1/1] dm: fix ofnode_read_addr/size_cells()

2020-07-30 Thread Stefan Roese
On 25.07.20 21:38, Heinrich Schuchardt wrote: In the case of the live tree ofnode_read_addr_cells() and ofnode_read_size_cells() return the #address-cells and #size-cells defined in the parent node. With the patch the same is done for a non-live tree. The only consumer of these functions is curr

Re: [PATCH 0/1] fw_setenv always locks flash whenever it tries to write

2020-07-30 Thread Tom Rini
On Thu, Jul 23, 2020 at 10:20:55PM +, Ivan Mikhaylov wrote: > On Fri, 2020-07-10 at 19:54 +0300, Ivan Mikhaylov wrote: > > fw_setenv usage always locks u-boot-env mtd device without questions. > > Locking of flash can be disruptive and may affect not only u-boot-env > > region due to different

Re: [PATCH v2 3/3] mkimage: fit: don't cipher ciphered data

2020-07-30 Thread Philippe REYNES
Hi Patrick, > From: Patrick Oppenlander > > Previously, mkimage -F could be run multiple times causing already > ciphered image data to be ciphered again. Reviewed-by: Philippe Reynes > Signed-off-by: Patrick Oppenlander Regards, Philippe > --- > tools/image-host.c | 15 ++-

Re: [PATCH v2] travis: update sbsigntools to 0.9.4

2020-07-30 Thread Tom Rini
On Wed, Jul 29, 2020 at 11:36:22AM +0900, AKASHI Takahiro wrote: > This version of sbsigntools is a prerequisite in testing "intermediate > certificates" support as part of UEFI secure boot as I added '--addcert' > option to 'sbsign' command: > > === > commit 7d6210e4b1fd > Author: AKASHI T

Re: [PATCH v2 2/3] mkimage: fit: handle FDT_ERR_NOSPACE when ciphering

2020-07-30 Thread Philippe REYNES
Hi Patrick, > From: Patrick Oppenlander > > Also replace fdt_delprop/fdt_setprop with fdt_setprop as fdt_setprop can > replace an existing property value. Reviewed-by: Philippe Reynes > Signed-off-by: Patrick Oppenlander Regards, Philippe > --- > tools/image-host.c | 19 ++--

[PATCH v4 1/6] fs/squashfs: new filesystem

2020-07-30 Thread Joao Marcos Costa
Add support for SquashFS filesystem. Right now, it does not support compression but support for zlib will be added in a follow-up commit. Signed-off-by: Joao Marcos Costa --- Changes in v4: - Fix issues that happenned while resolving symlinks - Add missing endianness convertions

[PATCH v4 3/6] include/u-boot, lib/zlib: add sources for zlib decompression

2020-07-30 Thread Joao Marcos Costa
Add zlib (v1.2.11) uncompr() function to U-Boot. SquashFS depends on this function to decompress data from a raw disk image. The actual support for zlib into SquashFS sources will be added in a follow-up commit. Signed-off-by: Joao Marcos Costa --- Changes in v4: - Add new config ZLIB_UNC

[PATCH v4 4/6] fs/squashfs: add support for zlib decompression

2020-07-30 Thread Joao Marcos Costa
Add call to zlib's 'uncompress' function. Add function to display the right error message depending on the decompression's return value. Signed-off-by: Joao Marcos Costa --- Changes in v4: - Add preprocessor directives to check if a given compression option is enabled, starting by

[PATCH v4 5/6] fs/fs.c: add symbolic link case to fs_ls_generic()

2020-07-30 Thread Joao Marcos Costa
Adds an 'else if' statement inside the loop to check for symbolic links. Signed-off-by: Joao Marcos Costa --- Changes in v4: - No changes since v3. Changes in v3: - No changes since v2. Changes in v2: - This patch was added in v2 and did not exist in the last version. fs/

[PATCH v4 2/6] fs/squashfs: add filesystem commands

2020-07-30 Thread Joao Marcos Costa
Add 'ls' and 'load' commands. Signed-off-by: Joao Marcos Costa --- Changes in v4: - No changes since v3. Changes in v3: - No changes since v2. Changes in v2: - Add info. to MAINTAINERS - Add 'static' keyword to do_sqfs_*(). These functions' prototypes are n

[PATCH v4 6/6] test/py: Add tests for the SquashFS commands

2020-07-30 Thread Joao Marcos Costa
Add Python scripts to test 'ls' and 'load' commands. The scripts generate a SquashFS image and clean the directory after the assertions, or if an exception is raised. Signed-off-by: Joao Marcos Costa --- Changes in v4: - This patch was added in v4 and did not exist in the last version. M

[PATCH v4 0/6] Add support for the SquashFS filesystem

2020-07-30 Thread Joao Marcos Costa
Hello! This series adds support for the SquashFS filesystem. For now, zlib is the only supported compression type. This is my first contribution to U-Boot as well as to a major Open Source project. Changes in v4: - Add tests for the SquashFS commands - Add missing endianness conve

Re: [PATCH v3 3/5] include/u-boot, lib/zlib: add sources for zlib decompression

2020-07-30 Thread Joao Marcos Costa
On Thu, 30 Jul 2020 08:17:59 -0400 Tom Rini wrote: > On Thu, Jul 30, 2020 at 02:10:03PM +0200, Joao Marcos Costa wrote: > > On Wed, 29 Jul 2020 12:54:23 -0400 > > Tom Rini wrote: > > > > > On Wed, Jul 29, 2020 at 06:00:57PM +0200, Joao Marcos Costa > > > wrote: > > > > On Wed, 29 Jul 2020 1

Re: Please pull u-boot-dm

2020-07-30 Thread Tom Rini
On Tue, Jul 28, 2020 at 08:38:59PM -0600, Simon Glass wrote: > Hi Tom, > > The following changes since commit 3b191c56c841596771b4120f09fb556adf958b5c: > > Merge branch '2020-07-28-Kconfig-migrations' (2020-07-28 18:27:34 -0400) > > are available in the Git repository at: > > git://git.den

[PATCH] acpi: device: Fix check for sequence number

2020-07-30 Thread Wolfgang Wallner
Currently the function acpi_check_seq() checks whether dev->req_seq is unequal to "-1", but it should actually check dev->seq. Change it to check dev->seq. For req_seq the value "-1" would be a valid (meaning 'any'), while for seq the value "-1" means 'none' and is not valid. Quoting the descript

[PATCH] xilinx: zynqmp: Add support for saving variables

2020-07-30 Thread Michal Simek
Enabling saving variables to MMC(FAT), NAND, SPI based on primary bootmode. Maybe that logic can be tuned for more complicated use cases and better tested for different bootmodes. Tested on zcu104 to SD(FAT) and JTAG(NOWHERE). Signed-off-by: Michal Simek --- SPI is not tested and tuning is requ

Re: [PATCH v3 3/5] include/u-boot, lib/zlib: add sources for zlib decompression

2020-07-30 Thread Tom Rini
On Thu, Jul 30, 2020 at 02:10:03PM +0200, Joao Marcos Costa wrote: > On Wed, 29 Jul 2020 12:54:23 -0400 > Tom Rini wrote: > > > On Wed, Jul 29, 2020 at 06:00:57PM +0200, Joao Marcos Costa wrote: > > > On Wed, 29 Jul 2020 11:27:45 -0400 > > > Tom Rini wrote: > > > > > > > On Tue, Jul 21, 2020

[PATCH] board: tbs2910: Fix video output with existing environments

2020-07-30 Thread Soeren Moch
Migration to DM_VIDEO changed the output device name (in stout, stderr) from 'vga' to 'vidconsole'. This also was adapted in the default environment. However, existing user defined environments still use 'vga'. Enable this workaround to map the 'vga' name to 'vidconsole'. So we get HDMI video outpu

Re: [PATCH v3 3/5] include/u-boot, lib/zlib: add sources for zlib decompression

2020-07-30 Thread Joao Marcos Costa
On Wed, 29 Jul 2020 12:54:23 -0400 Tom Rini wrote: > On Wed, Jul 29, 2020 at 06:00:57PM +0200, Joao Marcos Costa wrote: > > On Wed, 29 Jul 2020 11:27:45 -0400 > > Tom Rini wrote: > > > > > On Tue, Jul 21, 2020 at 11:22:57AM +0200, Joao Marcos Costa wrote: > > > > > > > Add zlib (v1.2.11) u

[PATCH 2/2] cmd: clk: correctly handle depth for clk dump

2020-07-30 Thread Patrick Delaunay
Update depth only when clock uclass is found to have correct display of command "clk dump". Without this patch, the displayed depth is the binding depth for all the uclass and that can be strange as only clock uclass nodes are displayed. Signed-off-by: Patrick Delaunay --- cmd/clk.c | 3 ++- 1

[PATCH 1/2] cmd: clk: cosmetic: correct code alignment in show_clks

2020-07-30 Thread Patrick Delaunay
Correct code alignment in show_clks() function. Signed-off-by: Patrick Delaunay --- cmd/clk.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/cmd/clk.c b/cmd/clk.c index 439736d072..ba4540334a 100644 --- a/cmd/clk.c +++ b/cmd/clk.c @@ -25,2

[PATCH v2 06/10] drivers: spi: Add SPI controller driver for Octeon

2020-07-30 Thread Stefan Roese
From: Suneel Garapati Adds support for SPI controllers found on Octeon II/III and Octeon TX TX2 SoC platforms. Signed-off-by: Aaron Williams Signed-off-by: Suneel Garapati Signed-off-by: Stefan Roese Cc: Daniel Schwierzeck Cc: Aaron Williams Cc: Chandrakala Chavva Cc: Jagan Teki --- Cha

[PATCH] board: stm32mp1: remove board.c

2020-07-30 Thread Patrick Delaunay
Remove the file board/st/stm32mp1/board.c which is not more compiled since commit 156732cc8939 ("board: stm32mp1: move the function board_debug_uart_init in spl.c") Fixes: 156732cc8939 ("board: stm32mp1: move the function board_debug_uart_init in spl.c") Signed-off-by: Patrick Delaunay --- Issue

[PATCH v2 10/10] mips: octeon: Update EBB7304 defconfig

2020-07-30 Thread Stefan Roese
This patch enables the following options for the Octeon EBB7304 EVB: - PCI & DM_PCI - DM_SPI_FLASH & SPI flash device support - SPI & Octeon SPI driver - GPIO cmd support - I2C cmd support Signed-off-by: Stefan Roese --- (no changes since v2) Changes in v2: - Kconfig and defconfig changes sep

[PATCH v2 04/10] clk: clk_octeon: Add simple MIPS Octeon clock driver

2020-07-30 Thread Stefan Roese
This patch adds a simple clock driver for the Marvell Octeon MIPS SoC family. Its for IO clock rate passing via DT in some of the Octeon driver, like I2C. So that we don't need to use the non-mainline API octeon_get_io_clock(). Signed-off-by: Stefan Roese Cc: Lukasz Majewski --- (no changes sin

[PATCH v2 01/10] gpio: octeon_gpio: Add GPIO controller driver for Octeon

2020-07-30 Thread Stefan Roese
From: Suneel Garapati Add support for GPIO controllers found on Octeon II/III and Octeon TX TX2 SoC platforms. Signed-off-by: Aaron Williams Signed-off-by: Suneel Garapati Signed-off-by: Stefan Roese Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Tested on MIPS Octeon

[PATCH v2 07/10] mips: octeon: mrvl,cn73xx.dtsi: Add SPI DT node

2020-07-30 Thread Stefan Roese
Add the Octeon SPI DT node to the dtsi file. Signed-off-by: Stefan Roese --- (no changes since v2) Changes in v2: - Newly added to this series arch/mips/dts/mrvl,cn73xx.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/mips/dts/mrvl,cn73xx.dtsi b/arch/mips/dts/mrvl,cn

[PATCH v2 08/10] mips: octeon: mrvl, octeon-ebb7304.dts: Add SPI flash DT node

2020-07-30 Thread Stefan Roese
Add the SPI flash DT node for the EBB7304. Signed-off-by: Stefan Roese --- (no changes since v2) Changes in v2: - Newly added to this series arch/mips/dts/mrvl,octeon-ebb7304.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/mips/dts/mrvl,octeon-ebb7304.dts b/arch/mips/d

[PATCH v2 09/10] mips: octeon: Update Octeon Kconfig

2020-07-30 Thread Stefan Roese
This patch selects DM_SPI & DM_I2C for MIPS Octeon. DM_GPIO, DM_SERIAL and DM_ETH are already selected. Additionally the selections are now alphabetically sorted. Signed-off-by: Stefan Roese --- (no changes since v2) Changes in v2: - Kconfig and defconfig changes separated into 2 patches ar

[PATCH v2 05/10] mips: octeon: dts: Add Octeon clock driver DT nodes

2020-07-30 Thread Stefan Roese
This patch adds the DT nodes for the Octeon clock support via the common clk_ API. Signed-off-by: Stefan Roese --- (no changes since v1) arch/mips/dts/mrvl,cn73xx.dtsi| 10 ++ arch/mips/dts/mrvl,octeon-ebb7304.dts | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff

[PATCH v2 00/10] mips: octeon: Misc Octeon drivers, DT and Kconfig / defconfig updates

2020-07-30 Thread Stefan Roese
This patchset includes the following parts: - Octeon GPIO driver - Octeon SPI driver - New simple Octeon clk driver - DT updates (GPIO, SPI, I2C & CLK nodes) - Kconfig & defconfig updates In v2 I've added the SPI driver as well, so combine all the drivers / patches in one patchset, that have bee

[PATCH v2 03/10] mips: octeon: dts: Add I2C DT nodes

2020-07-30 Thread Stefan Roese
Add I2C DT nodes to the Octeon dts / dtsi files. Signed-off-by: Stefan Roese --- (no changes since v1) arch/mips/dts/mrvl,cn73xx.dtsi| 20 arch/mips/dts/mrvl,octeon-ebb7304.dts | 10 ++ 2 files changed, 30 insertions(+) diff --git a/arch/mips/dts/mrvl,cn73

[PATCH v2 02/10] mips: octeon: mrvl,cn73xx.dtsi: Add GPIO DT nodes

2020-07-30 Thread Stefan Roese
Add the Octeon GPIO DT node to the dtsi file. Signed-off-by: Stefan Roese --- (no changes since v1) arch/mips/dts/mrvl,cn73xx.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/mips/dts/mrvl,cn73xx.dtsi b/arch/mips/dts/mrvl,cn73xx.dtsi index a7bd55f8ad..8

Re: [PATCH] i2c: octeon_i2c: Misc fixes for ARM Octeon TX2 support

2020-07-30 Thread Daniel Schwierzeck
> This patch fixes a few issues noticed, when testing this new driver on > ARM Octeon TX2 again. Here the details: > > - Remove "common.h" header inclusion > - Use correct THP define on Octeon TX2 > - Octeon TX2 uses the same compatible as Octeon TX. We can't distinguish > both platforms this wa

Re: [PATCH v2] CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined

2020-07-30 Thread Daniel Schwierzeck
> Since commit 86cf1c82850f ("configs: Migrate CONFIG_NR_DRAM_BANKS") & > commit 999a772d9f24 ("Kconfig: Migrate CONFIG_NR_DRAM_BANKS"), > CONFIG_NR_DRAM_BANKS is always defined with a value (4 is default). > It makes no sense to still carry code that is guarded with > "#ifndef CONFIG_NR_DRAM_BANKS

Re: [PATCH v2 06/10] drivers: spi: Add SPI controller driver for Octeon

2020-07-30 Thread Stefan Roese
Hi Daniel, On 30.07.20 13:00, Daniel Schwierzeck wrote: Am Donnerstag, den 30.07.2020, 08:23 +0200 schrieb Stefan Roese: Hi Daniel, On 30.07.20 07:49, Stefan Roese wrote: Hi Daniel, On 24.07.20 15:56, Daniel Schwierzeck wrote: Am Donnerstag, den 23.07.2020, 12:17 +0200 schrieb Stefan Roese:

Re: efi_loader/RISC-V: misaligned load when running grubriscv64.efi

2020-07-30 Thread Heinrich Schuchardt
On 30.07.20 12:16, Sean Anderson wrote: > On 7/30/20 6:03 AM, Heinrich Schuchardt wrote: >> Dear Sean, >> >> when trying to run grubriscv64.efi from the >> trini/u-boot-gitlab-ci-runner:bionic-20200526-18Jun2020 Docker image on >> a MAIXDUINO the relocations are not naturally aligned: >> >> lib/efi

Re: [PATCH v2 06/10] drivers: spi: Add SPI controller driver for Octeon

2020-07-30 Thread Daniel Schwierzeck
Am Donnerstag, den 30.07.2020, 08:23 +0200 schrieb Stefan Roese: > Hi Daniel, > > On 30.07.20 07:49, Stefan Roese wrote: > > Hi Daniel, > > > > On 24.07.20 15:56, Daniel Schwierzeck wrote: > > > Am Donnerstag, den 23.07.2020, 12:17 +0200 schrieb Stefan Roese: > > > > From: Suneel Garapati > > >

[PATCH v2] CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined

2020-07-30 Thread Stefan Roese
Since commit 86cf1c82850f ("configs: Migrate CONFIG_NR_DRAM_BANKS") & commit 999a772d9f24 ("Kconfig: Migrate CONFIG_NR_DRAM_BANKS"), CONFIG_NR_DRAM_BANKS is always defined with a value (4 is default). It makes no sense to still carry code that is guarded with "#ifndef CONFIG_NR_DRAM_BANKS" (and sim

Re: efi_loader/RISC-V: misaligned load when running grubriscv64.efi

2020-07-30 Thread Sean Anderson
On 7/30/20 6:03 AM, Heinrich Schuchardt wrote: > Dear Sean, > > when trying to run grubriscv64.efi from the > trini/u-boot-gitlab-ci-runner:bionic-20200526-18Jun2020 Docker image on > a MAIXDUINO the relocations are not naturally aligned: > > lib/efi_loader/efi_image_loader.c(133) efi_loader_relo

[Patch v2] configs: ls1012a/ls1046a: Add CONFIG_ENV_OVERWRITE in defconfig

2020-07-30 Thread Kuldeep Singh
CONFIG_ENV_OVERWRITE disables write protection on various environment variables like "ethaddr" and "serial". Enable this config in LS1046A and LS1012A defconfigs. This resolves an error while setting multiple values of "ethaddr" variable. Before the change: => setenv ethaddr 00:E0:0C:00:06:0 => s

efi_loader/RISC-V: misaligned load when running grubriscv64.efi

2020-07-30 Thread Heinrich Schuchardt
Dear Sean, when trying to run grubriscv64.efi from the trini/u-boot-gitlab-ci-runner:bionic-20200526-18Jun2020 Docker image on a MAIXDUINO the relocations are not naturally aligned: lib/efi_loader/efi_image_loader.c(133) efi_loader_relocate(): efi_reloc 8030a000, offset 0x101e, type

[PATCH 1/5] ARM: uniphier: rename include guard of include/configs/uniphier.h

2020-07-30 Thread Masahiro Yamada
Make the include guard match to the file name. Signed-off-by: Masahiro Yamada --- include/configs/uniphier.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index d0841a7d55f9..1b942cf657db 100644 --- a/include/co

[PATCH 3/5] ARM: uniphier: remove unneeded header inclusion from board_late_init.c

2020-07-30 Thread Masahiro Yamada
is unneeded since commit 9248a78f40d6 ("ARM: UniPhier: remove Denali NAND controller fixup code"). is uneeded since commit 1320fa2e55d2 ("ARM: uniphier: remove workaround for the NAND write protect"). Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_late_init.c | 3 +-- 1 file

[PATCH 5/5] ARM: uniphier: use FIELD_GET() to get access to revision register fields

2020-07-30 Thread Masahiro Yamada
Define register fields as macros, and use FIELD_GET(). Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/sg-regs.h | 5 + arch/arm/mach-uniphier/soc-info.c | 21 ++--- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-uniphier/sg-regs.h

[PATCH 2/5] ARM: uniphier: remove unused uniphier_pin_init()

2020-07-30 Thread Masahiro Yamada
This function is unused since commit 862274913f8f ("bus: uniphier-system-bus: move hardware init from board files"). Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile | 1 - arch/arm/mach-uniphier/init.h | 1 - arch/arm/mach-uniphier/pinctrl-glue.c | 30

[PATCH 4/5] serial: uniphier: fix typo in comment

2020-07-30 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- drivers/serial/serial_uniphier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/serial_uniphier.c b/drivers/serial/serial_uniphier.c index 4004cb8d48a4..a098028ca001 100644 --- a/drivers/serial/serial_uniphier.c +++ b/drivers

Re: [PATCH 02/31] mtd: spi-nor: Tidy up error handling / debug code

2020-07-30 Thread Vignesh Raghavendra
Hi, On 26/07/20 8:24 pm, Simon Glass wrote: Hi Vignesh, On Mon, 20 Jul 2020 at 00:26, Vignesh Raghavendra wrote: Hi Simon, On 19/07/20 9:45 pm, Simon Glass wrote: The -ENODEV error value in spi_nor_read_id() is incorrect since there clearly is a device - it just cannot be supported. Desc

Re: [PATCH] efi_loader: add copyright notice

2020-07-30 Thread Heinrich Schuchardt
On 30.07.20 09:33, AKASHI Takahiro wrote: > Some amount of code was moved/derived from efi_variable.c regarding > UEFI secure boot, in particluar in the commit 012c56ac76e1 ("efi_loader: > restructure code for TEE variables"). > So add the orignal author's copyright notice. > > Signed-off-by: AKASH

Re: [PATCH 1/1] cmd: bdinfo: cleanup phys_addr_t output

2020-07-30 Thread Stefan Roese
On 28.07.20 17:56, Heinrich Schuchardt wrote: We currently print the memory size with at least 8 hexadecimal digits. This creates a ragged output on 64 bit boards, e.g. on a Kendryte K210: DRAM bank = 0x0002 -> start= 0x8060 -> size = 0x0020 memstart

Re: [PATCH v2 06/10] drivers: spi: Add SPI controller driver for Octeon

2020-07-30 Thread Stefan Roese
Hi Jagan, On 30.07.20 09:44, Jagan Teki wrote: On Thu, Jul 23, 2020 at 3:47 PM Stefan Roese wrote: From: Suneel Garapati Adds support for SPI controllers found on Octeon II/III and Octeon TX TX2 SoC platforms. Signed-off-by: Aaron Williams Signed-off-by: Suneel Garapati Signed-off-by: St

Re: [PATCH v2 06/10] drivers: spi: Add SPI controller driver for Octeon

2020-07-30 Thread Stefan Roese
Hi Jagan, On 30.07.20 09:50, Jagan Teki wrote: On Fri, Jul 24, 2020 at 7:26 PM Daniel Schwierzeck wrote: Am Donnerstag, den 23.07.2020, 12:17 +0200 schrieb Stefan Roese: From: Suneel Garapati Adds support for SPI controllers found on Octeon II/III and Octeon TX TX2 SoC platforms. Signed-o

Re: [PATCH v2 06/10] drivers: spi: Add SPI controller driver for Octeon

2020-07-30 Thread Jagan Teki
On Fri, Jul 24, 2020 at 7:26 PM Daniel Schwierzeck wrote: > > Am Donnerstag, den 23.07.2020, 12:17 +0200 schrieb Stefan Roese: > > From: Suneel Garapati > > > > Adds support for SPI controllers found on Octeon II/III and Octeon TX > > TX2 SoC platforms. > > > > Signed-off-by: Aaron Williams > >

Re: [PATCH v2 06/10] drivers: spi: Add SPI controller driver for Octeon

2020-07-30 Thread Jagan Teki
On Thu, Jul 23, 2020 at 3:47 PM Stefan Roese wrote: > > From: Suneel Garapati > > Adds support for SPI controllers found on Octeon II/III and Octeon TX > TX2 SoC platforms. > > Signed-off-by: Aaron Williams > Signed-off-by: Suneel Garapati > Signed-off-by: Stefan Roese > Cc: Daniel Schwierzeck

[PATCH] efi_loader: add copyright notice

2020-07-30 Thread AKASHI Takahiro
Some amount of code was moved/derived from efi_variable.c regarding UEFI secure boot, in particluar in the commit 012c56ac76e1 ("efi_loader: restructure code for TEE variables"). So add the orignal author's copyright notice. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_var_common.c | 1

Re: [PATCH] CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined

2020-07-30 Thread Stefan Roese
Hi Daniel, On 24.07.20 22:12, Daniel Schwierzeck wrote: Since commit 86cf1c82850f ("configs: Migrate CONFIG_NR_DRAM_BANKS") & commit 999a772d9f24 ("Kconfig: Migrate CONFIG_NR_DRAM_BANKS"), CONFIG_NR_DRAM_BANKS is always defined with a value (4 is default). It makes no sense to still carry code