[PATCH v2 2/2] usb: host: ehci-generic: Remove DM_REGULATOR flag

2022-05-05 Thread Patrice Chotard
Since commit 16cc5ad0b439 ("power: regulator: add dummy helper") regulator dummy helper are always available even if DM_REGULATOR is not set. DM_REGULATOR flag is no more needed to protect no DM core, remove it. Signed-off-by: Patrice Chotard --- Changes in v2: - update commit message driver

[PATCH v2 1/2] usb: host: ehci-generic: Make usage of clock/reset bulk() API

2022-05-05 Thread Patrice Chotard
Make usage of clock and reset bulk API in order to simplify the code Signed-off-by: Patrice Chotard --- Changes in v2: - add the error code in all dev_err() output. drivers/usb/host/ehci-generic.c | 103 ++-- 1 file changed, 32 insertions(+), 71 deletions(-) diff

[PATCH] arm64: versal: Add support to load an app at EL1

2022-05-05 Thread Ashok Reddy Soma
Add support to switch to EL1 and load an EL1 app from U-Boot which is executing at EL2 or EL3 in aarch64 mode. Signed-off-by: Ashok Reddy Soma --- board/xilinx/versal/board.c | 17 + 1 file changed, 17 insertions(+) diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal

Re: [PATCH] watchdog: Add MAX6370 watchdog timer driver

2022-05-05 Thread Stefan Roese
On 05.05.22 19:15, Pali Rohár wrote: On Thursday 05 May 2022 11:36:09 Pali Rohár wrote: On Tuesday 03 May 2022 07:16:34 Stefan Roese wrote: On 02.05.22 18:41, Pali Rohár wrote: MAX6370 watchdog is available e.g. on Freescale P1/P2 RDB-PC boards. Signed-off-by: Pali Rohár --- drivers/watch

[PATCH RFC v2 11/11] ti: dtsi: j721e: Use binman to package tispl.bin

2022-05-05 Thread Neha Malcom Francis
Explicit make commands were earlier used to generate tispl.bin image, now it is replaced using binman. Binman picks up and packages entries according to the description of entries given in the binman node in the device tree. The make commands that were earlier responsible for generating tispl.bin

[PATCH RFC v2 10/11] ti: dtsi: j721e: Use binman to package sysfw.itb and tiboot3.bin

2022-05-05 Thread Neha Malcom Francis
By providing entries in the binman node of the device tree, binman will be able to find and package board config binary artifacts generated by TIBoardConfig with sysfw.bin and generate the final image sysfw.itb. k3-j721e-r5-binman.dtsi has been introduced for R5 specific binman node. It can be the

[PATCH RFC v2 09/11] ti: x509: Remove shell script used for signing

2022-05-05 Thread Neha Malcom Francis
Earlier the k3_gen_x509_cert.sh was used for signing binaries with the x509 certificate for Texas Instruments K3 architecture devices. Since the signing process is handled by x509 etype now, there is no more requirement for this script, hence removing it. Signed-off-by: Neha Malcom Francis --- t

[PATCH RFC v2 08/11] ti: tispl.bin: Removed script that packages tispl.bin

2022-05-05 Thread Neha Malcom Francis
As tispl.bin is to be packaged (with ATF, OPTEE, DM and A72 SPL) using binman, the shell script k3_fit_atf.sh is no longer needed. Removing this file. Signed-off-by: Neha Malcom Francis --- tools/k3_fit_atf.sh | 123 1 file changed, 123 deletions(-)

[PATCH RFC v2 07/11] ti: tiboot3.bin: Remove tiboot3.bin target from makefile

2022-05-05 Thread Neha Malcom Francis
Intention of patch is to move the signing and packaging of tiboot3.bin image to binman, thus removing target from makefile. Also deleting k3_gen_x509_cert.sh which was earlier used to sign a binary associated with K3 devices with x509 certificate. This functionality has been replicated in binman w

[PATCH RFC v2 04/11] ti: etype: dm: Add entry type for TI DM

2022-05-05 Thread Neha Malcom Francis
K3 devices introduces the concept of centralized power, resource and security management to System Firmware. This is to overcome challenges by the traditional approach that implements system control functions on each of the processing units. The software interface for System Firmware is split into

[PATCH RFC v2 05/11] ti: etype: x509: Add etype for x509 certificate for K3 devices

2022-05-05 Thread Neha Malcom Francis
K3 devices x509 certificate added to certain binaries that allows ROM to validate the integrity of the image. Etype that generates an x509 certificate depending on boot flow added. Signed-off-by: Neha Malcom Francis --- tools/binman/entries.rst| 15 ++ tools/binman/etype/x509_cert.p

[PATCH RFC v2 06/11] ti: sysfw: Add support for packaging sysfw.itb

2022-05-05 Thread Neha Malcom Francis
For devices that require sysfw.itb, board config binary artifacts must be populated in the R5 output directory. These can be used by binman to package sysfw.itb. config.mk for mach-k3 updated to generate the required binaries using tibcfg_gen.py. Signed-off-by: Neha Malcom Francis --- arch/arm/

[PATCH RFC v2 03/11] ti: etype: sysfw: Add entry type for sysfw

2022-05-05 Thread Neha Malcom Francis
For K3 devices that require a sysfw image, add entry for SYSFW. It can contain system firmware image that can be packaged into sysfw.itb by binman. Signed-off-by: Tarun Sahu [n-fran...@ti.com: added tests for addition of etype] Signed-off-by: Neha Malcom Francis --- Makefile

[PATCH RFC v2 02/11] ti: tools: config: Add board config class to generate config binaries

2022-05-05 Thread Neha Malcom Francis
For validating config files and generating binary config artifacts, here board specific config class is added. Add function cfgBinaryGen() in tibcfg_gen.py. It uses TIBoardConfig class to load given schema and config files in YAML, validate them and generate binaries. Signed-off-by: Tarun Sahu [

[PATCH RFC v2 00/11] Integration of sysfw, tispl and tiboot3

2022-05-05 Thread Neha Malcom Francis
Devices that belong to the K3 architecture require SYSFW which is a FIT image consisting of a signed system firmware image and board config binaries. Board config binaries are needed to bring up SYSFW during U-Boot SPL startup. The board config data is given in YAML as input. These board configs c

Re: [PATCH 04/12] ARM: dts: sun7i: Sync from Linux v5.18-rc1

2022-05-05 Thread Andre Przywara
On Wed, 27 Apr 2022 15:31:23 -0500 Samuel Holland wrote: > Copy the devicetree source for the A20 SoC and all existing boards > verbatim from the Linux v5.18-rc1 tag. > > This commit also adds the following new board devicetrees: > - sun7i-a20-haoyu-marsboard.dts > - sun7i-a20-linutronix-testb

Re: [PATCH 03/12] ARM: dts: sun4i: Sync from Linux v5.18-rc1

2022-05-05 Thread Andre Przywara
On Wed, 27 Apr 2022 15:31:22 -0500 Samuel Holland wrote: > Copy the devicetree source for the A10 SoC and all existing boards > verbatim from the Linux v5.18-rc1 tag. > > This commit also adds the following new board devicetree: > - sun4i-a10-topwise-a721.dts > > While this update should not i

Re: [PATCH 02/12] ARM: dts: sunxi: Remove unused devicetree headers

2022-05-05 Thread Andre Przywara
On Wed, 27 Apr 2022 15:31:21 -0500 Samuel Holland wrote: > These files are not included anywhere and do not exist in the Linux > devicetree source. Indeed, in contrast to sun8i-q8-common.dtsi, those files here are not referenced anywhere in the U-Boot tree. > > Signed-off-by: Samuel Holland R

Re: [PATCH 01/12] dt-bindings: sunxi: Update clock/reset binding headers

2022-05-05 Thread Andre Przywara
On Wed, 27 Apr 2022 15:31:20 -0500 Samuel Holland wrote: > Some devicetree updates make use of newly-exposed clocks and resets. > To support that, copy the binding headers from the Linux v5.18-rc1 tag. > > Signed-off-by: Samuel Holland Confirmed to be identical to the files in the Linux tree.

[PATCH] sunxi: board: Fix UART PortF pinmux setup

2022-05-05 Thread Andre Przywara
When CONFIG_UART0_PORT_F is defined, we try to configure two PortF pins (usually used for the SD card) as UART0. Some SoCs use the mux value of 3 for this, while others use 4. The combination of Kconfig symbols we currently use was not quite right: we mis-configure the A31, A64, H6 and H616. Goin

[PATCH 2/2] clk: sunxi: add and use dummy gate clocks

2022-05-05 Thread Andre Przywara
Some devices enumerate various clocks in their DT, and many drivers just blanketly try to enable all of them. This creates problems since we only model a few gate clocks, and the clock driver outputs a warning when a clock is not described: = sunxi_set_gate: (CLK#3) unhandled = Som

[PATCH 1/2] clk: sunxi: add PIO bus gate clocks

2022-05-05 Thread Andre Przywara
The introduction of the DM pinctrl driver made its probe function enable all clocks enumerated in the DT. This includes the "CLK_BUS_PIO" (and variations) gate clock, but also CLK_PLL_PERIPH0. So far we didn't describe those clocks in our clock driver. As we enable them already in the SPL, the devi

[PATCH 0/2] sunxi: clk: fix unhandled clocks warnings

2022-05-05 Thread Andre Przywara
The introduction of the DM pinctrl driver saw many clocks, referenced in the respective pinctrl DT nodes, being enabled by the DM clock driver. We didn't model all them correctly, so there are now some warnings on the console when booting: = sunxi_set_gate: (CLK#58) unhandled = Th

Re: [PATCH] misc: fs_loader: Fix compile warnings when CONFIG_CMD_UBIFS is enabled

2022-05-05 Thread Tom Rini
On Fri, Apr 29, 2022 at 04:36:23PM +0200, Pali Rohár wrote: > drivers/misc/fs_loader.c: In function ‘mount_ubifs’: > drivers/misc/fs_loader.c:46:12: warning: implicit declaration of function > ‘ubi_part’ [-Wimplicit-function-declaration] > int ret = ubi_part(mtdpart, NULL); > ^~

Re: [PATCH] reset: Return 0 if ops unimplemented and remove empty functions

2022-05-05 Thread Tom Rini
On Tue, Apr 26, 2022 at 11:43:30PM +0200, Marek Vasut wrote: > In case the ops is not implemented, return 0 in the core right away. > This is better than having multiple copies of functions which just > return 0 in each reset driver. Drop all those empty functions. > > Signed-off-by: Marek Vasut

Re: [PATCH 1/1] clk: scmi: fix scmi_clk_get_attibute()

2022-05-05 Thread Tom Rini
On Tue, Apr 26, 2022 at 11:26:31PM +0200, Heinrich Schuchardt wrote: > Local variable out.name lives on the stack and therefore cannot > be returned directly. Move the strdup() call into the function. > (Coverity 352460) > > Fixes: 7c33f78983c3 ("clk: scmi: register scmi clocks with CCF") > Signe

Re: [PATCH] tools: mkimage: Avoid ENODATA in host tools

2022-05-05 Thread Tom Rini
On Tue, Apr 26, 2022 at 07:24:38PM +0200, Mark Kettenis wrote: > ENODATA isn't part of POSIX. Use EINVAL instead. > > Signed-off-by: Mark Kettenis > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v1] rtc: rv8803: fix off-by-one in month counting

2022-05-05 Thread Tom Rini
On Tue, Apr 26, 2022 at 09:26:12AM +0200, Oliver Graute wrote: > tm_mon has a range from 0..11, but the RTC expects 1..12. So we adapt > the month accordingly. This was determined when comparing the driver > with the corresponding linux kernel driver. > > Signed-off-by: Oliver Graute > Reviewed-

Re: [PATCH 1/1] cmd: mmc: don't assign unused values

2022-05-05 Thread Tom Rini
On Mon, Apr 25, 2022 at 11:11:06PM +0200, Heinrich Schuchardt wrote: > Don't assign a value to variable speedmode which is never used. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] cmd: onenand: fix printf codes

2022-05-05 Thread Tom Rini
On Mon, Apr 25, 2022 at 11:01:44PM +0200, Heinrich Schuchardt wrote: > For printing size_t use %zu or %zx. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] cmd: simplify do_adc_single()

2022-05-05 Thread Tom Rini
On Mon, Apr 25, 2022 at 10:26:45PM +0200, Heinrich Schuchardt wrote: > If argc is not < 3, it must be >= 3. > > If argc >= 3, argv[2] cannot be NULL. > > Fixes: 9de612ae4ded ("cmd: adc: Add support for storing ADC result in env > variable") > Signed-off-by: Heinrich Schuchardt Applied to u-bo

Re: [PATCH 1/1] cmd: fix long text for fdt command

2022-05-05 Thread Tom Rini
On Mon, Apr 25, 2022 at 06:35:05PM +0200, Heinrich Schuchardt wrote: > We don't have an option -cq but two distinct options -c and -q. > > Fixes: e9496ec37440 ("fdt: Add -q option to fdt addr for distro_bootcmd") > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom

Re: [PATCH] lib/date: Make rtc_mktime and mktime64 Y2038-ready

2022-05-05 Thread Tom Rini
On Sun, Apr 24, 2022 at 11:34:56AM +0200, Jan Kiszka wrote: > From: Jan Kiszka > > We currently overflow due to wrong types used internally in rtc_mktime, > on all platforms, and we return a too small type on 32-bit. > > One consumer that directly benefits from this is mktime64. Many others > m

Re: [PATCH] lib/date: Make rtc_mktime and mktime64 Y2038-ready

2022-05-05 Thread Tom Rini
On Sun, Apr 24, 2022 at 11:34:56AM +0200, Jan Kiszka wrote: > From: Jan Kiszka > > We currently overflow due to wrong types used internally in rtc_mktime, > on all platforms, and we return a too small type on 32-bit. > > One consumer that directly benefits from this is mktime64. Many others > m

Re: [PATCH] serial: smh: Check return value of strndup

2022-05-05 Thread Tom Rini
On Fri, Apr 22, 2022 at 02:50:23PM -0400, Sean Anderson wrote: > strndup can fail. Check for it. > > Fixes: 4855b39be ("serial: smh: Implement puts for DM") > Signed-off-by: Sean Anderson Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] tools/imagetool: Fix segfault when tparams->verify_header is NULL

2022-05-05 Thread Tom Rini
On Wed, Apr 20, 2022 at 11:58:39PM +0200, Nicolas Heemeryck wrote: > On some image types like i.MX8 and i.MX8M, the verify_header function > is not implemented. > > Before this commit, no check on tparams->verify_header was done causing > a segfault if NULL. Now, a proper error message is printed

[PATCH] RFC: net: fec: get rid of CONFIG_FEC_MXC_MDIO_BASE

2022-05-05 Thread Tim Harvey
A number of IMX8Q boards using FEC configure the address of the ethernet controller via defconfig as there are two FEC controllers in the SoC. Now that the FEC driver uses DM the register address should be coming from device-tree. Remove the hard coded config and while at it remove the unused CON

[PATCH v3 9/9] spl: spi: Consolidate spi_load_image_os into spl_spi_load_image

2022-05-05 Thread Sean Anderson
spi_load_image_os performs almost the same steps as the non-falcon-boot path of spl_spi_load_image. The load address is different, and it also loads a device tree, but that's it. Refactor the boot process so that they can both use the same load function. Signed-off-by: Sean Anderson --- (no chan

[PATCH v3 8/9] spl: Convert spi to spl_load

2022-05-05 Thread Sean Anderson
This converts the spi load method to use spl_load. As a consequence, it also adds support for LOAD_FIT_FULL. Signed-off-by: Sean Anderson Reviewed-by: Stefan Roese --- (no changes since v1) common/spl/spl_spi.c | 48 +++- 1 file changed, 7 insertions(+)

[PATCH v3 7/9] spl: Convert semihosting to spl_load

2022-05-05 Thread Sean Anderson
This converts the semihosting load method to use spl_load. As a result, it also adds support for LOAD_FIT_FULL and IMX images. Signed-off-by: Sean Anderson --- (no changes since v2) Changes in v2: - New common/spl/spl_semihosting.c | 39 +++- 1 file changed, 16

[PATCH v3 6/9] spl: Convert nor to spl_load

2022-05-05 Thread Sean Anderson
This converts the nor load method to use spl_load. As a result it also adds support for LOAD_FIT_FULL. Signed-off-by: Sean Anderson Reviewed-by: Stefan Roese --- (no changes since v1) common/spl/spl_nor.c | 35 ++- 1 file changed, 6 insertions(+), 29 deletions(

[PATCH v3 5/9] spl: Convert net to spl_load

2022-05-05 Thread Sean Anderson
This converts the net load method to use spl_load. As a result, it also adds support for LOAD_FIT_FULL and IMX images. Signed-off-by: Sean Anderson Reviewed-by: Stefan Roese --- (no changes since v1) common/spl/spl_net.c | 24 +--- 1 file changed, 5 insertions(+), 19 delet

[PATCH v3 4/9] spl: Convert mmc to spl_load

2022-05-05 Thread Sean Anderson
This converts the mmc loader to spl_load. Legacy images are handled by spl_load (via spl_parse_image_header), so mmc_load_legacy can be omitted. Signed-off-by: Sean Anderson Reviewed-by: Stefan Roese --- (no changes since v1) common/spl/spl_mmc.c | 73 -

[PATCH v3 3/9] spl: Convert fat to spl_load

2022-05-05 Thread Sean Anderson
This converts the fat loader to use spl_load. Signed-off-by: Sean Anderson Reviewed-by: Stefan Roese --- Changes in v3: - Fix failing on success common/spl/spl_fat.c | 40 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/common/spl/spl_fa

[PATCH v3 2/9] spl: Convert ext to use spl_load

2022-05-05 Thread Sean Anderson
This converts the ext load method to use spl_load. As a consequence, it also adds support for FIT and IMX images. Signed-off-by: Sean Anderson Reviewed-by: Stefan Roese --- (no changes since v1) common/spl/spl_ext.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(

[PATCH v3 1/9] spl: Add generic spl_load function

2022-05-05 Thread Sean Anderson
Implementers of SPL_LOAD_IMAGE_METHOD have to correctly determine what type of image is being loaded and then call the appropriate image load function correctly. This is tricky, because some image load functions expect the whole image to already be loaded (CONFIG_SPL_LOAD_FIT_FULL), some will load

[PATCH v3 0/9] spl: Use common function for loading/parsing images

2022-05-05 Thread Sean Anderson
This series adds support for loading all image types (Legacy, FIT (with and without LOAD_FIT_FULL), and i.MX) to the MMC, SPI, NOR, NET, FAT, and EXT load methods. It does this by introducing a helper function which handles the minutiae of invoking the proper parsing function, and reading the rest

Re: [PATCH] ARM: imx: imx8m: Adjust thermal trip points for Industrial parts

2022-05-05 Thread Tim Harvey
On Thu, May 5, 2022 at 11:10 AM Adam Ford wrote: > > If the thermal sensor is enabled in U-Boot, adjust the cpu-thermal > trip points for industrial rated parts. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c > index 8e23e6da32..619e04a

Re: [PATCH 1/1] tools: mkimage: set OPENSSL_API_COMPAT

2022-05-05 Thread Tom Rini
On Sat, Apr 30, 2022 at 03:45:24PM +0200, Heinrich Schuchardt wrote: > Building with OpenSSL 3.0 produces warnings like: > > ../tools/sunxi_toc0.c:846:17: warning: ‘RSA_get0_d’ is deprecated: > Since OpenSSL 3.0 [-Wdeprecated-declarations] > 846 | if (root_key && RSA_get0_d(root

Re: [PATCH] w1: w1-gpio: Loosen timings to improve cold boot reliability

2022-05-05 Thread Chris Morgan
On Tue, Apr 26, 2022 at 06:49:20AM +, eugen.hris...@microchip.com wrote: > On 12/9/21 10:27 AM, Eugen Hristev - M18282 wrote: > > On 11/30/21 5:46 PM, Chris Morgan wrote: > >> On Mon, Nov 22, 2021 at 11:16:22AM +, eugen.hris...@microchip.com > >> wrote: > >>> On 11/8/21 5:07 PM, Chris Morg

Re: [PATCH v2 3/9] spl: Convert fat to spl_load

2022-05-05 Thread Tom Rini
On Thu, May 05, 2022 at 03:05:06PM -0400, Sean Anderson wrote: > > > On 5/5/22 2:58 PM, Tom Rini wrote: > > On Thu, May 05, 2022 at 02:53:55PM -0400, Sean Anderson wrote: > >> > >> > >> On 5/5/22 11:38 AM, Tom Rini wrote: > >> > On Thu, May 05, 2022 at 10:51:39AM -0400, Sean Anderson wrote: > >

Re: [PATCH v2 3/9] spl: Convert fat to spl_load

2022-05-05 Thread Sean Anderson
On 5/5/22 2:58 PM, Tom Rini wrote: > On Thu, May 05, 2022 at 02:53:55PM -0400, Sean Anderson wrote: >> >> >> On 5/5/22 11:38 AM, Tom Rini wrote: >> > On Thu, May 05, 2022 at 10:51:39AM -0400, Sean Anderson wrote: >> >> Hi Tom, >> >> >> >> On 5/4/22 8:06 PM, Tom Rini wrote: >> >> > On Fri, Apr

Re: [PATCH v2 3/9] spl: Convert fat to spl_load

2022-05-05 Thread Tom Rini
On Thu, May 05, 2022 at 02:53:55PM -0400, Sean Anderson wrote: > > > On 5/5/22 11:38 AM, Tom Rini wrote: > > On Thu, May 05, 2022 at 10:51:39AM -0400, Sean Anderson wrote: > >> Hi Tom, > >> > >> On 5/4/22 8:06 PM, Tom Rini wrote: > >> > On Fri, Apr 22, 2022 at 02:27:41PM -0400, Sean Anderson wro

Re: [PATCH v2 3/9] spl: Convert fat to spl_load

2022-05-05 Thread Sean Anderson
On 5/5/22 11:38 AM, Tom Rini wrote: > On Thu, May 05, 2022 at 10:51:39AM -0400, Sean Anderson wrote: >> Hi Tom, >> >> On 5/4/22 8:06 PM, Tom Rini wrote: >> > On Fri, Apr 22, 2022 at 02:27:41PM -0400, Sean Anderson wrote: >> > >> >> This converts the fat loader to use spl_load. >> >> >> >> Sig

Re: [PATCH] include: configs: am**x/j721e/j721s2_evm.h: Move the stack pointer init address in arm64

2022-05-05 Thread Tom Rini
On Tue, Apr 19, 2022 at 08:56:02PM +0530, Aswath Govindraju wrote: > Currently, in case of arm64 bootloader and U-Boot the stack pointer is > initialized at an offset of NON_SECURE_MSRAM_SIZE from arm64 SPL's text > base address. After jumping to arm64, execution is done out of DDR. > Therefore, h

Re: [PATCH v2] ls10xxx: Use a sane SPL_SYS_MALLOC_F_LEN default

2022-05-05 Thread Tom Rini
On Thu, Apr 28, 2022 at 12:39:49PM -0400, Sean Anderson wrote: > SPL_SYS_MALLOC_F_LEN defaults to SYS_MALLOC_F_LEN. 0x1 is 64 KiB, or > around half of the total OCRAM size. Revert to the default of 0x2000. This > fixes SPL boot. > > Fixes: 545eceb520 ("imx8/ls10xx: Use a sane SYS_MALLOC_F_LEN

Re: [PATCH] board: synquacer: developerbox: Remove Masami from MAINTAINERS

2022-05-05 Thread Tom Rini
On Thu, Apr 28, 2022 at 06:13:04PM +0900, Masami Hiramatsu wrote: > Remove Masami Hiramatsu from MAINTAINERS since he will leave > Linaro and his email will be not available anymore. > > Signed-off-by: Masami Hiramatsu Thanks for all your contributions, applied to u-boot/master, thanks! -- To

Re: [PATCH 2/2] sandbox: Avoid binman error when run without device tree

2022-05-05 Thread Tom Rini
On Wed, Apr 27, 2022 at 01:47:57PM -0600, Simon Glass wrote: > With sandbox, U-Boot can be run without a device tree (i.e. no -d or -T > parameter). In this case an empty device tree is created for convenience. > With a recent change this causes an error due to the missing '/binman' > node. > > A

Re: [PATCH 1/2] test/py: Add a way to start sandbox without a device tree

2022-05-05 Thread Tom Rini
On Wed, Apr 27, 2022 at 01:47:56PM -0600, Simon Glass wrote: > This is useful sometimes when running a specific test. Add support for it > in the existing restart_uboot_with_flags() function. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [PATCH v4 3/3] pinctrl: mediatek: add support for different types of IO pins

2022-05-05 Thread Tom Rini
On Thu, Apr 21, 2022 at 02:23:53PM +0800, Sam Shih wrote: > There are many pins in an SoC, and register usage may vary by pins. > This patch introduces a concept of "io type" and "io type group" > to mediatek pinctrl drivers. This can provide different pinconf > handlers implementation (eg: "bias-

Re: [PATCH v4 2/3] pinctrl: mediatek: introduce multiple memory bases support

2022-05-05 Thread Tom Rini
On Thu, Apr 21, 2022 at 02:23:52PM +0800, Sam Shih wrote: > Pinctrl design of some mediatek SoC need to access registers that > distribute in multiple memory base address. this patch introduce new > mechanism in mediatek pinctrl driver to support the chips which have > the new design. > > This pa

Re: [PATCH v4 1/3] pinctrl: mediatek: rewrite mtk_pinconf_set and related functions

2022-05-05 Thread Tom Rini
On Thu, Apr 21, 2022 at 02:23:51PM +0800, Sam Shih wrote: > There are many pins in a SoCs, and different pin may belong > to different "io_type", For example: some pins of MT7622 belongs > to "io_type A", the other belongs to "io_type B", and pinctrl "V0" > means handle pinconf via "io_type A" or

Re: [PATCH v1 1/1] gpio: npcm: Add support for Nuvoton NPCM SoCs

2022-05-05 Thread Tom Rini
On Fri, Feb 25, 2022 at 10:14:50AM +0800, Stanley Chu wrote: > Add Nuvoton BMC NPCM7xx/NPCM8xx gpio driver > > Signed-off-by: Stanley Chu Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 4/4] timer: npcm: Add NPCM timer support

2022-05-05 Thread Tom Rini
On Tue, Apr 19, 2022 at 01:32:22PM +0800, Jim Liu wrote: > Add Nuvoton BMC NPCM7xx/NPCM8xx timer driver. > > Signed-off-by: Jim Liu > Signed-off-by: Stanley Chu Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 3/4] serial: npcm: Add support for Nuvoton NPCM SoCs

2022-05-05 Thread Tom Rini
On Tue, Apr 19, 2022 at 01:32:21PM +0800, Jim Liu wrote: > Add Nuvoton BMC NPCM7xx/NPCM8xx uart driver > > Signed-off-by: Jim Liu > Signed-off-by: Stanley Chu Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 2/4] clk: nuvoton: Add support for NPCM750

2022-05-05 Thread Tom Rini
On Tue, Apr 19, 2022 at 01:32:20PM +0800, Jim Liu wrote: > Add clock controller driver for NPCM750 > > Signed-off-by: Jim Liu > Signed-off-by: Stanley Chu > Reviewed-by: Sean Anderson Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 1/4] arm: nuvoton: Add support for Nuvoton NPCM750 BMC

2022-05-05 Thread Tom Rini
On Tue, Apr 19, 2022 at 01:32:19PM +0800, Jim Liu wrote: > Add basic support for the Nuvoton NPCM750 EVB (Poleg). > > Signed-off-by: Jim Liu Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH] ARM: imx: imx8m: Adjust thermal trip points for Industrial parts

2022-05-05 Thread Adam Ford
If the thermal sensor is enabled in U-Boot, adjust the cpu-thermal trip points for industrial rated parts. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 8e23e6da32..619e04a602 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/ma

Re: i.MX8MP usb status

2022-05-05 Thread Tim Harvey
On Wed, May 4, 2022 at 6:54 PM Peng Fan (OSS) wrote: > > > > On 2022/5/4 20:53, Marek Vasut wrote: > > On 5/4/22 14:26, Peng Fan wrote: > >> Hi Marek, > > > > Hi, > > > >> Since you did some work on i.MX8MP USB, may I know the status? > >> Does host/device mode both supported in upstream? > > > >

Re: i.MX8MP usb status

2022-05-05 Thread Marek Vasut
On 5/5/22 03:54, Peng Fan (OSS) wrote: On 2022/5/4 20:53, Marek Vasut wrote: On 5/4/22 14:26, Peng Fan wrote: Hi Marek, Hi, Since you did some work on i.MX8MP USB, may I know the status? Does host/device mode both supported in upstream? I only have HOST option available, so for me this

Re: [PATCH] watchdog: Add MAX6370 watchdog timer driver

2022-05-05 Thread Pali Rohár
On Thursday 05 May 2022 11:36:09 Pali Rohár wrote: > On Tuesday 03 May 2022 07:16:34 Stefan Roese wrote: > > On 02.05.22 18:41, Pali Rohár wrote: > > > MAX6370 watchdog is available e.g. on Freescale P1/P2 RDB-PC boards. > > > > > > Signed-off-by: Pali Rohár > > > --- > > > drivers/watchdog/Kco

[PATCH v4 16/16] [RFC] misc: nvmem: Convert to using udevices

2022-05-05 Thread Sean Anderson
Instead of calling uclass methods directly, instead create some nvmem devices solely for the purpose of holding nvmem ops. This is primarily to illustrate the size difference between these approaches. This patch should not be applied. Signed-off-by: Sean Anderson Patch-prefix: RFC --- Changes i

[PATCH v4 15/16] test: Load mac address using misc device

2022-05-05 Thread Sean Anderson
This loads a mac address using a misc device using the nvmem interface. Signed-off-by: Sean Anderson --- (no changes since v1) arch/sandbox/dts/test.dts | 9 - drivers/misc/misc_sandbox.c | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/dts/test.dt

[PATCH v4 14/16] test: Load mac address using RTC

2022-05-05 Thread Sean Anderson
This uses the nvmem API to load a mac address from an RTC. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) arch/sandbox/dts/test.dts | 9 - drivers/rtc/i2c_rtc_emul.c | 10 ++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/arch

[PATCH v4 13/16] test: Load mac address with i2c eeprom

2022-05-05 Thread Sean Anderson
This uses an i2c eeprom to load a mac address using the nvmem interface. Enable I2C_EEPROM for sandbox SPL since it is the only sandbox config which doesn't enable it eeprom. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- Changes in v4: - Enable CONFIG_I2C_EEPROM for sandbox_spl_defc

[PATCH v4 12/16] net: Add support for reading mac addresses from nvmem cells

2022-05-05 Thread Sean Anderson
This adds support for reading mac addresses from the "mac-address" nvmem cell. If there is no (local-)mac-address property, then we will try reading from an nvmem cell. For some existing examples of this property, refer to imx8mn.dtsi and imx8mp.dtsi. Unfortunately, fuse drivers have not yet been

[PATCH v4 11/16] sandbox: Enable NVMEM

2022-05-05 Thread Sean Anderson
This enables NVMEM for all sandbox defconfigs, enabling it to be used in unit tests in the next few commits. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- Changes in v4: - Enable CONFIG_NVMEM for sandbox_spl_defconfig configs/sandbox64_defconfig| 1 + configs/sandbox_defco

[PATCH v4 10/16] misc: Add support for nvmem cells

2022-05-05 Thread Sean Anderson
This adds support for "nvmem cells" as seen in Linux. The nvmem device class in Linux is used for various assorted ROMs and EEPROMs. In this sense, it is similar to UCLASS_MISC, but also includes UCLASS_I2C_EEPROM, UCLASS_RTC, and UCLASS_MTD. New drivers corresponding to a Linux-style nvmem device

[PATCH v4 09/16] misc: i2c_eeprom: Add fallbacks

2022-05-05 Thread Sean Anderson
Add some fallback functions for when i2c_eeprom is disabled. This allows code to reference i2c_eeprom_* functions without needing to check whether support has been compiled in. Signed-off-by: Sean Anderson --- Changes in v4: - New include/i2c_eeprom.h | 24 1 file chan

[PATCH v4 08/16] misc: i2c_eeprom: Make i2c_eeprom_write use a const buf

2022-05-05 Thread Sean Anderson
i2c_eeprom_ops->write uses a const buf, so use one for the wrapper function as well. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) drivers/misc/i2c_eeprom.c | 3 ++- include/i2c_eeprom.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --g

[PATCH v4 07/16] net: dsa: Fix segmentation fault if master fails to probe

2022-05-05 Thread Sean Anderson
If the DSA master fails to probe for whatever reason, then DSA devices will continue on as if nothing is wrong. This can cause incorrect behavior. In particular, on sandbox, dsa_sandbox_probe attempts to access the master's private data. This is only safe to do if the master has been probed first.

[PATCH v4 06/16] sandbox: Move some mac addresses to device tree

2022-05-05 Thread Sean Anderson
This prevents some conflicts when running sandbox with -D, since the "rom" mac address will be random and won't match the environment. We still need to keep addresses for eth1 and eth6 in the environment, because dm_test_eth_rotate expects to be able to disable them by removing their envaddr variab

[PATCH v4 05/16] sandbox: Remove eth2addr from environment

2022-05-05 Thread Sean Anderson
DSA interfaces use the same mac address for each interface, unless instructed otherwise. Just set eth4addr and let eth2addr and eth7addr be set automatically. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) board/sandbox/sandbox.env | 1 - 1 file changed, 1 del

[PATCH v4 04/16] sandbox: net: Remove fake-host-hwaddr

2022-05-05 Thread Sean Anderson
Instead of reading a pseudo-rom mac address from the device tree, just use whatever we get from write_hwaddr. This has the effect of using the mac address from the environment (or from the device tree, if it is specified). Signed-off-by: Sean Anderson Reviewed-by: Simon Glass Acked-by: Ramon Fri

[PATCH v4 03/16] test: eth: Add test for ethernet addresses

2022-05-05 Thread Sean Anderson
This adds a test to make sure that all the ethernet interfaces have their addresses read properly. At the moment everything is read from the environment, but the next few commits will add additional sources. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v3) Change

[PATCH v4 02/16] sandbox: net: Add mac address for eth8 to environment

2022-05-05 Thread Sean Anderson
The phy_eth0 interface introduced in commit f3dd213e15 ("net: introduce helpers to get PHY ofnode from MAC") uses a globally-administered address. Switch to using a locally-administered address, and add it to the sandbox environment, like the others. Signed-off-by: Sean Anderson --- Changes in v

[PATCH v4 01/16] sandbox: net: Add aliases for ethernet devices

2022-05-05 Thread Sean Anderson
Commit f3dd213e15 ("net: introduce helpers to get PHY ofnode from MAC") changed the ethernet sequence assignment from uclass 36: ethernet 0 * eth@10002000 @ 05813460, seq 0 1 * eth@10003000 @ 05813550, seq 5 2 * sbe5 @ 05813640, seq 3 3 * eth@10004000 @ 05813730, seq 6 4 * dsa-test-eth @

[PATCH v4 00/16] Add support for NVMEM API

2022-05-05 Thread Sean Anderson
This adds support for the nvmem-cells properties cropping up in manyb device trees. This is an easy way to load configuration, version information, or calibration data from a non-volatile memory source. For more information, refer to patch 6 ("misc: Add support for nvmem cells"). For the moment I

Re: [PATCH] Makefile: Avoid non-portable GNU sed extension

2022-05-05 Thread Heinrich Schuchardt
Am 5. Mai 2022 18:58:48 MESZ schrieb Mark Kettenis : >> Date: Thu, 5 May 2022 16:55:24 +0200 >> From: Heinrich Schuchardt >> >> On 5/5/22 16:42, Mark Kettenis wrote: >> > Use [:space:] instead of \s and \S in regular expression that >> > determines the sandbox target architecture. Fixes the b

Re: [PATCH 2/2] usb: host: ehci-generic: Remove DM_REGULATOR flag

2022-05-05 Thread Marek Vasut
On 5/5/22 16:58, Patrice CHOTARD wrote: HI Marek On 5/5/22 15:45, Marek Vasut wrote: On 5/5/22 15:17, Patrice Chotard wrote: Currently, DM_REGULATOR flag is no more needed to protect no DM core, remove it. DM_REGULATOR flag is actually Kconfig symbol. Why is it no longer needed ? (answer sh

Re: [PATCH] Makefile: Avoid non-portable GNU sed extension

2022-05-05 Thread Mark Kettenis
> Date: Thu, 5 May 2022 16:55:24 +0200 > From: Heinrich Schuchardt > > On 5/5/22 16:42, Mark Kettenis wrote: > > Use [:space:] instead of \s and \S in regular expression that > > determines the sandbox target architecture. Fixes the build > > failure on OpenBSD introduced with commit 4e65ca00f3a

Re: [PATCH 4/7] sunxi: use boot source for determining environment location

2022-05-05 Thread Chris Morgan
Will do. Sorry, I stepped away from things for a while but I will test it now that I am back. On Wed, Apr 20, 2022 at 6:34 PM Andre Przywara wrote: > > On Fri, 15 Apr 2022 12:28:22 -0500 > Chris Morgan wrote: > > Hi Chris, > > > On Tue, Jan 11, 2022 at 12:46:04PM +, Andre Przywara wrote: > >

Re: [PATCH v2 3/9] spl: Convert fat to spl_load

2022-05-05 Thread Tom Rini
On Thu, May 05, 2022 at 10:51:39AM -0400, Sean Anderson wrote: > Hi Tom, > > On 5/4/22 8:06 PM, Tom Rini wrote: > > On Fri, Apr 22, 2022 at 02:27:41PM -0400, Sean Anderson wrote: > > > >> This converts the fat loader to use spl_load. > >> > >> Signed-off-by: Sean Anderson > >> Reviewed-by: Stef

[PATCH 3/3] exports: Fix export of SPI access functions

2022-05-05 Thread Paul Barker
* With CONFIG_DM_SPI defined, spi_get_bus_and_cs needs to be used instead of spi_setup_slave to configure a SPI bus. As spi_setup_slave is already present in the export list it is reasonable to also export spi_get_bus_and_cs. * For the functions listed in the jump table to be callable they must al

[PATCH 2/3] examples: hello_world: Drop inclusion of common header

2022-05-05 Thread Paul Barker
The "common.h" header is not covered by the licensing exception for standalone applications. Let's drop inclusion of this header from the hello_world example to prove that a standalone app can be built without it. Signed-off-by: Paul Barker --- examples/standalone/hello_world.c | 1 - 1 file cha

[PATCH 1/3] Licenses: Clarify exceptions for standalone apps

2022-05-05 Thread Paul Barker
On 2010-01-27, an email [1] was sent to the mailing list by Wolfgang Denk which clarified the intended licensing exceptions for standalone applications. As the "export.h" header and the "stubs.c" source files are required to implement a standalone application, the intention was that these files be

[PATCH 0/3] Clarify standalone application support

2022-05-05 Thread Paul Barker
While looking into the support for u-boot standalone applications I noticed that there was some mis-alignment between the license exception and the files which needed to be included to get a functioning application. I also noticed that the set of SPI access functions defined in the jump table was m

Re: [PATCH 1/5] phy: adin: remove broken support for adi,phy-mode-override

2022-05-05 Thread Josua Mayer
\o/ Am 04.05.22 um 15:46 schrieb Nate Drude: Hi Josua, On Wed, 2022-05-04 at 11:51 +0300, Josua Mayer wrote: Hi Nate, Am 02.05.22 um 16:25 schrieb Nate Drude: Hi Josua, On Sun, 2022-05-01 at 15:41 +0300, Josua Mayer wrote: The adin_get_phy_mode_override function does not compile, because i

Re: [PATCH v3 08/13] misc: Add support for nvmem cells

2022-05-05 Thread Sean Anderson
Hi Simon, On 5/3/22 4:50 AM, Simon Glass wrote: > Hi Sean, > > On Fri, 29 Apr 2022 at 13:40, Sean Anderson wrote: >> >> Hi Simon, >> >> On 4/25/22 11:24 AM, Sean Anderson wrote: >> > >> > >> > On 4/25/22 1:48 AM, Simon Glass wrote: >> >> Hi Sean, >> >> >> >> On Mon, 18 Apr 2022 at 13:37, Sean An

Re: [PATCH 2/2] usb: host: ehci-generic: Remove DM_REGULATOR flag

2022-05-05 Thread Patrice CHOTARD
HI Marek On 5/5/22 15:45, Marek Vasut wrote: > On 5/5/22 15:17, Patrice Chotard wrote: >> Currently, DM_REGULATOR flag is no more needed to protect no DM core, >> remove it. > > DM_REGULATOR flag is actually Kconfig symbol. > > Why is it no longer needed ? (answer should be in the commit message

  1   2   >