Re: [PATCH v2 9/9] usb: xhci: Fix root hub descriptor

2023-02-21 Thread Marek Vasut
On 2/21/23 10:28, Mark Kettenis wrote: Date: Tue, 21 Feb 2023 01:46:22 +0100 From: Marek Vasut Hi Marek, On 2/21/23 00:45, Simon Glass wrote: On Sat, 21 Jan 2023 at 12:28, Mark Kettenis wrote: When a system has multiple XHCI controllers, some of the properties described in the

Re: [PATCH v2 RESEND 0/6] Update Chameleon v3 configuration

2023-02-21 Thread Marek Vasut
On 2/21/23 16:17, Paweł Anikiel wrote: These changes add the third chameleon variation and make it easier to deploy images to different boards. v2 changes: - rename chameleonv3.dts to .dtsi - add missing CONFIG_SPL_MAX_SIZE symbol Paweł Anikiel (6): socfpga: chameleonv3: Enable ext4 in S

[PULL] u-boot-socfpga/master

2023-02-21 Thread Marek Vasut
The following changes since commit 4eb7c5030d3f3c707c02a64dc8ea90de3da89928: Merge tag 'efi-2023-04-rc3' of https://source.denx.de/u-boot/custodians/u-boot-efi (2023-02-19 17:03:30 -0500) are available in the Git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetc

Re: [PATCH v2] usb: dwc3: Use the devm_gpiod_get_optional() API for reset gpio

2023-02-21 Thread Marek Vasut
On 1/13/23 06:12, Venkatesh Yadav Abbarapu wrote: As the "reset-gpios" property is optional, don't return the error and just skip the gpio reset sequence. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Replaced the gpio_request_by_name() the API with devm_gpiod_get_optional(). T

Re: [PATCH v4 00/10] usb: dwc3: Refactor dwc3-generic and apply to dwc3-uniphier

2023-02-21 Thread Marek Vasut
On 2/22/23 03:00, Kunihiko Hayashi wrote: Hi Marek, On 2023/02/21 0:53, Marek Vasut wrote: On 2/20/23 06:50, Kunihiko Hayashi wrote: This series achieves refactoring of dwc3-generic. First, dwc3-generic allows DT controller nodes to be children of glue nodes, but outside of glue nodes. To

Re: [PATCH v2] usb: dwc3: Use the devm_gpiod_get_optional() API for reset gpio

2023-02-22 Thread Marek Vasut
On 2/22/23 08:01, Michal Simek wrote: On 2/22/23 02:06, Marek Vasut wrote: On 1/13/23 06:12, Venkatesh Yadav Abbarapu wrote: As the "reset-gpios" property is optional, don't return the error and just skip the gpio reset sequence. Signed-off-by: Venkatesh Yadav Abbarapu --

[PULL] u-boot-usb/next

2023-02-22 Thread Marek Vasut
phy: socionext: Add UniPhier USB3 PHY driver usb: dwc3-uniphier: Use dwc3-generic instead of xhci-dwc3 uniphier_defconfig: Disable USB_XHCI_DWC3 Marek Vasut (1): usb: dwc3: Look up reference clock DT phandle in both controller DT nodes configs/uniphier_v7_defconfig

Re: [RFC PATCH v3 3/9] clk: renesas: add R906G032 driver

2023-02-22 Thread Marek Vasut
On 2/22/23 16:44, Ralph Siemsen wrote: Clock driver for the Renesas RZ/N1 SoC family. This is based on the Linux kernel drivers/clk/renesas/r9a06g032-clocks.c. For starters, can you please include the exact kernel version , ideally commit ID, from which this way pulled, so that future updates

[PULL] u-boot-usb/master

2023-02-22 Thread Marek Vasut
The following changes since commit 4eb7c5030d3f3c707c02a64dc8ea90de3da89928: Merge tag 'efi-2023-04-rc3' of https://source.denx.de/u-boot/custodians/u-boot-efi (2023-02-19 17:03:30 -0500) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you to fetch

Re: [RFC PATCH v3 3/9] clk: renesas: add R906G032 driver

2023-02-22 Thread Marek Vasut
On 2/22/23 17:57, Ralph Siemsen wrote: On Wed, Feb 22, 2023 at 05:06:14PM +0100, Marek Vasut wrote: On 2/22/23 16:44, Ralph Siemsen wrote: Clock driver for the Renesas RZ/N1 SoC family. This is based on the Linux kernel drivers/clk/renesas/r9a06g032-clocks.c. For starters, can you please

Re: [RFC PATCH v3 3/9] clk: renesas: add R906G032 driver

2023-02-22 Thread Marek Vasut
On 2/22/23 18:21, Ralph Siemsen wrote: On Wed, Feb 22, 2023 at 06:07:45PM +0100, Marek Vasut wrote: On 2/22/23 17:57, Ralph Siemsen wrote: On Wed, Feb 22, 2023 at 05:06:14PM +0100, Marek Vasut wrote: On 2/22/23 16:44, Ralph Siemsen wrote: Clock driver for the Renesas RZ/N1 SoC family. This

Re: [RFC PATCH v3 3/9] clk: renesas: add R906G032 driver

2023-02-22 Thread Marek Vasut
On 2/22/23 19:32, Ralph Siemsen wrote: On Wed, Feb 22, 2023 at 06:47:44PM +0100, Marek Vasut wrote: On 2/22/23 18:21, Ralph Siemsen wrote: On Wed, Feb 22, 2023 at 06:07:45PM +0100, Marek Vasut wrote: On 2/22/23 17:57, Ralph Siemsen wrote: On Wed, Feb 22, 2023 at 05:06:14PM +0100, Marek Vasut

Re: [PULL] u-boot-usb/next

2023-02-22 Thread Marek Vasut
On 2/22/23 19:37, Tom Rini wrote: On Wed, Feb 22, 2023 at 04:36:08PM +0100, Marek Vasut wrote: The following changes since commit 4eb7c5030d3f3c707c02a64dc8ea90de3da89928: Merge tag 'efi-2023-04-rc3' of https://source.denx.de/u-boot/custodians/u-boot-efi (2023-02-19 17:03:30 -

Re: [RFC PATCH v3 3/9] clk: renesas: add R906G032 driver

2023-02-22 Thread Marek Vasut
On 2/22/23 20:32, Ralph Siemsen wrote: On Wed, Feb 22, 2023 at 07:45:45PM +0100, Marek Vasut wrote: On 2/22/23 19:32, Ralph Siemsen wrote: On Wed, Feb 22, 2023 at 06:47:44PM +0100, Marek Vasut wrote: Are those fixes in mainline Linux ? Yes, they are in mainline: 2dee50ab9e72 clk: renesas

[PATCH] usb: dwc3-uniphier: Imply PHY

2023-02-22 Thread Marek Vasut
Make sure the PHY subsystem is activated for the uniphier DWC3 glue logic, as it depends on PHY implementation there. Signed-off-by: Marek Vasut --- Cc: Kunihiko Hayashi Cc: Tom Rini --- drivers/usb/dwc3/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/Kconfig b

Re: [PULL] u-boot-usb/next

2023-02-22 Thread Marek Vasut
On 2/23/23 02:50, Tom Rini wrote: On Wed, Feb 22, 2023 at 11:09:00PM +0100, Marek Vasut wrote: On 2/22/23 19:37, Tom Rini wrote: On Wed, Feb 22, 2023 at 04:36:08PM +0100, Marek Vasut wrote: The following changes since commit 4eb7c5030d3f3c707c02a64dc8ea90de3da89928: Merge tag 'efi

Re: [PATCH v2 1/2] env: mmc: Clean up macro usage

2023-02-23 Thread Marek Vasut
On 2/23/23 11:41, Patrick DELAUNAY wrote: Hi Marek, Hi, On 2/9/23 13:30, Marek Vasut wrote: Consistently use 'if (IS_ENABLED(CONFIG_PARTITION_TYPE_GUID))' instead of mix of ifdef. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Tom Rini --- V

Re: [PATCH v2] usb: dwc3: Use the devm_gpiod_get_optional() API for reset gpio

2023-02-23 Thread Marek Vasut
On 2/23/23 10:24, Michal Simek wrote: On 2/22/23 16:33, Marek Vasut wrote: On 2/22/23 08:01, Michal Simek wrote: On 2/22/23 02:06, Marek Vasut wrote: On 1/13/23 06:12, Venkatesh Yadav Abbarapu wrote: As the "reset-gpios" property is optional, don't return the error and jus

Re: [PATCH v2 2/2] usb: move CONFIG_USB_HUB_DEBOUNCE_TIMEOUT to USB

2023-02-23 Thread Marek Vasut
On 2/23/23 11:10, Patrick DELAUNAY wrote: Hi, On 1/25/23 19:40, Heinrich Schuchardt wrote: This configuration setting is only relevant if the board supports USB. It should not be in the main menu but in the USB menu. The setting is only relevant in USB host mode. Fixes: 5454dea3137d ("usb: hu

Re: [RFC PATCH v3 3/9] clk: renesas: add R906G032 driver

2023-02-23 Thread Marek Vasut
On 2/23/23 08:17, Miquel Raynal wrote: Hello Marek & Ralph, marek.va...@mailbox.org wrote on Thu, 23 Feb 2023 01:12:49 +0100: On 2/22/23 20:32, Ralph Siemsen wrote: On Wed, Feb 22, 2023 at 07:45:45PM +0100, Marek Vasut wrote: On 2/22/23 19:32, Ralph Siemsen wrote: On Wed, Feb 22, 202

[PATCH v2] usb: dwc3-uniphier: Select PHY

2023-02-23 Thread Marek Vasut
Make sure the PHY subsystem is activated for the uniphier DWC3 glue logic, as it depends on PHY implementation there. Signed-off-by: Marek Vasut --- Cc: Kunihiko Hayashi Cc: Tom Rini --- V2: Use select - imply means you can turn off the option and expect things to work "it

[PATCH] usb: dwc3-meson-g12a: Select PHY instead of imply PHY

2023-02-23 Thread Marek Vasut
Imply means you can turn off the option and expect things to work - "it's a good idea to have X enabled" is when to use imply - "you must have X for Y to work" is when to use select Use "select" here. Signed-off-by: Marek Vasut --- Cc: Mattijs Korpershoe

Re: [PATCH v2 1/2] env: mmc: Clean up macro usage

2023-02-23 Thread Marek Vasut
On 2/23/23 17:32, Tom Rini wrote: On Thu, Feb 23, 2023 at 02:22:51PM +0100, Marek Vasut wrote: On 2/23/23 11:41, Patrick DELAUNAY wrote: Hi Marek, Hi, On 2/9/23 13:30, Marek Vasut wrote: Consistently use 'if (IS_ENABLED(CONFIG_PARTITION_TYPE_GUID))' instead of mix of ifdef. Sig

Re: [RFC PATCH v3 3/9] clk: renesas: add R906G032 driver

2023-02-24 Thread Marek Vasut
On 2/24/23 16:14, Ralph Siemsen wrote: On Thu, Feb 23, 2023 at 9:09 AM Miquel Raynal wrote: Hi Marek, marek.va...@mailbox.org wrote on Thu, 23 Feb 2023 14:56:41 +0100: Either way is fine by me, I just want to be sure the u-boot clock tables are in sync with Linux as much as possible, and c

Re: [RFC PATCH v3 3/9] clk: renesas: add R906G032 driver

2023-02-24 Thread Marek Vasut
On 2/24/23 19:00, Ralph Siemsen wrote: Hi Marek, On Fri, Feb 24, 2023 at 12:05 PM Marek Vasut wrote: Could you at least submit the clean up to Linux and then sync the result to U-Boot, and indicate the Linux clock table came from commit with extra patch on top ? Yes will do. I am

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

2023-02-27 Thread Marek Vasut
ai Pham Signed-off-by: Nam Nguyen Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- cmd/fdt.c | 36 ++-- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/cmd/fdt.c b/cmd/fdt.c index 1972490bdc2..bf241566

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

2023-02-27 Thread Marek Vasut
ty or size of the property, where the later is 0. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- cmd/fdt.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/fdt.c b/cmd/fdt.c index bf2415661e2..56b3585c3ac 100644 --- a

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- cmd/fdt.c | 8 1 file cha

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon Glas

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

2023-02-27 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 V

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini ---

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- include/test/ut.h | 4 1 file changed, 4 insertions(+) diff --git a

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom

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

2023-02-27 Thread Marek Vasut
ddr var / compatible ; md $var' " Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- cmd/fdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/fdt.c b/cmd/fdt.c index bc19303159d..f2576ab4b38 100644 --- a/cmd/fdt.c ++

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

2023-02-27 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 --- Cc: Heinrich

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon

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

2023-02-27 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 V

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

2023-02-27 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 --- Cc

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

2023-02-27 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 --- Cc

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

2023-02-27 Thread Marek Vasut
fdt' " To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a

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

2023-02-27 Thread Marek Vasut
dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 24 1 file changed, 24 insertions(+) diff --git a/test/cmd/fdt.c b/test/cmd/fdt.c in

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

2023-02-27 Thread Marek Vasut
x27; " To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 143 + 1 file changed, 143 insertions(+)

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

2023-02-27 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 21/32] test: cmd: fdt: Test fdt get addr

2023-02-27 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 ---

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

2023-02-27 Thread Marek Vasut
the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 87 ++ 1 file changed, 87 insertions(+) diff --git a/test/cmd/

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Si

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 68 ++

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

2023-02-27 Thread Marek Vasut
" To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 84 ++ 1 file changed, 84 insertions(+) diff --git

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

2023-02-27 Thread Marek Vasut
; To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 59 ++ 1 file changed, 59 insertions(+) diff --git

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 33 + 1 file changed, 33 ins

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon Glass

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 63 +

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

2023-02-27 Thread Marek Vasut
; To dump the full output from commands used during test, add '-v' flag. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 83 ++ 1 file changed, 83 insertions(+) diff --git a/test/cmd/

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

2023-02-27 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 --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 7 +++ 1 file change

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

2023-02-27 Thread Marek Vasut
sed during test, add '-v' flag. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- test/cmd/fdt.c | 152 + 1 file changed, 152 insertions(+) diff --git a/test/cmd/fdt.c b/test/cmd/fdt.c index 721916b070d.

[PATCH] console: Use only 0x00 as line separator for console recording

2023-02-27 Thread Marek Vasut
corrupted. Use character 0x00 (NUL) as separator instead to treat the tabs as valid part of recorded line. Suggested-by: Simon Glass Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- common/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH] image: Fix potentially uninitialized data variable

2023-02-27 Thread Marek Vasut
*)data; ^~~~ boot/image-board.c:1001:11: note: initialize the variable 'data' to silence this warning u32 *data; ^ = NULL " Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Michal Simek Cc: Oleksand

[PATCH 1/2] mmc: renesas-sdhi: Always configure default SDnH clock rate to 800 MHz

2023-02-27 Thread Marek Vasut
settings obtained from the attached card, the 800 MHz set up here is only the default value. Signed-off-by: Marek Vasut --- Cc: Jaehoon Chung Cc: Peng Fan --- drivers/mmc/renesas-sdhi.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers

[PATCH 2/2] mmc: renesas-sdhi: Add proper probe error fail path

2023-02-27 Thread Marek Vasut
-off-by: Marek Vasut --- Cc: Jaehoon Chung Cc: Peng Fan --- drivers/mmc/renesas-sdhi.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c index 2473261f3c4..34119f949aa 100644 --- a/drivers/mmc

[PATCH] CI: gitlab: Collect pytest artifacts

2023-02-27 Thread Marek Vasut
Copy build artifacts for all test.py tests, so they show up in artifacts storage for later inspection. The test.py tests output in CI is basically useless, but it is far more useful in the html output for analysis and debugging. Suggested-by: Simon Glass Signed-off-by: Marek Vasut --- Cc: Simon

[PATCH 1/3] sysinfo: rcar3: Fix Draak and Eagle board code

2023-02-27 Thread Marek Vasut
From: Tam Nguyen Correct the board code ID based on the hardware documentation Reviewed-by: Marek Vasut Signed-off-by: Tam Nguyen Signed-off-by: Hai Pham Signed-off-by: Marek Vasut --- drivers/sysinfo/rcar3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 3/3] ARM: dts: renesas: Enable sysinfo on R-Car D3 Draak

2023-02-27 Thread Marek Vasut
From: Tam Nguyen Enable support for sysinfo on R-Car D3 Draak board. The sysinfo is used e.g. to access and decode board-specific information and then in turn used by board-info to print those information. Reviewed-by: Marek Vasut Signed-off-by: Tam Nguyen Signed-off-by: Hai Pham Signed-off

[PATCH 2/3] ARM: dts: renesas: Enable sysinfo on R-Car V3H Condor/Condor-I

2023-02-27 Thread Marek Vasut
From: Tam Nguyen Add new sysinfo IDs for R-Car V3H Condor/Condor-I . Enable support for sysinfo on R-Car V3H Condor/Condor-I. The sysinfo is used e.g. to access and decode board-specific information and then in turn used by board-info to print those information. Reviewed-by: Marek Vasut

[PATCH] ARM: renesas: Remove defines for USB on Eagle/Condor

2023-02-27 Thread Marek Vasut
From: Hai Pham The Eagle board based on R-Car V3M, which does not support any USB interfaces. The same applies for the Condor board based on R-Car V3H. Remove the defines. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut --- configs/r8a77970_eagle_defconfig | 6

[PATCH] ARM: renesas: Demote overlap memory nodes message to debug on Gen3

2023-02-27 Thread Marek Vasut
level. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut --- board/renesas/rcar-common/common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/renesas/rcar-common/common.c b/board/renesas/rcar-common/common.c index daa1beb14f8

[PATCH] ARM: renesas: Enable DTO support by default on R-Car Gen3

2023-02-27 Thread Marek Vasut
All R-Car Gen3 defconfigs present in U-Boot do enable DTO support, enable it for all of R-Car Gen3 by default in Kconfig instead, so that no new boards would miss this functionality. Signed-off-by: Marek Vasut --- arch/arm/mach-rmobile/Kconfig.64 | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 1/2] ARM: renesas: falcon: Initialize ARM generic timer and GICv3 if EL3

2023-02-27 Thread Marek Vasut
From: Hai Pham U-Boot executes at EL3 is required to initalize those settings. In other cases, they will be done by prior-stage firmware instead. This fixes crash when U-Boot is at non-secure exception level. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut

[PATCH 2/2] ARM: renesas: falcon: Enable RWDT reset for V3U Falcon

2023-02-27 Thread Marek Vasut
From: Hai Pham Enable RWDT reset on Reset Controller so that it can be used as reset trigger source for V3U Falcon. Reviewed-by: Marek Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut # Use one current_el() in board_init --- board/renesas/falcon/falcon.c | 16 +++- 1

[PATCH 1/2] i2c: rcar_iic: Sort Kconfig depends list ascending

2023-02-27 Thread Marek Vasut
Sort the list of "depends" symbols in ascending order. No functional change. Signed-off-by: Marek Vasut --- Cc: Heiko Schocher --- drivers/i2c/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 3279fef1eb0..a

[PATCH 2/2] i2c: rcar_i2c: Sort Kconfig depends list ascending

2023-02-27 Thread Marek Vasut
Sort the list of "depends" symbols in ascending order. No functional change. Signed-off-by: Marek Vasut --- Cc: Heiko Schocher --- drivers/i2c/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index aa51f0c869e..1

[PATCH] net: ravb: Support fixed PHY in R-Car

2023-02-27 Thread Marek Vasut
From: Mikhail Lappo Calling old U-Boot API doesn't allow to use fixed PHY. Searching by mask is the part of new function, after scanning FDT for a fixed PHY definition Fixes: e821a7bdb13 ("net: ravb: Detect PHY correctly") Reviewed-by: Marek Vasut Signed-off-by: Mikhail Lappo

[PATCH 1/6] misc: ub251xb: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR

2023-02-27 Thread Marek Vasut
The DM_REGULATOR symbol has SPL counterpart in: drivers/power/regulator/Kconfig:config SPL_DM_REGULATOR Use CONFIG_IS_ENABLED() macro to match on the correct variant depending on the build stage. Signed-off-by: Marek Vasut --- Cc: Anatolij Gustschin Cc: Jaehoon Chung Cc: Marek Vasut Cc

[PATCH 4/6] video: rm68200: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR

2023-02-27 Thread Marek Vasut
The DM_REGULATOR symbol has SPL counterpart in: drivers/power/regulator/Kconfig:config SPL_DM_REGULATOR Use CONFIG_IS_ENABLED() macro to match on the correct variant depending on the build stage. Signed-off-by: Marek Vasut --- Cc: Anatolij Gustschin Cc: Jaehoon Chung Cc: Marek Vasut Cc

[PATCH 2/6] mmc: npcm_sdhci: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR

2023-02-27 Thread Marek Vasut
The DM_REGULATOR symbol has SPL counterpart in: drivers/power/regulator/Kconfig:config SPL_DM_REGULATOR Use CONFIG_IS_ENABLED() macro to match on the correct variant depending on the build stage. Signed-off-by: Marek Vasut --- Cc: Anatolij Gustschin Cc: Jaehoon Chung Cc: Marek Vasut Cc

[PATCH 3/6] video: otm8009a: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR

2023-02-27 Thread Marek Vasut
The DM_REGULATOR symbol has SPL counterpart in: drivers/power/regulator/Kconfig:config SPL_DM_REGULATOR Use CONFIG_IS_ENABLED() macro to match on the correct variant depending on the build stage. Signed-off-by: Marek Vasut --- Cc: Anatolij Gustschin Cc: Jaehoon Chung Cc: Marek Vasut Cc

[PATCH 5/6] video: simple-panel: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR

2023-02-27 Thread Marek Vasut
The DM_REGULATOR symbol has SPL counterpart in: drivers/power/regulator/Kconfig:config SPL_DM_REGULATOR Use CONFIG_IS_ENABLED() macro to match on the correct variant depending on the build stage. Signed-off-by: Marek Vasut --- Cc: Anatolij Gustschin Cc: Jaehoon Chung Cc: Marek Vasut Cc

[PATCH 6/6] video: tl070wsh30: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR

2023-02-27 Thread Marek Vasut
The DM_REGULATOR symbol has SPL counterpart in: drivers/power/regulator/Kconfig:config SPL_DM_REGULATOR Use CONFIG_IS_ENABLED() macro to match on the correct variant depending on the build stage. Signed-off-by: Marek Vasut --- Cc: Anatolij Gustschin Cc: Jaehoon Chung Cc: Marek Vasut Cc

Re: [PATCH] CI: gitlab: Collect pytest artifacts

2023-02-27 Thread Marek Vasut
On 2/28/23 00:36, Tom Rini wrote: [...] @@ -454,9 +457,4 @@ coreboot test.py: TEST_PY_BD: "coreboot" TEST_PY_TEST_SPEC: "not sleep" TEST_PY_ID: "--id qemu" - artifacts: -paths: - - "*.html" - - "*.css" -expire_in: 1 week <<: *buildman_and_testpy_dfn So

[PATCH v2] CI: gitlab: Collect pytest artifacts

2023-02-27 Thread Marek Vasut
: Marek Vasut --- Cc: Simon Glass Cc: Tom Rini --- V2: - Drop bogus comment - Add RB from Tom --- .gitlab-ci.yml | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 272d69e2206..3a2fd3dee08 100644 --- a/.gitlab-ci.yml +++ b

[PATCH] Kconfig: Sort the BUILD_TARGET list

2023-02-27 Thread Marek Vasut
Sort the defaults list in BUILD_TARGET Kconfig option. No functional change. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt Cc: Simon Glass Cc: Tom Rini --- Kconfig | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Kconfig b/Kconfig index a75cce7e28f

[PATCH] mmc: tmio: Replace ifdeffery with IS_ENABLED/CONFIG_IS_ENABLED macros

2023-02-27 Thread Marek Vasut
Instead of #if and #ifdef, use IS_ENABLED and CONFIG_IS_ENABLED macros. This improves build test coverage. The CONFIG_SPL_BUILD must remain an ifdef, as CONFIG_SPL_STACK may not always be defined, e.g. in U-Boot proper build. No functional change. Signed-off-by: Marek Vasut --- Cc: Jaehoon Chung

[PATCH] clk: renesas: rcar-gen3: Replace SSCG caching with MDSEL/PE caching

2023-02-27 Thread Marek Vasut
bit 12 on Gen3 again, however there are additional clock on Gen4 which use different bits, and having this flexibility in place now will be useful when adding Gen4. No functional change. Signed-off-by: Marek Vasut --- drivers/clk/renesas/clk-rcar-gen3.c | 18 +- drivers/clk/renesas

[PATCH 1/2] pinctrl: renesas: Replace ifdeffery with IS_ENABLED()

2023-02-27 Thread Marek Vasut
Switch ifdef in sh_gpio_get_value() to IS_ENABLED() macro. The CONFIG_RCAR_GEN3 will never have SPL counterpart, so the IS_ENABLED() macro is the right one here. No functional change, except for improved build test coverage. Signed-off-by: Marek Vasut --- drivers/gpio/sh_pfc.c | 6 +++--- 1

[PATCH 2/2] pinctrl: renesas: Drop non-existent PFC info table entries

2023-02-27 Thread Marek Vasut
Remove PFC info table entries which are never instantiated, since there are no drivers for those. No functional change. Signed-off-by: Marek Vasut --- drivers/pinctrl/renesas/sh_pfc.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/pinctrl/renesas/sh_pfc.h b/drivers

[PATCH] ARM: rmobile: Convert ifdef in rmobile_get_prr() to IS_ENABLED()

2023-02-27 Thread Marek Vasut
Switch ifdef in rmobile_get_prr() to IS_ENABLED() macro. The CONFIG_RCAR_GEN3 will never have SPL counterpart, so the IS_ENABLED() macro is the right one here. No functional change, except for improved build test coverage. Signed-off-by: Marek Vasut --- arch/arm/mach-rmobile/cpu_info-rcar.c | 7

[PATCH 1/4] ARM: rmobile: Sort R-Car Gen3 Kconfig lists

2023-02-27 Thread Marek Vasut
Sort the 'imply' and 'select' lists in R-Car Gen3 Kconfig options. No functional change. Signed-off-by: Marek Vasut --- arch/arm/mach-rmobile/Kconfig| 10 +- arch/arm/mach-rmobile/Kconfig.64 | 22 +++--- 2 files changed, 16 insertions(+), 16 dele

[PATCH 2/4] ARM: rmobile: Factor out SYS_SOC Kconfig option

2023-02-27 Thread Marek Vasut
Pull the SYS_SOC Kconfig option to avoid duplication of this option in Kconfig.{32,64,rza1} . The default value is the same, so just set it in one location. Signed-off-by: Marek Vasut --- arch/arm/mach-rmobile/Kconfig | 3 +++ arch/arm/mach-rmobile/Kconfig.32 | 3 --- arch/arm/mach

[PATCH 3/4] ARM: rmobile: Introduce CONFIG_RCAR_64 symbol

2023-02-27 Thread Marek Vasut
Introduce common Kconfig symbol for 64bit R-Car platforms and move common configuration options into it. This is preparatory patch to prevent duplication of Kconfig lists later on, when Gen4 is added. Signed-off-by: Marek Vasut --- arch/arm/mach-rmobile/Kconfig | 29

[PATCH 4/4] ARM: rmobile: Split R-Car Gen3 into separate Kconfig from common 64bit options

2023-02-27 Thread Marek Vasut
There are multiple shared Kconfig options between R-Car Gen3 and Gen4. Keep the common options in Kconfig.64 and move the R-Car Gen3 specific options into separate Kconfig.rcar3 . The Kconfig.rcar3 contains SoC and board list, which is limited to R-Car Gen3. Signed-off-by: Marek Vasut --- arch

Re: [PATCH 1/2] ARM: dts: uniphier: Switch USB node to the original

2023-02-27 Thread Marek Vasut
Hayashi Very nice Acked-by: Marek Vasut

Re: [PATCH 2/2] ARM: dts: uniphier: Sync DT with Linux v6.2

2023-02-27 Thread Marek Vasut
nodes - And some trivial fixes Signed-off-by: Kunihiko Hayashi Acked-by: Marek Vasut

[PATCH] clk: renesas: Always select DM_RESET to prevent inobvious failure of rst_gen3 subdriver

2023-02-28 Thread Marek Vasut
. Signed-off-by: Marek Vasut --- drivers/clk/renesas/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/renesas/Kconfig b/drivers/clk/renesas/Kconfig index 1686410d6d3..d58e897ca1b 100644 --- a/drivers/clk/renesas/Kconfig +++ b/drivers/clk/renesas/Kconfig @@ -49,6 +49,7 @@ config

[PATCH 1/2] serial: sh: Rename CONFIG_SCI and CONFIG_SCIF_USE_EXT_CLK to CFG_ variants

2023-02-28 Thread Marek Vasut
defined elsewhere, no functional change. Signed-off-by: Marek Vasut --- Cc: Samuel Holland Cc: Sean Anderson Cc: Simon Glass --- drivers/serial/serial_sh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c index

[PATCH 2/2] serial: sh: Add DEBUG_UART support

2023-02-28 Thread Marek Vasut
: Marek Vasut --- Cc: Samuel Holland Cc: Sean Anderson Cc: Simon Glass --- drivers/serial/Kconfig | 8 drivers/serial/serial_sh.c | 85 +++--- 2 files changed, 68 insertions(+), 25 deletions(-) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig

[PATCH v2 2/2] mmc: tmio: Replace ifdeffery with IS_ENABLED/CONFIG_IS_ENABLED macros

2023-02-28 Thread Marek Vasut
Instead of #if and #ifdef, use IS_ENABLED and CONFIG_IS_ENABLED macros. This improves build test coverage. The CONFIG_SPL_BUILD must remain an ifdef, as CONFIG_SPL_STACK may not always be defined, e.g. in U-Boot proper build. No functional change. Signed-off-by: Marek Vasut --- Cc: Jaehoon Chung

[PATCH v2 1/2] mmc: tmio: Check 'addr' width before checking for 64bit limitation

2023-02-28 Thread Marek Vasut
376 | if (addr >> 32) | ^~ Fix the warning by checking the addr type width to see whether the shift even makes sense in the first place. The width check is also optimized out at compile time. Signed-off-by: Marek Vasut --- Cc: Jaehoon Chung Cc: Peng Fa

[PATCH] serial: sh: Make indent consistent

2023-02-28 Thread Marek Vasut
Make the indent of these macro elements consistent with the rest of this table. No functional change. Signed-off-by: Marek Vasut --- drivers/serial/serial_sh.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/serial/serial_sh.h b/drivers/serial/serial_sh.h

[PATCH] ARM: rmobile: Add R-Car Generation 4 support

2023-02-28 Thread Marek Vasut
Vasut Signed-off-by: Hai Pham Signed-off-by: Marek Vasut [Marek: - Enable DTO support by default - Sort the Kconfig lists - Select RCAR_64 Kconfig option to pull in all the shared Kconfig options with Gen3, and use where applicable to deduplicate entries

  1   2   3   4   5   6   7   8   9   10   >