[PATCH] gpio: renesas: Add R-Car Gen4 support

2023-02-28 Thread Marek Vasut
From: Hai Pham Add support for the GPIO controller block in the R-Car Gen4 family. It has a General Input Enable Register (INEN), whose reset state is to have all inputs disabled. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut --- drivers/gpio/gpio-rcar.c | 1

[PATCH] mmc: renesas-sdhi: Add R-Car Gen4 support

2023-02-28 Thread Marek Vasut
From: Hai Pham Support R-Car Gen4 family. The default quirk is similar to previous generation. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut # Use RCAR_64 Kconfig --- drivers/mmc/renesas-sdhi.c | 1 + drivers/mmc/tmio-common.c | 2 +- 2 files changed, 2

[PATCH] i2c: rcar_i2c: Add R-Car Gen4 support

2023-02-28 Thread Marek Vasut
From: Hai Pham Add support for R-Car Gen4 SoCs into the driver. While I2C on R-Car Gen4 does support some extra features (Slave Clock Stretch Select), for now it is treated the same as I2C on R-Car Gen3, which let us share the same driver. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham

[PATCH] spi: renesas: Make driver available on R-Car Gen4

2023-02-28 Thread Marek Vasut
Use CONFIG_RCAR_64 to make the driver available on both R-Car Gen3 and R-Car Gen4. Signed-off-by: Marek Vasut --- Cc: Geert Uytterhoeven Cc: Jagan Teki Cc: Simon Glass Cc: Tom Rini --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi

[PATCH 1/2] serial: sh: Add R-Car Gen4 support

2023-02-28 Thread Marek Vasut
From: Hai Pham Add R-Car Gen4 family support. The basic function is as same as previous R-Car Generation. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Swap RZ/A1 and Gen4 to keep the GenN sequence, use RCAR_64] --- Cc: Simon Glass --- drivers/serial

[PATCH 2/2] serial: sh: Add HSCIF support for R-Car SoC

2023-02-28 Thread Marek Vasut
From: Hai Pham Provide the basic HSCIF support for R-Car SoC. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Fill in HSSRR offset for Gen2 and SCBRR calculation for Gen2 and Gen3] --- Cc: Simon Glass --- doc/device-tree-bindings/serial/sh.txt | 2

[PATCH 02/11] dt-bindings: clock: Add R8A779F0 S4 CPG Core Clock headers

2023-02-28 Thread Marek Vasut
From: Tho Vu Add definitions for R8A779F0 S4 CPG Core Clock headers from Linux next commit 058f4df42121 ("Add linux-next specific files for 20230228") Reviewed-by: Marek Vasut Signed-off-by: Tho Vu Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Update to linux nex

[PATCH 01/11] dt-bindings: power: Add R8A779F0 S4 SYSC power domain definitions

2023-02-28 Thread Marek Vasut
From: Tho Vu Add power domain indices for R-Car S4 (R8A779F0) from Linux next commit 058f4df42121 ("Add linux-next specific files for 20230228") Reviewed-by: Marek Vasut Signed-off-by: Tho Vu Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Update to linux next 2023

[PATCH 04/11] clk: renesas: Add R8A779F0 S4 clock tables

2023-02-28 Thread Marek Vasut
From: Hai Pham Add clock tables for R8A779F0 S4 SoC Based on Linux commit 24aaff6a6ce4 ("clk: renesas: cpg-mssr: Add support for R-Car S4-8") by Yoshihiro Shimoda and sync the tables up to Linux next commit 058f4df42121 ("Add linux-next specific files for 20230228") Revi

[PATCH 03/11] clk: renesas: Update R-Car Gen3 driver Gen4 support

2023-02-28 Thread Marek Vasut
: renesas: rcar-gen4: Introduce R-Car Gen4 CPG driver") by Yoshihiro Shimoda . Signed-off-by: Marek Vasut --- drivers/clk/renesas/Kconfig | 6 +- drivers/clk/renesas/clk-rcar-gen3.c | 109 ++-- drivers/clk/renesas/r8a779a0-cpg-mssr.c | 20 ++--- driv

[PATCH 06/11] ARM: rmobile: Turn R-Car V3U into R-Car Gen4

2023-02-28 Thread Marek Vasut
-system-chips-socs/r-car-v3u-best-class-r-car-v3u-asil-d-system-chip-automated-driving Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Deduplicate DTC_FLAGS addition using RCAR_64 symbol Update commit message] --- arch/arm/dts/Makefile | 6

[PATCH 08/11] ARM: dts: renesas: Add R8A779F0 S4 DT extras

2023-02-28 Thread Marek Vasut
From: Hai Pham Add R8A779F0 S4 DT extras for U-Boot. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Update compatible string to match latest upstream] --- arch/arm/dts/r8a779f0-u-boot.dtsi | 28 1 file changed, 28 insertions

[PATCH 07/11] ARM: dts: renesas: Add R8A779F0 S4 DT

2023-02-28 Thread Marek Vasut
From: Hai Pham Add initial DT for R8A779F0 S4 SoC. Based on Linux next commit 058f4df42121 ("Add linux-next specific files for 20230228") Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Sync with Linux next 20230228, update commit message] ---

[PATCH 09/11] ARM: dts: renesas: Add R8A779F0 S4 Spider DTs

2023-02-28 Thread Marek Vasut
From: Hai Pham Add DTs for R8A779F0 S4 Spider CPU boards and Breakout boards. Based on Linux next 20230228 DTs up to commit 058f4df42121 ("Add linux-next specific files for 20230228") Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Sync with

[PATCH 10/11] ARM: renesas: Add R8A779F0 S4 Kconfig entry and PRR ID

2023-02-28 Thread Marek Vasut
From: Hai Pham Add Kconfig entry and PRR ID to support R8A779F0 S4 SoC. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Update commit message] --- arch/arm/mach-rmobile/Kconfig.rcar4 | 6 ++ arch/arm/mach-rmobile/cpu_info.c | 1

[PATCH 11/11] ARM: renesas: Add R8A779F0 S4 Spider board code

2023-02-28 Thread Marek Vasut
From: Hai Pham Add board code for R8A779F0 S4 Spider board. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Synchronize configuration symbols which are now switched to Kconfig Mallocate gd->bd->bi_boot_params, i.e. drop the assignment

[PATCH 05/11] pinctrl: renesas: Add R8A779F0 S4 PFC tables

2023-02-28 Thread Marek Vasut
From: LUU HOAI Add pinctrl tables for R8A779F0 S4 SoC. Based on Linux next 20230228 PFC tables tables up to commit 058f4df42121 ("Add linux-next specific files for 20230228") Reviewed-by: Marek Vasut Signed-off-by: LUU HOAI Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [

[PATCH 1/9] dt-bindings: power: Add R8A779G0 V4H SYSC power domain definitions

2023-02-28 Thread Marek Vasut
From: Tho Vu Add power domain indices for R-Car V4H (R8A779G0) from Linux next commit 058f4df42121 ("Add linux-next specific files for 20230228") Reviewed-by: Marek Vasut Signed-off-by: Tho Vu Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Update to linux next 2023

[PATCH 2/9] dt-bindings: clock: Add R8A779G0 V4H CPG Core Clock Definitions

2023-02-28 Thread Marek Vasut
From: Tho Vu Add all Clock Pulse Generator Core Clock Outputs for the Renesas R-Car V4H (R8A779G0) SoC from Linux next commit 058f4df42121 ("Add linux-next specific files for 20230228") Reviewed-by: Marek Vasut Signed-off-by: Tho Vu Signed-off-by: Hai Pham Signed-off-by: Marek Vas

[PATCH 3/9] clk: renesas: Add R8A779G0 V4H clock tables

2023-02-28 Thread Marek Vasut
plain PLL2. This should be sufficient until PLL2_VAR is implemented in the clock core. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Sync with Linux next 20230228 . Update from CLK to CPG core driver Treat PLL2 as non-PLL2_VAR for now] --- drivers/c

[PATCH 6/9] ARM: dts: renesas: Add R8A779G0 V4H DT extras

2023-02-28 Thread Marek Vasut
From: Hai Pham Add R8A779G0 V4H DT extras for U-Boot. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Update compatible string to match latest upstream] --- arch/arm/dts/r8a779g0-u-boot.dtsi | 28 1 file changed, 28 insertions

[PATCH 7/9] ARM: dts: renesas: Add R8A779G0 V4H White Hawk DTs

2023-02-28 Thread Marek Vasut
From: Tho Vu Add DTs for R8A779G0 V4H White Hawk CPU and BreakOut boards. Based on Linux next 20230228 DTs up to commit 058f4df42121 ("Add linux-next specific files for 20230228") Reviewed-by: Marek Vasut Signed-off-by: Tho Vu Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [M

[PATCH 8/9] ARM: renesas: Add R8A779G0 V4H Kconfig entry and PRR ID

2023-02-28 Thread Marek Vasut
From: Hai Pham Add Kconfig entry and PRR ID to support R8A779G0 V4H SoC. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Update commit message] --- arch/arm/mach-rmobile/Kconfig.rcar4 | 6 ++ arch/arm/mach-rmobile/cpu_info.c | 1

[PATCH 5/9] ARM: dts: renesas: Add R8A779G0 V4H DT

2023-02-28 Thread Marek Vasut
From: Phong Hoang Add initial DT support for R8A779G0 (R-Car V4H). Based on Linux next commit 058f4df42121 ("Add linux-next specific files for 20230228") Reviewed-by: Marek Vasut Signed-off-by: Phong Hoang Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Sync with

[PATCH 9/9] ARM: renesas: Add R8A779G0 V4H White Hawk board code

2023-02-28 Thread Marek Vasut
From: Hai Pham Add board code for R8A779G0 V4H White Hawk board. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Synchronize configuration symbols which are now switched to Kconfig Mallocate gd->bd->bi_boot_params, i.e. drop the assi

Re: u-boot crashes if mass-storage devices are connected via USB-C

2023-03-01 Thread Marek Vasut
On 3/1/23 21:34, Simon Glass wrote: +Marek Vasut +Bin Meng +Mark Kettenis +Tom Rini On Wed, 1 Mar 2023 at 08:12, bluetail wrote: Hello. user kettenis aka "Mark Kettenis" guided me write my bug report to this email. "bluetail: please report these usb bugs upstream; they'

[PATCH] mtd: spi-nor: Add CHIP_ERASE optimization

2023-03-01 Thread Marek Vasut
... 39.1s 16 MiB erase using chip erase opcode 0xc7 .. 38.7s Signed-off-by: Marek Vasut --- Cc: Jagan Teki Cc: Vignesh R --- drivers/mtd/spi/spi-nor-core.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi-nor-core.c

[PATCH] cmd: fdt: Drop the 0x prefix

2023-03-01 Thread Marek Vasut
The 'fdt get addr' is always assumed to be hex value, drop the prefix. Since this might break existing users who depend on the existing behavior with 0x prefix, this is a separate patch. Revert if this breaks anything. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon

[PATCH 2/2] test: cmd: fdt: Drop new unneeded curly brackets

2023-03-01 Thread Marek Vasut
Drop no longer needed { } around ut_assert*() functions in FDT test. No functional change. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/cmd/fdt.c

[PATCH 1/2] test: Wrap assert macros in ({ ... }) and fix missing semicolons

2023-03-01 Thread Marek Vasut
Wrap the assert macros in ({ ... }) so they can be safely used both as right side argument as well as in conditionals without curly brackets around them. In the process, find a bunch of missing semicolons, fix them. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom

Re: [PATCH 08/32] cmd: fdt: Handle 64bit pointers in fdt get addr

2023-03-01 Thread Marek Vasut
On 3/1/23 16:02, Simon Glass wrote: On Mon, 27 Feb 2023 at 12:55, Marek Vasut wrote: The command assumed 32bit pointers so far, with 64bit pointer the command would overwrite a piece of stack. Fix it by extending the array size to cater for 64bit pointer, and use snprintf() to avoid writing

Re: [PATCH 23/32] test: cmd: fdt: Test fdt set

2023-03-01 Thread Marek Vasut
On 3/1/23 16:02, Simon Glass wrote: Hi Marek, On Mon, 27 Feb 2023 at 12:55, Marek Vasut wrote: Add 'fdt set' test which works as follows: - Create fuller FDT, map it to sysmem - Set either existing property to overwrite it, or new property - Test setting both single properties

[PATCH v2 01/32] cmd: fdt: Import is_printable_string() from DTC to fix u32 misprint

2023-03-01 Thread Marek Vasut
ai Pham Signed-off-by: Nam Nguyen Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- cmd/fdt.c | 36 ++-- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git

[PATCH v2 02/32] cmd: fdt: Fix handling of empty properties for fdt get addr and fdt get size

2023-03-01 Thread Marek Vasut
ty or size of the property, where the later is 0. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- cmd/fdt.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/fdt.c b

[PATCH v2 03/32] cmd: fdt: Fix fdt rm behavior on non-existent property and error message space

2023-03-01 Thread Marek Vasut
ornously returns 'err' instead of CMD_RET_FAILURE, fix it. Furthermore, align the number of spaces past fdt_delprop() in error message with the rest of the code. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add R

[PATCH v2 04/32] cmd: fdt: Fix fdt rsvmem behavior on non-existent index and error message space

2023-03-01 Thread Marek Vasut
bcommand errornously returns 'err' instead of CMD_RET_FAILURE, fix it. Furthermore, align the number of spaces past fdt_del_mem_rsv() and fdt_add_mem_rsv() in error message with the rest of the code. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc

[PATCH v2 05/32] cmd: fdt: Check argc before accessing argv in fdt bootcpu

2023-03-01 Thread Marek Vasut
On case 'fdt bootcpu' is invoked without parameters, argv[2] is not valid and this command would SEGFAULT in sandbox environment. Add missing argc test to avoid the crash and rather print usage help message. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schu

[PATCH v2 06/32] cmd: fdt: Check argc before accessing argv in fdt memory

2023-03-01 Thread Marek Vasut
On case 'fdt memory' is invoked without parameters, argv[2]/argv[3] is not valid and this command would SEGFAULT in sandbox environment. Add missing argc test to avoid the crash and rather print usage help message. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich

[PATCH v2 07/32] cmd: fdt: Align checksign parameter names in help text

2023-03-01 Thread Marek Vasut
The help text references 'addr' as an optional key start address, but the explanation references the same as 'start', make sure they both read as 'addr'. Also update the abbreviated 'addr' in the explanation to 'address'. Signed-off-by: Marek

[PATCH v2 08/32] cmd: fdt: Handle 64bit pointers in fdt get addr

2023-03-01 Thread Marek Vasut
The command assumed 32bit pointers so far, with 64bit pointer the command would overwrite a piece of stack. Fix it by extending the array size to cater for 64bit pointer, and use snprintf() to avoid writing past the end of the array ever again. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass

[PATCH v2 09/32] cmd: fdt: Map address returned from fdt get addr to sysmem

2023-03-01 Thread Marek Vasut
ddr var / compatible ; md $var' " Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- cmd/fdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/fdt.c b/cmd/fdt.c index b

[PATCH v2 10/32] cmd: fdt: Add support for integer arrays in fdt get value with index

2023-03-01 Thread Marek Vasut
t index is set to -1 instead of 0. This is OK, since the only place which checks for index to be less or equal zero is the string array handling code in fdt_value_env_set() and that code would work perfectly well with index -1 too. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc

[PATCH v2 11/32] test: Add ut_assert_nextline_empty() empty line helper

2023-03-01 Thread Marek Vasut
Add helper macro to test for empty lines, which is an inobvious wrapper around ut_assert_nextline("%s", "") . Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- include/test/ut.h | 4

[PATCH v2 12/32] test: cmd: fdt: Rename fdt_test_resize() to fdt_test_addr_resize()

2023-03-01 Thread Marek Vasut
The 'fdt' command has a 'resize' subcommand, rename the fdt_test_resize() to fdt_test_addr_resize() to avoid confusion about what it is testing. There is currently no resize test. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon

[PATCH v2 13/32] test: cmd: fdt: Rename fdt_test_get() to fdt_test_get_value()

2023-03-01 Thread Marek Vasut
The 'fdt get' command has a 'get value' subcommand, rename the fdt_test_get() to fdt_test_get_value() to avoid confusion about what it is testing. There is currently no get 'get name', 'get addr', 'get size' subcommand test. Signed-off-by: Marek

[PATCH v2 14/32] test: cmd: fdt: Generate fuller DT internally and switch fdt get value to it

2023-03-01 Thread Marek Vasut
Implement function to generate internal test DT fragment and switch the 'fdt get value' test to this instead of depending on the sandbox DT. Rename clk-test node to test-node node. This FDT fragment will be reused by other tests. No functional change. Signed-off-by: Marek Vasut R

[PATCH v2 16/32] test: cmd: fdt: Test both string and integer arrays in 'fdt get value'

2023-03-01 Thread Marek Vasut
The 'fdt get value' subcommand now supports extraction of integer value from integer arrays, add test for it, including a test for special case unindexed integer array read, which is handled as hash and treated as a long string instead of integer. Signed-off-by: Marek Vasut Reviewed

[PATCH v2 15/32] test: cmd: fdt: Test alias resolution in 'fdt get value'

2023-03-01 Thread Marek Vasut
The 'fdt' command help contains the following note: " Dereference aliases by omitting the leading '/', e.g. fdt print ethernet0. " Add test for it. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V

[PATCH v2 17/32] test: cmd: fdt: Test fdt move

2023-03-01 Thread Marek Vasut
fdt' " To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- test/cmd/fdt.c | 34 ++ 1

[PATCH v2 18/32] test: cmd: fdt: Test fdt resize

2023-03-01 Thread Marek Vasut
dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- test/cmd/fdt.c | 24 1 file changed, 24 insertions(+)

[PATCH v2 19/32] test: cmd: fdt: Test fdt print and list

2023-03-01 Thread Marek Vasut
x27; " To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- test/cmd/fdt.c | 143

[PATCH v2 20/32] test: cmd: fdt: Test fdt get name

2023-03-01 Thread Marek Vasut
/ node -1 and /clk-test node -1 - Compare output and validate the node name equals node 0 name - Check nonexistent node, verify the command errors out The test case can be triggered using: " ./u-boot -Dc 'ut fdt' " To dump the full output from commands used during test, add &#

[PATCH v2 21/32] test: cmd: fdt: Test fdt get addr

2023-03-01 Thread Marek Vasut
rt of DT The offsets must match in both the UT and the tested U-Boot, if they do not, the test fails. The test case can be triggered using: " ./u-boot -Dc 'ut fdt' " To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewe

[PATCH v2 22/32] test: cmd: fdt: Test fdt get size

2023-03-01 Thread Marek Vasut
the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- test/cmd/fdt.c | 87 ++ 1 file

[PATCH v2 24/32] test: cmd: fdt: Test fdt mknode

2023-03-01 Thread Marek Vasut
The test case can be triggered using: " ./u-boot -Dc 'ut fdt' " To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Ad

[PATCH v2 23/32] test: cmd: fdt: Test fdt set

2023-03-01 Thread Marek Vasut
lues using 'fdt get value' The test case can be triggered using: " ./u-boot -Dc 'ut fdt' " To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass

[PATCH v2 25/32] test: cmd: fdt: Test fdt rm

2023-03-01 Thread Marek Vasut
" To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- test/cmd/fdt.c | 84 +

[PATCH v2 27/32] test: cmd: fdt: Test fdt bootcpu

2023-03-01 Thread Marek Vasut
: " ./u-boot -Dc 'ut fdt' " To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- test/cmd/fdt.c | 33 +++

[PATCH v2 26/32] test: cmd: fdt: Test fdt header

2023-03-01 Thread Marek Vasut
; To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- test/cmd/fdt.c | 59 ++

[PATCH v2 29/32] test: cmd: fdt: Test fdt rsvmem

2023-03-01 Thread Marek Vasut
triggered using: " ./u-boot -Dc 'ut fdt' " To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Ad

[PATCH v2 28/32] test: cmd: fdt: Test fdt memory

2023-03-01 Thread Marek Vasut
; To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- test/cmd/fdt.c | 83 ++ 1 fi

[PATCH v2 30/32] test: cmd: fdt: Test fdt chosen

2023-03-01 Thread Marek Vasut
ersion and initrd entries The test case can be triggered using: " ./u-boot -Dc 'ut fdt' " To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass

[PATCH v2 32/32] test: cmd: fdt: Add list of remaining missing tests

2023-03-01 Thread Marek Vasut
Add list of missing tests for the 'fdt' command, currently the missing sandbox tests are only 'fdt boardsetup' and 'fdt checksign' . Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from

[PATCH v2 31/32] test: cmd: fdt: Test fdt apply

2023-03-01 Thread Marek Vasut
sed during test, add '-v' flag. Signed-off-by: Marek Vasut Reviewed-by: Simon Glass --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- test/cmd/fdt.c | 152 + 1 file changed, 152 insertions(+) diff --git

Re: [PATCH] image: Fix potentially uninitialized data variable

2023-03-01 Thread Marek Vasut
On 3/1/23 17:02, Tom Rini wrote: On Mon, Feb 27, 2023 at 08:56:31PM +0100, Marek Vasut wrote: In case fitImage support is disabled, and image_locate_script() is passed a fitImage, then the 'data' variable is used uninitialized. Drop into the default: branch of the switch-case statem

Re: [PATCH 2/2] serial: sh: Add HSCIF support for R-Car SoC

2023-03-01 Thread Marek Vasut
On 3/1/23 16:01, Simon Glass wrote: On Tue, 28 Feb 2023 at 14:29, Marek Vasut wrote: From: Hai Pham Provide the basic HSCIF support for R-Car SoC. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: Fill in HSSRR offset for Gen2 and SCBRR calculation for

Re: u-boot crashes if mass-storage devices are connected via USB-C

2023-03-02 Thread Marek Vasut
On 3/2/23 10:14, Janne Grunau wrote: On 2023-03-01 23:51:14 +0100, Marek Vasut wrote: On 3/1/23 21:34, Simon Glass wrote: +Marek Vasut +Bin Meng +Mark Kettenis +Tom Rini On Wed, 1 Mar 2023 at 08:12, bluetail wrote: Hello. user kettenis aka "Mark Kettenis" guided me write my bug

Re: u-boot crashes if mass-storage devices are connected via USB-C

2023-03-02 Thread Marek Vasut
On 3/2/23 19:51, Janne Grunau wrote: On 2023-03-02 18:33:15 +0100, Marek Vasut wrote: On 3/2/23 10:14, Janne Grunau wrote: On 2023-03-01 23:51:14 +0100, Marek Vasut wrote: On 3/1/23 21:34, Simon Glass wrote: +Marek Vasut +Bin Meng +Mark Kettenis +Tom Rini On Wed, 1 Mar 2023 at 08:12

Re: [PATCH v2 3/5] usb: xhci-mtk: modify the SOF/ITP interval for mt8195

2023-03-02 Thread Marek Vasut
On 3/2/23 07:23, Chunfeng Yun (云春峰) wrote: Hi Marek, Hi, On Fri, 2023-02-17 at 14:35 +0100, Marek Vasut wrote: On 2/17/23 10:04, Chunfeng Yun wrote: There are 4 USB controllers on MT8195, the controllers (IP1~IP3, exclude IP0) have a wrong default SOF/ITP interval which is calculated from

[PATCH] ARM: dts: imx: Add support for DH electronics i.MX8M Plus DHCOM on PDK3

2023-03-02 Thread Marek Vasut
Add support for DH electronics i.MX8M Plus DHCOM SoM on PDK3 carrier board. Currently supported are serial console, EQoS and FEC ethernets, eMMC, SD, SPI NOR and USB 3.0 host. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- arch/arm/dts/Makefile

[PULL] u-boot-usb/next

2023-03-02 Thread Marek Vasut
phy: phy-mtk-tphy: add support mt8195 usb: xhci-mtk: modify the SOF/ITP interval for mt8195 dt-bindings: phy-mtk-tphy: add support mt8195 dt-bindings: usb: mtk-xhci: add support mt8195 Marek Vasut (1): usb: dwc3-meson-g12a: Select PHY instead of imply PHY doc/d

[PATCH v3] CI: gitlab: Collect pytest artifacts

2023-03-02 Thread Marek Vasut
Glass Signed-off-by: Marek Vasut --- Cc: Simon Glass Cc: Tom Rini --- V2: - Drop bogus comment - Add RB from Tom and Simon V3: - Add when:always to always collect artifacts, even in case of failure - Move artifact copy into after_script --- .gitlab-ci.yml | 16 +++- 1 file

[PATCH] ARM: imx: Convert DH i.MX6 DHSOM to DM_SERIAL

2023-03-05 Thread Marek Vasut
Enable CONFIG_DM_SERIAL on DH i.MX6 DHSOM to convert it to DM serial . Signed-off-by: Marek Vasut --- Cc: Andreas Geisreiter Cc: Christoph Niedermaier Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: u-b...@dh-electronics.com --- configs/dh_imx6_defconfig | 1 + 1 file changed, 1

[PATCH] ARM: dts: imx: Add WDT bindings on DH i.MX6 DHSOM

2023-03-05 Thread Marek Vasut
Add WDT reboot bindings on DH i.MX6 DHSOM to permit the platform to reboot via WDT in U-Boot. These are custom U-Boot bindings, hence they are placed in -u-boot.dtsi . Signed-off-by: Marek Vasut --- Cc: Andreas Geisreiter Cc: Christoph Niedermaier Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano

[PATCH] ARM: imx: Include on-SoM microSD in list of i.MX6 DHCOM boot devices

2023-03-05 Thread Marek Vasut
Add mmc1, which is mapped to optional on-SoM microSD socket, to the list of distro boot command boot devices. Signed-off-by: Marek Vasut --- Cc: Andreas Geisreiter Cc: Christoph Niedermaier Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: u-b...@dh-electronics.com --- include/configs

[PATCH v4 03/14] net: dwc_eth_qos: Drop bogus return after goto

2023-03-06 Thread Marek Vasut
The return is never triggered due to the goto just above it. Drop it. No functional change. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc: Fabio Estevam Cc: Joe Hershberger Cc: Lu

[PATCH v4 01/14] clk: imx8mp: Add EQoS MAC clock

2023-03-06 Thread Marek Vasut
Add clock for the DWMAC EQoS block. This is used among other things to configure the MII clock via DM CLK. Acked-by: Sean Anderson Reviewed-by: Peng Fan Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin C

[PATCH v4 05/14] net: dwc_eth_qos: Staticize eqos_inval_buffer_tegra186()

2023-03-06 Thread Marek Vasut
This function is only used within the driver, staticize it. Fixes: 149e80f74b6 ("net: dwc_eth_qos: public some functions") Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc: Fabio Estevam Cc: Joe H

[PATCH v4 07/14] net: dwc_eth_qos: Add DM CLK support for i.MX8M Plus

2023-03-06 Thread Marek Vasut
specific register fiddling. Drop the architecture specific code while at it too. The adjustment here is modeled after STM32MP15xx clock handling in this driver. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin C

[PATCH v4 04/14] net: dwc_eth_qos: Drop unused dm_gpio_free() on STM32

2023-03-06 Thread Marek Vasut
Fried Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc: Fabio Estevam Cc: Joe Hershberger Cc: Lukasz Majewski Cc: Marcel Ziswiler Cc: Marek Vasut Cc: Michael Trimarchi Cc: Peng Fan Cc: Ramon Fried Cc: S

[PATCH v4 02/14] net: Pull board_interface_eth_init() into common code

2023-03-06 Thread Marek Vasut
Move the board_interface_eth_init() into common ethernet uclass code, since this function could be shared by multiple drivers. Reviewed-by: Simon Glass Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin C

[PATCH v4 10/14] net: fec_mxc: Add ref clock setup support for i.MX8M Mini/Nano/Plus

2023-03-06 Thread Marek Vasut
-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc: Fabio Estevam Cc: Joe Hershberger Cc: Lukasz Majewski Cc: Marcel Ziswiler Cc: Marek Vasut Cc: Michael Trimarchi Cc: Peng Fan Cc: Ramon Fried Cc: Sean Anderson C

[PATCH v4 11/14] net: fec_mxc: Add board_interface_eth_init() for i.MX8M Mini/Nano/Plus

2023-03-06 Thread Marek Vasut
same IOMUX GPR[1] duplicated in the board files. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc: Fabio Estevam Cc: Joe Hershberger Cc: Lukasz Majewski Cc: Marcel Ziswiler Cc: Marek Vasut Cc: Michael Tr

[PATCH v4 06/14] net: dwc_eth_qos: Set DMA_MODE SWR bit to reset the MAC

2023-03-06 Thread Marek Vasut
Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc: Fabio Estevam Cc: Joe Hershberger Cc: Lukasz Majewski Cc: Marcel Ziswiler Cc: Marek Vasut Cc: Michael Trimarchi Cc: Peng Fan Cc: Ramon Fried Cc: Sean Anderson Cc: Stefano

[PATCH v4 09/14] net: dwc_eth_qos: Add board_interface_eth_init() for i.MX8M Plus

2023-03-06 Thread Marek Vasut
GPR[1] duplicated in the board files. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc: Fabio Estevam Cc: Joe Hershberger Cc: Lukasz Majewski Cc: Marcel Ziswiler Cc: Marek Vasut

[PATCH v4 08/14] net: dwc_eth_qos: Add i.MX8M Plus RMII support

2023-03-06 Thread Marek Vasut
;rmii"; assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_266M>, <&clk IMX8MP_SYS_PLL2_100M>, <&clk IMX8MP_SYS_PLL2_50M>; assigned-clock-rates = <0>, <1>, <5000>; Reviewed-by: Ramon Frie

[PATCH v4 13/14] arm64: imx8mp: Drop EQoS GPR[1] board workaround

2023-03-06 Thread Marek Vasut
The EQoS interface mode is now configured in common board_interface_eth_init() and called by EQoS MAC driver when appropriate. Drop the board side duplicates if the same functionality. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team"

[PATCH v4 14/14] arm64: imx8mm: imx8mn: imx8mp: Drop FEC GPR[1] board workaround

2023-03-06 Thread Marek Vasut
The FEC interface mode is now configured in common board_interface_eth_init() and called by FEC MAC driver when appropriate. Drop the board side duplicates if the same functionality. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team"

[PATCH v4 12/14] arm64: dts: imx8mp: Drop EQoS clock workaround

2023-03-06 Thread Marek Vasut
The assigned-clock no longer have to be dropped, the clock are now defined in clk-imx8mp.c and used by DWMAC driver to configure the DWMAC clock. Drop the workarounds from U-Boot specific DT extras. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Bo

Re: [PATCH] cmd: fdt: Drop the 0x prefix

2023-03-06 Thread Marek Vasut
On 3/6/23 18:53, Simon Glass wrote: Hi Marek, On Wed, 1 Mar 2023 at 20:04, Marek Vasut wrote: The 'fdt get addr' is always assumed to be hex value, drop the prefix. Since this might break existing users who depend on the existing behavior with 0x prefix, this is a separate patch.

[PATCH] usb: gadget: f_sdp: Add missing spl_board_prepare_for_boot() call

2023-03-06 Thread Marek Vasut
spl_board_prepare_for_boot() call into f_sdp . Signed-off-by: Marek Vasut --- Cc: Frieder Schrempf Cc: Lukasz Majewski Cc: Patrick Delaunay Cc: Peng Fan Cc: Sean Anderson Cc: Sherry Sun Cc: Simon Glass Cc: Ye Li --- drivers/usb/gadget/f_sdp.c | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH 1/2] ARM: imx: Enable LTO for DH electronics i.MX6 DHCOM

2023-03-06 Thread Marek Vasut
Enable LTO to reduce the size of SPL, which with SPL SDP support may be close to the limit. Signed-off-by: Marek Vasut --- Cc: Andreas Geisreiter Cc: Christoph Niedermaier Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team Cc: Stefano Babic Cc: u-b...@dh-electronics.com --- configs

[PATCH 2/2] ARM: imx: Enable SDP download in SPL on DH i.MX6 DHSOM

2023-03-06 Thread Marek Vasut
github.com/boundarydevices/imx_usb_loader.git Signed-off-by: Marek Vasut --- Cc: Andreas Geisreiter Cc: Christoph Niedermaier Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team Cc: Stefano Babic Cc: u-b...@dh-electronics.com --- configs/dh_imx6_defconfig | 5 + include/configs/dh_imx6.h | 2 -- 2 fil

Re: [PATCH v2 02/32] cmd: fdt: Fix handling of empty properties for fdt get addr and fdt get size

2023-03-08 Thread Marek Vasut
On 3/8/23 23:17, Simon Glass wrote: Hi Marek, On Wed, 1 Mar 2023 at 20:09, Marek Vasut wrote: It is perfectly valid to request an address or size of FDT property without value, the only special case if requesting of the value of FDT property without value. Invert the test such, that

Re: [PATCH v2 28/32] test: cmd: fdt: Test fdt memory

2023-03-08 Thread Marek Vasut
On 3/8/23 23:23, Simon Glass wrote: Hi Marek, On Wed, 1 Mar 2023 at 19:09, Marek Vasut wrote: Add 'fdt memory' test which works as follows: - Create custom FDT with /memory node, with select #*cells, map it to sysmem - Perform memory fixup - Read back the /memory node and va

[PATCH v2 2/2] test: cmd: fdt: Drop new unneeded curly brackets

2023-03-09 Thread Marek Vasut
Drop no longer needed { } around ut_assert*() functions in FDT test. No functional change. Reviewed-by: Simon Glass Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- V2: Add RB from Simon --- test/cmd/fdt.c | 14 ++ 1 file changed, 6

[PATCH v2 1/2] test: Wrap assert macros in ({ ... }) and fix missing semicolons

2023-03-09 Thread Marek Vasut
Wrap the assert macros in ({ ... }) so they can be safely used both as right side argument as well as in conditionals without curly brackets around them. In the process, find a bunch of missing semicolons, fix them. Reviewed-by: Simon Glass Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt

Re: [PATCH v2 28/32] test: cmd: fdt: Test fdt memory

2023-03-09 Thread Marek Vasut
On 3/9/23 23:09, Simon Glass wrote: Hi Marek, On Wed, 8 Mar 2023 at 15:16, Marek Vasut wrote: On 3/8/23 23:23, Simon Glass wrote: Hi Marek, On Wed, 1 Mar 2023 at 19:09, Marek Vasut wrote: Add 'fdt memory' test which works as follows: - Create custom FDT with /memory node, w

Re: [GIT PULL] Please pull u-boot-mmc master

2023-03-10 Thread Marek Vasut
On 3/10/23 16:44, Tom Rini wrote: On Fri, Mar 10, 2023 at 01:22:15PM +0900, Jaehoon Chung wrote: Dear Tom, Please pull u-boot-mmc master into u-boot master branch. If there is any problem, let me know, plz. At this point in the cycle I have to ask, are these all fixes of specific issues? If

[PULL] u-boot-sh/master

2023-03-10 Thread Marek Vasut
) Marek Vasut (4): mmc: renesas-sdhi: Always configure default SDnH clock rate to 800 MHz mmc: renesas-sdhi: Add proper probe error fail path clk: renesas: Always select DM_RESET to prevent inobvious failure of

<    1   2   3   4   5   6   7   8   9   10   >