Re: [PATCH] imx: Revert "imx: mx6ull: fix REFTOP_VBGADJ setting" and fix comments

2022-03-10 Thread Michael Nazzareno Trimarchi
Hi On Tue, Mar 8, 2022 at 7:42 AM Ye Li wrote: > > The change in commit c1af358 (imx: mx6ull: fix REFTOP_VBGADJ setting) > is not correct. According to latest i.MX6ULL fuse table, > the REFTOP_TRIM[2:0] fuse is defined as below. So the previous codes > are correct, only need to fix the comments.

Re: [PATCH v2 1/1] cmd: add serial console support for the cls command

2022-03-10 Thread Heinrich Schuchardt
On 2/11/22 21:29, Simon Glass wrote: On Fri, 11 Feb 2022 at 10:11, Heinrich Schuchardt wrote: Currently the cls command does not support the serial console The screen can be cleared in the video uclass, the colored frame buffer console, and the serial console by sending the same escape

Re: [PATCH 1/1] doc: path to u-boot-spl.bin on SiFive Unmatched board

2022-03-10 Thread Bin Meng
On Thu, Mar 10, 2022 at 6:32 PM Heinrich Schuchardt wrote: > > u-boot-spl.bin is build in spl/. built > > Signed-off-by: Heinrich Schuchardt > --- > doc/board/sifive/unmatched.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/doc/board/sifive/unmatched.rst

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Stanley Chu
On Fri, Mar 11, 2022 at 10:53 AM Giulio Benetti wrote: > > Hi Stanley, > > > Il giorno 11 mar 2022, alle ore 03:13, Stanley Chu > > ha scritto: > > > > Hi Tom, > > We need time to prepare linux dts, can I send the rest of the drivers > > first or need to wait until the linux dts is submitted?

Re: [PATCH 02/15] arm: sunxi: Remove most SoC-specific config header files

2022-03-10 Thread Samuel Holland
On 3/10/22 8:04 AM, Andre Przywara wrote: > On Thu, 10 Mar 2022 08:32:11 -0500 > Tom Rini wrote: > >> On Thu, Mar 10, 2022 at 10:58:50AM +, Andre Przywara wrote: >>> On Wed, 9 Mar 2022 20:43:51 -0500 >>> Tom Rini wrote: >>> >>> Hi Tom, >>> At this point, sunxi-common.h is used for

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Giulio Benetti
Hi Stanley, > Il giorno 11 mar 2022, alle ore 03:13, Stanley Chu > ha scritto: > > Hi Tom, > We need time to prepare linux dts, can I send the rest of the drivers > first or need to wait until the linux dts is submitted? > Because I want to remove some unused nodes/properties away from linux

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Tom Rini
On Fri, Mar 11, 2022 at 10:13:19AM +0800, Stanley Chu wrote: > Hi Tom, > We need time to prepare linux dts, can I send the rest of the drivers > first or need to wait until the linux dts is submitted? > Because I want to remove some unused nodes/properties away from linux > dts to reduce dtb

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Stanley Chu
Hi Tom, We need time to prepare linux dts, can I send the rest of the drivers first or need to wait until the linux dts is submitted? Because I want to remove some unused nodes/properties away from linux dts to reduce dtb size, can we use different dts for uboot? Thanks a lot for your comments.

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Giulio Benetti
On 11/03/22 02:06, Giulio Benetti wrote: Hi Stanley, On 11/03/22 01:50, Stanley Chu wrote: Hi Giulio, Thank you for your comment, I've submitted a clk driver patch to address this. https://patchwork.ozlabs.org/project/uboot/patch/20220225075954.3965-1-ys...@nuvoton.com/ Good to see that!

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Giulio Benetti
Hi Stanley, On 11/03/22 01:50, Stanley Chu wrote: Hi Giulio, Thank you for your comment, I've submitted a clk driver patch to address this. https://patchwork.ozlabs.org/project/uboot/patch/20220225075954.3965-1-ys...@nuvoton.com/ Good to see that! But I think you should submit the entire

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Stanley Chu
Hi Jesse, Thanks for the comment, this will be addressed in the next patches. -- Stanley On Thu, Dec 16, 2021 at 6:16 AM Jesse Taube wrote: > > > > On 12/15/21 13:32, Sean Anderson wrote: > > On 12/14/21 9:57 PM, Stanley Chu wrote: > >> Add basic support for the Nuvoton NPCM845 BMC. > >> > >>

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Stanley Chu
Hi Sean, Thank you for your comment, I've submitted a clk driver patch to address this. https://patchwork.ozlabs.org/project/uboot/patch/20220225075954.3965-1-ys...@nuvoton.com/ As for the reset controller, I will take reset-syscon driver for that. -- Stanley On Thu, Dec 16, 2021 at 2:32 AM

[PATCH] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-10 Thread Angus Ainslie
Based off the imx8mm u-boot driver and the linux kernel driver Signed-off-by: Angus Ainslie --- drivers/clk/imx/Kconfig | 16 + drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-imx8mq.c | 593 +++ 3 files changed, 611 insertions(+) create mode

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Stanley Chu
Hi Giulio, Thank you for your comment, I've submitted a clk driver patch to address this. https://patchwork.ozlabs.org/project/uboot/patch/20220225075954.3965-1-ys...@nuvoton.com/ -- Stanley On Wed, Dec 15, 2021 at 8:12 PM Giulio Benetti wrote: > > Hi Stanley, > > On 15/12/21 03:57, Stanley

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Stanley Chu
Hi Sean, Thanks for the review. It is addressed in the gpio driver patch as below. https://patchwork.ozlabs.org/project/uboot/patch/20220225021450.18690-1-ys...@nuvoton.com/ -- Stanley On Thu, Dec 16, 2021 at 6:30 AM Sean Anderson wrote: > > On 12/15/21 5:16 PM, Jesse Taube wrote: > > > > > >

Re: [PATCH v2] binman: support mkimage separate files

2022-03-10 Thread Peter Geis
On Thu, Mar 10, 2022 at 2:36 PM Alper Nebi Yasak wrote: > > On 06/03/2022 17:44, Peter Geis wrote: > > On Sat, Mar 5, 2022 at 10:08 PM Simon Glass wrote: > >> On Fri, 4 Mar 2022 at 12:56, Peter Geis wrote: > >>> mkimage has the ability to process two files at the same time. > >>> This is

Re: dsa driver for mv88e61xx

2022-03-10 Thread Vladimir Oltean
On Thu, Mar 10, 2022 at 02:35:21PM -0800, Tim Harvey wrote: > On Thu, Mar 10, 2022 at 8:50 AM Vladimir Oltean wrote: > > > > Hello Tim, > > > > On Thu, Mar 10, 2022 at 08:16:13AM -0800, Tim Harvey wrote: > > > Greetings, > > > > > > I wanted to take a stab at adding dsa support for the mv88e61xx

Re: dsa driver for mv88e61xx

2022-03-10 Thread Tim Harvey
On Thu, Mar 10, 2022 at 8:50 AM Vladimir Oltean wrote: > > Hello Tim, > > On Thu, Mar 10, 2022 at 08:16:13AM -0800, Tim Harvey wrote: > > Greetings, > > > > I wanted to take a stab at adding dsa support for the mv88e61xx which > > currently has a driver in drivers/net/phy [1]. The board I have >

No u-boot-rockchip pull request sent or merged for v2022.04

2022-03-10 Thread Alper Nebi Yasak
Hi Tom, I have a few Rockchip-related series [1] that I was expecting to land for v2022.04 (including improvements for chromebook_bob, support for the chromebook_kevin board, rk3399 eMMC fixes) but there hasn't been a u-boot-rockchip pull request since the one for v2022.01 [2]. There's also more

Re: [PATCH v2 20/28] arm64: Save spsr in pt_regs

2022-03-10 Thread Sean Anderson
On 3/10/22 3:50 PM, Sean Anderson wrote: > This register holds "pstate" which includes (among other things) the > instruction mode the CPU was in when the exception was taken. This is > necessary to correctly interpret instructions at elr. > > Signed-off-by: Sean Anderson > --- > > Changes

[PATCH v2 14/28] arm: smh: Remove smhload command

2022-03-10 Thread Sean Anderson
This command's functionality is now completely implemented by the standard fs load command. Convert the vexpress64 boot command (which is the only user) and remove the implementation. Signed-off-by: Sean Anderson --- Changes in v2: - Rebase on Andre's series arch/arm/lib/semihosting.c |

[PATCH v2 28/28] serial: smh: Implement puts for DM

2022-03-10 Thread Sean Anderson
This adds an implementation of puts for DM. The implementation is not as clean as for the non-DM puts because we have to handle non-nul-terminated string. We also handle short writes (though these are probably very unusual). Signed-off-by: Sean Anderson --- Changes in v2: - New

[PATCH v2 27/28] serial: sandbox: Implement puts

2022-03-10 Thread Sean Anderson
This implements puts for sandbox. It is fairly straightforward, except that we break out the shared color printing functionality into its own function. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/serial/sandbox.c | 21 - 1 file changed, 20 insertions(+),

[PATCH v2 26/28] serial: dm: Add support for puts

2022-03-10 Thread Sean Anderson
Some serial drivers can be vastly more efficient when printing multiple characters at once. Non-DM serial has had a puts option for these sorts of drivers; implement it for DM serial as well. Because we have to add carriage returns, we can't just pass the whole string directly to the serial

[PATCH v2 23/28] arm: Catch non-emulated semihosting calls

2022-03-10 Thread Sean Anderson
If a debugger is not attached to U-Boot, semihosting calls will raise a synchronous abort exception. Try to catch this and disable semihosting so we can e.g. use another uart if one is available. In the immediate case, we return an error, since it is not always possible to check for semihosting

[PATCH v2 24/28] serial: smh: Initialize serial only if semihosting is enabled

2022-03-10 Thread Sean Anderson
If semihosting is disabled, then the user has no debugger attached, and will not see any messages. Don't create a serial device in this instance, to (hopefully) fall back on another working serial device. Signed-off-by: Sean Anderson --- Changes in v2: - New

[PATCH v2 25/28] arm64: ls1046a: Support semihosting fallback

2022-03-10 Thread Sean Anderson
Use the semihosting_enabled function to determine whether or not to enable semihosting devices. This allows for graceful fallback in the event a debugger is not attached. Signed-off-by: Sean Anderson --- Changes in v2: - New arch/arm/cpu/armv8/fsl-layerscape/spl.c | 3 ++-

[PATCH v2 21/28] arm64: Import some ESR and SPSR defines from Linux

2022-03-10 Thread Sean Anderson
This imports some defines for esr and spsr from Linux v5.16. I have modified the includes and fixed some indentation nits but otherwise it is the same. There are a lot more defines than we need, but it doesn't hurt. Signed-off-by: Sean Anderson --- Changes in v2: - New

[PATCH v2 22/28] arm: smh: Add option to detect semihosting

2022-03-10 Thread Sean Anderson
These functions are intended to support detecting semihosting and falling back gracefully to alternative implementations. The test starts by making semihosting call. SYS_ISERROR is chosen because it should not mutate any state. If this semihosting call results in an exception (rather than being

[PATCH v2 20/28] arm64: Save spsr in pt_regs

2022-03-10 Thread Sean Anderson
This register holds "pstate" which includes (among other things) the instruction mode the CPU was in when the exception was taken. This is necessary to correctly interpret instructions at elr. Signed-off-by: Sean Anderson --- Changes in v2: - New arch/arm/cpu/armv8/exceptions.S | 5

[PATCH v2 18/28] ls1046ardb: Add support for JTAG boot

2022-03-10 Thread Sean Anderson
This adds support for booting entirely from JTAG while using a hard-coded RCW. With these steps, it is not necessary to program a "good" RCW using CodeWarrior. The method here can be performed with any JTAG adapter supported by OpenOCD, including the on-board CMSIS-DAP (albeit very slowly). These

[PATCH v2 17/28] doc: smh: Update semihosting documentation

2022-03-10 Thread Sean Anderson
This documents the new semihosting features added in the past few commits. It also describes how to migrate any out-of-tree users of smhload. Signed-off-by: Sean Anderson --- Changes in v2: - Add migration instructions for smhload doc/usage/semihosting.rst | 38

[PATCH v2 19/28] arm64: Save esr in pt_regs

2022-03-10 Thread Sean Anderson
To avoid passing around an extra register everywhere, save esr in pt_regs like the rest. For proper alignment we need to have a second (unused) register. All the printfs have to be adjusted, since it's now an unsigned long and not an int. Signed-off-by: Sean Anderson --- Changes in v2: - New

[PATCH v2 16/28] serial: Add semihosting driver

2022-03-10 Thread Sean Anderson
This adds a serial driver which uses semihosting calls to read and write to the host's console. For convenience, if CONFIG_DM_SERIAL is enabled, we will instantiate a serial driver. This allows users to enable this driver (which has no physical device) without modifying their device trees or board

[PATCH v2 15/28] arm: smh: Add some functions for working with the host console

2022-03-10 Thread Sean Anderson
This adds three wrappers around the semihosting commands for reading and writing to the host console. We use the more standard getc/putc/puts names instead of readc/writec/write0 for familiarity. Signed-off-by: Sean Anderson --- (no changes since v1) arch/arm/lib/semihosting.c | 18

[PATCH v2 09/28] arm: smh: Document functions in header

2022-03-10 Thread Sean Anderson
This adds some documentation for semihosting functions in the header. Signed-off-by: Sean Anderson --- (no changes since v1) arch/arm/lib/semihosting.c | 9 - include/semihosting.h | 32 2 files changed, 32 insertions(+), 9 deletions(-) diff

[PATCH v2 10/28] arm: smh: Add some file manipulation commands

2022-03-10 Thread Sean Anderson
In order to add filesystem support, we will need to be able to seek and write files. Add the appropriate helper functions. Signed-off-by: Sean Anderson --- (no changes since v1) arch/arm/lib/semihosting.c | 67 +++--- include/semihosting.h | 20

[PATCH v2 13/28] cmd: fdt: Use start/size for chosen instead of start/end

2022-03-10 Thread Sean Anderson
Most U-Boot command deal with start/size instead of start/end. Convert the "fdt chosen" command to use these semantics as well. The only user of this subcommand is vexpress, so convert the smhload command to use this as well. We don't bother renaming the variable in vexpress64's bootcommand, since

[PATCH v2 12/28] fs: Add semihosting filesystem

2022-03-10 Thread Sean Anderson
This adds a filesystem which is backed by the host's filesystem. It is modeled off of sandboxfs, which has very similar aims. Semihosting doesn't support listing directories (except with SYS_SYSTEM), so neither do we. it's possible to optimize a bit for the common case of reading a whole file by

[PATCH v2 11/28] spl: Add semihosting boot method

2022-03-10 Thread Sean Anderson
This adds a boot method for loading the next stage from the host. It is mostly modeled off of spl_load_image_ext. I am not really sure why/how spl_load_image_fat uses three different methods to load the image, but the simple case seems to work OK for now. To control the presence of this boot

[PATCH v2 08/28] arm: smh: Return errno on error

2022-03-10 Thread Sean Anderson
Instead of printing in what are now library functions, try to return a numeric error code. This also adjust some functions (such as read) to behave more similarly to read(2). For example, we now return the number of bytes read instead of failing immediately on a short read. Signed-off-by: Sean

[PATCH v2 07/28] arm: smh: Use numeric modes for smh_open

2022-03-10 Thread Sean Anderson
There's no point in using string constants for smh_open if we are just going to have to parse them. Instead, use numeric modes. The user needs to be a bit careful with these, since they are much closer semantically to string modes used by fopen(3) than the numeric modes used with open(2).

[PATCH v2 06/28] arm: smh: Export semihosting functions

2022-03-10 Thread Sean Anderson
This exports semihosting functions for use in other files. The header is in include/ and not arm/include/asm because I anticipate that RISC-V may want to add their own implementation at some point. smh_len_fd has been renamed to smh_flen to more closely match the semihosting spec. Signed-off-by:

[PATCH v2 05/28] arm: smh: Add semihosting entry to MAINTAINERS

2022-03-10 Thread Sean Anderson
These files are spread all over the tree, so just use a regex. Orphaned for now, since this is more of a "one-off" series. Though I'll be happy to review patches. Signed-off-by: Sean Anderson --- Liviu or Andre, perhaps you should be listed here as well? (no changes since v1) MAINTAINERS | 5

[PATCH v2 04/28] doc: ls1046ardb: Document debug uart

2022-03-10 Thread Sean Anderson
This adds some instructions for enabling the debug uart, including the correct address and clock rate. Signed-off-by: Sean Anderson --- Changes in v2: - New doc/board/nxp/ls1046ardb.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/doc/board/nxp/ls1046ardb.rst

[PATCH v2 03/28] doc: ls1046ardb: Expand boot mode section

2022-03-10 Thread Sean Anderson
This adds some additional info about booting from different sources, including the correct switch positions. Signed-off-by: Sean Anderson --- (no changes since v1) doc/board/nxp/ls1046ardb.rst | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git

[PATCH v2 02/28] nxp: ls1046ardb: Convert README to rST

2022-03-10 Thread Sean Anderson
This converts the readme for this board to rST. I have tried not to change any semantics from the original (though I did convert MB to M). Signed-off-by: Sean Anderson --- (no changes since v1) board/freescale/ls1046ardb/MAINTAINERS | 1 + board/freescale/ls1046ardb/README | 76

[PATCH v2 00/28] arm: semihosting: Cleanups and new features

2022-03-10 Thread Sean Anderson
This cleans up the semihosting code and adds the following new features: - hostfs support (like sandbox) - support for being used as a SPL boot device - serial device support - falling back to normal drivers if semihosting is disabled The main device affected by these changes is vexpress64, so

[PATCH v2 01/28] doc: Convert semihosting readme to rST

2022-03-10 Thread Sean Anderson
This converts the semihosting readme to rST. I have tried to make only cosmetic changes, but I did fix up the first link (which was broken). Signed-off-by: Sean Anderson --- (no changes since v1) doc/usage/index.rst | 1 + .../semihosting.rst}

[PATCH 2/2] pmic: pca9450: Add regulator driver

2022-03-10 Thread Marek Vasut
Add PCA9450 regulator driver. This is complementary driver for the BUCKn and LDOn regulators provided by the PCA9450 PMIC driver. Currently the driver permits reading the settngs and configuring the BUCKn and LDOn regulators. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc:

[PATCH 1/2] pmic: pca9450: Add upstream regulators subnode match

2022-03-10 Thread Marek Vasut
The upstream DT regulators node subnodes are named BUCKn and LDOn, the downstream DT regulators node subnodes are named buckn and ldon, add the upstream match. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- drivers/power/pmic/pca9450.c | 2 ++ 1 file changed,

[PATCH] mmc: fsl_esdhc_imx: Add i.MX8MP compatible string

2022-03-10 Thread Marek Vasut
Add compatible string for i.MX8MP, which permits i.MX8MP to use HS400ES mode, just like all the other i.MX8M. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Haibo Chen Cc: Peng Fan Cc: Stefano Babic --- drivers/mmc/fsl_esdhc_imx.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Tom Rini
On Wed, Dec 15, 2021 at 10:57:52AM +0800, Stanley Chu wrote: > Add basic support for the Nuvoton NPCM845 BMC. > > Signed-off-by: Stanley Chu I see there's a number of outstanding questions to this first part of the port. Can you please address them? Furthermore, the defconfig and dts patches

Re: [PATCH v3 22/26] rockchip: evb-rk3288: Drop raw-image support

2022-03-10 Thread Alper Nebi Yasak
On 06/03/2022 06:19, Simon Glass wrote: > This boards uses SPL_FIT so does not need to support loading a raw image. This sounds OK to me, but... > Drop it to avoid binman trying to insert a symbol which has no value. I couldn't figure out how it leads to this in the code. I guess some ifdefs or

Re: [PATCH v3 21/26] binman: Support splitting an ELF file into multiple nodes

2022-03-10 Thread Alper Nebi Yasak
On 06/03/2022 06:19, Simon Glass wrote: > Some boards need to load an ELF file using the 'loadables' property, but > the file has segments at different memory addresses. This means that it > cannot be supplied as a flat binary. > > Allow generating a separate node in the FIT for each segment in

Re: [PATCH v3 16/26] binman: Update fit to move node reading into the ReadNode() method

2022-03-10 Thread Alper Nebi Yasak
On 06/03/2022 06:19, Simon Glass wrote: > This should not be done in the constructor. Move it. > > Signed-off-by: Simon Glass > Suggested-by: Alper Nebi Yasak > --- > > (no changes since v1) > > tools/binman/etype/fit.py | 10 -- > 1 file changed, 4 insertions(+), 6 deletions(-)

Re: [PATCH v2 19/25] binman: Keep a separate list of entries for fit

2022-03-10 Thread Alper Nebi Yasak
On 06/03/2022 06:08, Simon Glass wrote: > On Thu, 3 Mar 2022 at 14:17, Alper Nebi Yasak > wrote: >>> This is a bit clumsy. We cannot build the image more than once, since the >>> generator entries are lost during the first build. Binman requires that >>> calling BuildSectionData() multiple times

Re: [PATCH v2 14/25] binman: Allow mkimage to use a non-zero fake-blob size

2022-03-10 Thread Alper Nebi Yasak
On 06/03/2022 06:08, Simon Glass wrote: > On Thu, 3 Mar 2022 at 14:16, Alper Nebi Yasak > wrote: >>> def ObtainContents(self): >>> +# Use a non-zero size for any fake files to keep mkimage happy >>> data, input_fname, uniq = self.collect_contents_to_file( >>> -

Re: [PATCH v2 12/25] binman: Change how faked blobs are created

2022-03-10 Thread Alper Nebi Yasak
On 06/03/2022 06:08, Simon Glass wrote: > On Thu, 3 Mar 2022 at 14:16, Alper Nebi Yasak > wrote: >> On 24/02/2022 02:00, Simon Glass wrote: >>> +- Put faked files into a separate subdir and remove them on start-up, to >>> avoid >>> + seeing them as 'real' files on a subsequent run >> >> Do we

Re: [PATCH v2] binman: support mkimage separate files

2022-03-10 Thread Alper Nebi Yasak
On 06/03/2022 17:44, Peter Geis wrote: > On Sat, Mar 5, 2022 at 10:08 PM Simon Glass wrote: >> On Fri, 4 Mar 2022 at 12:56, Peter Geis wrote: >>> mkimage has the ability to process two files at the same time. >>> This is necessary for rk356x support as both TPL and SPL need to be >>> hashed

Re: [PATCH 1/3] power: Rename CONFIG_POWER_TPS65217 with CONFIG_PMIC_TPS65217

2022-03-10 Thread Tom Rini
On Tue, Feb 22, 2022 at 09:03:58AM +0100, Lukasz Majewski wrote: > Up till now the CONFIG_POWER_TPS65217 has been defined in several header > files for am335x SoC. > > This patch renames it to CONFIG_PMIC_TPS65217, which better reflects the > role of this IC circuit. > > Signed-off-by: Lukasz

[PATCH 2/2] lib: time.c: Try also DM timer, when CONFIG_TIMER_EARLY is selected

2022-03-10 Thread Johannes Krottmayer
Description: When CONFIG_TIMER_EARLY is selected only the timer_early_* functions will be called. With this patch first gd->timer will be checked, if the DM timer is available, it uses the DM timer. When gd->timer is empty, the timer_early_* functions will be called. Signed-off-by: Johannes

[PATCH 1/2] common: board_f.c: Fix EAGAIN issue when CONFIG_TIMER_EARLY is selected

2022-03-10 Thread Johannes Krottmayer
Description: When CONFIG_TIMER_EARLY is selected and the timer driver implements timer_early_get_count() and timer_early_get_rate() this leads to an EAGAIN error in initf_dm() one some configurations. Signed-off-by: Johannes Krottmayer Cc: Tom Rini --- common/board_f.c | 6 -- 1 file

[PATCH 0/2] CONFIG_EARLY_TIMER: Fix EAGAIN issue and use DM too

2022-03-10 Thread Johannes Krottmayer
Hi, I'm currently working on support for a STMicroelectronics board. I have written a DM driver which implements the timer_early_* functions. But noticed an issue when the configuration switch is set. common/board_f.c Here this leads in an EAGAIN issue, becaues the DM sub-system isn't running at

[PATCH v2] spl: allow boot from first bootable partition

2022-03-10 Thread Jérôme Carretero
This was implemented in order to get dual-slot bootloader partitions on the BeagleBone Black, whose MLO boots from the first bootable partition: MLO chainloads u-boot in the same way. Signed-off-by: Jérôme Carretero --- common/spl/Kconfig | 3 ++- common/spl/spl_mmc.c | 33

Re: [PATCH] spl: allow boot from first bootable partition

2022-03-10 Thread Jérôme Carretero
Hi, On Thu, 10 Mar 2022 11:44:04 -0500 Jérôme Carretero wrote: > This was implemented in order to get dual-slot bootloader > partitions on the BeagleBone Black, whose MLO boots from > the first bootable partition: MLO chainloads u-boot in the > same way. I realize some tests (eg.

Re: [PATCH v4 0/3] mtd: Support slc-mode for NTC CHIP

2022-03-10 Thread Chris Morgan
On Thu, Mar 10, 2022 at 05:30:17PM +0530, Jagan Teki wrote: > Hi Chris, > > On Thu, Jan 20, 2022 at 6:44 PM Jagan Teki wrote: > > > > On Fri, Dec 17, 2021 at 12:14 AM Chris Morgan > > wrote: > > > > > > From: Chris Morgan > > > > > > Add support for slc-mode implemented in Linux for the

Re: [PATCH v6 07/16] boot: image: add a stage pre-load

2022-03-10 Thread Philippe REYNES
Hi Simon, Le 03/03/2022 à 04:37, Simon Glass a écrit : Hi Philippe, On Fri, 25 Feb 2022 at 07:58, Philippe Reynes wrote: Add a stage pre-load that could check or modify an image. For the moment, only a header with a signature is supported. This header has the following format: - magic : 4

Re: [PATCH 00/17] arm: semihosting: Cleanups and new features

2022-03-10 Thread Tom Rini
On Thu, Mar 10, 2022 at 12:06:48PM -0500, Sean Anderson wrote: > > > On 3/10/22 12:01 PM, Andre Przywara wrote: > > On Thu, 10 Mar 2022 11:48:50 -0500 > > Sean Anderson wrote: > > > > Hi, > > > >> On 3/4/22 1:46 PM, Tom Rini wrote: > >> > On Fri, Mar 04, 2022 at 12:19:27PM -0500, Sean

Re: [PATCH 00/17] arm: semihosting: Cleanups and new features

2022-03-10 Thread Sean Anderson
On 3/10/22 12:01 PM, Andre Przywara wrote: > On Thu, 10 Mar 2022 11:48:50 -0500 > Sean Anderson wrote: > > Hi, > >> On 3/4/22 1:46 PM, Tom Rini wrote: >> > On Fri, Mar 04, 2022 at 12:19:27PM -0500, Sean Anderson wrote: >> >> Hi Andre, >> >> >> >> On 3/4/22 6:47 AM, Andre Przywara wrote:

Re: [PATCH] imx8m{m,n}_venice: update env memory layout

2022-03-10 Thread Tom Rini
On Thu, Mar 10, 2022 at 07:59:30AM -0800, Tim Harvey wrote: > On Sun, Feb 27, 2022 at 4:22 AM Fabio Estevam wrote: > > > > Hi Tim, > > > > [Adding Tom on Cc] > > > > On Sat, Feb 26, 2022 at 6:37 PM Tim Harvey wrote: > > > > > > On Sat, Feb 26, 2022 at 5:15 AM Fabio Estevam wrote: > > > > > > >

Re: [PATCH 00/17] arm: semihosting: Cleanups and new features

2022-03-10 Thread Andre Przywara
On Thu, 10 Mar 2022 11:48:50 -0500 Sean Anderson wrote: Hi, > On 3/4/22 1:46 PM, Tom Rini wrote: > > On Fri, Mar 04, 2022 at 12:19:27PM -0500, Sean Anderson wrote: > >> Hi Andre, > >> > >> On 3/4/22 6:47 AM, Andre Przywara wrote: > >> > On Fri, 4 Mar 2022 02:06:03 +0100 > >> > Linus

Re: [PATCH v6 15/16] cmd: verify: initial import

2022-03-10 Thread Philippe REYNES
Hi Simon, Le 03/03/2022 à 04:37, Simon Glass a écrit : Hi Philippe, On Fri, 25 Feb 2022 at 07:58, Philippe Reynes wrote: Add the command verify that check the signature of an image with the pre-load header. If the check succeed, the u-boot env variable 'loadaddr_verified' is set to the

Re: dsa driver for mv88e61xx

2022-03-10 Thread Vladimir Oltean
Hello Tim, On Thu, Mar 10, 2022 at 08:16:13AM -0800, Tim Harvey wrote: > Greetings, > > I wanted to take a stab at adding dsa support for the mv88e61xx which > currently has a driver in drivers/net/phy [1]. The board I have > available to me is the gw5904 which has a mv88e6085 with the upstream

Re: [PATCH 00/17] arm: semihosting: Cleanups and new features

2022-03-10 Thread Sean Anderson
Hi Tom/Andre, On 3/4/22 1:46 PM, Tom Rini wrote: > On Fri, Mar 04, 2022 at 12:19:27PM -0500, Sean Anderson wrote: >> Hi Andre, >> >> On 3/4/22 6:47 AM, Andre Przywara wrote: >> > On Fri, 4 Mar 2022 02:06:03 +0100 >> > Linus Walleij wrote: >> > >> > Hi, >> > >> > Linus, thanks for the heads

[PATCH] spl: allow boot from first bootable partition

2022-03-10 Thread Jérôme Carretero
This was implemented in order to get dual-slot bootloader partitions on the BeagleBone Black, whose MLO boots from the first bootable partition: MLO chainloads u-boot in the same way. Signed-off-by: Jérôme Carretero --- common/spl/Kconfig | 3 ++- common/spl/spl_mmc.c | 33

dsa driver for mv88e61xx

2022-03-10 Thread Tim Harvey
Greetings, I wanted to take a stab at adding dsa support for the mv88e61xx which currently has a driver in drivers/net/phy [1]. The board I have available to me is the gw5904 which has a mv88e6085 with the upstream port connected to the IMX6 FEC MAC over RGMII. This currently works with the

Re: [PATCH] imx8m{m,n}_venice: update env memory layout

2022-03-10 Thread Tim Harvey
On Sun, Feb 27, 2022 at 4:22 AM Fabio Estevam wrote: > > Hi Tim, > > [Adding Tom on Cc] > > On Sat, Feb 26, 2022 at 6:37 PM Tim Harvey wrote: > > > > On Sat, Feb 26, 2022 at 5:15 AM Fabio Estevam wrote: > > > > > > Hi Tim, > > > > > > On Fri, Feb 18, 2022 at 8:20 PM Tim Harvey wrote: > > > > >

Re: [PATCH 02/15] arm: sunxi: Remove most SoC-specific config header files

2022-03-10 Thread Tom Rini
On Thu, Mar 10, 2022 at 02:04:31PM +, Andre Przywara wrote: > On Thu, 10 Mar 2022 08:32:11 -0500 > Tom Rini wrote: > > > On Thu, Mar 10, 2022 at 10:58:50AM +, Andre Przywara wrote: > > > On Wed, 9 Mar 2022 20:43:51 -0500 > > > Tom Rini wrote: > > > > > > Hi Tom, > > > > > > > At

Re: [PATCH 02/15] arm: sunxi: Remove most SoC-specific config header files

2022-03-10 Thread Andre Przywara
On Thu, 10 Mar 2022 08:32:11 -0500 Tom Rini wrote: > On Thu, Mar 10, 2022 at 10:58:50AM +, Andre Przywara wrote: > > On Wed, 9 Mar 2022 20:43:51 -0500 > > Tom Rini wrote: > > > > Hi Tom, > > > > > At this point, sunxi-common.h is used for all systems except for some > > > MACH_SUN50I

Re: [PATCH 03/15] Convert CONFIG_ARMV8_SWITCH_TO_EL1 to Kconfig

2022-03-10 Thread Tom Rini
On Thu, Mar 10, 2022 at 08:24:51AM +0100, Michal Simek wrote: > Hi Tom, > > On 3/10/22 02:43, Tom Rini wrote: > > This converts the following to Kconfig: > > CONFIG_ARMV8_SWITCH_TO_EL1 > > > > As this option isn't enabled anywhere and is for very specific > > circumstances, it's not an asked

Re: [PATCH 02/15] arm: sunxi: Remove most SoC-specific config header files

2022-03-10 Thread Tom Rini
On Thu, Mar 10, 2022 at 10:58:50AM +, Andre Przywara wrote: > On Wed, 9 Mar 2022 20:43:51 -0500 > Tom Rini wrote: > > Hi Tom, > > > At this point, sunxi-common.h is used for all systems except for some > > MACH_SUN50I variants. Remove the now basically empty header files and > > update

Re: [PATCH v2 13/13] event: Add documentation

2022-03-10 Thread Tom Rini
On Fri, Mar 04, 2022 at 08:43:08AM -0700, Simon Glass wrote: > Add documentation for events, including the event command. > > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 12/13] event: Add a script to decode the event-spy list

2022-03-10 Thread Tom Rini
On Fri, Mar 04, 2022 at 08:43:07AM -0700, Simon Glass wrote: > For debugging and dicoverability it is useful to be able to see a list of > each event spy in a U-Boot ELF file. Add a script which shows this, along > with the event type and the source location. This makes events a little > easier

Re: [PATCH v2 11/13] event: Add a command

2022-03-10 Thread Tom Rini
On Fri, Mar 04, 2022 at 08:43:06AM -0700, Simon Glass wrote: > Add a command to show the available events. > > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 09/13] event: Convert misc_init_f() to use events

2022-03-10 Thread Tom Rini
On Fri, Mar 04, 2022 at 08:43:04AM -0700, Simon Glass wrote: > This hook can be implmented using events, for the three boards that > actually use it. > > Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we > can just use CONFIG_EVENT to control this. Since sandbox always

Re: [PATCH v2 10/13] event: Convert arch_cpu_init_dm() to use events

2022-03-10 Thread Tom Rini
On Fri, Mar 04, 2022 at 08:43:05AM -0700, Simon Glass wrote: > Instead of a special function, send an event after driver model is inited > and adjust the boards which use this function. > > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH v2 08/13] event: Add events for device probe/remove

2022-03-10 Thread Tom Rini
On Fri, Mar 04, 2022 at 08:43:03AM -0700, Simon Glass wrote: > Generate events when devices are probed or removed, allowing hooks > to be added for these situations. > > This is controlled by the DM_EVENT config option. > > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom

Re: [PATCH v2 07/13] event: Set up the event system on start-up

2022-03-10 Thread Tom Rini
On Fri, Mar 04, 2022 at 08:43:02AM -0700, Simon Glass wrote: > Call event_init() before relocation to get the event system running. > > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 06/13] event: Add a simple test

2022-03-10 Thread Tom Rini
On Fri, Mar 04, 2022 at 08:43:01AM -0700, Simon Glass wrote: > Add a test for event registration and activation. > > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 05/13] event: Add basic support for events

2022-03-10 Thread Tom Rini
On Fri, Mar 04, 2022 at 08:43:00AM -0700, Simon Glass wrote: > Add a way to create and dispatch events without needing to allocate > memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be > created. > > Use a linker list for static events, which we can use to replace functions >

Re: [PATCH v2 04/13] binman: Expand elf support a little

2022-03-10 Thread Tom Rini
On Fri, Mar 04, 2022 at 08:42:59AM -0700, Simon Glass wrote: > Allow finding a symbol by its address. Also export the function to get > the file offset of a particular address, so it can be used by a script to > be added. > > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom

Re: [PATCH v2 03/13] sandbox: start: Sort the header files

2022-03-10 Thread Tom Rini
On Fri, Mar 04, 2022 at 08:42:58AM -0700, Simon Glass wrote: > These header files don't follow the correct order. Fix this. > > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 14/15] net: fec_mxc: Remove non-DM_ETH code

2022-03-10 Thread Ramon Fried
On Thu, Mar 10, 2022 at 3:44 AM Tom Rini wrote: > > Now that all boards have been converted, remove the non-DM_ETH code. > Wow, exciting !!

Re: [PATCH v3 6/8] cmd: rng: Add support for selecting RNG device

2022-03-10 Thread Sughosh Ganu
hi Simon, On Wed, 9 Mar 2022 at 21:02, Simon Glass wrote: > > Hi Sugosh, > > On Fri, 4 Mar 2022 at 06:35, Sughosh Ganu wrote: > > > > The 'rng' u-boot command is used for printing a select number of > > random bytes on the console. Currently, the RNG device from which the > > random bytes are

Re: [PATCH 1/2] reset: introduce reset_get_bulk_optional()

2022-03-10 Thread Nikita Yushchenko
+int reset_get_bulk_optional(struct udevice *dev, struct reset_ctl_bulk *bulk) +{ + int ret = reset_get_bulk(dev, bulk); + + if (ret == -ENODEV) Are you sure about this return type? I think it would be -ENODATA if I'm not wrong. It shall be -ENOENT on master. Oops.

Re: [PATCH 1/2] reset: introduce reset_get_bulk_optional()

2022-03-10 Thread Jagan Teki
On Wed, Feb 16, 2022 at 1:24 AM Nikita Yushchenko wrote: > > This is a version of reset_get_bulk() that does not treat no resets > definition as an error. > > Signed-off-by: Nikita Yushchenko > --- > drivers/reset/reset-uclass.c | 10 ++ > include/reset.h | 21

Re: [PATCH 0/7] sunxi: Fix U-Boot proper SPI operation

2022-03-10 Thread Jagan Teki
On Tue, Jan 11, 2022 at 6:16 PM Andre Przywara wrote: > > Hi, > > despite U-Boot supporting SPI on Allwinner chips and SPI flash in > general for a while, it wasn't really working well for many sunxi boards. > Booting from SPI is handled by separate SPL code, which works fine, but > the "sf"

Re: [PATCH v4 0/3] mtd: Support slc-mode for NTC CHIP

2022-03-10 Thread Jagan Teki
Hi Chris, On Thu, Jan 20, 2022 at 6:44 PM Jagan Teki wrote: > > On Fri, Dec 17, 2021 at 12:14 AM Chris Morgan wrote: > > > > From: Chris Morgan > > > > Add support for slc-mode implemented in Linux for the Toshiba > > TC58TEG5DCLTA00 NAND and Hynix H27UCG8T2ETR NAND flash found on the NTC > >

Re: [PATCH 02/15] arm: sunxi: Remove most SoC-specific config header files

2022-03-10 Thread Andre Przywara
On Wed, 9 Mar 2022 20:43:51 -0500 Tom Rini wrote: Hi Tom, > At this point, sunxi-common.h is used for all systems except for some > MACH_SUN50I variants. Remove the now basically empty header files and > update CONFIG_SYS_CONFIG_NAME to use sunxi-common.h directly. So is this #include the

  1   2   >