[PATCH] dm: Add docs to explain how to enable DM_SERIAL for a board

2022-03-14 Thread Simon Glass
This is an attempt to cover the common cases found when enabling driver model for serial on a new board. Signed-off-by: Simon Glass --- doc/develop/driver-model/serial-howto.rst | 138 ++ 1 file changed, 138 insertions(+) diff --git

Re: [PATCH] test/py: efi_capsule: Handle expected reset after capsule on disk

2022-03-14 Thread Simon Glass
Hi Masami, On Mon, 14 Mar 2022 at 18:40, Masami Hiramatsu wrote: > > Hi Simon, > > 2022年3月15日(火) 3:24 Simon Glass : > > > > > > OK, well 'reset by a user' presumably starts the board up and then > > > > runs some code to do the update in U-Boot? Is that right? If so, we > > > > just need to

Re: [PATCH] test/py: efi_capsule: Handle expected reset after capsule on disk

2022-03-14 Thread AKASHI Takahiro
On Tue, Mar 15, 2022 at 09:40:34AM +0900, Masami Hiramatsu wrote: > Hi Simon, > > 2022年3月15日(火) 3:24 Simon Glass : > > > > > > OK, well 'reset by a user' presumably starts the board up and then > > > > runs some code to do the update in U-Boot? Is that right? If so, we > > > > just need to

[PATCH v4] wdt: nuvoton: Add support for Nuvoton

2022-03-14 Thread Jim Liu
Add watchdog controller driver for NPCM7xx/npcm8xx Signed-off-by: Jim Liu Reviewed-by: Stefan Roese Changes for v4: - add a bit of detail about the device in Kconfig - lower-case hex change - remove the reset function delay.Actually when setting writel NPCM_WTR the watchdog is

Re: [PATCH v1 04/11] spi: rockchip-sfc: sanity check minimum freq

2022-03-14 Thread Jon Lin
在 2022/3/14 16:53, Kever Yang 写道: + Jon Lin, Hi Jon,     Please help to review this patch. Thanks, - Kever On 2022/2/22 09:31, Peter Geis wrote: The rockchip-sfc driver sanity checks the maximum frequency, but not the minimum frequency. This causes the probe to fail when a frequency

[PULL] u-boot-usb/master

2022-03-14 Thread Marek Vasut
Bugfix for dwc2 USB driver. The following changes since commit c96137000e4cf486dcb164fd67a1a0b5b2fb99c6: Merge tag 'efi-2022-04-rc3-2' of https://source.denx.de/u-boot/custodians/u-boot-efi (2022-03-13 08:18:17 -0400) are available in the Git repository at:

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

2022-03-14 Thread Kever Yang
Hi Alper, On 2022/3/15 05:30, Alper Nebi Yasak wrote: On 12/03/2022 16:38, Kever Yang wrote: On 2022/3/12 02:15, Alper Nebi Yasak wrote: I haven't been paying enough attention to others' patches. For those of mine, I think I can only call my RK3399 eMMC fix [1] a regression fix. The eMMC

[PATCH] efi_loader: Use sysreset instead of reset command

2022-03-14 Thread Masami Hiramatsu
Use sysreset_walk_halt() directly from reset-after-capsule-on-disk feature to reboot (cold reset) machine instead of using reset command interface, since this is not a command. Signed-off-by: Masami Hiramatsu --- lib/efi_loader/efi_capsule.c |4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH] test/py: efi_capsule: Handle expected reset after capsule on disk

2022-03-14 Thread Masami Hiramatsu
Hi Simon, 2022年3月15日(火) 3:24 Simon Glass : > > > > OK, well 'reset by a user' presumably starts the board up and then > > > runs some code to do the update in U-Boot? Is that right? If so, we > > > just need to trigger that update from the test. We don't need to test > > > the actual reset, at

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

2022-03-14 Thread Fabio Estevam
On 10/03/2022 17:28, Marek Vasut wrote: 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

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

2022-03-14 Thread Fabio Estevam
On 10/03/2022 17:28, Marek Vasut wrote: 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 Reviewed-by:

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

2022-03-14 Thread Fabio Estevam
Hi Marek, On 10/03/2022 17:27, Marek Vasut wrote: 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 Reviewed-by: Fabio Estevam

[PATCH] warp7: Remove UART initialization code

2022-03-14 Thread Fabio Estevam
From: Fabio Estevam With DM_SERIAL selected, it is no longer needed board code to initialize the UART. Describe the nodes that require dm-pre-reloc, which allows the DM model to configure the UART pinctrl early. Remove the now unneeded board UART initialization. Signed-off-by: Fabio Estevam

Re: [PATCH 2/2] board: tbs2910: Convert to DM_SERIAL

2022-03-14 Thread Fabio Estevam
Hi Soeren, On Mon, Mar 14, 2022 at 7:38 PM Tom Rini wrote: > Again, DM_SERIAL can be enabled on the board as he's already shown by > setting two options, which silences the warning, increases the size and > doesn't make anything better. That's likely what the other boards are > doing, or

Re: [PATCH 2/2] board: tbs2910: Convert to DM_SERIAL

2022-03-14 Thread Simon Glass
Hi Tom, On Mon, 14 Mar 2022 at 16:38, Tom Rini wrote: > > On Mon, Mar 14, 2022 at 04:20:43PM -0600, Simon Glass wrote: > > Hi Sören, > > > > On Mon, 14 Mar 2022 at 15:51, Sören Moch wrote: > > > > > > Hi Simon, > > > > > > On 14.03.22 20:37, Simon Glass wrote: > > > > Hi Soeren, > > > > > > > >

Re: [PATCH 1/1] video: bmp: Support x2r10g10b10 pixel format

2022-03-14 Thread Anatolij Gustschin
On Wed, 9 Feb 2022 22:16:22 +0100 Janne Grunau j...@jannau.net wrote: > Fixes the display of the u-boot logo on Apple silicon devices. > > Signed-off-by: Janne Grunau > --- > drivers/video/video_bmp.c | 70 +++ > 1 file changed, 56 insertions(+), 14

Re: [PATCH v2 2/2] Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-14 Thread Anatolij Gustschin
On Wed, 9 Mar 2022 20:46:01 +0100 Pali Rohár p...@kernel.org wrote: ... > --- > board/nokia/rx51/rx51.c | 40 +--- > configs/nokia_rx51_defconfig | 7 +-- > include/configs/nokia_rx51.h | 11 ++ > 3 files changed, 31 insertions(+), 27

Re: [PATCH v2 02/13] Makefile: Allow LTO to be disabled for a build

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 03:43:05PM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 14 Mar 2022 at 14:23, Tom Rini wrote: > > > > On Mon, Mar 14, 2022 at 02:18:14PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 14 Mar 2022 at 13:45, Tom Rini wrote: > > > > > > > > On Mon, Mar 14,

Re: [PATCH v2 1/2] video: Allow drivers to allocate the frame buffer themselves

2022-03-14 Thread Anatolij Gustschin
On Wed, 9 Mar 2022 20:46:00 +0100 Pali Rohár p...@kernel.org wrote: > When plat->base is set by driver then skip frame buffer reservation and > allocation. > > Signed-off-by: Pali Rohár > --- > drivers/video/video-uclass.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-)

Re: [PATCH 1/1] video: mxsfb: fix pixel clock polarity

2022-03-14 Thread Anatolij Gustschin
Hi Sébastien, On Fri, 26 Nov 2021 15:48:27 +0100 Sébastien Szymanski sebastien.szyman...@armadeus.com wrote: > DISPLAY_FLAGS_PIXDATA_NEGEDGE means the controller drives the data on > pixel clocks falling edge. That is DOTCLK_POL=0 (default) not 1. I wanted to apply this patch for release, but

Re: [PATCH 2/2] board: tbs2910: Convert to DM_SERIAL

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 04:20:43PM -0600, Simon Glass wrote: > Hi Sören, > > On Mon, 14 Mar 2022 at 15:51, Sören Moch wrote: > > > > Hi Simon, > > > > On 14.03.22 20:37, Simon Glass wrote: > > > Hi Soeren, > > > > > > On Mon, 14 Mar 2022 at 13:22, Soeren Moch wrote: > > >> > > >> On 14.03.22

Please pull u-boot-video

2022-03-14 Thread Anatolij Gustschin
) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-video.git tags/video-20220314 for you to fetch changes up to d6213e206c441a3b2b83c0588954c851c3610d97: Nokia RX-51: Convert to CONFIG_DM_VIDEO (2022-03-09 21:28:53 +0100

Re: [PATCH 2/2] board: tbs2910: Convert to DM_SERIAL

2022-03-14 Thread Simon Glass
Hi Sören, On Mon, 14 Mar 2022 at 15:51, Sören Moch wrote: > > Hi Simon, > > On 14.03.22 20:37, Simon Glass wrote: > > Hi Soeren, > > > > On Mon, 14 Mar 2022 at 13:22, Soeren Moch wrote: > >> > >> On 14.03.22 19:28, Tom Rini wrote: > >>> On Mon, Mar 14, 2022 at 12:24:36PM -0600, Simon Glass

Re: [PATCH v3 1/4] rockchip: gru: Set up SoC IO domain registers

2022-03-14 Thread Simon Glass
Hi, On Mon, 14 Mar 2022 at 15:32, Alper Nebi Yasak wrote: > > On 11/03/2022 22:49, Jagan Teki wrote: > > On Fri, Dec 24, 2021 at 7:14 PM Alper Nebi Yasak > > wrote: > >> > >> The RK3399 SoC needs to know the voltage value provided by some > >> regulators, which is done by setting relevant

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

2022-03-14 Thread Simon Glass
Hi Alper, On Mon, 14 Mar 2022 at 15:31, Alper Nebi Yasak wrote: > > On 12/03/2022 08:02, Simon Glass wrote: > > On Thu, 10 Mar 2022 at 12:36, Alper Nebi Yasak > > wrote: > >> On 06/03/2022 06:08, Simon Glass wrote: > >>> On Thu, 3 Mar 2022 at 14:16, Alper Nebi Yasak > >>> wrote: > Do we

Re: [PATCH v3 3/4] rockchip: bob: Enable more configs

2022-03-14 Thread Simon Glass
Hi, On Mon, 14 Mar 2022 at 15:32, Alper Nebi Yasak wrote: > > On 11/03/2022 23:01, Jagan Teki wrote: > > On Fri, Dec 24, 2021 at 7:14 PM Alper Nebi Yasak > > wrote: > >> The Bob board has two USB 3.0 Type-C ports and one USB 2.0 Type-A port > >> on its right side. Enable the configs relevant to

Re: [PATCH 2/2] board: tbs2910: Convert to DM_SERIAL

2022-03-14 Thread Sören Moch
Hi Simon, On 14.03.22 20:37, Simon Glass wrote: Hi Soeren, On Mon, 14 Mar 2022 at 13:22, Soeren Moch wrote: On 14.03.22 19:28, Tom Rini wrote: On Mon, Mar 14, 2022 at 12:24:36PM -0600, Simon Glass wrote: Hi Soeren, On Mon, 14 Mar 2022 at 02:26, Soeren Moch wrote: ... to get rid of the

Re: [PATCH v2 02/13] Makefile: Allow LTO to be disabled for a build

2022-03-14 Thread Simon Glass
Hi Tom, On Mon, 14 Mar 2022 at 14:23, Tom Rini wrote: > > On Mon, Mar 14, 2022 at 02:18:14PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 14 Mar 2022 at 13:45, Tom Rini wrote: > > > > > > On Mon, Mar 14, 2022 at 01:21:02PM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

Re: [PATCH v3 4/4] rockchip: rk3399: Add support for chromebook_kevin

2022-03-14 Thread Alper Nebi Yasak
On 11/03/2022 23:02, Jagan Teki wrote: > On Fri, Dec 24, 2021 at 7:14 PM Alper Nebi Yasak > wrote: >> [...] The rk3399-gru-kevin devicetree >> has an unknown event code reference which has to be defined, set it >> to the Linux counterpart. >> >> [...] >> diff --git

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

2022-03-14 Thread Alper Nebi Yasak
On 12/03/2022 16:38, Kever Yang wrote: > On 2022/3/12 02:15, Alper Nebi Yasak wrote: >> I haven't been paying enough attention to others' patches. For those of >> mine, I think I can only call my RK3399 eMMC fix [1] a regression fix. > > The eMMC driver is always not robust enough on mainline

Re: [PATCH v3 3/4] rockchip: bob: Enable more configs

2022-03-14 Thread Alper Nebi Yasak
On 11/03/2022 23:01, Jagan Teki wrote: > On Fri, Dec 24, 2021 at 7:14 PM Alper Nebi Yasak > wrote: >> The Bob board has two USB 3.0 Type-C ports and one USB 2.0 Type-A port >> on its right side. Enable the configs relevant to USB devices so these >> can be used. >> >> [...] >> ---

Re: [PATCH v3 1/4] rockchip: gru: Set up SoC IO domain registers

2022-03-14 Thread Alper Nebi Yasak
On 11/03/2022 22:49, Jagan Teki wrote: > On Fri, Dec 24, 2021 at 7:14 PM Alper Nebi Yasak > wrote: >> >> The RK3399 SoC needs to know the voltage value provided by some >> regulators, which is done by setting relevant register bits. Configure >> these the way other RK3399 boards do, but with the

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

2022-03-14 Thread Alper Nebi Yasak
On 12/03/2022 08:02, Simon Glass wrote: > On Thu, 10 Mar 2022 at 12:36, Alper Nebi Yasak > wrote: >> 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

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

2022-03-14 Thread Alper Nebi Yasak
On 12/03/2022 08:02, Simon Glass wrote: > On Thu, 10 Mar 2022 at 12:36, Alper Nebi Yasak > wrote: >> On 06/03/2022 06:08, Simon Glass wrote: >>> On Thu, 3 Mar 2022 at 14:16, Alper Nebi Yasak >>> wrote: Do we need to create actual files, or is it a convenience thing for blob entry

[ANN] U-Boot v2022.04-rc4 released

2022-03-14 Thread Tom Rini
Hey all, It's release day and so here's v2022.04-rc4. The release itself is very close now, and the next branch continues to be open. I know of the following regression fixes and I expect them in a pull request soon:

Re: [PATCH v2 02/13] Makefile: Allow LTO to be disabled for a build

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 02:18:14PM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 14 Mar 2022 at 13:45, Tom Rini wrote: > > > > On Mon, Mar 14, 2022 at 01:21:02PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 14 Mar 2022 at 12:29, Tom Rini wrote: > > > > > > > > On Mon, Mar 14,

Re: [PATCH v3 3/4] clk: imx8m: reduce rate table duplication

2022-03-14 Thread Marek Vasut
On 3/14/22 20:15, Angus Ainslie wrote: On 2022-03-14 11:57, Marek Vasut wrote: On 3/14/22 19:22, Angus Ainslie wrote: Re-factor the imx8m[nmpq] rate tables into the common pll1416x clock driver. 43cdaa1567ad3 ("clk: imx8mm: Move 1443X/1416X PLL clock structure to common place")

Re: [PATCH v2 02/13] Makefile: Allow LTO to be disabled for a build

2022-03-14 Thread Simon Glass
Hi Tom, On Mon, 14 Mar 2022 at 13:45, Tom Rini wrote: > > On Mon, Mar 14, 2022 at 01:21:02PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 14 Mar 2022 at 12:29, Tom Rini wrote: > > > > > > On Mon, Mar 14, 2022 at 12:24:42PM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

Re: [PATCH v2 02/13] Makefile: Allow LTO to be disabled for a build

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 01:21:02PM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 14 Mar 2022 at 12:29, Tom Rini wrote: > > > > On Mon, Mar 14, 2022 at 12:24:42PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 14 Mar 2022 at 06:49, Tom Rini wrote: > > > > > > > > On Sat, Mar 12,

Re: [PATCH 1/5] disk: Add an option for partitions in SPL

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 01:21:07PM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 14 Mar 2022 at 12:31, Tom Rini wrote: > > > > On Mon, Mar 14, 2022 at 12:24:41PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 14 Mar 2022 at 06:49, Tom Rini wrote: > > > > > > > > On Fri, Mar 11,

Re: [PATCH 2/2] board: tbs2910: Convert to DM_SERIAL

2022-03-14 Thread Simon Glass
Hi Soeren, On Mon, 14 Mar 2022 at 13:22, Soeren Moch wrote: > > > On 14.03.22 19:28, Tom Rini wrote: > > On Mon, Mar 14, 2022 at 12:24:36PM -0600, Simon Glass wrote: > >> Hi Soeren, > >> > >> On Mon, 14 Mar 2022 at 02:26, Soeren Moch wrote: > >>> ... to get rid of the build warning. > >>>

Re: [PATCH 2/2] board: tbs2910: Convert to DM_SERIAL

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 08:22:10PM +0100, Soeren Moch wrote: > > On 14.03.22 19:28, Tom Rini wrote: > > On Mon, Mar 14, 2022 at 12:24:36PM -0600, Simon Glass wrote: > > > Hi Soeren, > > > > > > On Mon, 14 Mar 2022 at 02:26, Soeren Moch wrote: > > > > ... to get rid of the build warning. > > > >

Re: [PATCH 2/2] board: tbs2910: Convert to DM_SERIAL

2022-03-14 Thread Soeren Moch
On 14.03.22 19:28, Tom Rini wrote: On Mon, Mar 14, 2022 at 12:24:36PM -0600, Simon Glass wrote: Hi Soeren, On Mon, 14 Mar 2022 at 02:26, Soeren Moch wrote: ... to get rid of the build warning. Unfortunately we still need the board specific serial pin init code. Otherwise the first boot

Re: [PATCH v3 00/19] efi_loader: more tightly integrate UEFI disks to driver model

2022-03-14 Thread Simon Glass
Hi Soeren, On Mon, 14 Mar 2022 at 13:17, Soeren Moch wrote: > > Hi Simon, > > On 14.03.22 18:08, Simon Glass wrote: > > Hi Soeren, > > > > [I think you sent your email with html or something so it is a big > > mangled. I'll just add one comment] > > > > On Mon, 14 Mar 2022 at 02:27, Soeren Moch

Re: [PATCH 1/5] disk: Add an option for partitions in SPL

2022-03-14 Thread Simon Glass
Hi Tom, On Mon, 14 Mar 2022 at 12:31, Tom Rini wrote: > > On Mon, Mar 14, 2022 at 12:24:41PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 14 Mar 2022 at 06:49, Tom Rini wrote: > > > > > > On Fri, Mar 11, 2022 at 12:10:01PM -0700, Simon Glass wrote: > > > > > > > In some cases we do not

Re: [PATCH v2 02/13] Makefile: Allow LTO to be disabled for a build

2022-03-14 Thread Simon Glass
Hi Tom, On Mon, 14 Mar 2022 at 12:29, Tom Rini wrote: > > On Mon, Mar 14, 2022 at 12:24:42PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 14 Mar 2022 at 06:49, Tom Rini wrote: > > > > > > On Sat, Mar 12, 2022 at 10:58:44AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On

Re: [PATCH v3 3/4] clk: imx8m: reduce rate table duplication

2022-03-14 Thread Angus Ainslie
On 2022-03-14 11:57, Marek Vasut wrote: On 3/14/22 19:22, Angus Ainslie wrote: Re-factor the imx8m[nmpq] rate tables into the common pll1416x clock driver. 43cdaa1567ad3 ("clk: imx8mm: Move 1443X/1416X PLL clock structure to common place") Signed-off-by: Angus Ainslie Thanks [...]

Re: [PATCH v3 00/19] efi_loader: more tightly integrate UEFI disks to driver model

2022-03-14 Thread Soeren Moch
Hi Simon, On 14.03.22 18:08, Simon Glass wrote: Hi Soeren, [I think you sent your email with html or something so it is a big mangled. I'll just add one comment] On Mon, 14 Mar 2022 at 02:27, Soeren Moch wrote: Hi Simon, On 12.03.22 06:02, Simon Glass wrote: Hi Soeren, On Fri, 11 Mar

Re: [PATCH v3 3/4] clk: imx8m: reduce rate table duplication

2022-03-14 Thread Marek Vasut
On 3/14/22 19:22, Angus Ainslie wrote: Re-factor the imx8m[nmpq] rate tables into the common pll1416x clock driver. 43cdaa1567ad3 ("clk: imx8mm: Move 1443X/1416X PLL clock structure to common place") Signed-off-by: Angus Ainslie Thanks [...] imx_clk_pll14xx("sys_pll3",

Re: [PATCH v3 4/4] clk: imx8m: remove code duplication

2022-03-14 Thread Marek Vasut
On 3/14/22 19:22, Angus Ainslie wrote: All of the imx8m[nmpq] use the same clk_ops functions so move them to a common file. Signed-off-by: Angus Ainslie --- drivers/clk/imx/Makefile | 8 +-- drivers/clk/imx/clk-imx8m.c | 108 +++

Re: [PATCH v3 2/4] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-14 Thread Marek Vasut
On 3/14/22 19:22, Angus Ainslie wrote: This is a DM clock drvier based off the imx8mm u-boot driver and the linux kernel driver. All of the PLLs and clocks are initialized so the subsystems below are functional and tested. 1) USB host and peripheral 2) ECSPI 3) UART 4) I2C all busses 5) USDHC

Re: [PATCH v3 1/4] dt-bindings: imx8mq-clock: add mainline definitions

2022-03-14 Thread Marek Vasut
On 3/14/22 19:22, Angus Ainslie wrote: Sync the clock ids with the mainline kernel 077de6e1c9f ("clk: imx8mq: add PLL monitor output") Signed-off-by: Angus Ainslie Reviewed-by: Marek Vasut

Re: [PATCH 1/5] disk: Add an option for partitions in SPL

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 12:24:41PM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 14 Mar 2022 at 06:49, Tom Rini wrote: > > > > On Fri, Mar 11, 2022 at 12:10:01PM -0700, Simon Glass wrote: > > > > > In some cases we do not want to enable partition support in SPL. Add an > > > option to allow

Re: [PATCH v2 02/13] Makefile: Allow LTO to be disabled for a build

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 12:24:42PM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 14 Mar 2022 at 06:49, Tom Rini wrote: > > > > On Sat, Mar 12, 2022 at 10:58:44AM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Mon, 7 Mar 2022 at 07:33, Tom Rini wrote: > > > > > > > > On Fri, Mar 04,

Re: [PATCH 2/2] board: tbs2910: Convert to DM_SERIAL

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 12:24:36PM -0600, Simon Glass wrote: > Hi Soeren, > > On Mon, 14 Mar 2022 at 02:26, Soeren Moch wrote: > > > > ... to get rid of the build warning. > > Unfortunately we still need the board specific serial pin init code. > > Otherwise the first boot messages over the

Re: [PATCH v5 3/9] tpm: rng: Add driver model interface for TPM RNG device

2022-03-14 Thread Simon Glass
Hi Sughosh, On Mon, 14 Mar 2022 at 05:39, Sughosh Ganu wrote: > > hi Simon, > > On Mon, 14 Mar 2022 at 03:53, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Sun, 13 Mar 2022 at 08:48, Sughosh Ganu wrote: > > > > > > The TPM device has a builtin random number generator(RNG) > > >

Re: [PATCH 3/5] rcar3_salvator-x: Drop EFI_LOADER

2022-03-14 Thread Simon Glass
Hi Tom, On Mon, 14 Mar 2022 at 06:54, Tom Rini wrote: > > On Fri, Mar 11, 2022 at 07:24:42PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 11 Mar 2022 at 13:21, Tom Rini wrote: > > > > > > On Fri, Mar 11, 2022 at 12:10:03PM -0700, Simon Glass wrote: > > > > > > > This board is too close

Re: [PATCH v5 4/9] tpm: Add the RNG child device

2022-03-14 Thread Simon Glass
Hi Sughosh, On Mon, 14 Mar 2022 at 05:43, Sughosh Ganu wrote: > > hi Simon, > > On Mon, 14 Mar 2022 at 03:53, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Sun, 13 Mar 2022 at 08:48, Sughosh Ganu wrote: > > > > > > The TPM device comes with the random number generator(RNG) > > >

Re: [PATCH v5 7/9] cmd: rng: Use a statically allocated array for random bytes

2022-03-14 Thread Simon Glass
Hi Sughosh, On Mon, 14 Mar 2022 at 05:27, Sughosh Ganu wrote: > > hi Simon, > > On Mon, 14 Mar 2022 at 03:53, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Sun, 13 Mar 2022 at 08:49, Sughosh Ganu wrote: > > > > > > Use a statically allocated buffer on stack instead of using malloc for > >

Re: [PATCH v2 02/13] Makefile: Allow LTO to be disabled for a build

2022-03-14 Thread Simon Glass
Hi Tom, On Mon, 14 Mar 2022 at 06:49, Tom Rini wrote: > > On Sat, Mar 12, 2022 at 10:58:44AM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 7 Mar 2022 at 07:33, Tom Rini wrote: > > > > > > On Fri, Mar 04, 2022 at 08:42:57AM -0700, Simon Glass wrote: > > > > > > > LTO (Link-Time

Re: [PATCH] test/py: efi_capsule: Handle expected reset after capsule on disk

2022-03-14 Thread Simon Glass
Hi Masami, On Mon, 14 Mar 2022 at 01:35, Masami Hiramatsu wrote: > > Hi Simon, > > 2022年3月14日(月) 15:45 Simon Glass : > > > > Hi Takahiro, > > > > On Sun, 13 Mar 2022 at 20:43, AKASHI Takahiro > > wrote: > > > > > > On Sun, Mar 13, 2022 at 08:15:02PM -0600, Simon Glass wrote: > > > > Hi

Re: [PATCH 1/5] disk: Add an option for partitions in SPL

2022-03-14 Thread Simon Glass
Hi Tom, On Mon, 14 Mar 2022 at 06:49, Tom Rini wrote: > > On Fri, Mar 11, 2022 at 12:10:01PM -0700, Simon Glass wrote: > > > In some cases we do not want to enable partition support in SPL. Add an > > option to allow this. > > > > Signed-off-by: Simon Glass > > --- > > > > disk/Kconfig

Re: [PATCH] doc: board: raspberrypi: Add documentation

2022-03-14 Thread Simon Glass
Hi Matthias, On Mon, 14 Mar 2022 at 05:04, wrote: > > From: Matthias Brugger > > Add documentation about the different configuration files for the > RaspberryPi board family. > > Signed-off-by: Matthias Brugger > --- > doc/board/raspberrypi/index.rst | 10 + >

Re: [PATCH] lib/acpi: Enable QEMU special cases for ARM

2022-03-14 Thread Simon Glass
Hi, On Mon, 14 Mar 2022 at 01:04, Heinrich Schuchardt wrote: > > On 2/27/22 15:10, Alexander Graf wrote: > > With QEMU, we receive ACPI tables from the hypervisor rather than build > > them ourselves in U-Boot. That logic however hard codes the target to the > > x86 QEMU target, leaving ARM out

Re: [PATCH 2/2] board: tbs2910: Convert to DM_SERIAL

2022-03-14 Thread Simon Glass
Hi Soeren, On Mon, 14 Mar 2022 at 02:26, Soeren Moch wrote: > > ... to get rid of the build warning. > Unfortunately we still need the board specific serial pin init code. > Otherwise the first boot messages over the serial console are lost. > > Signed-off-by: Soeren Moch > --- > Cc: Stefano

Re: [PATCH 1/2] board: tbs2910: Enable Link Time Optimizations in defconfig

2022-03-14 Thread Simon Glass
On Mon, 14 Mar 2022 at 02:26, Soeren Moch wrote: > > This saves about 12 kBytes image size and helps to stay within the > size limit. > > Suggested-by: Tom Rini > Signed-off-by: Soeren Moch > --- > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: Simon Glass > Cc: u-boot@lists.denx.de > >

[PATCH v3 4/4] clk: imx8m: remove code duplication

2022-03-14 Thread Angus Ainslie
All of the imx8m[nmpq] use the same clk_ops functions so move them to a common file. Signed-off-by: Angus Ainslie --- drivers/clk/imx/Makefile | 8 +-- drivers/clk/imx/clk-imx8m.c | 108 +++ drivers/clk/imx/clk-imx8m.h | 12

[PATCH v3 2/4] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-14 Thread Angus Ainslie
This is a DM clock drvier based off the imx8mm u-boot driver and the linux kernel driver. All of the PLLs and clocks are initialized so the subsystems below are functional and tested. 1) USB host and peripheral 2) ECSPI 3) UART 4) I2C all busses 5) USDHC for eMMC support 6) USB storage 7) GPIO

[PATCH v3 3/4] clk: imx8m: reduce rate table duplication

2022-03-14 Thread Angus Ainslie
Re-factor the imx8m[nmpq] rate tables into the common pll1416x clock driver. 43cdaa1567ad3 ("clk: imx8mm: Move 1443X/1416X PLL clock structure to common place") Signed-off-by: Angus Ainslie --- drivers/clk/imx/clk-imx8mm.c | 60 +++- drivers/clk/imx/clk-imx8mn.c

[PATCH v3 1/4] dt-bindings: imx8mq-clock: add mainline definitions

2022-03-14 Thread Angus Ainslie
Sync the clock ids with the mainline kernel 077de6e1c9f ("clk: imx8mq: add PLL monitor output") Signed-off-by: Angus Ainslie --- include/dt-bindings/clock/imx8mq-clock.h | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git

[PATCH v3 0/4] Add a clock driver for the imx8mq

2022-03-14 Thread Angus Ainslie
This is a DM clock driver for the imx8mq based on the linux kernel driver and the u-boot imx8mm clock driver. It also removes some code duplication in the imx8m[nmp] clock drivers. Changes since v2: Added kernel commit IDs Re-factored rate table code to remove duplication Remove duplicate code

Re: [PATCH 1/2] board: tbs2910: Enable Link Time Optimizations in defconfig

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 09:26:25AM +0100, Soeren Moch wrote: > This saves about 12 kBytes image size and helps to stay within the > size limit. > > Suggested-by: Tom Rini > Signed-off-by: Soeren Moch Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 01/11] vexpress64: fvp: Fix automatic boot

2022-03-14 Thread Tom Rini
On Fri, Mar 04, 2022 at 04:30:08PM +, Andre Przywara wrote: > Commit 90f262a6951f ("vexpress64: Clean up BASE_FVP boot configuration") > cleaned up the usage of default address variables, but missed to update > the address for the kernel in the FVP's bootcmd definition. > > Change

Re: [PATCH 2/2] board: ti: j721e: evm.c: Fix the probing of in Sierra SerDes0

2022-03-14 Thread Tom Rini
On Fri, Mar 04, 2022 at 05:45:26PM +0530, Aswath Govindraju wrote: > Initialization and power on operations of links have been moved under the > link device in the Sierra SerDes driver. Also, the UCLASS of > sierra_phy_provider has been changed to UCLASS_MISC. > > Therefore, fix the probing of

Re: [PATCH 1/2] phy: cadence: Sierra: Move the link operations from serdes phy to link device

2022-03-14 Thread Tom Rini
On Fri, Mar 04, 2022 at 05:45:25PM +0530, Aswath Govindraju wrote: > In commit 6f46c7441a9f ("phy: cadence: Sierra: Add a UCLASS_PHY device for > links"), a separate udevice of type UCLASS_PHY was created for each link. > Therefore, move the corresponding link operations under the link device. >

Re: [PATCH v4 2/4] rockchip: sdhci: Fix RK3399 eMMC PHY power cycling

2022-03-14 Thread Tom Rini
On Sat, Jan 29, 2022 at 01:42:37AM +0300, Alper Nebi Yasak wrote: > The Rockchip RK3399 eMMC PHY has to be power-cycled while changing its > clock speed to some higher speeds. This is dependent on the desired > SDHCI clock speed, and it looks like the PHY should be powered off while > setting the

Re: [PATCH v3 00/19] efi_loader: more tightly integrate UEFI disks to driver model

2022-03-14 Thread Simon Glass
Hi Soeren, [I think you sent your email with html or something so it is a big mangled. I'll just add one comment] On Mon, 14 Mar 2022 at 02:27, Soeren Moch wrote: > > Hi Simon, > > On 12.03.22 06:02, Simon Glass wrote: > > Hi Soeren, > > On Fri, 11 Mar 2022 at 15:43, Soeren Moch wrote: > > > >

[PATCH] rockchip: rk3328: enable USB mass storage on Renegade

2022-03-14 Thread Leonidas-Panagiotis Papadakos
This is very useful to access the LibreComputer eMMC as removable storage from a PC (e.g. like so `ums 0 mmc 0`). It has been tested as working on my Renegade board. Signed-off-by: Leonidas P. Papadakos --- configs/roc-cc-rk3328_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: Please pull u-boot-marvell/master

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 04:23:44PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the next batch of Marvell MVEBU / kwboot related fixes: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: Please pull u-boot-x86

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 10:40:40PM +0800, Bin Meng wrote: > Hi Tom, > > This PR includes the following x86 changes for v2022.04: > > - Trivial fixes for x86 > > Azure results: PASS > https://dev.azure.com/bmeng/GitHub/_build/results?buildId=463=results > > The following changes since commit

Re: [PATCH 06/14] misc: Add support for nvmem cells

2022-03-14 Thread Sean Anderson
On 3/11/22 9:25 PM, Simon Glass wrote: > Hi Sean, > > On Thu, 3 Mar 2022 at 10:45, Sean Anderson wrote: >> >> Hi Simon, >> >> On 3/1/22 9:58 AM, Simon Glass wrote: >> > Hi Sean, >> > >> > On Mon, 28 Feb 2022 at 09:43, Sean Anderson wrote: >> >> >> >> >> >> >> >> On 2/26/22 1:36 PM, Simon

Re: [PATCH 2/2] Add option to use -Og

2022-03-14 Thread Tom Rini
On Mon, Mar 14, 2022 at 11:36:54AM -0400, Sean Anderson wrote: > > > On 3/11/22 9:25 PM, Simon Glass wrote: > > On Tue, 22 Feb 2022 at 10:20, Sean Anderson wrote: > >> > >> This adds support for using -Og when building U-Boot. According to the > >> gcc man page: > >> > >> > -Og should be the

Re: [PATCH 2/2] Add option to use -Og

2022-03-14 Thread Sean Anderson
On 3/11/22 9:25 PM, Simon Glass wrote: > On Tue, 22 Feb 2022 at 10:20, Sean Anderson wrote: >> >> This adds support for using -Og when building U-Boot. According to the >> gcc man page: >> >> > -Og should be the optimization level of choice for the standard >> > edit-compile-debug cycle,

Re: [PATCH v3 1/6] rockchip: move ROCKCHIP_STIMER_BASE to Kconfig

2022-03-14 Thread Johan Jonker
On 3/12/22 15:39, Kever Yang wrote: > Hi Johan, > > On 2022/3/12 18:01, Johan Jonker wrote: >> On 3/12/22 09:51, Jagan Teki wrote: >>> On Thu, Dec 30, 2021 at 10:18 PM Johan Jonker wrote: Move ROCKCHIP_STIMER_BASE to Kconfig. Signed-off-by: Johan Jonker ---

Please pull u-boot-marvell/master

2022-03-14 Thread Stefan Roese
Hi Tom, please pull the next batch of Marvell MVEBU / kwboot related fixes: - kwboot: Misc minor improvement and fixes, e.g. mix of arguments (Pali) - PCI: a37xx: Remap IO space to bus address 0x0 (Pali)

Re: [PATCH] arm: a37xx: Remap IO space to bus address 0x0

2022-03-14 Thread Stefan Roese
On 3/7/22 19:12, Pali Rohár wrote: Remap PCI I/O space to the bus address 0x0 in the Armada 37xx device-tree in order to support legacy I/O port based cards which have hardcoded I/O ports in low address space. Some legacy PCI I/O based cards do not support 32-bit I/O addressing. Signed-off-by:

Re: [PATCH v2 3/3] tools: kwboot: Allow to mix positional arguments with option -b

2022-03-14 Thread Stefan Roese
On 3/7/22 19:03, Pali Rohár wrote: Commit 9e6d71d2b55f ("tools: kwboot: Allow to use -b without image path as the last getopt() option") broke usage of kwboot with following arguments: kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-spl.kwb Fix parsing of option -b with optional argument again.

Re: [PATCH v2 2/3] tools: kwboot: Check if baudrate value is supported before sending image

2022-03-14 Thread Stefan Roese
On 3/7/22 19:03, Pali Rohár wrote: The Globalscale Technologies Sheevaplug board has the network chip Marvell 88E1116R. Use uclass mvgbe and the compatible driver M88E1310 driver to bring up Ethernet. - Currently, CONFIG_RESET_PHY_R symbol is used in arch/arm/mach-kirkwood/include/mach/config.h

Re: [PATCH v2 1/3] tools: kwboot: Allow to specify custom baudrate only in supported operations

2022-03-14 Thread Stefan Roese
On 3/7/22 19:03, Pali Rohár wrote: Custom baudrate different than 115200 may be specified only when kwboot is not going to send boot/debug message pattern or when it is going to send boot message pattern with image file (in which case baudrate change happens after sending kwbimage header).

[PATCH v7 16/16] configs: sandbox_defconfig: enable config CMD_PRE_LOAD_VERIFY

2022-03-14 Thread Philippe Reynes
Enable the command pre_load_verify on sandbox. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 46bf18bc98..35fd4e3f49 100644 ---

[PATCH v7 08/16] cmd: bootm: add a stage pre-load

2022-03-14 Thread Philippe Reynes
Add a stage pre-load to the command bootm. Right now, this stage may be used to read a header and check the signature of the full image. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- boot/bootm.c| 33 + cmd/Kconfig | 10 ++

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

2022-03-14 Thread Philippe Reynes
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 bytes - version : 4 bytes - header size : 4 bytes - image size : 4 bytes - offset image signature : 4 bytes - flags : 4 bytes -

[PATCH v7 14/16] test: py: vboot: add test for global image signature

2022-03-14 Thread Philippe Reynes
Adds test units for the pre-load header signature. Signed-off-by: Philippe Reynes --- test/py/tests/test_vboot.py | 145 -- test/py/tests/vboot/sandbox-binman-pss.dts| 25 +++ test/py/tests/vboot/sandbox-binman.dts| 24 +++

[PATCH v7 12/16] tools: binman: add support for pre-load header

2022-03-14 Thread Philippe Reynes
Adds the support of the pre-load header with the image signature to binman. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- doc/usage/index.rst | 1 + tools/binman/entries.rst | 38 tools/binman/etype/pre_load.py

[PATCH v7 15/16] cmd: pre_load_verify: initial import

2022-03-14 Thread Philippe Reynes
Add the command pre_load_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 address of the image (without the header). It allows to run such commands: tftp script.img && pre_load_verify $loadaddr &&

[PATCH v7 05/16] lib: crypto: allow to build crypyo in SPL

2022-03-14 Thread Philippe Reynes
This commit adds the options: - SPL_ASYMMETRIC_KEY_TYPE - SPL_ASYMMETRIC_PUBLIC_KEY_SUBTYPE - SPL_RSA_PUBLIC_KEY_PARSER Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- lib/Makefile| 3 ++- lib/crypto/Kconfig | 29 + lib/crypto/Makefile | 19

[PATCH v7 10/16] mkimage: add public key for image pre-load stage

2022-03-14 Thread Philippe Reynes
This commit enhances mkimage to update the node /image/pre-load/sig with the public key. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- include/image.h| 15 ++ tools/fit_image.c | 3 ++ tools/image-host.c | 114 + 3 files

[PATCH v7 13/16] configs: sandbox_defconfig: enable stage pre-load in bootm

2022-03-14 Thread Philippe Reynes
Enable the support of stage pre-load in bootm. For the moment, this stage allow to verify the signature of the full image with a header. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v7 09/16] common: spl: fit_ram: allow to use image pre load

2022-03-14 Thread Philippe Reynes
Add the support of image pre load in spl or tpl when loading an image from ram. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- common/spl/spl_ram.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_ram.c b/common/spl/spl_ram.c

[PATCH v7 06/16] lib: rsa: allow rsa verify with pkey in SPL

2022-03-14 Thread Philippe Reynes
This commit adds the option SPL_RSA_VERIFY_WITH_PKEY. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- lib/rsa/Kconfig | 19 +++ 1 file changed, 19 insertions(+) diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig index be9775bcce..b773f17c26 100644 --- a/lib/rsa/Kconfig

  1   2   >