Re: [PATCH 2/2] ARM: dts: stm32: Fix GPIO hog flags on DHCOM DRC02

2021-01-06 Thread Patrick DELAUNAY
On 1/2/21 5:44 PM, Marek Vasut wrote: The GPIO hog flags are ignored by gpiolib-of.c now, set the flags to 0. Since GPIO_ACTIVE_HIGH is defined as 0, this change only increases the correctness of the DT. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/dts/st

Re: [PATCH 1/2] ARM: dts: stm32: Fix GPIO hog flags on DHCOM PicoITX

2021-01-06 Thread Patrick DELAUNAY
Hi Marek, On 1/2/21 5:44 PM, Marek Vasut wrote: The GPIO hog flags are ignored by gpiolib-of.c now, set the flags to 0. Due to a change in gpiolib-of.c, setting flags to GPIO_ACTIVE_LOW and using output-low DT property leads to the GPIO being set high instead. Signed-off-by: Marek Vasut Cc: Pa

[PATCH v4 0/3] tools/sunxi: Use mkimage for SPL generation

2021-01-06 Thread Andre Przywara
Hi, a small update fixing the strncpy bug and addressing too long DT names properly. Thanks to Samuel for pointing this out. == So far creating a bootable SPL image for Allwinner based boards uses the mksunxiboot tool. Most other platforms seemed to have integrated this kind of fu

[PATCH v4 1/3] sunxi: Factor out eGON BROM header description

2021-01-06 Thread Andre Przywara
To be able to easily share the Allwinner eGON BROM header structure between the tools and the SPL code, move the struct definition into a separate header file. Signed-off-by: Andre Przywara --- arch/arm/include/asm/arch-sunxi/spl.h | 65 + include/sunxi_image.h

[PATCH v4 3/3] sunxi: Use mkimage for SPL boot image generation

2021-01-06 Thread Andre Przywara
Switch the SPL boot image generation from using mksunxiboot to the new sunxi_egon format of mkimage. Verified to create identical results for all 152 Allwinner boards. Signed-off-by: Andre Przywara --- scripts/Makefile.spl | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --gi

[PATCH v4 2/3] tools: mkimage: Add Allwinner eGON support

2021-01-06 Thread Andre Przywara
So far we used the separate mksunxiboot tool for generating a bootable image for Allwinner SPLs, probably just for historical reasons. Use the mkimage framework to generate a so called eGON image the Allwinner BROM expects. The new image type is called "sunxi_egon", to differentiate it from the (s

Re: [PATCH 01/17] sunxi: Add support for AXP305 PMIC

2021-01-06 Thread André Przywara
On 05/01/2021 22:36, Jaehoon Chung wrote: Hi, thanks for having a look! > Hi Jernej > > On 1/3/21 6:26 PM, Jernej Skrabec wrote: >> This PMIC can be found on H616 boards and it's very similar to AXP805 >> and AXP806. > > Is there any plan to cleanup codes? There is no support for either of th

Re: [PATCH] drivers: tee: i2c trampoline driver

2021-01-06 Thread Jorge Ramirez-Ortiz, Foundries
On 29/12/20, Simon Glass wrote: > Hi Jorge, > > On Mon, 21 Dec 2020 at 11:15, Jorge Ramirez-Ortiz wrote: > > > > This commit gives the secure world access to the I2C bus so it can > > communicate with I2C slaves (tipically those would be secure elements > > like the NXP SE050). > > > > Since thi

Re: [PATCH 6/8 v2] efi_loader: Replace config option with EFI variable for initrd loading

2021-01-06 Thread Ilias Apalodimas
On Tue, 5 Jan 2021 at 10:50, Ilias Apalodimas wrote: > > Akashi san, > > On Tue, Jan 05, 2021 at 11:42:22AM +0900, AKASHI Takahiro wrote: > > On Wed, Dec 30, 2020 at 05:07:18PM +0200, Ilias Apalodimas wrote: > > > Up to now we install EFI_LOAD_FILE2_PROTOCOL to load an initrd > > > unconditionally

Re: [PATCH] drivers: tee: i2c trampoline driver

2021-01-06 Thread Jorge Ramirez-Ortiz, Foundries
On 29/12/20, Simon Glass wrote: > Hi Jorge, > > On Mon, 21 Dec 2020 at 11:15, Jorge Ramirez-Ortiz wrote: > > > > This commit gives the secure world access to the I2C bus so it can > > communicate with I2C slaves (tipically those would be secure elements > > like the NXP SE050). > > > > Since thi

Re: [PATCH 6/8 v2] efi_loader: Replace config option with EFI variable for initrd loading

2021-01-06 Thread Heinrich Schuchardt
On 06.01.21 11:43, Ilias Apalodimas wrote: > On Tue, 5 Jan 2021 at 10:50, Ilias Apalodimas > wrote: >> >> Akashi san, >> >> On Tue, Jan 05, 2021 at 11:42:22AM +0900, AKASHI Takahiro wrote: >>> On Wed, Dec 30, 2020 at 05:07:18PM +0200, Ilias Apalodimas wrote: Up to now we install EFI_LOAD_FILE

[PULL] Pull request for u-boot master / v2021.01 = u-boot-stm32-20210106

2021-01-06 Thread Patrick DELAUNAY
Hi Tom, Please pull the latest STM32 related patches for u-boot/master, v2021.01: u-boot-stm32-20210106 - Fix GPIO hog flags on DHCOM boards CI status: https://gitlab.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/5764 Thanks, Patrick git request-pull origin/master https

Re: [PATCH] tools: kconfig: Use scripts/dtc for the MKIMAGE_DTC_PATH

2021-01-06 Thread Bin Meng
On Sun, Dec 20, 2020 at 9:21 PM Bin Meng wrote: > > Use the dtc executable generated during the U-Boot build process for > mkimage. This removes the build dependency on the external dtc. > > Signed-off-by: Bin Meng > --- > > tools/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

[PATCH] mmc: mmc_spi: Print verbose debug output when crc16 check fails

2021-01-06 Thread Bin Meng
Add some verbose debug output when crc16 check fails. Signed-off-by: Bin Meng --- drivers/mmc/mmc_spi.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c index 50fcd32674..87d7edffd5 100644 --- a/drivers/mmc/mmc_spi.c +++ b/

Re: [PATCH 6/8 v2] efi_loader: Replace config option with EFI variable for initrd loading

2021-01-06 Thread Ilias Apalodimas
> >>> [...] > >>> If so, the content of "Initrd" should contain a generic EFI > >>> representation of file path. > >>> Please note that "Boot" internally contains a flattened string of > >>> "EFI device path" to the image while efidebug command accepts a style of > >>> "mmc 0:1 image" as

Re: [PATCHv3 1/2] image: cleanup pre-processor usage

2021-01-06 Thread Tom Rini
On Mon, Jan 04, 2021 at 08:48:03PM +0100, Sebastian Reichel wrote: > Replace most #ifdef checks for USE_HOSTCC and CONFIG_* > with normal if instructions. > > Reviewed-by: Simon Glass > Signed-off-by: Sebastian Reichel Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCHv3 2/2] image: support board_fit_config_name_match

2021-01-06 Thread Tom Rini
On Mon, Jan 04, 2021 at 08:48:04PM +0100, Sebastian Reichel wrote: > Support reusing board_fit_config_name_match() to automatically > select a sensible default configuration for booting fitImages > using 'bootm'. > > Reviewed-by: Simon Glass > Signed-off-by: Sebastian Reichel Applied to u-boot

Re: [GIT PULL] TI changes for v2020.01

2021-01-06 Thread Tom Rini
On Tue, Jan 05, 2021 at 08:56:08PM +0530, Lokesh Vutla wrote: > Hi Tom, > Please find the PR containing TI related changes targeted for > v2020.01 release. Details about the PR are updated in the tag message > > The following changes since commit c15f44acf9d473f4682bfdc63b8aebd313492b15: >

Re: Please pull u-boot-dm/next into -next

2021-01-06 Thread Tom Rini
On Tue, Jan 05, 2021 at 07:53:35PM -0700, Simon Glass wrote: > Hi Tom, > > This is for u-boot/next > > Build here: > > https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/5761 > > > The following changes since commit c86b18074c9d40bfa63cda1068b6dfb810d4377d: > > Merge tag 'efi-n

Re: [PULL] Pull request for u-boot master / v2021.01 = u-boot-stm32-20210106

2021-01-06 Thread Tom Rini
On Wed, Jan 06, 2021 at 01:12:26PM +0100, Patrick DELAUNAY wrote: > > Hi Tom, > > Please pull the latest STM32 related patches for u-boot/master, v2021.01: > u-boot-stm32-20210106 > > - Fix GPIO hog flags on DHCOM boards > > CI status: > https://gitlab.denx.d

[PATCH] mtd: spi-nor.h: Change spaces to tabs

2021-01-06 Thread Bin Meng
U-Boot coding convention prefers tabs over spaces. Signed-off-by: Bin Meng --- include/linux/mtd/spi-nor.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index 233fdc341a..988c1bd0c1 100644 ---

Re: [PATCH] configs: stm32mp1: activate OF_LIVE for DT live support

2021-01-06 Thread Patrice CHOTARD
Hi Patrick On 12/11/20 3:32 PM, Patrick Delaunay wrote: > Activate the live DT to reduce the DT parsing time. > > For example the boot time is reduced by 200ms on STM32MP157C-EV1 board > for stm32mp15_basic_defconfig (boot with SPL) or > stm32mp15_trusted_defconfig (boot with TF-A). > > Signed-off

Re: [PATCH] tools: kconfig: Use scripts/dtc for the MKIMAGE_DTC_PATH

2021-01-06 Thread Tom Rini
On Wed, Jan 06, 2021 at 08:39:56PM +0800, Bin Meng wrote: > On Sun, Dec 20, 2020 at 9:21 PM Bin Meng wrote: > > > > Use the dtc executable generated during the U-Boot build process for > > mkimage. This removes the build dependency on the external dtc. > > > > Signed-off-by: Bin Meng > > --- > >

Re: [PATCH] drivers: tee: i2c trampoline driver

2021-01-06 Thread Igor Opaniuk
Hi Simon, On Tue, Dec 29, 2020 at 5:34 AM Simon Glass wrote: > > Hi Jorge, > > On Mon, 21 Dec 2020 at 11:15, Jorge Ramirez-Ortiz wrote: > > > > This commit gives the secure world access to the I2C bus so it can > > communicate with I2C slaves (tipically those would be secure elements > > typical

[PATCH] smcc: fix sign bit expansion

2021-01-06 Thread Volodymyr Babchuk
Signed ARM_SMCCC_FAST_CALL value is shifted to 31'st bit. Then, it is expanded to 64 bit value, which results in 1s in higher 32 bits. This causes corrupted values in 64-bit SMC IDs and issues in buggy handlers of 32-bit calls. We need to make ARM_SMCCC_FAST_CALL unsigned long, so it would work p

Re: [PATCH 00/30] dm: Implement OF_PLATDATA_INST in driver model (part E)

2021-01-06 Thread Walter Lozano
Hi Simon, On 12/31/20 1:09 AM, Simon Glass wrote: This series builds on the recent dtoc implementation of build-time device instantiation. It adds the required driver model support, which is basically a few more data structures. With this, sandbox_spl and chromebook_coral both use the new feat

Re: [PATCH] tools: kconfig: Use scripts/dtc for the MKIMAGE_DTC_PATH

2021-01-06 Thread Bin Meng
On Wed, Jan 6, 2021 at 9:24 PM Tom Rini wrote: > > On Wed, Jan 06, 2021 at 08:39:56PM +0800, Bin Meng wrote: > > On Sun, Dec 20, 2020 at 9:21 PM Bin Meng wrote: > > > > > > Use the dtc executable generated during the U-Boot build process for > > > mkimage. This removes the build dependency on the

[PATCH V2] net: dwc_eth_qos: Pad descriptors to cacheline size

2021-01-06 Thread Marek Vasut
The DWMAC4 IP has the possibility to skip up to 7 AXI bus width size words after the descriptor. Use this to pad the descriptors to cacheline size and remove the need for noncached memory altogether. Moreover, this lets Tegra use the generic cache flush / invalidate operations. Signed-off-by: Mare

[PATCH] net: ks8851: Reset internal RXFC count on bad packet

2021-01-06 Thread Marek Vasut
A sporadic condition occurs when the "bad packet" error is triggered repeatedly, which results in "bad packet" messages scrolling on the console during transfer. To avoid triggering this, reset the internal RXFC count on the first occurance of the "bad packet", which forces the code to re-read the

Re: [PATCH] MAINTAINERS: Update STi and STM32 maintainers emails in remaining files

2021-01-06 Thread Patrick DELAUNAY
Hi Patrice, On 1/4/21 5:00 PM, Patrice Chotard wrote: A previous series already update STMicroelectronics emails maintainers but some files have been omitted (Makefile, .dts, .dtsi and .rst files). Update Patrick and my email address with the one dedicated to upstream activities. Signed-off-by:

Re: [PATCH] arm: stm32mp: stm32prog: always flush DFU on start command for uart

2021-01-06 Thread Patrice CHOTARD
Hi Patrick On 12/11/20 1:36 PM, Patrick Delaunay wrote: > From: Patrick Delaunay > > Remove the test on data->dfu_seq, because dfu_seq=0 not only when > the DFU is not started (mask with 0x). This flush is mandatory > as the final treatment, common with USB, is done in DFU callback. > > This

Re: [PATCH 22/49] dtoc: Tidy up src_scan tests

2021-01-06 Thread Simon Glass
Some of these tests don't actually check anything. Add a few more checks to complete the tests. Also add a simple scan test that does the basics. Signed-off-by: Simon Glass --- tools/dtoc/test_src_scan.py | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) Appl

Re: [PATCH 21/49] dtoc: Move src_scan tests to a separate file

2021-01-06 Thread Simon Glass
Move the tests related to scanning into their own class, updating them to avoid using dtb_platdata as a pass-through. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 2 +- tools/dtoc/main.py | 5 +- tools/dtoc/src_scan.py | 4 +- tools/dtoc/test_dtoc.py | 73 --

Re: [PATCH 20/49] dtoc: Split source-code scanning to a separate file

2021-01-06 Thread Simon Glass
Before expanding the scanning features any more, move this into a separate file. This will make it easier to maintain in the future. In particular, it reduces the size of dtb_platdata.py and allows us to add tests specifically for scanning, without going through that file. The pieces moved are the

Re: [PATCH 19/49] dtoc: Drop dm_populate_phandle_data()

2021-01-06 Thread Simon Glass
This has not been needed since parent information was added and we started using indicies for references to other drivers instead of pointers. It was kept around in the expectation that it might be needed later. However with the latest updates, it doesn't seem likely that we'll need this in the fo

Re: [PATCH 18/49] dtoc: Output nodes in order

2021-01-06 Thread Simon Glass
Previously we had to worry about nodes being output before those that they depended on, thus causing build errors. So the current algorithm is careful to output nodes in the right order. We now use a different method for outputting phandles that does not involve pointers. Also we plan to add a 'd

Re: [PATCH 17/49] dtoc: Allow specifying the base directory for tests

2021-01-06 Thread Simon Glass
The base directory of U-Boot, where the source is, it currently calculated from the directory of the dtb_platdata.py script. If this is installed elsewhere that will not work. Also it is inconvenient for tests. Add a parameter to allow specifying this base directory. To test this, pass a temporar

Re: [PATCH 15/49] dtoc: Rename dt-platdata.c to dt-plat.c

2021-01-06 Thread Simon Glass
Use this new name to be consistent with the rest of U-Boot, which talks about 'plat' for the platform data, which is what this file holds. Signed-off-by: Simon Glass --- include/dm/platdata.h | 2 +- include/linux/mtd/spi-nor.h | 2 +- scripts/Makefile.spl| 2 +- tools/dtoc/dtb_pl

Re: [PATCH 13/49] dtoc: Run tests using test_util

2021-01-06 Thread Simon Glass
Use the standard function for running tests and reported results. This allows the tests to run in parallel, which is a significant speed-up on most machines (e.g. 4.5 seconds -> 1.5s on mine). Signed-off-by: Simon Glass --- tools/dtoc/main.py | 31 ++- 1 file changed

Re: [PATCH 12/49] concurrencytest: Fix Python3 warning

2021-01-06 Thread Simon Glass
This gives a warning in some situations: File "tools/dtoc/../concurrencytest/concurrencytest.py", line 95, in do_fork stream = os.fdopen(c2pread, 'rb', 1) File "/usr/lib/python3.8/os.py", line 1023, in fdopen return io.open(fd, *args, **kwargs) RuntimeWarning: line buffering (bu

Re: [PATCH 11/49] dm: Rename U_BOOT_DRIVER_ALIAS to DM_DRIVER_ALIAS

2021-01-06 Thread Simon Glass
We use the U_BOOT_ prefix (i.e. U_BOOT_DRIVER) to declare a driver but in every other case we just use DM_. Update the alias macros to use the DM_ prefix. We could perhaps rename U_BOOT_DRIVER() to DM_DRIVER(), but this macro is widely used and there is at least some benefit to indicating it us a

Re: [PATCH 10/49] dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET()

2021-01-06 Thread Simon Glass
In the spirit of using the same base name for all of these related macros, rename this to have the operation at the end. This is not widely used so the impact is fairly small. Signed-off-by: Simon Glass --- arch/arm/lib/gic-v3-its.c | 10 +- arch/arm/mach-aspeed/as

Re: [PATCH 07/49] Makefile: Invoke dtoc only once

2021-01-06 Thread Simon Glass
Update the Makefile to run dtoc only once, generating all required files. This saves time since there is a lot of processing in each invocation of dtoc. We already have a variable for the object files to build, so use that instead of repeating the same filenames. Add a C version of this also, for

Re: [PATCH 08/49] dm: Rename U_BOOT_DEVICE() to U_BOOT_DRVINFO()

2021-01-06 Thread Simon Glass
On 12/29/20 12:34 AM, Simon Glass wrote: > The current macro is a misnomer since it does not declare a device > directly. Instead, it declares driver_info record which U-Boot uses at > runtime to create a device. > > The distinction seems somewhat minor most of the time, but is becomes > quite conf

Re: [PATCH 05/49] dtoc: Allow outputing to multiple files

2021-01-06 Thread Simon Glass
Implement the 'output directory' feature, allowing dtoc to write the output files separately to the supplied directories. This allows us to handle the struct and platdata output in one run of dtoc. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 96 ++

Re: [PATCH 01/49] dtoc: Tidy up pylint warnings in test

2021-01-06 Thread Simon Glass
Tidy up this file to reduce the number of pylint warnings. Signed-off-by: Simon Glass --- tools/dtoc/test_dtoc.py | 156 ++-- 1 file changed, 85 insertions(+), 71 deletions(-) Applied to u-boot-dm/next, thanks!

Re: [PATCH 03/49] dtoc: Test the stdout output

2021-01-06 Thread Simon Glass
Normally dtoc outputs to a file but it also offers a way to write output to stdout. At present the test for that does not actually check that the output is correct. Add this to the test. This uses a member variable to hold the expected text, so it can be used in muitiple places. Signed-off-by: Si

Re: [PATCH 02/49] dtoc: Use None to mean stdout

2021-01-06 Thread Simon Glass
At present dtoc uses '-' internally to mean that output should go to stdout. This is not necessary and None is more convenient. Update it. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 10 +- tools/dtoc/main.py | 2 +- tools/dtoc/test_dtoc.py| 2 +- 3 files c

Re: [PATCH 04/49] dtoc: Allow providing a directory to write files to

2021-01-06 Thread Simon Glass
At present dtoc writes only a single file on each invocation. U-Boot writes the two files it needs by separate invocations of dtoc. Since dtoc now scans all U-Boot driver source, this is fairly slow (about 1 second per file). It would be better if dtoc could write all the files at once. In prepar

Re: [PATCH 06/49] dtoc: Add an 'all' command

2021-01-06 Thread Simon Glass
With upcoming changes, dtoc will output several files for different of-platdata components. Add a way to output all ava!ilable files at once ('all'), to the appropriate directories, without needing to specify each one invidually. This puts the commands in alphabetical order, so update the tests a

Re: [PATCH 14/49] dtoc: Add a header comment to each generated file

2021-01-06 Thread Simon Glass
It is currently fairly obvious what the two generated files are for, but this will change as more are added. It is helpful for readers to describe the purpose of each file. Add a header commment field to OutputFile and use it to generate a comment at the top of each file. Signed-off-by: Simon Gla

Re: [PATCH 16/49] dtoc: Add the method for each command to OutputFile

2021-01-06 Thread Simon Glass
Rather than the if/else construct, update OutputFile with the method to call to process each command. This is easier to maintain as the number of commands increases. Rename generate_tables to generate_plat since it better describes what is being generated ('plat' is the U-Boot name for platform da

Re: [PATCH 09/49] dm: Rename DM_GET_DEVICE() to DM_DRVINFO_GET()

2021-01-06 Thread Simon Glass
On 12/29/20 12:34 AM, Simon Glass wrote: > This does not get a device (struct udevice *) but a struct driver_info * > so the name is confusing. > > Rename it accordingly. Since we plan to have several various of these > macros, put GET at the end instead of the middle, so it is easier to spot > the

Re: [PATCH v2 1/2] ARM: dts: sunxi: h6: Update DT files

2021-01-06 Thread André Przywara
On 03/01/2021 10:00, Jernej Skrabec wrote: > Updated H6 DT files are based on Linux 5.11-rc1 release. > > Signed-off-by: Jernej Skrabec That looks alright, but it seems like the OrangePi One Plus .dts is not updated? Cheers, Andre > --- > arch/arm/dts/sun50i-h6-beelink-gs1.dts| 70 +++- >

Re: [PATCH v2 2/2] sunxi: Add support for Tanix TX6

2021-01-06 Thread André Przywara
On 03/01/2021 10:00, Jernej Skrabec wrote: > This commit adds support for Tanix TX6 TV box, based on H6. It's low end > H6 board, with 3 GiB of RAM, eMMC, fast ethernet, USB, IR and other > peripherals. > > DT file is taken from Linux 5.11-rc1 release. > > Signed-off-by: Jernej Skrabec > --- >

Re: [PATCH] arm: stm32mp: stm32prog: always flush DFU on start command for uart

2021-01-06 Thread Patrice CHOTARD
Hi Patrick   On 12/11/20 1:36 PM, Patrick Delaunay wrote: > From: Patrick Delaunay > > Remove the test on data->dfu_seq, because dfu_seq=0 not only when > the DFU is not started (mask with 0x). This flush is mandatory > as the final treatment, common with USB, is done in DFU callback. > > Thi

Re: Re: [PATCH v2 1/2] ARM: dts: sunxi: h6: Update DT files

2021-01-06 Thread Jernej Škrabec
Dne sreda, 06. januar 2021 ob 16:41:02 CET je André Przywara napisal(a): > On 03/01/2021 10:00, Jernej Skrabec wrote: > > Updated H6 DT files are based on Linux 5.11-rc1 release. > > > > Signed-off-by: Jernej Skrabec > > That looks alright, but it seems like the OrangePi One Plus .dts is not > u

Re: Re: [PATCH v2 2/2] sunxi: Add support for Tanix TX6

2021-01-06 Thread Jernej Škrabec
Dne sreda, 06. januar 2021 ob 16:51:09 CET je André Przywara napisal(a): > On 03/01/2021 10:00, Jernej Skrabec wrote: > > This commit adds support for Tanix TX6 TV box, based on H6. It's low end > > H6 board, with 3 GiB of RAM, eMMC, fast ethernet, USB, IR and other > > peripherals. > > > > DT fil

[PATCH v3 0/2] sunxi: add support for Tanix TX6

2021-01-06 Thread Jernej Skrabec
This series introduces Tanix TX6 TV box support based on Allwinner H6 SoC. First patch syncs H6 DT files from Linux 5.11-rc1 release and second one adds support for Tanix TX6 board. Please take a look. Best regards, Jernej Changes from v2: - added OrangePi One Plus DT update in patch 1 - removed

[PATCH v3 2/2] sunxi: Add support for Tanix TX6

2021-01-06 Thread Jernej Skrabec
This commit adds support for Tanix TX6 TV box, based on H6. It's low end H6 board, with 3 GiB of RAM, eMMC, fast ethernet, USB, IR and other peripherals. DT file is taken from Linux 5.11-rc1 release. Signed-off-by: Jernej Skrabec --- arch/arm/dts/Makefile| 3 +- arch/arm/dts/s

[PATCH v3 1/2] ARM: dts: sunxi: h6: Update DT files

2021-01-06 Thread Jernej Skrabec
Updated H6 DT files are based on Linux 5.11-rc1 release. Signed-off-by: Jernej Skrabec --- arch/arm/dts/sun50i-h6-beelink-gs1.dts | 70 +++- arch/arm/dts/sun50i-h6-cpu-opp.dtsi | 117 ++ arch/arm/dts/sun50i-h6-orangepi-lite2.dts| 71 +++- arch/arm/dts/sun50i-h6-orangepi-

Re: [PATCH] drivers: tee: i2c trampoline driver

2021-01-06 Thread Jorge Ramirez-Ortiz, Foundries
On 29/12/20, Simon Glass wrote: > Hi Jorge, > > On Tue, 29 Dec 2020 at 01:30, Jorge Ramirez-Ortiz, Foundries > wrote: > > > > On 28/12/20, Simon Glass wrote: > > > Hi Jorge, > > > > > > On Mon, 21 Dec 2020 at 11:15, Jorge Ramirez-Ortiz > > > wrote: > > > > > > > > This commit gives the secure w

[PATCHv2] drivers: tee: i2c trampoline driver

2021-01-06 Thread Jorge Ramirez-Ortiz
This commit gives the secure world access to the I2C bus so it can communicate with I2C slaves (typically those would be secure elements like the NXP SE050). A similar service implementation has been merged in linux: c05210ab ("drivers: optee: allow op-tee to access devices on the i2c bus") Signe

[PATCH 0/2] remoteproc: ti_k3_arm64: Program GTC FID0 register

2021-01-06 Thread Nishanth Menon
Hi, ARMv8's generic timer[1] picks up it's graycode from GTC. However, the frequency of the GTC is supposed to be programmed in CNTFID0[2] register prior to enabling the GTC in CNTCR[3] register. U-boot for K3 is currently missing that programming sequence. This series introduces the clock nodes n

[PATCH 2/2] remoteproc: ti_k3_arm64: Program CNTFID0 register in GTC

2021-01-06 Thread Nishanth Menon
ARMv8's generic timer[1] picks up it's graycode from GTC. However, the frequency of the GTC is supposed to be programmed in CNTFID0[2] register prior to enabling the GTC in CNTCR[3] register. In K3 architecture, GTC provides a central time to many parts of the SoC including graycode to the generic

[PATCH 1/2] arm: dts: k3-*-r5-*-board: Add GTC clock

2021-01-06 Thread Nishanth Menon
Add GTC Clock definition as index 0 clock so that we can use the clock node in the driver later on. Signed-off-by: Nishanth Menon --- arch/arm/dts/k3-am654-r5-base-board.dts| 1 + arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 1 + arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 1 +

Re: [PATCH V2] net: dwc_eth_qos: Pad descriptors to cacheline size

2021-01-06 Thread Stephen Warren
On 1/6/21 7:14 AM, Marek Vasut wrote: > The DWMAC4 IP has the possibility to skip up to 7 AXI bus width size words > after the descriptor. Use this to pad the descriptors to cacheline size and > remove the need for noncached memory altogether. Moreover, this lets Tegra > use the generic cache flush

Re: [GIT PULL] xilinx patches for v2021.04

2021-01-06 Thread Tom Rini
On Tue, Jan 05, 2021 at 02:41:27PM +0100, Michal Simek wrote: > Hi Tom, > > please pull these patches for 2021.04 release. I tried it merge it with > your next branch and I see some merge conflict but not with my patches > that's why I expect you will be dealing with it self. > > Thanks, > Micha

[PATCH] Include support for dev_xxx macros

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath Now that linux/compat.h does not define dev_xxx macros, we need to include dm/device_compat.h to use dev_xxx macros Signed-off-by: Gireesh Hiremath --- drivers/video/am335x-fb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/am335x-fb.c b/drivers/video

[PATCH 2/2] am335x, guardian: Enable panel driver Himax HX8238D

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath Enable lcd controller related clocks, pinmux, config, interface and port Signed-off-by: Gireesh Hiremath --- arch/arm/dts/am335x-guardian-u-boot.dtsi | 15 +++ arch/arm/dts/am335x-guardian.dts | 8 +++- arch/arm/mach-omap2/am33xx/Kconfig |

[PATCH 0/2] Add Support for Himax HX8238D Display Panel

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath Add diaplsy panel driver for Himax HX8238D with * SPI based initialization for HX8238D * Resolution: 320x240 * Color-Mode: RGB Enable the HX8238D driver for am335x, guardian board with related clocks, pinmux, config, interface and port Gireesh Hiremath (1): am335x, guar

[PATCH] am335x, guardian: mem: Add board dependent mem values

2021-01-06 Thread Gireesh.Hiremath
From: Moses Christopher - Add mem-guardian.h derived from am33xx/mem.h * Add GPMC config values optimized for Bosch Guardian Board * NAND Chip used by Bosch Guardian Board is Micron MT29F4G08ABBFA Signed-off-by: Moses Christopher --- .../include/asm/arch-am33xx/mem-guardian.h| 6

[PATCH 1/2] drivers: video: Add Support for Himax HX8238D Panel

2021-01-06 Thread Gireesh.Hiremath
From: Moses Christopher * SPI based initialization for HX8238D * Resolution: 320x240 * Color-Mode: RGB * Initial Work is done by Sjoerd Simons https://gitlab.apertis.org/packaging/u-boot/-/blob\ /5f259720e3e64965d50da89a841ad6eb256a47df/debian/patches\ /apertis/powertools/0005-video-Add-Hi

[PATCH 00/10] Add support am335, Guardian

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath add support for backlight, splash screen, tftp_load_addr in environment add memtest cmd, swi logic, dhcp fail info add ubi fastmap support update pinmux, code clean up Gireesh Hiremath (8): am335x, guardian: Enable backlight am335x, guardian: Enable splash screen am3

[PATCH 05/10] am335x, guardian: cmd: add memtest configs

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath - Add mtest, meminfo commands - Add default mem start address as 0x8000 - Add defauly mem end address as 0x8100 - Implies default test runs for first 16MiB of DRAM Signed-off-by: Gireesh Hiremath --- configs/am335x_guardian_defconfig | 2 ++ include/configs/am335

[PATCH 04/10] am335x, guardian: set tftp_load_addr in environment

2021-01-06 Thread Gireesh.Hiremath
From: Moses Christopher Set tftp_load_addr to 0x8200 in MEM_LAYOUT_ENV_SETTINGS Signed-off-by: Moses Christopher --- include/configs/am335x_guardian.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/am335x_guardian.h b/include/configs/am335x_guardian.h index 1a14b4249d

[PATCH 01/10] am335x, guardian: Enable backlight

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath Enable backlight,set brightness value and dimming frequency Signed-off-by: Gireesh Hiremath --- board/bosch/guardian/board.c | 26 ++ include/configs/am335x_guardian.h | 1 + 2 files changed, 27 insertions(+) diff --git a/board/bosch/guardi

[PATCH 02/10] am335x, guardian: Enable splash screen

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath - Display splash screen - Print "U-Boot" on display when bmp fails to load due to any reason Signed-off-by: Gireesh Hiremath --- board/bosch/guardian/board.c | 77 ++- configs/am335x_guardian_defconfig | 5 +- include/configs/am335x_guar

[PATCH 03/10] am335x, guardian: configs: add ubi fastmap support

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath - Ideally enabling the config should trigger fastmap, if it doesn't work then send ubi.fm_autoconvert=1 as kernel cmdline argument Signed-off-by: Gireesh Hiremath --- configs/am335x_guardian_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_g

[PATCH 06/10] am335x, guardian: display DHCP Failed on lcd when dhcp fails during boot

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath * Applicable only when distro_bootcmd is executed * Text color is defaulted to White on Black Background * Text color changes when changed in board.c Ex: Red when no splash screen image is found Signed-off-by: Gireesh Hiremath --- include/configs/am335x_guardian.h | 3

[PATCH 10/10] am335x, guardian: code cleanup and boot optimization

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath - remove unneeded headers in board.c - remove unneeded commands and configs from the build Signed-off-by: Gireesh Hiremath --- board/bosch/guardian/board.c | 21 - configs/am335x_guardian_defconfig | 3 ++- 2 files changed, 2 insertions(+), 22 d

[PATCH 07/10] am335x, guardian: update swi logic

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath read boot_mode_gpio and set the swi status Signed-off-by: Gireesh Hiremath --- board/bosch/guardian/board.c | 15 +-- include/configs/am335x_guardian.h | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/board/bosch/guardian/board.c

[PATCH 08/10] am335x, guardian: Update pinmux configuration

2021-01-06 Thread Gireesh.Hiremath
From: Moses Christopher pinmux update for guardian board Signed-off-by: Moses Christopher --- arch/arm/dts/am335x-guardian.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/am335x-guardian.dts b/arch/arm/dts/am335x-guardian.dts index 93ee2e6c09..69bee45

[PATCH 0/1] Add update available flag along with bootcount

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath By adding update_avalibale flag we wanted control the increment of bootcount, update_available flag is set from user space when there is upgrade in software which allow to increment of bootcount, otherwise no increment in the bootcount. Update_available and bootcount will b

[PATCH 09/10] am335x, guardian: set environment variable autoload to no

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath autoload: if set to "no" then rarpb, bootp or dhcp commands will just perform a configuration lookup from the BOOTP / DHCP server, but not try to load any image using TFTP Signed-off-by: Gireesh Hiremath --- include/configs/am335x_guardian.h | 2 +- 1 file changed, 1 ins

[PATCH 1/1] am335x, guardian: software update available status is stored in AM3352 RTC scracth register

2021-01-06 Thread Gireesh.Hiremath
From: Gireesh Hiremath RTC second scratch register[32-bit]: -zero byte hold boot count value -first byte hold update available state -second byte hold version -third byte hold magic number Signed-off-by: Gireesh Hiremath Gbp-Pq: Topic apertis/guardian Gbp-Pq: Name am335x-guardian-softw

Re: [PATCH V2] net: dwc_eth_qos: Pad descriptors to cacheline size

2021-01-06 Thread Marek Vasut
On 1/6/21 8:25 PM, Stephen Warren wrote: On 1/6/21 7:14 AM, Marek Vasut wrote: The DWMAC4 IP has the possibility to skip up to 7 AXI bus width size words after the descriptor. Use this to pad the descriptors to cacheline size and remove the need for noncached memory altogether. Moreover, this le

Re: [PATCH V2] net: dwc_eth_qos: Pad descriptors to cacheline size

2021-01-06 Thread Stephen Warren
On 1/6/21 1:53 PM, Marek Vasut wrote: > On 1/6/21 8:25 PM, Stephen Warren wrote: >> On 1/6/21 7:14 AM, Marek Vasut wrote: >>> The DWMAC4 IP has the possibility to skip up to 7 AXI bus width size >>> words >>> after the descriptor. Use this to pad the descriptors to cacheline >>> size and >>> remove

Re: [PATCH V2] net: dwc_eth_qos: Pad descriptors to cacheline size

2021-01-06 Thread Marek Vasut
On 1/6/21 10:06 PM, Stephen Warren wrote: [...] diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h -#define CONFIG_SYS_NONCACHED_MEMORY    (1 << 20)    /* 1 MiB */ This is wrong; there are other devices that are used on Tegra that require the noncached me

Re: [PATCH V2] net: dwc_eth_qos: Pad descriptors to cacheline size

2021-01-06 Thread Stephen Warren
On 1/6/21 2:10 PM, Marek Vasut wrote: > On 1/6/21 10:06 PM, Stephen Warren wrote: > [...] > > diff --git a/include/configs/tegra-common-post.h > b/include/configs/tegra-common-post.h > -#define CONFIG_SYS_NONCACHED_MEMORY    (1 << 20)    /* 1 MiB */ This is wrong; there

Re: [linux-sunxi] [PATCH v4 0/3] tools/sunxi: Use mkimage for SPL generation

2021-01-06 Thread Jernej Škrabec
Dne sreda, 06. januar 2021 ob 10:24:35 CET je Andre Przywara napisal(a): > Hi, > > a small update fixing the strncpy bug and addressing too long DT names > properly. Thanks to Samuel for pointing this out. > == > > So far creating a bootable SPL image for Allwinner based boards us

[PATCH v2] rockchip: rk3328: Add support for FriendlyARM NanoPi R2S

2021-01-06 Thread David Bauer
This adds support for the NanoPi R2S from FriendlyArm. Rockchip RK3328 SoC 1GB DDR4 RAM Gigabit Ethernet (WAN) Gigabit Ethernet (USB3) (LAN) USB 2.0 Host Port MicroSD slot Reset button WAN - LAN - SYS LED Signed-off-by: David Bauer --- arch/arm/dts/Makefile | 1 + arch/ar

Re: [PATCH 01/17] sunxi: Add support for AXP305 PMIC

2021-01-06 Thread Jaehoon Chung
On 1/6/21 7:11 PM, André Przywara wrote: > On 05/01/2021 22:36, Jaehoon Chung wrote: > > Hi, > > thanks for having a look! > >> Hi Jernej >> >> On 1/3/21 6:26 PM, Jernej Skrabec wrote: >>> This PMIC can be found on H616 boards and it's very similar to AXP805 >>> and AXP806. >> >> Is there any pl

Re: [PATCH] mmc: mmc_spi: Print verbose debug output when crc16 check fails

2021-01-06 Thread Jaehoon Chung
Hi Bin, On 1/6/21 9:47 PM, Bin Meng wrote: > Add some verbose debug output when crc16 check fails. > > Signed-off-by: Bin Meng > --- > > drivers/mmc/mmc_spi.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c > index

Re: [RFC] mmc: fsl_esdhc_imx: Use esdhc_soc_data flags to set host caps

2021-01-06 Thread Tim Harvey
On Tue, Jan 5, 2021 at 2:20 PM Adam Ford wrote: > > On Tue, Jan 5, 2021 at 4:07 PM Jaehoon Chung wrote: > > > > Hi Adam, > > > +CC: Tim Harvey, > > > On 12/31/20 2:39 AM, Adam Ford wrote: > > > The Linux driver automatically can detect and enable UHS, HS200, HS400 > > > and HS400_ES automatically

[PATCH] net: eth-uclass: Change uclass driver name to ethernet

2021-01-06 Thread David Wu
dev_read_alias_seq() used uc_drv->name compared to alias stem string, Ethernet's alias stem uses "ethernet", which does not match the eth-uclass driver name "eth", can not get the correct index of ethernet alias namer. So it seems change uclass driver name to match the alias stem is a more reasonab

[PATCH 00/10] smbios: Enhancements for more flexibility

2021-01-06 Thread Simon Glass
This series includes various patches to allow more flexibility as to where the data for SMBIOS tables comes from: - introduces some standard sysinfo options as a source, e.g. to read strapping pins to determine the board revision - allows the U-Boot version number to be included - allows the ve

[PATCH 01/10] README: Add doumentation for version information

2021-01-06 Thread Simon Glass
There are quite a few available version options in U-Boot. Add a list of the available Makefile variables and #defines, along with examples. Signed-off-by: Simon Glass --- README | 84 ++ 1 file changed, 84 insertions(+) diff --git a/READ

[PATCH 02/10] Makefile: Provide numeric versions

2021-01-06 Thread Simon Glass
For SMBIOS we want to store the numeric version numbers in the tables. It does not make sense to parse the strings. Instead, add new #defines with the version and patchlevel. Signed-off-by: Simon Glass --- Makefile | 4 README | 8 2 files changed, 12 insertions(+) diff --git a

[PATCH 05/10] smbios: Set BIOS release version

2021-01-06 Thread Simon Glass
We may as well include the U-Boot release information in the type-0 table since it is designed for that purpose. U-Boot uses release versions based on the year and month. The year cannot fit in a byte, so drop the century. Signed-off-by: Simon Glass --- lib/smbios.c | 4 ++-- 1 file changed, 2

  1   2   >