[PATCH v3 3/5] board: sl28: enable EFI UpdateCapsule support

2021-09-29 Thread Michael Walle
Enable support for update over EFI UpdateCapsule mechanism. This board doesn't support setting EFI variables after ExitBootservices(). Therefore, we are also enabling EFI_IGNORE_OSINDICATIONS. Signed-off-by: Michael Walle --- changes since v2: - use CONFIG_EFI_CAPSULE_FIRMWARE_FIT instead

[PATCH v3 5/5] board: sl28: add update image documentation

2021-09-29 Thread Michael Walle
Document the update image and how to use the EFI UpdateCapsule. Signed-off-by: Michael Walle --- changes since v2: - none changes since v1: - new patch doc/board/kontron/sl28.rst | 15 +++ 1 file changed, 15 insertions(+) diff --git a/doc/board/kontron/sl28.rst b/doc/board

Re: Driver model at UEFI runtime

2021-09-30 Thread Michael Walle
Am 2021-09-30 08:56, schrieb Heinrich Schuchardt: On 9/30/21 8:23 AM, François Ozog wrote: [..] Is U-Boot's UEFI loader implementation supposed to be the recommended UEFI firmware on ARM and RISC-V on a production / deployment system? For Arm: yes, that is SystemReady spec. For

Re: Driver model at UEFI runtime

2021-09-30 Thread Michael Walle
Am 2021-09-30 12:50, schrieb Heinrich Schuchardt: Am 30. September 2021 11:53:47 MESZ schrieb Michael Walle : Am 2021-09-30 08:56, schrieb Heinrich Schuchardt: On 9/30/21 8:23 AM, François Ozog wrote: [..] Is U-Boot's UEFI loader implementation supposed to be the recommended UEFI

Re: Driver model at UEFI runtime

2021-09-30 Thread Michael Walle
[adding Vladimir, because he showed interest in this, too] Am 2021-09-30 15:56, schrieb François Ozog: On Thu, 30 Sept 2021 at 14:07, Michael Walle wrote: Am 2021-09-30 12:50, schrieb Heinrich Schuchardt: Am 30. September 2021 11:53:47 MESZ schrieb Michael Walle : Am 2021-09-30 08:56

Re: Driver model at UEFI runtime

2021-09-30 Thread Michael Walle
Am 2021-09-30 17:47, schrieb François Ozog: On Thu, 30 Sept 2021 at 17:12, Michael Walle wrote: [adding Vladimir, because he showed interest in this, too] Am 2021-09-30 15:56, schrieb François Ozog: On Thu, 30 Sept 2021 at 14:07, Michael Walle wrote: Am 2021-09-30 12:50, schrieb

Re: [PATCH] cmd: sf: Support unaligned flash updates with 'sf update'

2021-09-30 Thread Michael Walle
Am 2021-09-30 18:19, schrieb Frieder Schrempf: In order to support unaligned updates, we simply read the first full block and check only the requested part of the block for changes. If necessary, the block is erased, the first (unchanged) part of the block is written back together with the

Re: Driver model at UEFI runtime

2021-09-30 Thread Michael Walle
With SystemReady, DT from distros are ignored. Err? Is this really true, I know about some incompatible changes to the device tree which prevents you from using usb (or even a kernel panic) with the imx8mm and I know that on the ls1028a flexspi wont work if the devicetree doesn't match the

Re: [PATCH] cmd: sf: Support unaligned flash updates with 'sf update'

2021-09-30 Thread Michael Walle
Am 2021-09-30 19:17, schrieb Frieder Schrempf: On 30.09.21 18:35, Michael Walle wrote: Am 2021-09-30 18:19, schrieb Frieder Schrempf: In order to support unaligned updates, we simply read the first full block and check only the requested part of the block for changes. If necessary, the block

Re: [PATCH] cmd: sf: Support unaligned flash updates with 'sf update'

2021-09-30 Thread Michael Walle
Am 2021-09-30 18:19, schrieb Frieder Schrempf: From: Frieder Schrempf Currently 'sf update' supports only offsets that are aligned to the erase block size of the serial flash. Unaligned offsets result in something like: => sf update ${kernel_addr_r} 0x400 ${filesize} device 0 offset 0x400,

Re: Driver model at UEFI runtime

2021-09-30 Thread Michael Walle
Am 2021-10-01 00:20, schrieb François Ozog: Le ven. 1 oct. 2021 à 00:00, Michael Walle a écrit : With SystemReady, DT from distros are ignored. Err? Is this really true, I know about some incompatible changes to the device tree which prevents you from using usb (or even a kernel panic

Re: [PATCH v2 6/6] arm: dts: ls1088a: change dwc3 compatible to match dwc3-generic driver

2021-10-03 Thread Michael Walle
> Benefit is, besides host mode, now user can choose device mode with > setting of dr_mode = ?peripheral?; > > Signed-off-by: Ran Wang > --- > Change in v2: > - Remove property 'snps,dis_rxdet_inp3_quirk' due to its side effect to Linux >kernel (USB device no detected) > >

Re: [PATCH] cmd: sf: Support unaligned flash updates with 'sf update'

2021-10-04 Thread Michael Walle
Am 2021-10-04 12:31, schrieb Frieder Schrempf: On 30.09.21 23:08, Michael Walle wrote: Printing a warning might scare users, though. I'd prefer to fix the online help, where only "erase and write" is mentioned. Which document are you referring to? I don't really see the &qu

[PATCH v4 17/29] watchdog: sp805_wdt: use correct compatible string

2021-10-05 Thread Michael Walle
According to the linux device tree specification the compatible string is: compatible = "arm,sp805", "arm,primecell"; Fix all users in u-boot. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 2 +- arch/arm/dts/hi3660.dtsi | 4 ++-- drivers/watch

[PATCH v4 15/29] arm: dts: ls1028a: move the iRC node and its devices into /soc

2021-10-05 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. While at it fix the indentation. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 202

[PATCH v4 11/29] arm: dts: ls1028a: move the GPIO controller nodes into /soc

2021-10-05 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 66 +-- 1 file changed, 33

[PATCH v4 18/29] spi: fsl_dspi: add new compatible fsl, ls1021a-v1.0-dspi

2021-10-05 Thread Michael Walle
e the endianness is determined by the little-endian property and not by the compatible string itself. Further, we won't need and specific details on the DMA configuration (which is different on the LS1021A). If it's ever needed, we can later add the more specific "fsl,ls1028a-dspi" compatibl

[PATCH v4 05/29] arm: dts: ls1028a: move the clockgen node into /soc

2021-10-05 Thread Michael Walle
Populate the /soc node with the first device node. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/dts/fsl-ls1028a.dtsi b/arch/arm/dts/fsl-ls1028a.dtsi index

[PATCH v4 06/29] arm: dts: ls1028a: move I2C controller nodes into /soc

2021-10-05 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- .../dts/fsl-ls1028a-qds-1xxx-sch-30842.dtsi | 2 +- .../dts/fsl-ls1028a-qds-6xxx-sch-30842.dtsi

[PATCH v4 08/29] arm: dts: ls1028a: move the SPI and eSDHC controller nodes into /soc

2021-10-05 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 116 +- 1 file changed, 58

[PATCH v4 12/29] arm: dts: ls1028a: move SATA and USB controller nodes into /soc

2021-10-05 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 50 +-- 1 file changed, 25

[PATCH v4 07/29] arm: dts: ls1028a: move the FlexSPI controller node

2021-10-05 Thread Michael Walle
While inserting it into the new location, keep it sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 26 +- 1 file changed, 13 insertions(+), 13

[PATCH v4 09/29] arm: dts: ls1028a: move the UART controller nodes into /soc

2021-10-05 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 32 1 file changed, 16 insertions

[PATCH v4 24/29] arm: dts: ls1028a: remove num-lanes in the PCIe controller nodes

2021-10-05 Thread Michael Walle
This property is unused in the layerscape PCIe controller driver and not present in the linux device tree. Remove it to be similarly. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/dts

Re: [PATCH v3 27/29] arm: dts: ls1028a: drop non-removable property from esdhc controller node

2021-10-05 Thread Michael Walle
Am 2021-09-15 12:36, schrieb Vladimir Oltean: On Wed, Sep 15, 2021 at 10:09:45AM +0200, Michael Walle wrote: I was thinking of putting it into the -u-boot.dtsi, but as there is no breakage, I didn't. Ok, but we should still put "non-removable" in the Linux dtsi soon th

[PATCH v4 04/29] arm: dts: ls1028a: add an empty /soc

2021-10-05 Thread Michael Walle
To keep the device tree similar to the linux kernel one, we need to move all CCSR related devices into the /soc node. To keep the patches easy to review, we initially add an empty /soc node and populate it piece by piece. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm

[PATCH v4 02/29] arm: dts: ls1028a: remove /memory node

2021-10-05 Thread Michael Walle
This node is some hodgepodge between the ddr controller node at SoC offset 0x108 and some static memory size of 2GiB. Remove this bogus node because it doesn't seem to be used at all. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean Tested-by: Vladimir Oltean --- arch/arm/dts/fsl

[PATCH v4 03/29] arm: dts: ls1028a-{rdb, qds}: remove dm-pre-reloc property

2021-10-05 Thread Michael Walle
Nowadays, both boards boot using the TF-A BL1/BL2 and SPL isn't used at all. The property is not needed, remove it. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a-qds.dtsi | 1 - arch/arm/dts/fsl-ls1028a-rdb.dts | 1 - 2 files changed, 2 deletions

[PATCH v4 19/29] spi: fsl_dspi: rename num-cs to spi-num-chipselects

2021-10-05 Thread Michael Walle
The official devicetree bindings specifies spi-num-chipselects as the name. Use it. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1012a.dtsi | 2 +- arch/arm/dts/fsl-ls1028a.dtsi | 6 +++--- arch/arm/dts/fsl-ls1043a.dtsi | 4 ++-- arch/arm/dts/fsl

[PATCH v4 16/29] arm: dts: ls1028a: update the labels

2021-10-05 Thread Michael Walle
Update the labels of the nodes to match the kernel ones. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean Tested-by: Vladimir Oltean --- .../dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi | 10 +++ .../fsl-ls1028a-kontron-sl28-var1-u-boot.dtsi | 2 +- .../arm/dts/fsl-ls1028a-kontron

[PATCH v4 21/29] scsi: ceva: rename the resource name to match the linux kernel one

2021-10-05 Thread Michael Walle
the linux device tree. Thus rename "ecc-addr" to "sata-ecc" and convert all the users in u-boot. While at it, also rename "sata-base" to "ahci" although its not used at all. This change doesn't affect the SATA controller on the ZynqMP. Cc: Michal Simek S

[PATCH v4 20/29] serial: lpuart: add new compatible fsl, ls1028a-lpuart

2021-10-05 Thread Michael Walle
The official ls1028a binding of the driver uses the following as compatibles: compatible = "fsl,ls1028a-lpuart"; Add the missing compatible to the driver and update the device tree. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.

[PATCH v4 22/29] usb: xhci: fsl: add new compatible fsl,ls1028a-dwc3

2021-10-05 Thread Michael Walle
mpatibles above. Cc: Bin Meng Cc: Marek Vasut Signed-off-by: Michael Walle Reviewed-by: Bin Meng --- arch/arm/dts/fsl-ls1028a.dtsi | 4 ++-- drivers/usb/host/xhci-fsl.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/fsl-ls1028a.dtsi b/arch/arm/dts/fs

[PATCH v4 23/29] pci: layerscape: add official ls1028a binding support

2021-10-05 Thread Michael Walle
u Zhiqiang Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi| 20 +-- drivers/pci/pcie_layerscape_rc.c | 61 +++- 2 files changed, 53 insertions(+), 28 deletions(-) diff --git a/arch/arm/dts/fsl-ls1028a.dtsi b/arch/arm/dts/fsl-ls1028a.

[PATCH v4 29/29] arm: dts: sl28: sync dtbs

2021-10-05 Thread Michael Walle
/20210831134013.1625527-8-mich...@walle.cc/ At the time of this writing the patches are still pending but already have Reviewed-by tags. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- .../dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi | 12 +- .../arm/dts/fsl-ls1028a-kontron-sl28-var1.dts | 31

[PATCH v4 27/29] arm: dts: ls1028a: drop non-removable property from esdhc controller node

2021-10-05 Thread Michael Walle
as present. Thus, there should be no functional change otherwise than one more register access to read the present state. The property should still be introduced in the linux device tree. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v4 00/29] arm: dts: ls1028a: sync device tree with linux

2021-10-05 Thread Michael Walle
The final diff for the sync is much nicer now ;) changes since v1: - remove u-boot,dm-pre-reloc from rdb and qds boards - fix enetc0 and enetc2 labels Michael Walle (29): armv8: ls1028a: use the official compatible string for the GPU arm: dts: ls1028a: remove /memory node arm: dts: ls1028a

[PATCH v4 01/29] armv8: ls1028a: use the official compatible string for the GPU

2021-10-05 Thread Michael Walle
ics output). Thus, instead of supporting some proprietary driver, switch over to the open source one, which also have an official device tree binding. Cc: Andy Tang Signed-off-by: Michael Walle --- For reference: https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git/commit/?

[PATCH v4 10/29] arm: dts: ls1028a: move the low-power UART nodes into /soc

2021-10-05 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 120 +- 1 file changed, 60

[PATCH v4 13/29] arm: dts: ls1028a: move the PCIe controller nodes into /soc

2021-10-05 Thread Michael Walle
While inserting them into the new location, keep them sorted by the register base offset just like in the linux kernel device tree. While at it fix the indentation. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 64

[PATCH v4 14/29] arm: dts: ls1028a: move the watchdog node into /soc

2021-10-05 Thread Michael Walle
While inserting it into the new location, keep it sorted by the register base offset just like in the linux kernel device tree. Signed-off-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff

[PATCH v4 26/29] arm: dts: ls1028a: disable the PCIe controller by default

2021-10-05 Thread Michael Walle
Disable the PCIe controllers by default, just like in the linux device tree. But there is one catch, for linux they are enabled in-place by the bootloader. Obviously, this doesn't work for the bootloader. Thus we explicitly enable the controllers in the -u-boot.dtsi files. Signed-off-by: Michael

[PATCH v4 25/29] arm: dts: ls1028a: move the PCI I/O window to match

2021-10-05 Thread Michael Walle
at 80__h (first controller) or 88__h (second controller). Signed-off-by: Michael Walle Reviewed-by: Hou Zhiqiang --- arch/arm/dts/fsl-ls1028a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/fsl-ls1028a.dtsi b/arch/arm/dts/fsl

[PATCH v4 28/29] arm: dts: ls1028a: sync the fsl-ls1028a.dtsi with linux

2021-10-05 Thread Michael Walle
-by: Michael Walle Reviewed-by: Vladimir Oltean --- arch/arm/dts/fsl-ls1028a.dtsi | 861 -- .../dt-bindings/clock/fsl,qoriq-clockgen.h| 15 + 2 files changed, 786 insertions(+), 90 deletions(-) create mode 100644 include/dt-bindings/clock/fsl,qoriq-clockgen.h

Re: [PATCH 1/1] Revert "arm64: Layerscape: Survive LPI one-way reset

2021-10-24 Thread Michael Walle
>On Mon, Sep 13, 2021 at 01:22:10PM +0530, Rayagonda Kokatanur wrote: >> On Mon, Sep 13, 2021 at 11:29 AM Priyanka Jain (OSS) >> wrote: .. >> > Tom, >> > >> > I agree that bindings patch is essential for device-tree changes. >> > But merging this patch will break Layerscape Platforms. >> > We

Re: [PATCH 1/2] fsl-layerscape: add dtb overlay feature

2021-11-29 Thread Michael Walle
Hi Sahil, Am 2021-11-29 12:55, schrieb Sahil Malhotra (OSS): Am 2021-11-17 19:11, schrieb Sahil Malhotra (OSS): Could you please add some description what this is doing and for what this is intended? To have a "DTB overlay feature", it is enough to just enable CONFIG_OF_LIBFDT_OVERLAY. I will

RE: [PATCH 1/2] fsl-layerscape: add dtb overlay feature

2021-12-16 Thread Michael Walle
iday, December 10, 2021 12:03 PM >> To: ZHIZHIKIN Andrey ; Sahil >> Malhotra (OSS) ; Michael Walle >> >> Cc: Clément Faure ; Gaurav Jain >> ; Pankaj Gupta ; Priyanka >> Jain ; u-boot@lists.denx.de; Varun Sethi >> ; Ye Li >> Subject: RE: [PA

Re: [PATCH 1/2] fsl-layerscape: add dtb overlay feature

2021-12-20 Thread Michael Walle
Hi Sahil, Am 2021-12-10 07:33, schrieb Sahil Malhotra (OSS): DT nodes can be statically disabled if we know that they are held by HAB and are not released to NS World. OP-TEE does set the status itself via dt_enable_secure_status(), which should present the properly configured FDT when U-Boot

Re: [PATCH v2 14/16] arm: dts: ls1028a-rdb: enable PCIe controllers from U-Boot dtsi

2021-12-20 Thread Michael Walle
Am 2021-12-07 21:20, schrieb Vladimir Oltean: diff --git a/arch/arm/dts/fsl-ls1028a-rdb.dts b/arch/arm/dts/fsl-ls1028a-rdb.dts index 10070eab6e61..70fcf71dbd0e 100644 --- a/arch/arm/dts/fsl-ls1028a-rdb.dts +++ b/arch/arm/dts/fsl-ls1028a-rdb.dts @@ -9,6 +9,7 @@ /dts-v1/; #include

Re: [PATCH v3 04/16] arm: dts: ls1088a-rdb: use Linux compatible string for RTC

2022-01-03 Thread Michael Walle
string that was established in Linux. Signed-off-by: Vladimir Oltean Reviewed-by: Priyanka Jain Reviewed-by: Michael Walle

Re: [PATCH v3 07/16] arm: dts: ls1028a-rdb: use Linux compatible string for RTC

2022-01-03 Thread Michael Walle
Oltean Reviewed-by: Michael Walle

Re: [PATCH v3 08/16] arm: dts: lx2160a-rdb: use Linux compatible string for RTC

2022-01-03 Thread Michael Walle
string that was established in Linux. Signed-off-by: Vladimir Oltean Reviewed-by: Priyanka Jain Reviewed-by: Michael Walle

Re: [PATCH v3 09/16] rtc: pcf2127: remove U-Boot specific compatible string

2022-01-03 Thread Michael Walle
Am 2022-01-03 13:47, schrieb Vladimir Oltean: Now that all in-tree boards have been converted to the compatible strings from Linux, delete the support for the ad-hoc "pcf2127-rtc" one. Cc: Simon Glass Signed-off-by: Vladimir Oltean Reviewed-by: Simon Glass Reviewed-by: Michael Walle

Re: [PATCH v3 15/16] arm: dts: ls1028a-rdb: sync device tree with Linux

2022-01-03 Thread Michael Walle
on the SoC device tree: dd3d936a1b17 ("arm64: dts: ls1028a: add ftm_alarm1 node to be used as wakeup source") b2e2d3e02fb6 ("arm64: dts: ls1028a-rdb: enable pwm0") These will be picked up on the next resync. Signed-off-by: Vladimir Oltean Reviewed-by: Priyanka Jain Reviewed-by: Michael Walle

Re: [PATCH v3 01/16] i2c: muxes: pca954x: add PCA9847 variant

2022-01-03 Thread Michael Walle
a9547" compatible string. Create a new compatible for the PCA9847 (which is the same as in Linux) and define the same operating parameters for it as for PCA9547. Cc: Heiko Schocher Signed-off-by: Vladimir Oltean Reviewed-by: Heiko Schocher Reviewed-by: Priyanka Jain Reviewed-by: Michael Walle

Re: [PATCH v3 03/16] arm: dts: ls1088a-qds: use Linux compatible string for RTC

2022-01-03 Thread Michael Walle
string that was established in Linux. Signed-off-by: Vladimir Oltean Reviewed-by: Priyanka Jain Reviewed-by: Michael Walle

Re: [PATCH v3 02/16] rtc: pcf2127: sync with Linux compatible strings

2022-01-03 Thread Michael Walle
-by: Vladimir Oltean Reviewed-by: Simon Glass Reviewed-by: Michael Walle

Re: [PATCH v3 06/16] arm: dts: ls1028a-qds: use Linux compatible string for RTC

2022-01-03 Thread Michael Walle
boards, and the wrong compatible string is used in both places. This change updates the RTC from the QDS to use the compatible string that was established in Linux. Signed-off-by: Vladimir Oltean Reviewed-by: Priyanka Jain Reviewed-by: Michael Walle

Re: [PATCH v3 05/16] arm: dts: lx2160a-qds: use Linux compatible string for RTC

2022-01-03 Thread Michael Walle
string that was established in Linux. Signed-off-by: Vladimir Oltean Reviewed-by: Priyanka Jain Reviewed-by: Michael Walle

Re: [PATCH v3 14/16] arm: dts: ls1028a-rdb: enable PCIe controllers from U-Boot dtsi

2022-01-03 Thread Michael Walle
dtsi for the LS1028A-RDB board. This way, the existing Linux device tree can simply be dropped in. Signed-off-by: Vladimir Oltean Reviewed-by: Michael Walle

Re: [PATCH 1/4] i2c: at91: add compatible with microchip,sama7g5-i2c

2022-01-05 Thread Michael Walle
Hi, > Add compatible and data platform struct for sama7g5 SoC. > > Signed-off-by: Eugen Hristev > --- > drivers/i2c/at91_i2c.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/i2c/at91_i2c.c b/drivers/i2c/at91_i2c.c > index 6b4c0e4804..400a3786ca 100644 > ---

Re: [PATCH 1/4] i2c: at91: add compatible with microchip,sama7g5-i2c

2022-01-05 Thread Michael Walle
Am 2022-01-05 11:37, schrieb eugen.hris...@microchip.com: On 1/5/22 12:04 PM, Michael Walle wrote: Hi, Add compatible and data platform struct for sama7g5 SoC. Signed-off-by: Eugen Hristev --- drivers/i2c/at91_i2c.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/i2c

Re: [EXT] Re: [PATCH 1/2] fsl-layerscape: add dtb overlay feature

2021-12-23 Thread Michael Walle
Hi Sahil, Am 2021-12-23 09:46, schrieb Sahil Malhotra (OSS): -Original Message- From: U-Boot On Behalf Of Michael Walle Sent: Monday, December 20, 2021 6:23 PM To: Sahil Malhotra (OSS) Cc: ZHIZHIKIN Andrey ; Clément Faure ; Gaurav Jain ; Pankaj Gupta ; Priyanka Jain ; u-boot

Re: [PATCH v2 00/16] Sync NXP LS1028A-RDB device trees between U-Boot and Linux

2021-12-23 Thread Michael Walle
Am 2021-12-23 13:44, schrieb Vladimir Oltean: On Thu, Dec 23, 2021 at 06:34:13AM +, Priyanka Jain wrote: >The Linux side of device tree patches were merged today, and I see you've >reviewed the U-Boot side of changes too. Could you please pick them up? Yes, I will pick the series as part

Re: [PATCH V2] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-01-04 Thread Michael Walle
Hi, > The imx8mm and imx8mn appear compatible with imx7d-usb > flags in the OTG driver. If the dr_mode is defined as > host or peripheral, the device appears to operate correctly, > however the auto host/peripheral detection results in an error. > > The solution isn't just adding checks for

Re: [PATCH RFC] cmd: fix net list command

2021-11-15 Thread Michael Walle
Am 2021-11-15 16:12, schrieb Tom Rini: On Mon, Nov 15, 2021 at 03:52:51PM +0100, Michael Walle wrote: Hi, Am 2021-11-15 15:31, schrieb Wolfgang Denk: > In message you wrote: > > > > And again you're masking the error and possible fixes by linux itself. > > Seems like t

Re: [PATCH RFC] cmd: fix net list command

2021-11-15 Thread Michael Walle
Hi, Am 2021-11-15 16:15, schrieb Wolfgang Denk: | And if you don't want to use this feature just don't enable it via | CONFIG_NET_RANDOM_ETHADDR. This say all, no patches needed. Yes, I'm giving up. I'll just deactivate that option then and open code it in my board. -michael

Re: [PATCH RFC] cmd: fix net list command

2021-11-15 Thread Michael Walle
Am 2021-11-15 14:57, schrieb Tom Rini: On Mon, Nov 15, 2021 at 01:24:34PM +0100, Michael Walle wrote: Am 2021-11-15 13:15, schrieb Marek Vasut: > On 11/15/21 1:11 PM, Michael Walle wrote: > > Don't get the MAC address by the environment, but by the platform data > >

Re: [PATCH RFC] cmd: fix net list command

2021-11-15 Thread Michael Walle
Hi, Am 2021-11-15 15:31, schrieb Wolfgang Denk: In message you wrote: And again you're masking the error and possible fixes by linux itself. Seems like this isn't an argument. Respecting the explicit will of the user (i. e using what he configured in U-Boot and passed to the kernel) is not

Re: [EXT] RE: [PATCH v5 11/16] crypto/fsl: Fix kick_trng

2021-11-23 Thread Michael Walle
Hi Gaurav, Am 2021-11-23 11:44, schrieb Gaurav Jain: > fix hwrng performance issue in kernel. This patch is missing some context information, specifically which performance issue does exist in the Kernel (with some quantification), and how is it addressed here. This function introduced

Re: [PATCH 1/2] fsl-layerscape: add dtb overlay feature

2021-11-17 Thread Michael Walle
Hi Sahil, Am 2021-11-17 19:11, schrieb Sahil Malhotra (OSS): Could you please add some description what this is doing and for what this is intended? To have a "DTB overlay feature", it is enough to just enable CONFIG_OF_LIBFDT_OVERLAY. I will add some description, and yes for DTB overlay

Re: [PATCH 10/10] board: sl28: disable random MAC address generation

2021-11-17 Thread Michael Walle
Am 2021-11-16 22:14, schrieb Tom Rini: On Mon, Nov 15, 2021 at 11:45:51PM +0100, Michael Walle wrote: Nowadays, u-boot (when CONFIG_NET_RANDOM_ETHADDR is set) will set enetaddr to a random value if not set and then pass the randomly generated MAC address to linux. First, for clarity I'm

Re: [RFC 0/2] Do not stop with an error when mkimage fails

2021-11-10 Thread Michael Walle
Am 2021-11-10 02:37, schrieb Tom Rini: On Wed, Nov 10, 2021 at 01:26:12AM +0100, Rasmus Villemoes wrote: On 10/11/2021 01.18, Rasmus Villemoes wrote: > On 09/11/2021 20.42, Tom Rini wrote: >> On Tue, Nov 09, 2021 at 08:21:07PM +0100, Heiko Thiery wrote: >>> Hi Wolfgang, >>> > >>> I know this is

Re: [PATCH v5 28/28] arm: dts: sl28: sync dtbs

2021-11-10 Thread Michael Walle
Am 2021-10-13 18:14, schrieb Michael Walle: Copy the board device tree files from linux v5.14. On top of the v5.14 dtbs the changes of these two patches are included here which are needed for u-boot: https://lore.kernel.org/linux-devicetree/20210831134013.1625527-7-mich...@walle.cc/ https

[PATCH 02/10] watchdog: add sl28cpld watchdog driver

2021-11-15 Thread Michael Walle
# signal. Signed-off-by: Michael Walle --- MAINTAINERS | 1 + doc/board/kontron/sl28.rst | 53 +++- drivers/watchdog/Kconfig| 7 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/sl28cpld-wdt.c | 109 5 files

[PATCH 00/10] board: sl28: add sl28cpld support and board cleanups

2021-11-15 Thread Michael Walle
nodes. The device tree binding is the same as already acked by the linux kernel. Michael Walle (10): misc: add sl28cpld base driver watchdog: add sl28cpld watchdog driver gpio: add sl28cpld driver board: sl28: fix DRAM pretty print board: sl28: print CPLD version on bootup board: sl28

[PATCH 07/10] board: sl28: enable SoC watchdog support

2021-11-15 Thread Michael Walle
The SoC provides two additional watchdogs integrated in the SoC. Enable support for these. Signed-off-by: Michael Walle --- configs/kontron_sl28_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/kontron_sl28_defconfig b/configs/kontron_sl28_defconfig index 48cf3cf5e6

[PATCH 10/10] board: sl28: disable random MAC address generation

2021-11-15 Thread Michael Walle
, because the bootloader - right now - doesn't have the ability to read the MAC address, which is stored in the OTP. But it is far more important to have a clear view of whats wrong with a board and that means we can no longer use this Kconfig option. Signed-off-by: Michael Walle --- configs

[PATCH 09/10] board: sl28: remove "Useful I2C tricks" section from docs

2021-11-15 Thread Michael Walle
They are no longer needed, because we now have proper driver support for the sl28cpld management controller. Signed-off-by: Michael Walle --- doc/board/kontron/sl28.rst | 15 --- 1 file changed, 15 deletions(-) diff --git a/doc/board/kontron/sl28.rst b/doc/board/kontron/sl28.rst

[PATCH 03/10] gpio: add sl28cpld driver

2021-11-15 Thread Michael Walle
The gpio block is part of the sl28cpld sl28cpld management controller. There are three different flavors: the usual input and output where the direction is configurable, but also input only and output only variants. Signed-off-by: Michael Walle --- MAINTAINERS | 1 + drivers

[PATCH 05/10] board: sl28: print CPLD version on bootup

2021-11-15 Thread Michael Walle
Most of the time it is very useful to have the version of the board management controller. Now that we have a driver, print it during startup. Signed-off-by: Michael Walle --- board/kontron/sl28/sl28.c | 28 include/sl28cpld.h| 2 ++ 2 files changed, 30

[PATCH 01/10] misc: add sl28cpld base driver

2021-11-15 Thread Michael Walle
Add a multi-function device driver which will probe its children and provides methods to access the device. Signed-off-by: Michael Walle --- MAINTAINERS | 5 ++ drivers/misc/Kconfig| 8 +++ drivers/misc/Makefile | 1 + drivers/misc/sl28cpld.c | 105

[PATCH 04/10] board: sl28: fix DRAM pretty print

2021-11-15 Thread Michael Walle
The current console output is: DRAM: 4 GiB DDR4 GiB (DDR3, 32-bit, CL=11, ECC on) The size is printed twice and we can save one line of console output if we join both lines. The new output is as follows: DRAM: 4 GiB (DDR3, 32-bit, CL=11, ECC on) Signed-off-by: Michael Walle --- board

[PATCH 08/10] board: sl28: disable recovery watchdog

2021-11-15 Thread Michael Walle
This board has an internal watchdog which supervises the board startup. Although, the initial state of the watchdog is configurable, it is enabled by default. In board_late_init(), which means almost everything worked as expected, disable the watchdog. Signed-off-by: Michael Walle --- board

[PATCH 06/10] board: sl28: enable sl28cpld support

2021-11-15 Thread Michael Walle
Enable the GPIO and watchdog driver. Don't start the watchdog automatically, though. Signed-off-by: Michael Walle --- configs/kontron_sl28_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/kontron_sl28_defconfig b/configs/kontron_sl28_defconfig index 31a1083b0a

Re: [EXT] Re: [PATCH v5 02/16] crypto/fsl: Add CAAM support for bkek, random number generation

2021-11-16 Thread Michael Walle
Am 2021-11-16 12:57, schrieb Gaurav Jain: >> > +int hwrng_generate(u8 *dst, u32 len) >> >> likewise. >> But more important what is the difference to drivers/crypto/fsl/rng.c? >> Why >> do you need a new function here? This one. Why can't you reuse the code which is already there? I might have

Re: [EXT] Re: [PATCH v5 02/16] crypto/fsl: Add CAAM support for bkek, random number generation

2021-11-16 Thread Michael Walle
Hi, Am 2021-11-16 12:09, schrieb Gaurav Jain: > --- a/drivers/crypto/fsl/fsl_blob.c > +++ b/drivers/crypto/fsl/fsl_blob.c > @@ -1,6 +1,7 @@ > // SPDX-License-Identifier: GPL-2.0+ > /* > * Copyright 2014 Freescale Semiconductor, Inc. > + * Copyright 2021 NXP > * > */ > > @@ -152,6

Re: [PATCH v5 02/16] crypto/fsl: Add CAAM support for bkek, random number generation

2021-11-16 Thread Michael Walle
Hi, > --- a/drivers/crypto/fsl/fsl_blob.c > +++ b/drivers/crypto/fsl/fsl_blob.c > @@ -1,6 +1,7 @@ > // SPDX-License-Identifier: GPL-2.0+ > /* > * Copyright 2014 Freescale Semiconductor, Inc. > + * Copyright 2021 NXP > * > */ > > @@ -152,6 +153,87 @@ int blob_encap(u8 *key_mod, u8 *src,

Re: [PATCH v5 01/16] crypto/fsl: Add support for CAAM Job ring driver model

2021-11-16 Thread Michael Walle
> diff --git a/cmd/Kconfig b/cmd/Kconfig > index 5b30b13e43..2b24672505 100644 > --- a/cmd/Kconfig > +++ b/cmd/Kconfig > @@ -2009,6 +2009,7 @@ config CMD_AES > > config CMD_BLOB > bool "Enable the 'blob' command" > + select FSL_BLOB this looks wrong, because CMD_BLOB sounds like a

Re: [PATCH v5 13/16] Layerscape: Enable Job ring driver model in U-Boot.

2021-11-16 Thread Michael Walle
> LS(1021/1012/1028/1043/1046/1088/2088), LX2160, LX2162 > platforms are enabled with JR driver model. > > removed sec_init() call from board files. > removed CONFIG_FSL_CAAM from defconfig files. > sec is initialized based on job ring information processed > from device tree. > > Signed-off-by:

[PATCH 4/5] armv8: psci: add ARMV8_PSCI_RELOCATE Kconfig option

2021-11-26 Thread Michael Walle
as on the LS1028A SoC where there will be PSCI support soon. Additionally, make ARMV8_PSCI and SEC_FIRMWARE_ARMV8_PSCI exclusive. Signed-off-by: Michael Walle --- arch/arm/cpu/armv8/Kconfig| 30 ++- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 2 ++ board

[PATCH 2/5] armv8: layerscape: get rid of smc_call()

2021-11-26 Thread Michael Walle
, this is only compile time tested with (ls1028ardb_tfa_defconfig). Signed-off-by: Michael Walle --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 + arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 49 +-- arch/arm/cpu/armv8/fsl-layerscape/mp.c| 11 ++--- arch/arm/cpu/armv8

[PATCH 5/5] board: sl28: add basic PSCI implementation

2021-11-26 Thread Michael Walle
For now, this only provides reset and poweroff functions. Signed-off-by: Michael Walle --- board/kontron/sl28/Makefile| 2 ++ board/kontron/sl28/psci.c | 42 ++ configs/kontron_sl28_defconfig | 2 ++ 3 files changed, 46 insertions(+) create mode

[PATCH 0/5] board: sl28: add basic PSCI implementation

2021-11-26 Thread Michael Walle
to clean that up and then we can add our three little functions for the PSCI support. Michael Walle (5): armv8: include psci_update_dt() unconditionally armv8: layerscape: get rid of smc_call() armv8: psci: skip setup code if we are not EL3 armv8: psci: add ARMV8_PSCI_RELOCATE Kconfig option

[PATCH 1/5] armv8: include psci_update_dt() unconditionally

2021-11-26 Thread Michael Walle
psci_update_dt() is also required if CONFIG_ARMV8_PSCI is set, that is, if u-boot is the PSCI provider. Guard the check which is intended to call into the PSCI implementation in the secure firmware, by the proper macro SEC_FIRMWARE_ARMV8_PSCI. Signed-off-by: Michael Walle --- arch/arm/cpu/armv8

[PATCH 3/5] armv8: psci: skip setup code if we are not EL3

2021-11-26 Thread Michael Walle
If we are running in EL2 skip PSCI implementation setup. This avoids an exception if CONFIG_ARMV8_PSCI is set, but u-boot is started by TF-A. Signed-off-by: Michael Walle --- arch/arm/cpu/armv8/cpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/cpu/armv8/cpu.c b/arch/arm/cpu

[PATCH] armv8: sec_firmware: drop unneeded ARMV8_SEC_FIRMWARE_SUPPORT check

2021-11-26 Thread Michael Walle
it. Signed-off-by: Michael Walle --- arch/arm/cpu/armv8/sec_firmware.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/arch/arm/cpu/armv8/sec_firmware.c b/arch/arm/cpu/armv8/sec_firmware.c index 267894fbcb..e62e9dc380 100644 --- a/arch/arm/cpu/armv8

[PATCH RFC] cmd: fix net list command

2021-11-15 Thread Michael Walle
Don't get the MAC address by the environment, but by the platform data of the udevice. This will fix "net list" if the MAC address is randomly generated and won't change behavior when linux is booted. Signed-off-by: Michael Walle --- Hi, this is a proposal to fix the "net

Re: [PATCH RFC] cmd: fix net list command

2021-11-15 Thread Michael Walle
Am 2021-11-15 13:15, schrieb Marek Vasut: On 11/15/21 1:11 PM, Michael Walle wrote: Don't get the MAC address by the environment, but by the platform data of the udevice. This will fix "net list" if the MAC address is randomly generated and won't change behavior when linux is boote

Re: [PATCH] net: uclass: Save ethernet MAC address when generated

2021-11-11 Thread Michael Walle
Hi Ramon, Am 2021-11-09 14:55, schrieb Michael Walle: Am 2021-11-04 22:00, schrieb Ramon Fried: What's the verdict ? We're keeping this patch ? There was a good point from Grygorii: linux might deal in its own way with missing ethernet addresses (and warn the user about it because its

<    4   5   6   7   8   9   10   11   12   >