Re: [RFC 07/22] dm: blk: add UCLASS_PARTITION

2021-10-11 Thread Heinrich Schuchardt
Am 12. Oktober 2021 07:12:59 MESZ schrieb AKASHI Takahiro : >Simon, Heinrich, > >On Mon, Oct 11, 2021 at 11:41:02AM -0600, Simon Glass wrote: >> Hi Heinrich,, >> >> On Mon, 11 Oct 2021 at 10:53, Heinrich Schuchardt wrote: >> > >> > >> > >> > On 10/11/21 18:14, Simon Glass wrote: >> > > Hi Heinri

Re: [RFC 07/22] block: ide: call device_probe() after scanning

2021-10-11 Thread Ilias Apalodimas
On Mon, Oct 11, 2021 at 08:54:13AM -0600, Simon Glass wrote: > Hi Takahiro, > > On Sun, 10 Oct 2021 at 19:43, AKASHI Takahiro > wrote: > > > > On Sun, Oct 10, 2021 at 08:14:13AM -0600, Simon Glass wrote: > > > On Thu, 30 Sept 2021 at 23:03, AKASHI Takahiro > > > wrote: > > > > > > > > Every time

Re: [RFC 07/22] dm: blk: add UCLASS_PARTITION

2021-10-11 Thread AKASHI Takahiro
Simon, Heinrich, On Mon, Oct 11, 2021 at 11:41:02AM -0600, Simon Glass wrote: > Hi Heinrich,, > > On Mon, 11 Oct 2021 at 10:53, Heinrich Schuchardt wrote: > > > > > > > > On 10/11/21 18:14, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Mon, 11 Oct 2021 at 09:02, Heinrich Schuchardt > >

Re: [RFC 07/22] dm: blk: add UCLASS_PARTITION

2021-10-11 Thread AKASHI Takahiro
Simon, On Sun, Oct 10, 2021 at 08:14:34AM -0600, Simon Glass wrote: > Hi Takahiro, > > On Thu, 30 Sept 2021 at 23:03, AKASHI Takahiro > wrote: > > > > UCLASS_PARTITION device will be created as a child node of > > UCLASS_BLK device. > > > > Signed-off-by: AKASHI Takahiro > > --- > > drivers/bl

Re: [RFC 01/22] part: call part_init() in blk_get_device_by_str() only for MMC

2021-10-11 Thread AKASHI Takahiro
Simon, Heinrich, On Mon, Oct 11, 2021 at 10:14:02AM -0600, Simon Glass wrote: > Hi Heinrich, > > On Mon, 11 Oct 2021 at 09:09, Heinrich Schuchardt wrote: > > > > > > > > On 10/11/21 16:32, Simon Glass wrote: > > > Hi Heinrich, > > > > > > On Mon, 11 Oct 2021 at 04:07, Heinrich Schuchardt > > >

[PATCH v2] sandbox: Remove OF_HOSTFILE

2021-10-11 Thread Ilias Apalodimas
OF_HOSTFILE is used on sandbox configs only. Although it's pretty unique and not causing any confusions, we are better of having simpler config options for the DTB. So let's replace that with the existing OF_BOARD. U-Boot would then have only three config options for the DTB origin. - OF_SEPARA

Re: [PATCH 2/2] arm: dts: Update IOT2050 device tree files

2021-10-11 Thread Tom Rini
On Tue, Oct 05, 2021 at 12:04:50PM +0200, Jan Kiszka wrote: > From: Jan Kiszka > > This fixes the usage of the USB 3.0-capable port under U-Boot as USB > 2.0-only port. > > Original patch by Chao Zeng. > > Signed-off-by: Jan Kiszka Applied to u-boot/master, thanks! -- Tom signature.asc D

Re: [PATCH 1/2] board: siemens: iot2050: Adjust to changes in DT and configuration

2021-10-11 Thread Tom Rini
On Tue, Oct 05, 2021 at 12:04:49PM +0200, Jan Kiszka wrote: > From: Jan Kiszka > > Account for the changes done between merge proposal and the final merge. > > Signed-off-by: Jan Kiszka > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signat

Re: [PATCH V2] ARM: omap3_logic: Cleanup usage of MUX_VAL

2021-10-11 Thread Tom Rini
On Sun, Oct 03, 2021 at 07:31:14AM -0500, Adam Ford wrote: > The macro called MUX_VAL generates a writel instruction with > semicolon at the end. This table was written to use semicolons, > however one was missed: > >MUX_VAL(CP(SYS_BOOT2), (IEN | PTD | DIS | M4))/* GPIO_4 */ > > S

Re: [PATCH 3/3] clk: ti: add am33xx/am43xx spread spectrum clock support

2021-10-11 Thread Tom Rini
On Sun, Sep 26, 2021 at 11:58:58AM +0200, Dario Binacchi wrote: > The patch enables spread spectrum clocking (SSC) for MPU and LCD PLLs. > As reported by the TI spruh73x/spruhl7x RM, SSC is only supported for > the DISP/LCD and MPU PLLs on am33xx/am43xx. SSC is not supported for > DDR, PER, and CO

Re: [PATCH 2/3] ARM: dts: am43xx-clocks: add spread spectrum support

2021-10-11 Thread Tom Rini
On Sun, Sep 26, 2021 at 11:58:57AM +0200, Dario Binacchi wrote: > Registers for adjusting the spread spectrum clocking (SSC) have been > added. As reported by the TI spruhl7x RM, SSC is supported only for LCD > and MPU PLLs, but the PRCM_CM_SSC_DELTAMSTEP_DPLL_XXX and > PRCM_CM_SSC_MODFREQDIV_DPLL

Re: [PATCH 1/3] ARM: dts: am33xx-clocks: add spread spectrum support

2021-10-11 Thread Tom Rini
On Sun, Sep 26, 2021 at 11:58:56AM +0200, Dario Binacchi wrote: > Registers for adjusting the spread spectrum clocking (SSC) have been > added. As reported by the TI spruh73x RM, SSC is supported only for LCD > and MPU PLLs, but the CM_SSC_DELTAMSTEP_DPLL_XXX and > CM_SSC_MODFREQDIV_DPLL_XXX regis

Re: [PATCH V2] configs: omap3x_logic: Enable LTO on more LogicPD OMAP3 boards

2021-10-11 Thread Tom Rini
On Sat, Sep 25, 2021 at 09:58:25AM -0500, Adam Ford wrote: > There are five omap3 based boards from LogicPD. Two of them > have added LTO support. Add the remaining three to use LTO. > > Signed-off-by: Adam Ford Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signat

How to use the L1 D-Cache as RAM for p2020 board

2021-10-11 Thread Jerry Zhang
Hi, I have to implement a test case on p2020(powerpc) board 1. Fill the all the 32-Kbyte L1 data cache 2. Some ambient operation like temperature changing 3. Check if the data of L1 data cache changes I was told that in the start.S there is a scenario that use L1 D-Cache as initial RAM, https:

Re: [RFC 12/22] dm: add a hidden link to efi object

2021-10-11 Thread AKASHI Takahiro
On Mon, Oct 11, 2021 at 10:09:19AM -0600, Simon Glass wrote: > Hi Heinrich, > > On Mon, 11 Oct 2021 at 09:31, Heinrich Schuchardt wrote: > > > > > > > > On 10/11/21 16:54, Simon Glass wrote: > > > Hi Takahiro, > > > > > > On Mon, 11 Oct 2021 at 00:43, AKASHI Takahiro > > > wrote: > > >> > > >> S

Re: [PATCH v4 04/11] tools: add fdtsig.sh

2021-10-11 Thread AKASHI Takahiro
Simon, On Mon, Oct 11, 2021 at 08:54:09AM -0600, Simon Glass wrote: > Hi Takahiro, > > On Thu, 7 Oct 2021 at 00:25, AKASHI Takahiro > wrote: > > > > With this script, a public key is added to a device tree blob > > as the default efi_get_public_key_data() expects. > > > > Signed-off-by: AKASHI

Re: [PATCH v4 01/11] Revert "Revert "mkeficapsule: Remove dtb related options""

2021-10-11 Thread AKASHI Takahiro
Simon, On Mon, Oct 11, 2021 at 08:54:10AM -0600, Simon Glass wrote: > Hi Takahiro, Ilias, > > On Sun, 10 Oct 2021 at 18:29, AKASHI Takahiro > wrote: > > > > On Fri, Oct 08, 2021 at 10:11:59PM +0300, Ilias Apalodimas wrote: > > > Hi Simon, > > > > > > On Fri, Oct 08, 2021 at 09:38:11AM -0600, Sim

Re: [RFC 14/22] efi_loader: disk: a helper function to create efi_disk objects from udevice

2021-10-11 Thread AKASHI Takahiro
Simon, On Mon, Oct 11, 2021 at 08:54:06AM -0600, Simon Glass wrote: > Hi Takahiro, > > On Mon, 11 Oct 2021 at 00:52, AKASHI Takahiro > wrote: > > > > On Sun, Oct 10, 2021 at 08:14:21AM -0600, Simon Glass wrote: > > > On Thu, 30 Sept 2021 at 23:04, AKASHI Takahiro > > > wrote: > > > > > > > > Ad

Re: IMX8M OP-TEE

2021-10-11 Thread Tim Harvey
On Mon, Oct 11, 2021 at 3:29 PM Marcel Ziswiler wrote: > > Hi Tim > > On Mon, 2021-10-11 at 15:15 -0700, Tim Harvey wrote: > > Greetings, > > > > Is anyone successfully booting U-Boot with OP-TEE support on the IMX8M? > > I am not aware that anybody at Toradex played with OP-TEE so far but let me

Re: IMX8M OP-TEE

2021-10-11 Thread Marcel Ziswiler
Hi Tim On Mon, 2021-10-11 at 15:15 -0700, Tim Harvey wrote: > Greetings, > > Is anyone successfully booting U-Boot with OP-TEE support on the IMX8M? I am not aware that anybody at Toradex played with OP-TEE so far but let me ask around again. However, maybe Igor or Oleksandr (added to CC, now

IMX8M OP-TEE

2021-10-11 Thread Tim Harvey
Greetings, Is anyone successfully booting U-Boot with OP-TEE support on the IMX8M? My understanding is that you need to add tee.bin to the images in the FIT image and include it in loadables following the ATF. While this was done with arch/arm/mach-imx/mkimage_fit_atf.sh before the switch to bin

Re: [PATCH 3/3] treewide: Remove OF_PRIOR_STAGE

2021-10-11 Thread Ilias Apalodimas
Hi Simon, On Tue, 12 Oct 2021 at 00:31, Simon Glass wrote: > > Hi Ilias, > > On Mon, 11 Oct 2021 at 15:00, Ilias Apalodimas > wrote: > > > > The previous patches removed OF_PRIOR_STAGE from the last consumers of the > > Kconfig option. Cleanup any references to it in documentation, code and >

Re: [PATCH 3/3] treewide: Remove OF_PRIOR_STAGE

2021-10-11 Thread Simon Glass
Hi Ilias, On Mon, 11 Oct 2021 at 15:00, Ilias Apalodimas wrote: > > The previous patches removed OF_PRIOR_STAGE from the last consumers of the > Kconfig option. Cleanup any references to it in documentation, code and > configuration options. > > Signed-off-by: Ilias Apalodimas > Reviewed-by: S

[PATCH 3/3] treewide: Remove OF_PRIOR_STAGE

2021-10-11 Thread Ilias Apalodimas
The previous patches removed OF_PRIOR_STAGE from the last consumers of the Kconfig option. Cleanup any references to it in documentation, code and configuration options. Signed-off-by: Ilias Apalodimas Reviewed-by: Simon Glass --- dts/Kconfig | 11 ++- include/fdtdec.h

[PATCH 2/3] board: arm: Remove OF_PRIOR_STAGE from the remaining Arm boards

2021-10-11 Thread Ilias Apalodimas
At some point back in 2018 prior_stage_fdt_address and OF_PRIOR_STAGE got introduced, in order to support a DTB handed over by an earlier stage boo loader. However we have another option in the Kconfig (OF_BOARD) which has identical semantics. So let's remove the option in an effort to simplify

[PATCH 1/3 v4] riscv: Remove OF_PRIOR_STAGE from RISC-V boards

2021-10-11 Thread Ilias Apalodimas
At some point back in 2018 prior_stage_fdt_address and OF_PRIOR_STAGE got introduced, in order to support a DTB handed over by an earlier stage boo loader. However we have another option in the Kconfig (OF_BOARD) which has identical semantics. On RISC-V some of the boards pick up the DTB from a1

Re: [PATCH v2 6/7] arm: dts: apple: Add preliminary device trees

2021-10-11 Thread Tom Rini
On Mon, Oct 11, 2021 at 02:00:56PM -0600, Simon Glass wrote: > Hi Rob, > > On Mon, 11 Oct 2021 at 13:49, Rob Herring wrote: > > > > On Mon, Oct 11, 2021 at 2:00 PM Mark Kettenis > > wrote: > > > > > > > From: Rob Herring > > > > Date: Mon, 11 Oct 2021 13:36:29 -0500 > > > > > > Hi Rob, > > > >

Re: [PATCH 1/3 v3] riscv: Remove OF_PRIOR_STAGE from RISC-V boards

2021-10-11 Thread Ilias Apalodimas
Hi Simon [] > > > diff --git a/board/AndesTech/ax25-ae350/ax25-ae350.c > > b/board/AndesTech/ax25-ae350/ax25-ae350.c > > index 81b0ee992372..6de91208258f 100644 > > --- a/board/AndesTech/ax25-ae350/ax25-ae350.c > > +++ b/board/AndesTech/ax25-ae350/ax25-ae350.c > > @@ -21,7 +21,6 @@ > > > > D

Re: [PATCH 1/3 v3] riscv: Remove OF_PRIOR_STAGE from RISC-V boards

2021-10-11 Thread Simon Glass
Hi Ilias, On Thu, 30 Sept 2021 at 01:18, Ilias Apalodimas wrote: > > At some point back in 2018 prior_stage_fdt_address and OF_PRIOR_STAGE got > introduced, in order to support a DTB handed over by an earlier stage boot > loader. However we have another option in the Kconfig (OF_BOARD) which ha

Re: [PATCH] sandbox: Remove OF_HOSTFILE

2021-10-11 Thread Ilias Apalodimas
[...] > > > > This will work: > > > > diff --git a/dts/Kconfig b/dts/Kconfig > > index dabe0080c1..6aca8a8738 100644 > > --- a/dts/Kconfig > > +++ b/dts/Kconfig > > @@ -90,6 +90,7 @@ config OF_LIVE > > choice > > prompt "Provider of DTB for DT control" > > depends on OF_CONTROL

Re: [PATCH v2 6/7] arm: dts: apple: Add preliminary device trees

2021-10-11 Thread Simon Glass
Hi Rob, On Mon, 11 Oct 2021 at 13:49, Rob Herring wrote: > > On Mon, Oct 11, 2021 at 2:00 PM Mark Kettenis wrote: > > > > > From: Rob Herring > > > Date: Mon, 11 Oct 2021 13:36:29 -0500 > > > > Hi Rob, > > > > > On Sun, Oct 3, 2021 at 1:35 PM Mark Kettenis wrote: > > > > > > > > Add preliminar

Re: [PATCH v2 6/7] arm: dts: apple: Add preliminary device trees

2021-10-11 Thread Rob Herring
On Mon, Oct 11, 2021 at 2:00 PM Mark Kettenis wrote: > > > From: Rob Herring > > Date: Mon, 11 Oct 2021 13:36:29 -0500 > > Hi Rob, > > > On Sun, Oct 3, 2021 at 1:35 PM Mark Kettenis wrote: > > > > > > Add preliminary device trees for the Apple M1 mini (2020) and > > > Apple M1 Macbook Pro 13" (2

Re: [PATCH 1/3 v3] riscv: Remove OF_PRIOR_STAGE from RISC-V boards

2021-10-11 Thread Simon Glass
Hi Ilias, On Thu, 30 Sept 2021 at 01:18, Ilias Apalodimas wrote: > > At some point back in 2018 prior_stage_fdt_address and OF_PRIOR_STAGE got > introduced, in order to support a DTB handed over by an earlier stage boot > loader. However we have another option in the Kconfig (OF_BOARD) which ha

Re: [PATCH] sandbox: Remove OF_HOSTFILE

2021-10-11 Thread Simon Glass
Hi Ilias, On Wed, 29 Sept 2021 at 01:52, Heinrich Schuchardt wrote: > > > > On 9/29/21 08:25, Ilias Apalodimas wrote: > - */ > -int sandbox_read_fdt_from_file(void); > - > /** > * sandbox_reset() - reset sandbox > * > diff --git a/configs/sandbox64_defco

Re: [PATCH v3 0/7] Apple M1 Support

2021-10-11 Thread Simon Glass
On Mon, 11 Oct 2021 at 10:40, Mark Kettenis wrote: > > This series adds basic support for Apple's M1 SoC to U-Boot. > This builds a basic U-Boot that can be used as a payload > for the m1n1 boot loader being developed by the Asahi Linux > project. > > The goal here is to privide an UEFI interface

Re: [PATCH v3 7/7] doc: board: apple: Add Apple M1 documentation

2021-10-11 Thread Simon Glass
Hi Mark, On Mon, 11 Oct 2021 at 10:40, Mark Kettenis wrote: > > Provide preliminary instructions on how to get U-Boot to run on > Apple Silicon Macs. Apple-Silicon This is ambiguous. The Macs are not made out of silicon. It is a Mac using Apple Silicon. > > Signed-off-by: Mark Kettenis > ---

Re: [PATCH v2 6/7] arm: dts: apple: Add preliminary device trees

2021-10-11 Thread Mark Kettenis
> From: Rob Herring > Date: Mon, 11 Oct 2021 13:36:29 -0500 Hi Rob, > On Sun, Oct 3, 2021 at 1:35 PM Mark Kettenis wrote: > > > > Add preliminary device trees for the Apple M1 mini (2020) and > > Apple M1 Macbook Pro 13" (2020). Device tree bindings for > > the Apple M1 SoC are still being for

Re: [PATCH v2 6/7] arm: dts: apple: Add preliminary device trees

2021-10-11 Thread Simon Glass
Hi Rob, On Mon, 11 Oct 2021 at 12:36, Rob Herring wrote: > > On Sun, Oct 3, 2021 at 1:35 PM Mark Kettenis wrote: > > > > Add preliminary device trees for the Apple M1 mini (2020) and > > Apple M1 Macbook Pro 13" (2020). Device tree bindings for > > the Apple M1 SoC are still being formalized an

Re: [PATCH v2 07/10] dts: dra7-ipu-common-early-boot.dtsi: Add all the ipu early boot related nodes

2021-10-11 Thread Tom Rini
On Thu, Sep 30, 2021 at 06:21:08PM +0200, Amjad Ouled-Ameur wrote: > From: Keerthy > > Add all the ipu early boot related nodes > > Signed-off-by: Keerthy > Signed-off-by: Amjad Ouled-Ameur > --- > > (no changes since v1) > > MAINTAINERS | 1 + > arch/arm

Re: [PATCH v2 6/7] arm: dts: apple: Add preliminary device trees

2021-10-11 Thread Rob Herring
On Sun, Oct 3, 2021 at 1:35 PM Mark Kettenis wrote: > > Add preliminary device trees for the Apple M1 mini (2020) and > Apple M1 Macbook Pro 13" (2020). Device tree bindings for > the Apple M1 SoC are still being formalized and these device > trees will be synchronized with the Linux kernel as ne

Re: [RFC 07/22] dm: blk: add UCLASS_PARTITION

2021-10-11 Thread Simon Glass
Hi Heinrich,, On Mon, 11 Oct 2021 at 10:53, Heinrich Schuchardt wrote: > > > > On 10/11/21 18:14, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 11 Oct 2021 at 09:02, Heinrich Schuchardt > > wrote: > >> > >> > >> > >> On 10/11/21 16:54, Simon Glass wrote: > >>> Hi Takahiro, > >>> > >>> On

[PATCH v4] board: ea: mx7ulp_com: move setting CONFIG_BOOTCOMMAND to defconfig

2021-10-11 Thread Oleksandr Suvorov
From: Ricardo Salveti Move setting CONFIG_BOOTCOMMAND to the mx7ulp_com_defconfig file. It also allows replacing the default CONFIG_BOOTCOMMAND without code modification. Signed-off-by: Ricardo Salveti Signed-off-by: Oleksandr Suvorov Reviewed-by: Fabio Estevam Reviewed-by: Tom Rini --- Cha

[PATCH v3] board: ea: mx7ulp_com: move setting CONFIG_BOOTCOMMAND to defconfig

2021-10-11 Thread Oleksandr Suvorov
From: Ricardo Salveti Move setting CONFIG_BOOTCOMMAND to the mx7ulp_com_defconfig file. It also allows replacing the default CONFIG_BOOTCOMMAND without code modification. Signed-off-by: Ricardo Salveti Signed-off-by: Oleksandr Suvorov --- Changes in v3: - rebased on top of 49c8ef0e45 ("Conver

Re: [PATCH v2 7/7] doc: board: apple: Add Apple M1 documentation

2021-10-11 Thread Simon Glass
On Sun, 3 Oct 2021 at 12:35, Mark Kettenis wrote: > > Provide preliminary instructions on how to get U-Boot to run on > Apple Silicon Macs. > > Signed-off-by: Mark Kettenis > --- > doc/board/apple/index.rst | 9 +++ > doc/board/apple/m1.rst| 56 +++ >

Re: [PATCH v2 6/7] arm: dts: apple: Add preliminary device trees

2021-10-11 Thread Simon Glass
On Sun, 3 Oct 2021 at 12:34, Mark Kettenis wrote: > > Add preliminary device trees for the Apple M1 mini (2020) and > Apple M1 Macbook Pro 13" (2020). Device tree bindings for > the Apple M1 SoC are still being formalized and these device > trees will be synchronized with the Linux kernel as need

Re: [PATCH v2 4/7] serial: s5p: Add Apple M1 support

2021-10-11 Thread Simon Glass
Hi Mark, On Sun, 3 Oct 2021 at 12:33, Mark Kettenis wrote: > > Apple M1 SoCs include an S5L UART which is a variant of the S5P > UART. Add support for this variant and enable it by default > on Apple SoCs. > > Signed-off-by: Mark Kettenis > --- > arch/arm/Kconfig| 1 + >

Re: [PATCH v2 5/7] iommu: Add Apple DART driver

2021-10-11 Thread Simon Glass
On Sun, 3 Oct 2021 at 12:34, Mark Kettenis wrote: > > The DART is an IOMMU that is used on Apple's M1 SoC. This driver > configures the DART such that it operates in bypass mode which is > enough to support DMA for the USB3 ports integrated on the SoC. > > Signed-off-by: Mark Kettenis > --- > a

Re: [PATCH v2 3/7] arm: apple: Add initial support for Apple's M1 SoC

2021-10-11 Thread Simon Glass
On Sun, 3 Oct 2021 at 12:32, Mark Kettenis wrote: > > Add support for Apple's M1 SoC that is used in "Apple Silicon" > Macs. This builds a basic U-Boot that can be used as a payload > for the m1n1 boot loader being developed by the Asahi Linux > project. > > Signed-off-by: Mark Kettenis > --- >

Re: [PATCH v2 2/7] test: Add tests for IOMMU uclass

2021-10-11 Thread Simon Glass
On Sun, 3 Oct 2021 at 12:31, Mark Kettenis wrote: > > Add a set of tests for the IOMMU uclass. > > Signed-off-by: Mark Kettenis > --- > arch/sandbox/dts/test.dts | 6 ++ > configs/sandbox64_defconfig| 1 + > configs/sandbox_defconfig | 1 + > configs/sandbox_flat

Re: [PATCH v2 0/7] Apple M1 Support

2021-10-11 Thread Simon Glass
Hi Mark, On Sun, 3 Oct 2021 at 12:31, Mark Kettenis wrote: > > This series adds basic support for Apple's M1 SoC to U-Boot. > This builds a basic U-Boot that can be used as a payload > for the m1n1 boot loader being developed by the Asahi Linux > project. > > The goal here is to privide an UEFI i

Re: [PATCH v2 1/7] iommu: Add IOMMU uclass

2021-10-11 Thread Simon Glass
Hi Mark, On Sun, 3 Oct 2021 at 12:31, Mark Kettenis wrote: > > This uclass is intended to manage IOMMUs on systems where the > IOMMUs are not in bypass mode by default. In that case U-Boot > cannot ignore the IOMMUs if it wants to use devices that need > to do DMA and sit behind such an IOMMU. >

Re: [PATCH v3 7/7] doc: board: apple: Add Apple M1 documentation

2021-10-11 Thread Simon Glass
Hi Mark, On Mon, 11 Oct 2021 at 10:40, Mark Kettenis wrote: > > Provide preliminary instructions on how to get U-Boot to run on > Apple Silicon Macs. > Please can you add a change log to this patch? Patman will do it for you. > Signed-off-by: Mark Kettenis > --- > doc/board/apple/index.rst |

Re: Broken build with disabling OpenSSL crypto

2021-10-11 Thread Alex G.
On 10/10/21 6:06 AM, Jernej Škrabec wrote: Dne četrtek, 07. oktober 2021 ob 00:05:24 CEST je Alex G. napisal(a): Can you please give the following diff a try, and if it works for you, submit as patch? This works, I'll submit it as a patch. Should I keep you as original author and add your SoB

Re: [RFC 07/22] dm: blk: add UCLASS_PARTITION

2021-10-11 Thread Heinrich Schuchardt
On 10/11/21 18:14, Simon Glass wrote: Hi Heinrich, On Mon, 11 Oct 2021 at 09:02, Heinrich Schuchardt wrote: On 10/11/21 16:54, Simon Glass wrote: Hi Takahiro, On Sun, 10 Oct 2021 at 20:29, AKASHI Takahiro wrote: Heinrich, On Fri, Oct 08, 2021 at 10:23:52AM +0200, Heinrich Schuchard

[PATCH v3 7/7] doc: board: apple: Add Apple M1 documentation

2021-10-11 Thread Mark Kettenis
Provide preliminary instructions on how to get U-Boot to run on Apple Silicon Macs. Signed-off-by: Mark Kettenis --- doc/board/apple/index.rst | 9 +++ doc/board/apple/m1.rst| 56 +++ doc/board/index.rst | 1 + 3 files changed, 66 insertions(+)

[PATCH v3 6/7] arm: dts: apple: Add preliminary device trees

2021-10-11 Thread Mark Kettenis
Add preliminary device trees for the Apple M1 mini (2020) and Apple M1 Macbook Pro 13" (2020). Device tree bindings for the Apple M1 SoC are still being formalized and these device trees will be synchronized with the Linux kernel as needed. These device trees are provided as a reference only as U

[PATCH v3 4/7] serial: s5p: Add Apple M1 support

2021-10-11 Thread Mark Kettenis
Apple M1 SoCs include an S5L UART which is a variant of the S5P UART. Add support for this variant and enable it by default on Apple SoCs. Signed-off-by: Mark Kettenis --- arch/arm/Kconfig| 1 + arch/arm/include/asm/arch-m1/uart.h | 41 +++ configs/apple_m1_defcon

[PATCH v3 5/7] iommu: Add Apple DART driver

2021-10-11 Thread Mark Kettenis
The DART is an IOMMU that is used on Apple's M1 SoC. This driver configures the DART such that it operates in bypass mode which is enough to support DMA for the USB3 ports integrated on the SoC. Signed-off-by: Mark Kettenis --- arch/arm/Kconfig | 1 + drivers/iommu/Kconfig | 10

[PATCH v3 2/7] test: Add tests for IOMMU uclass

2021-10-11 Thread Mark Kettenis
Add a set of tests for the IOMMU uclass. Signed-off-by: Mark Kettenis --- arch/sandbox/dts/test.dts | 6 ++ configs/sandbox64_defconfig| 1 + configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + configs/sandbox_noinst_defconfig | 1 + co

[PATCH v3 3/7] arm: apple: Add initial support for Apple's M1 SoC

2021-10-11 Thread Mark Kettenis
Add support for Apple's M1 SoC that is used in "Apple Silicon" Macs. This builds a basic U-Boot that can be used as a payload for the m1n1 boot loader being developed by the Asahi Linux project. Signed-off-by: Mark Kettenis --- arch/arm/Kconfig| 21 arch/arm/Makefile

[PATCH v3 1/7] iommu: Add IOMMU uclass

2021-10-11 Thread Mark Kettenis
This uclass is intended to manage IOMMUs on systems where the IOMMUs are not in bypass mode by default. In that case U-Boot cannot ignore the IOMMUs if it wants to use devices that need to do DMA and sit behind such an IOMMU. This initial IOMMU uclass implementation does not implement and device

[PATCH v3 0/7] Apple M1 Support

2021-10-11 Thread Mark Kettenis
This series adds basic support for Apple's M1 SoC to U-Boot. This builds a basic U-Boot that can be used as a payload for the m1n1 boot loader being developed by the Asahi Linux project. The goal here is to privide an UEFI interface on these machines that allows booting various open source OSes.

Re: [PATCH 1/2] arm: mvebu: Implement the mac command (Marvell hw_info)

2021-10-11 Thread Luka Kovacic
Hello Marek, > These differences between Marvell's version and U-Boot's standard > environment version can be specified in device-tree (via compatible or > other properties) and handled by one driver. > > A driver for nvmem provider of standard U-Boot env could have this > binding (with "denx,u-bo

Re: [RFC 01/22] part: call part_init() in blk_get_device_by_str() only for MMC

2021-10-11 Thread Simon Glass
Hi Heinrich, On Mon, 11 Oct 2021 at 09:09, Heinrich Schuchardt wrote: > > > > On 10/11/21 16:32, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 11 Oct 2021 at 04:07, Heinrich Schuchardt > > wrote: > >> > >> > >> > >> On 10/1/21 13:48, Peter Robinson wrote: > >>> On Fri, Oct 1, 2021 at 6:03

Re: [RFC 07/22] dm: blk: add UCLASS_PARTITION

2021-10-11 Thread Simon Glass
Hi Heinrich, On Mon, 11 Oct 2021 at 09:02, Heinrich Schuchardt wrote: > > > > On 10/11/21 16:54, Simon Glass wrote: > > Hi Takahiro, > > > > On Sun, 10 Oct 2021 at 20:29, AKASHI Takahiro > > wrote: > >> > >> Heinrich, > >> > >> On Fri, Oct 08, 2021 at 10:23:52AM +0200, Heinrich Schuchardt wrote:

Re: [RFC 12/22] dm: add a hidden link to efi object

2021-10-11 Thread Simon Glass
Hi Heinrich, On Mon, 11 Oct 2021 at 09:31, Heinrich Schuchardt wrote: > > > > On 10/11/21 16:54, Simon Glass wrote: > > Hi Takahiro, > > > > On Mon, 11 Oct 2021 at 00:43, AKASHI Takahiro > > wrote: > >> > >> Simon, > >> > >> On Sun, Oct 10, 2021 at 08:14:18AM -0600, Simon Glass wrote: > >>> Hi T

Re: A38x: Broken Linux kernel booting over UART

2021-10-11 Thread Pali Rohár
On Monday 11 October 2021 10:45:44 Tom Rini wrote: > On Mon, Oct 11, 2021 at 04:33:44PM +0200, Pali Rohár wrote: > > On Monday 11 October 2021 10:32:22 Tom Rini wrote: > > > On Mon, Oct 11, 2021 at 04:25:48PM +0200, Pali Rohár wrote: > > > > On Monday 11 October 2021 10:03:21 Tom Rini wrote: > > >

Re: [RFC 12/22] dm: add a hidden link to efi object

2021-10-11 Thread Heinrich Schuchardt
On 10/11/21 16:54, Simon Glass wrote: Hi Takahiro, On Mon, 11 Oct 2021 at 00:43, AKASHI Takahiro wrote: Simon, On Sun, Oct 10, 2021 at 08:14:18AM -0600, Simon Glass wrote: Hi Takahiro, On Thu, 30 Sept 2021 at 23:04, AKASHI Takahiro wrote: This member field in udevice will be used to

[PATCHv2] tools: Stop re-defining -std= when building tools

2021-10-11 Thread Tom Rini
While we intentionally set -std=gnu11 for building host tools, and have for quite some time, we never dropped -std=gnu99 from tools/Makefile. This resulted in passing -std=gnu11 ... -std=gnu99 when building, and gnu99 would win. This in turn would result now in warnings such as: tools/mkeficapsule

Re: [PATCH] tools: Stop re-defining -std= when building tools

2021-10-11 Thread Tom Rini
On Mon, Oct 11, 2021 at 08:44:09AM -0400, Tom Rini wrote: > On Mon, Oct 11, 2021 at 11:21:49AM +0800, Bin Meng wrote: > > On Mon, Oct 11, 2021 at 3:23 AM Tom Rini wrote: > > > > > > While we intentionally set -std=gnu11 for building host tools, and have > > > for quite some time, we never dropped

Re: [RFC 01/22] part: call part_init() in blk_get_device_by_str() only for MMC

2021-10-11 Thread Heinrich Schuchardt
On 10/11/21 16:32, Simon Glass wrote: Hi Heinrich, On Mon, 11 Oct 2021 at 04:07, Heinrich Schuchardt wrote: On 10/1/21 13:48, Peter Robinson wrote: On Fri, Oct 1, 2021 at 6:03 AM AKASHI Takahiro wrote: In blk_get_device_by_str(), the comment says: "Updates the partition table for the

Re: [RFC 07/22] dm: blk: add UCLASS_PARTITION

2021-10-11 Thread Heinrich Schuchardt
On 10/11/21 16:54, Simon Glass wrote: Hi Takahiro, On Sun, 10 Oct 2021 at 20:29, AKASHI Takahiro wrote: Heinrich, On Fri, Oct 08, 2021 at 10:23:52AM +0200, Heinrich Schuchardt wrote: On 10/8/21 02:51, AKASHI Takahiro wrote: On Mon, Oct 04, 2021 at 12:27:59PM +0900, AKASHI Takahiro wro

Re: [RFC 07/22] block: ide: call device_probe() after scanning

2021-10-11 Thread Simon Glass
Hi Takahiro, On Sun, 10 Oct 2021 at 19:43, AKASHI Takahiro wrote: > > On Sun, Oct 10, 2021 at 08:14:13AM -0600, Simon Glass wrote: > > On Thu, 30 Sept 2021 at 23:03, AKASHI Takahiro > > wrote: > > > > > > Every time an ide bus/port is scanned and a new device is detected, > > > we want to call d

Re: [RFC 07/22] dm: blk: add UCLASS_PARTITION

2021-10-11 Thread Simon Glass
Hi Takahiro, On Sun, 10 Oct 2021 at 20:29, AKASHI Takahiro wrote: > > Heinrich, > > On Fri, Oct 08, 2021 at 10:23:52AM +0200, Heinrich Schuchardt wrote: > > > > > > On 10/8/21 02:51, AKASHI Takahiro wrote: > > > On Mon, Oct 04, 2021 at 12:27:59PM +0900, AKASHI Takahiro wrote: > > > > On Fri, Oct

Re: [RFC 14/22] dm: blk: call efi's device-probe hook

2021-10-11 Thread Simon Glass
Hi Takahiro, On Sun, 10 Oct 2021 at 21:15, AKASHI Takahiro wrote: > > Hi Simon, > > On Sun, Oct 10, 2021 at 08:14:23AM -0600, Simon Glass wrote: > > Hi Takahiro, > > > > On Thu, 30 Sept 2021 at 23:04, AKASHI Takahiro > > wrote: > > > > > > Adding this callback function, efi_disk_create() in bloc

Re: [PATCH 1/1] doc: add python3-pkg-resources to build dependencies

2021-10-11 Thread Simon Glass
On Mon, 11 Oct 2021 at 07:02, Heinrich Schuchardt wrote: > > tools/binman/control.py imports Python package pkg_resources. > > Signed-off-by: Heinrich Schuchardt > --- > doc/build/gcc.rst | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Simon Glass

Re: [PATCH v4 04/11] tools: add fdtsig.sh

2021-10-11 Thread Simon Glass
Hi Takahiro, On Thu, 7 Oct 2021 at 00:25, AKASHI Takahiro wrote: > > With this script, a public key is added to a device tree blob > as the default efi_get_public_key_data() expects. > > Signed-off-by: AKASHI Takahiro > --- > MAINTAINERS | 1 + > tools/fdtsig.sh | 40 ++

Re: [PATCH v4 01/11] Revert "Revert "mkeficapsule: Remove dtb related options""

2021-10-11 Thread Simon Glass
Hi Takahiro, Ilias, On Sun, 10 Oct 2021 at 18:29, AKASHI Takahiro wrote: > > On Fri, Oct 08, 2021 at 10:11:59PM +0300, Ilias Apalodimas wrote: > > Hi Simon, > > > > On Fri, Oct 08, 2021 at 09:38:11AM -0600, Simon Glass wrote: > > > Hi Takahiro, > > > > > > On Thu, 7 Oct 2021 at 00:24, AKASHI Taka

Re: [RFC 14/22] efi_loader: disk: a helper function to create efi_disk objects from udevice

2021-10-11 Thread Simon Glass
Hi Takahiro, On Mon, 11 Oct 2021 at 00:52, AKASHI Takahiro wrote: > > On Sun, Oct 10, 2021 at 08:14:21AM -0600, Simon Glass wrote: > > On Thu, 30 Sept 2021 at 23:04, AKASHI Takahiro > > wrote: > > > > > > Add efi_disk_create() function. > > > > > > Any UEFI handle created by efi_disk_create() ca

Re: [RFC 12/22] dm: add a hidden link to efi object

2021-10-11 Thread Simon Glass
Hi Takahiro, On Mon, 11 Oct 2021 at 00:43, AKASHI Takahiro wrote: > > Simon, > > On Sun, Oct 10, 2021 at 08:14:18AM -0600, Simon Glass wrote: > > Hi Takahiro, > > > > On Thu, 30 Sept 2021 at 23:04, AKASHI Takahiro > > wrote: > > > > > > This member field in udevice will be used to dereference fr

Re: A38x: Broken Linux kernel booting over UART

2021-10-11 Thread Tom Rini
On Mon, Oct 11, 2021 at 04:33:44PM +0200, Pali Rohár wrote: > On Monday 11 October 2021 10:32:22 Tom Rini wrote: > > On Mon, Oct 11, 2021 at 04:25:48PM +0200, Pali Rohár wrote: > > > On Monday 11 October 2021 10:03:21 Tom Rini wrote: > > > > On Mon, Oct 11, 2021 at 12:13:29PM +0200, Pali Rohár wrot

Re: A38x: Broken Linux kernel booting over UART

2021-10-11 Thread Pali Rohár
On Monday 11 October 2021 10:32:22 Tom Rini wrote: > On Mon, Oct 11, 2021 at 04:25:48PM +0200, Pali Rohár wrote: > > On Monday 11 October 2021 10:03:21 Tom Rini wrote: > > > On Mon, Oct 11, 2021 at 12:13:29PM +0200, Pali Rohár wrote: > > > > > > > Hello! > > > > > > > > Current U-Boot master has

Re: [RFC 01/22] part: call part_init() in blk_get_device_by_str() only for MMC

2021-10-11 Thread Simon Glass
Hi Heinrich, On Mon, 11 Oct 2021 at 04:07, Heinrich Schuchardt wrote: > > > > On 10/1/21 13:48, Peter Robinson wrote: > > On Fri, Oct 1, 2021 at 6:03 AM AKASHI Takahiro > > wrote: > >> > >> In blk_get_device_by_str(), the comment says: "Updates the partition table > >> for the specified hw parti

Re: A38x: Broken Linux kernel booting over UART

2021-10-11 Thread Tom Rini
On Mon, Oct 11, 2021 at 04:25:48PM +0200, Pali Rohár wrote: > On Monday 11 October 2021 10:03:21 Tom Rini wrote: > > On Mon, Oct 11, 2021 at 12:13:29PM +0200, Pali Rohár wrote: > > > > > Hello! > > > > > > Current U-Boot master has broken booting of Linux kernel over UART on > > > A38x. > > > >

Re: A38x: Broken Linux kernel booting over UART

2021-10-11 Thread Pali Rohár
On Monday 11 October 2021 10:03:21 Tom Rini wrote: > On Mon, Oct 11, 2021 at 12:13:29PM +0200, Pali Rohár wrote: > > > Hello! > > > > Current U-Boot master has broken booting of Linux kernel over UART on > > A38x. > > > > After transferring image over UART it just prints: > > > > CACHE: Misalig

Re: [PATCH] efi_loader: Fix loaded image alignment

2021-10-11 Thread Ilias Apalodimas
On Mon, 11 Oct 2021 at 17:07, Ard Biesheuvel wrote: > > On Mon, 11 Oct 2021 at 15:51, Ilias Apalodimas > wrote: > > > > Hi Heinrich, > > > > On Mon, 11 Oct 2021 at 16:45, Heinrich Schuchardt > > wrote: > > > > > > > > > > > > On 10/11/21 14:10, Ilias Apalodimas wrote: > > > > We are ignoring the

Re: [PATCH] efi_loader: Fix loaded image alignment

2021-10-11 Thread Ard Biesheuvel
On Mon, 11 Oct 2021 at 15:51, Ilias Apalodimas wrote: > > Hi Heinrich, > > On Mon, 11 Oct 2021 at 16:45, Heinrich Schuchardt > wrote: > > > > > > > > On 10/11/21 14:10, Ilias Apalodimas wrote: > > > We are ignoring the alignment communicated via the PE/COFF header. > > > Starting 5.10 the Linux k

Re: A38x: Broken Linux kernel booting over UART

2021-10-11 Thread Tom Rini
On Mon, Oct 11, 2021 at 12:13:29PM +0200, Pali Rohár wrote: > Hello! > > Current U-Boot master has broken booting of Linux kernel over UART on > A38x. > > After transferring image over UART it just prints: > > CACHE: Misaligned operation at range [0100, 014e5d96] > ## Total Size = 0x00

Re: [PATCH 2/2] arm64: lmb: Reserve U-Boot separately if relocation is disabled

2021-10-11 Thread Tom Rini
On Sun, Oct 10, 2021 at 11:52:09PM +0200, marek.va...@gmail.com wrote: > From: Marek Vasut > > In case U-Boot starts with GD_FLG_SKIP_RELOC, the U-Boot code is > not relocated, however the stack and heap is at the end of DRAM > after relocation. Reserve a LMB area for the non-relocated U-Boot > c

Re: [PATCH] efi_loader: Fix loaded image alignment

2021-10-11 Thread Ilias Apalodimas
Hi Heinrich, On Mon, 11 Oct 2021 at 16:45, Heinrich Schuchardt wrote: > > > > On 10/11/21 14:10, Ilias Apalodimas wrote: > > We are ignoring the alignment communicated via the PE/COFF header. > > Starting 5.10 the Linux kernel will loudly complain about it. For more > > details look at [1] (in li

Re: [PATCH] efi_loader: Fix loaded image alignment

2021-10-11 Thread Heinrich Schuchardt
On 10/11/21 14:10, Ilias Apalodimas wrote: We are ignoring the alignment communicated via the PE/COFF header. Starting 5.10 the Linux kernel will loudly complain about it. For more details look at [1] (in linux kernel). So add a function that can allocate aligned EFI memory and use it for our

[PATCH 1/1] doc: add python3-pkg-resources to build dependencies

2021-10-11 Thread Heinrich Schuchardt
tools/binman/control.py imports Python package pkg_resources. Signed-off-by: Heinrich Schuchardt --- doc/build/gcc.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst index 0cdc307d57..8fcc7ab34b 100644 --- a/doc/build/gcc.rst +++ b

Re: [PATCH] tools: Stop re-defining -std= when building tools

2021-10-11 Thread Tom Rini
On Mon, Oct 11, 2021 at 11:21:49AM +0800, Bin Meng wrote: > On Mon, Oct 11, 2021 at 3:23 AM Tom Rini wrote: > > > > While we intentionally set -std=gnu11 for building host tools, and have > > for quite some time, we never dropped -std=gnu99 from tools/Makefile. > > This resulted in passing -std=gn

[PATCH] configs: am335x_evm: enable CONFIG_CLK_TI_CTRL

2021-10-11 Thread Amjad Ouled-Ameur
This enables the clock controller driver support on TI's SoCs. This will fix this GPIO issue at boot time: request_and_set_gpio: Unable to request GPIO_PR1_MII_CTRL request_and_set_gpio: Unable to request GPIO_MUX_MII_CTRL request_and_set_gpio: Unable to request GPIO_FET_SWITCH_CTRL request_and_set

[PATCH] efi_loader: Fix loaded image alignment

2021-10-11 Thread Ilias Apalodimas
We are ignoring the alignment communicated via the PE/COFF header. Starting 5.10 the Linux kernel will loudly complain about it. For more details look at [1] (in linux kernel). So add a function that can allocate aligned EFI memory and use it for our relocated loaded image. [1] c32ac11da3f83 ("ef

Re: [PATCH] efi_loader: Handle GD_FLG_SKIP_RELOC

2021-10-11 Thread Heinrich Schuchardt
On 10/10/21 23:48, marek.va...@gmail.com wrote: From: Marek Vasut In case U-Boot starts with GD_FLG_SKIP_RELOC, the efi loader relocation code breaks down because it assumes gd->relocaddr points to relocated U-Boot code, which is not the case. Add special case for handling GD_FLG_SKIP_RELOC,

Re: [PATCH v1] driver: spi: add bcm iproc qspi support.

2021-10-11 Thread Bharat Gooty
+ Roman Thanks for the review Jagan. Will look and get back to you. Thanks, -Bharat On Fri, Oct 8, 2021 at 5:57 PM Jagan Teki wrote: > On Wed, Aug 25, 2021 at 6:55 PM Bharat Kumar Reddy Gooty > wrote: > > > > From: Rayagonda Kokatanur > > > > IPROC qspi driver supports both BSPI and MSPI mode

Re: [PATCH 1/2] arm: mvebu: Implement the mac command (Marvell hw_info)

2021-10-11 Thread Marek Behún
On Mon, 11 Oct 2021 12:19:07 +0200 Luka Kovacic wrote: > Hello Pali, > > > Something like this? compatible = "marvell,hw-info" > > This compatible string looks good to me. > We will send a new patch version, which implements the discussed DT > functionality. > > > > I am sure Luka knows more

Re: [PATCH 1/2] arm: mvebu: Implement the mac command (Marvell hw_info)

2021-10-11 Thread Luka Kovacic
Hello Pali, > Something like this? compatible = "marvell,hw-info" This compatible string looks good to me. We will send a new patch version, which implements the discussed DT functionality. > > I am sure Luka knows more about the format than me. The Marvell hw_info partition is very similar to

A38x: Broken Linux kernel booting over UART

2021-10-11 Thread Pali Rohár
Hello! Current U-Boot master has broken booting of Linux kernel over UART on A38x. After transferring image over UART it just prints: CACHE: Misaligned operation at range [0100, 014e5d96] ## Total Size = 0x004e5d96 = 5135766 Bytes ## Start Addr = 0x0100 Kernel image @ 0x100

  1   2   >