[PATCH 3/3] timer: riscv_aclint_timer: add timer_get_boot_us for BOOTSTAGE

2023-08-20 Thread Chanho Park
timer_get_boot_us function is required to record the boot stages as us-based timestamp. Signed-off-by: Chanho Park --- drivers/timer/riscv_aclint_timer.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/timer/riscv_aclint_timer.c

[PATCH 0/3] bootstage support for risc-v

2023-08-20 Thread Chanho Park
This adds to support bootstage for risc-v. timer_get_boot_us function is required to record each boot stages with microsecond timestamp. Chanho Park (3): riscv: bootstage: correct bootstage_report guard riscv: timer: add timer_get_boot_us for BOOTSTAGE timer: riscv_aclint_timer: add

[PATCH 1/3] riscv: bootstage: correct bootstage_report guard

2023-08-20 Thread Chanho Park
Below warning can be occurred when CONFIG_BOOTSTAGE and !CONFIG_SPL_BOOTSTAGE. It should be guarded by using CONFIG_IS_ENABLED for SPL build. arch/riscv/lib/bootm.c:46:9: warning: implicit declaration of function 'bootstage_report' 46 | bootstage_report(); |

[PATCH 2/3] riscv: timer: add timer_get_boot_us for BOOTSTAGE

2023-08-20 Thread Chanho Park
timer_get_boot_us function is required to record the boot stages as us-based timestamp. Signed-off-by: Chanho Park --- drivers/timer/riscv_timer.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/timer/riscv_timer.c b/drivers/timer/riscv_timer.c index

[PATCH 2/2] ARM64: dts: marvell: cn9310-crb: Remove duplicate pinctrl

2023-08-20 Thread Chris Packham
The cn9130.dtsi defines a pinctrl node for SPI1 (until recently it was mislabeled as spi0). Use this instead of having a duplicate definition with a different label. Signed-off-by: Chris Packham --- arch/arm/dts/cn9130-crb.dtsi | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff

[PATCH 1/2] ARM64: dts: marvell: cn9310: Use appropriate label for spi1 pins

2023-08-20 Thread Chris Packham
The CN9130-DB uses the SPI1 interface but had the pinctrl node labelled as "cp0_spi0_pins". Use the label "cp0_spi1_pins" and update the node name to "cp0-spi-pins-1" to avoid confusion with the pinctrl options for SPI0. Signed-off-by: Chris Packham --- arch/arm/dts/cn9130-db.dtsi | 2 +-

[PATCH v2] dm: core: Report bootph-pre-ram/sram node as pre-reloc after relocation

2023-08-20 Thread Jonas Karlman
Nodes with bootph-pre-sram/ram props are bound in multiple phases: 1. At TPL (bootph-pre-sram) or SPL (bootph-pre-ram) phase 2. At U-Boot proper pre-relocation phase 3. At U-Boot proper normal phase However the binding and U-Boot Driver Model documentation indicate that only nodes marked with

Re: [PATCH 1/2] test: dm: pinmux: Handle %pa in pinctrl-single mux output

2023-08-20 Thread Simon Glass
On Sat, 12 Aug 2023 at 21:32, Marek Vasut wrote: > > The pinctrl-single driver uses %pa to print register value > in its single_get_pin_muxing() output. Handle this properly > in the test based on CONFIG_PHYS_64BIT . > > Signed-off-by: Marek Vasut > --- > Cc: Simon Glass > --- >

Re: [PATCH] configs: sandbox64: Enable SF bootdev

2023-08-20 Thread Simon Glass
On Sat, 12 Aug 2023 at 18:16, Marek Vasut wrote: > > Align the sandbox64 defconfig with sandbox defconfig. Enable missing > SPI NOT bootdev. This fixes ut_bootstd_bootdev_test_cmd_hunt test . > > Signed-off-by: Marek Vasut > --- > Cc: Mario Six > Cc: Simon Glass > --- >

Re: [PATCH] configs: sandbox64: Increase console record size to 0x6000

2023-08-20 Thread Simon Glass
On Sat, 12 Aug 2023 at 19:18, Marek Vasut wrote: > > Align the sandbox64 defconfig with sandbox defconfig. Increase the > console record size. This fixes ut_bootstd_bootflow_cmd_scan_e . > > Signed-off-by: Marek Vasut > --- > Cc: Mario Six > Cc: Simon Glass > --- > configs/sandbox64_defconfig

Re: [PATCH] configs: sandbox64: Enable MC34708 driver

2023-08-20 Thread Simon Glass
On Sat, 12 Aug 2023 at 20:57, Marek Vasut wrote: > > Align the sandbox64 defconfig with sandbox defconfig. Enable missing > MC34708 PMIC driver. This fixes ut_dm_dm_test_power_pmic_mc34708_get test . > > Signed-off-by: Marek Vasut > --- > Cc: Simon Glass > --- > configs/sandbox64_defconfig | 1

Re: [PATCH] configs: sandbox64: Enable BUTTON_ADC driver

2023-08-20 Thread Simon Glass
On Sat, 12 Aug 2023 at 21:06, Marek Vasut wrote: > > Align the sandbox64 defconfig with sandbox defconfig. Enable missing > BUTTON ADC driver. This fixes ut_dm_dm_test_button_keys_adc test . > > Signed-off-by: Marek Vasut > --- > Cc: Simon Glass > --- > configs/sandbox64_defconfig | 1 + > 1

Re: [PATCH 2/2] configs: sandbox64: Enable PINCTRL_SINGLE driver

2023-08-20 Thread Simon Glass
On Sat, 12 Aug 2023 at 21:32, Marek Vasut wrote: > > Align the sandbox64 defconfig with sandbox defconfig. Enable missing > PINCTRL single driver. This fixes ut_dm_dm_test_pinctrl_single test . > > Signed-off-by: Marek Vasut > --- > Cc: Simon Glass > --- > configs/sandbox64_defconfig | 1 + >

Re: [PATCH 1/2] configs: sandbox64: Enable video 16bpp and 24bpp support

2023-08-20 Thread Simon Glass
On Sat, 12 Aug 2023 at 23:15, Marek Vasut wrote: > > Align the sandbox64 defconfig with sandbox defconfig. Enable missing > 16bpp and 24bpp video support. This fixes ut_dm_dm_test_video_bmp16 > and ut_dm_dm_test_video_bmp24 tests . > > Signed-off-by: Marek Vasut > --- > Cc: Simon Glass > --- >

Re: [PATCH 2/2] configs: sandbox64: Enable video 12x22 font support

2023-08-20 Thread Simon Glass
On Sat, 12 Aug 2023 at 23:15, Marek Vasut wrote: > > Align the sandbox64 defconfig with sandbox defconfig. Enable missing > 12x22 font support. This fixes ut_dm_dm_test_video_text_12x22 test . > > Signed-off-by: Marek Vasut > --- > Cc: Simon Glass > --- > configs/sandbox64_defconfig | 1 + > 1

Re: [PATCH] configs: sandbox64: Enable clock CCF driver

2023-08-20 Thread Simon Glass
On Sun, 13 Aug 2023 at 13:50, Marek Vasut wrote: > > Align the sandbox64 defconfig with sandbox defconfig. Enable missing > CCF and Sandbox CCF drivers. This fixes ut_dm_dm_test_clk_ccf test . > > Signed-off-by: Marek Vasut > --- > Cc: Simon Glass > --- > configs/sandbox64_defconfig | 2 ++ >

Re: [PATCH] configs: sandbox64: Enable PCI register multi-entry support

2023-08-20 Thread Simon Glass
On Sun, 13 Aug 2023 at 13:52, Marek Vasut wrote: > > Align the sandbox64 defconfig with sandbox defconfig. Enable missing > PCI register multi-entry support. This fixes ut_dm_dm_test_pci_bus_to_phys > test . > > Signed-off-by: Marek Vasut > --- > Cc: Simon Glass > --- >

Re: [PATCH] test: cpu: Handle both 32bit and 64bit CPUs

2023-08-20 Thread Simon Glass
On Sun, 13 Aug 2023 at 13:52, Marek Vasut wrote: > > Handle both 32bit and 64bit systems, i.e. sandbox and sandbox64 > the same way drivers/cpu/cpu_sandbox.c does, that is in case > CONFIG_PHYS_64BIT is enabled, assume 64bit address width, else > assume 32bit address width. This fixes

Re: [PATCH v1 1/1] usb: host: tegra: implement dts based xcvr setup

2023-08-20 Thread Marek Vasut
On 8/20/23 21:23, Svyatoslav Ryhel wrote: 20 серпня 2023 р. 22:10:17 GMT+03:00, Marek Vasut написав(-ла): On 8/20/23 20:32, Svyatoslav Ryhel wrote: 20 серпня 2023 р. 21:14:15 GMT+03:00, Marek Vasut написав(-ла): On 8/20/23 09:13, Svyatoslav Ryhel wrote: 20 серпня 2023 р. 05:23:14

Re: [PATCH v1 1/1] usb: host: tegra: implement dts based xcvr setup

2023-08-20 Thread Svyatoslav Ryhel
20 серпня 2023 р. 22:10:17 GMT+03:00, Marek Vasut написав(-ла): >On 8/20/23 20:32, Svyatoslav Ryhel wrote: >> 20 серпня 2023 р. 21:14:15 GMT+03:00, Marek Vasut >> написав(-ла): >>> On 8/20/23 09:13, Svyatoslav Ryhel wrote: 20 серпня 2023 р. 05:23:14 GMT+03:00, Marek Vasut

Re: [PATCH v1 1/1] usb: host: tegra: implement dts based xcvr setup

2023-08-20 Thread Marek Vasut
On 8/20/23 20:32, Svyatoslav Ryhel wrote: 20 серпня 2023 р. 21:14:15 GMT+03:00, Marek Vasut написав(-ла): On 8/20/23 09:13, Svyatoslav Ryhel wrote: 20 серпня 2023 р. 05:23:14 GMT+03:00, Marek Vasut написав(-ла): On 8/19/23 17:06, Svyatoslav Ryhel wrote: Some devices (like ASUS TF201) may

[PATCH v1 4/4] scripts/gen_compile_commands.py: add acknowledgments

2023-08-20 Thread Joao Marcos Costa
Add acknowledgments for porting and modifying the script. Of course, the license, author, and copyright notice remain the same as in the original script. Signed-off-by: Joao Marcos Costa --- scripts/gen_compile_commands.py | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v1 3/4] scripts/gen_compile_commands.py: fix docstring

2023-08-20 Thread Joao Marcos Costa
The referred tool is now in U-Boot. Replace "the Linux kernel" by "U-Boot" to make the docstring coherent. Signed-off-by: Joao Marcos Costa --- scripts/gen_compile_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_compile_commands.py

[PATCH v1 2/4] scripts/gen_compile_commands.py: adapt _LINE_PATTERN

2023-08-20 Thread Joao Marcos Costa
For U-Boot's context, the regular expression defined by _LINE_PATTERN should be adapted. Replace 'savedcmd' by 'cmd'. Signed-off-by: Joao Marcos Costa --- scripts/gen_compile_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_compile_commands.py

[PATCH v1 1/4] scripts: Port Linux's gen_compile_commands.py to U-Boot

2023-08-20 Thread Joao Marcos Costa
This script generates a database of compiler flags, namely compile_commands.json. It is quite useful for text editors that use clangd LSP (e.g. Vim, Neovim). It was ported from Linux's sources: - tag: v6.4 - revision 6995e2de6891c724bfeb2db33d7b87775f913ad1 Modifications for U-Boot compatibility

[PATCH v1 0/4] Port gen_compile_commands.py from Linux to U-Boot

2023-08-20 Thread Joao Marcos Costa
Hello U-Boot community, I'm submitting a patch series that ports the gen_compile_commands.py script from the Linux kernel's sources to U-Boot. This script, originally located in scripts/clang-tools/gen_compile_commands.py, enables the generation of compile_commands.json files for improved code

Re: [PATCH v1 1/1] usb: host: tegra: implement dts based xcvr setup

2023-08-20 Thread Svyatoslav Ryhel
20 серпня 2023 р. 21:14:15 GMT+03:00, Marek Vasut написав(-ла): >On 8/20/23 09:13, Svyatoslav Ryhel wrote: >> 20 серпня 2023 р. 05:23:14 GMT+03:00, Marek Vasut >> написав(-ла): >>> On 8/19/23 17:06, Svyatoslav Ryhel wrote: Some devices (like ASUS TF201) may not have fuse based xcvr setup

Re: [PATCH v1 1/1] usb: host: tegra: implement dts based xcvr setup

2023-08-20 Thread Marek Vasut
On 8/20/23 09:13, Svyatoslav Ryhel wrote: 20 серпня 2023 р. 05:23:14 GMT+03:00, Marek Vasut написав(-ла): On 8/19/23 17:06, Svyatoslav Ryhel wrote: Some devices (like ASUS TF201) may not have fuse based xcvr setup which will result in not working USB line. To fix this situation allow xcvr

Re: Dropping CONFIG_SCSI

2023-08-20 Thread Tom Rini
On Sun, Aug 20, 2023 at 11:49:21AM -0600, Simon Glass wrote: > Hi, > > The deadline has passed for the non-driver model SCSI code. The boards > below still have this enabled: > > $ ./tools/moveconfig.py -f SCSI ~DM_SCSI > controlcenterdc am57xx_hs_evm_usb ls1088ardb_sdcard_qspi_SECURE_BOOT >

Re: Dropping CONFIG_SCSI

2023-08-20 Thread Tom Rini
On Sun, Aug 20, 2023 at 11:49:21AM -0600, Simon Glass wrote: > Hi, > > The deadline has passed for the non-driver model SCSI code. The boards > below still have this enabled: > > $ ./tools/moveconfig.py -f SCSI ~DM_SCSI > controlcenterdc am57xx_hs_evm_usb ls1088ardb_sdcard_qspi_SECURE_BOOT >

Dropping CONFIG_SCSI

2023-08-20 Thread Simon Glass
Hi, The deadline has passed for the non-driver model SCSI code. The boards below still have this enabled: $ ./tools/moveconfig.py -f SCSI ~DM_SCSI controlcenterdc am57xx_hs_evm_usb ls1088ardb_sdcard_qspi_SECURE_BOOT ls1046ardb_sdcard_SECURE_BOOT ls1021atsn_qspi ls1021atsn_sdcard highbank

Re: [PATCH v3 12/19] x86: smbios: Add a Kconfig indicating SMBIOS-table presence

2023-08-20 Thread Simon Glass
Hi Heinrich, On Sun, 20 Aug 2023 at 04:00, Heinrich Schuchardt wrote: > > On 8/19/23 23:22, Simon Glass wrote: > > When booted from coreboot, U-Boot does not build the SMBIOS tables, but > > it should still pass them on to the OS. Add a new option which indicates > > whether SMBIOS tables are

Re: [PATCH 03/17] configs: sandbox: Enable DM_USB_GADGET

2023-08-20 Thread Simon Glass
On Sat, 19 Aug 2023 at 08:24, Marek Vasut wrote: > > Switch sandbox to DM_USB_GADGET, DM is the future. > > Signed-off-by: Marek Vasut > --- > Cc: Angus Ainslie > Cc: Dmitrii Merkurev > Cc: Eddie Cai > Cc: Kever Yang > Cc: Lukasz Majewski > Cc: Miquel Raynal > Cc: Mattijs Korpershoek >

Re: [PATCH 02/17] usb: sandbox: Add DM_USB_GADGET support

2023-08-20 Thread Simon Glass
On Sat, 19 Aug 2023 at 08:24, Marek Vasut wrote: > > Remove local usb_gadget_register_driver()/usb_gadget_unregister_driver() > implementation which is implemented in udc-core.c instead if DM_USB_GADGET > is enabled. Add no-op dm_usb_gadget_handle_interrupts() implementation. > > Signed-off-by:

Re: [PULL] u-boot-sh/master

2023-08-20 Thread Tom Rini
On Sun, Aug 20, 2023 at 03:43:28AM +0200, Marek Vasut wrote: > The following changes since commit a5899cc69a99379f01e8e2f9f98e0e09b24f1656: > > Merge https://source.denx.de/u-boot/custodians/u-boot-watchdog (2023-08-10 > 11:40:09 -0400) > > are available in the Git repository at: > >

Re: Pull request doc-2023-10-rc3-2

2023-08-20 Thread Tom Rini
On Sat, Aug 19, 2023 at 05:54:25AM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit e34efcf51df86eb2b07d9deb171596940586c666: > > rockchip: rk3566-anbernic-rgxx3: Rename defconfig to include SoC name > (2023-08-18 10:25:03 -0400) > > are available in the

[PATCH 4/4] CI: Drop some jobs we didn't really utilize

2023-08-20 Thread Tom Rini
- We have added more TODO/etc comments since this task was created and never focused on removing them. - The output of sloccount isn't preserved or looked at, and if desired should be in the release stats pages instead somehow. - The results of cppcheck aren't investigated and require modeling

[PATCH 3/4] CI: Combine tools-only and envtools jobs

2023-08-20 Thread Tom Rini
These jobs are to confirm specific build targets, on a Linux host. We can safely combine these two build tests, with a make mrproper in between. Signed-off-by: Tom Rini --- .azure-pipelines.yml | 13 ++--- .gitlab-ci.yml | 12 2 files changed, 6 insertions(+), 19

[PATCH 2/4] Azure: Rework build the world jobs

2023-08-20 Thread Tom Rini
Now that we have 3600 minutes per build job, condense and rework things such that our overall time largely doesn't change, but we can also largely avoid having to re-tweak this job to avoid timeouts. Given that we have 10 threads, we also move a few of the specific sandbox test builds to a prior

[PATCH 1/4] Azure: Set the timeout for jobs to the maximum

2023-08-20 Thread Tom Rini
As per current Azure Pipelines documentation we qualify for 3600 minutes per job, if specified, as the timeout. The default unspecified timeout is 60 minutes. Rework things to specify 0 as the timeout (and so maximum allowed) so that we don't have failures due to running slightly past 60 minutes

[PATCH 2/3] board: stm32f746-disco: refactor the display of the ST logo

2023-08-20 Thread Dario Binacchi
The patch removes the legacy mode of displaying the ST logo and adopts the approach introduced by the commit 284b08fb51b6 ("board: stm32mp1: add splash screen with stmicroelectronics logo"). It was necessary to use a specific logo for the stm32f746-disco board. Furthermore, the previous version

[PATCH 1/3] configs: stm32f746-disco: limit resolution to 480x272

2023-08-20 Thread Dario Binacchi
The patch fixes the y-resolution, which was causing the creation of a framebuffer larger than actually needed, resulting in memory waste. Fixes: cc1b0e7b8e55b ("board: Add display to STM32F746 SoC discovery board") Signed-off-by: Dario Binacchi --- configs/stm32f746-disco_defconfig | 2 +-

[PATCH v3] board: rockchip: Add Bananapi R2Pro Board

2023-08-20 Thread Frank Wunderlich
From: Frank Wunderlich Add Bananapi R2 Pro board. Till now evb dts could be used, but iodomain is different (evb has 1v8 on vccio2 and vccio4 which are 3v3 on r2pro) and with iodomain driver this can cause hardware fault. Devicetree in mainline-Linux:

Re: [PATCH v3 12/19] x86: smbios: Add a Kconfig indicating SMBIOS-table presence

2023-08-20 Thread Heinrich Schuchardt
On 8/19/23 23:22, Simon Glass wrote: When booted from coreboot, U-Boot does not build the SMBIOS tables, but it should still pass them on to the OS. Add a new option which indicates whether SMBIOS tables are present, however they were built. Flip the ordering so that the dependency is listed

Re: [PATCH] ARM: rmobile: Clean up rmobile_cpuinfo_idx()

2023-08-20 Thread Paul Barker
On 19/08/2023 15:39, Marek Vasut wrote: > Clean the function up a bit further. Return immediatelly on match > and return ARRAY_SIZE() - 1 on failure. Add proper comment in that > case. > > Signed-off-by: Marek Vasut > --- > Cc: Biju Das > Cc: Paul Barker > --- >

Re: [PATCH v1 1/1] usb: host: tegra: implement dts based xcvr setup

2023-08-20 Thread Svyatoslav Ryhel
20 серпня 2023 р. 05:23:14 GMT+03:00, Marek Vasut написав(-ла): >On 8/19/23 17:06, Svyatoslav Ryhel wrote: >> Some devices (like ASUS TF201) may not have fuse based xcvr setup >> which will result in not working USB line. To fix this situation >> allow xcvr setup to be performed from device tree