Re: incompatible device trees between u-boot and linux

2021-08-25 Thread Michael Walle
Am 2021-08-25 16:18, schrieb Vladimir Oltean: Curious that Michael mentions Ethernet and DSA on LS1028A. [..] I mean, they look pretty similar to me? The biggest difference is that the ENETC ECAM is under the /soc node in Linux, but under / in U-Boot, as well as some BAR memory areas that

incompatible device trees between u-boot and linux

2021-08-25 Thread Michael Walle
Hi, I noticed that there is a fallback to the u-boot device tree for linux (esp. EFI boot) if no other device tree was found, see [1]. It seems this is working fine for imx devices, for example, where you can just boot a stock installer iso via EFI. It will just work and it is quite a nice

Re: [PATCH v2 8/9] arm: dts: ls1028a: sync the fsl-ls1028a.dtsi with linux

2021-09-01 Thread Michael Walle
Am 2021-09-01 12:29, schrieb Vladimir Oltean: On Wed, Sep 01, 2021 at 10:55:21AM +0200, Michael Walle wrote: - pcie1: pcie@340 { - compatible = "fsl,ls-pcie", "fsl,ls1028-pcie", "snps,dw-pcie"; -

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

2021-09-02 Thread Michael Walle
The official devicetree bindings specifies spi-num-chipselects as the name. Use it. Signed-off-by: Michael Walle --- 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-ls1046a.dtsi | 4 ++-- arch/arm/dts/fsl

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

2021-09-02 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 v3 18/29] spi: fsl_dspi: add new compatible fsl, ls1021a-v1.0-dspi

2021-09-02 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 v3 22/29] usb: xhci: fsl: add new compatible fsl,ls1028a-dwc3

2021-09-02 Thread Michael Walle
mpatibles above. Cc: Bin Meng Cc: Marek Vasut Signed-off-by: Michael Walle --- 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/fsl-ls1028a.dtsi index 34aad526f

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

2021-09-02 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 --- arch/arm/dts/fsl-ls1028a.dtsi | 64 +-- 1 file changed, 32

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

2021-09-02 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 --- arch/arm/dts/fsl-ls1028a.dtsi | 66 +-- 1 file changed, 33 insertions(+), 33 deletions(-) diff

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

2021-09-02 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 --- arch/arm/dts/fsl-ls1028a.dtsi | 116 +- 1 file changed, 58 insertions(+), 58 deletions(-) diff

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

2021-09-02 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 --- arch/arm/dts/fsl-ls1028a.dtsi | 120 +- 1 file changed, 60 insertions(+), 60 deletions(-) diff

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

2021-09-02 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 --- arch/arm/dts/fsl-ls1028a.dtsi | 50 +-- 1 file changed, 25 insertions(+), 25 deletions(-) diff

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

2021-09-02 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 --- arch/arm/dts/fsl-ls1028a.dtsi | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git

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

2021-09-02 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 --- arch/arm/dts/fsl-ls1028a-kontron-sl28-u

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

2021-09-02 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 --- .../dts/fsl-ls1028a-qds-1xxx-sch-30842.dtsi | 2 +- .../dts/fsl-ls1028a-qds-6xxx-sch-30842.dtsi | 2 +- .../dts/fsl

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

2021-09-02 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 --- arch/arm/dts/fsl-ls1028a.dtsi | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/arch

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

2021-09-02 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 --- arch/arm/dts/fsl-ls1028a-qds.dtsi | 1 - arch/arm/dts/fsl-ls1028a-rdb.dts | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm/dts/fsl

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

2021-09-02 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 v3 27/29] arm: dts: ls1028a: drop non-removable property from esdhc controller node

2021-09-02 Thread Michael Walle
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 a/arch/arm/dts/fsl-ls1028a.dtsi b

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

2021-09-02 Thread Michael Walle
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.dtsi index cc055e65e5..

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

2021-09-02 Thread Michael Walle
at 80__h (first controller) or 88__h (second controller). Signed-off-by: Michael Walle --- 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-ls1028a.dtsi index 3ef710bb3d

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

2021-09-02 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 --- arch/arm/dts/fsl-ls1028a.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/dts/fsl-ls1028a.dtsi b/arch/arm/dts

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

2021-09-02 Thread Michael Walle
- fix enetc0 and enetc2 labels Michael Walle (29): armv8: ls1028a: add IOMMU stream ID to vivante node arm: dts: ls1028a: remove /memory node arm: dts: ls1028a-{rdb,qds}: remove dm-pre-reloc property arm: dts: ls1028a: add an empty /soc arm: dts: ls1028a: move the clockgen node into /soc

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

2021-09-02 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 v3 01/29] armv8: ls1028a: add IOMMU stream ID to vivante node

2021-09-02 Thread Michael Walle
The fixup is done for the "fsl,ls1028a-gpu" which isn't any official device tree binding. Don't break it, but instead add a fixup for another compatible "vivante,gc" which is the offical one for the GPU on the LS1028A. Signed-off-by: Michael Walle --- arch/arm/cpu/

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

2021-09-02 Thread Michael Walle
Populate the /soc node with the first device node. Signed-off-by: Michael Walle --- 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 1f562cfdad..54f97014be 100644

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

2021-09-02 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 --- arch/arm/dts/fsl-ls1028a.dtsi | 202 +- 1 file changed, 103

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

2021-09-02 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 --- Vladimir, this has changed due to the sorted nodes now. It should be the same, but maybe you should retest it. .../dts/fsl-ls1028a-kontron-sl28-u

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

2021-09-02 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 v3 14/29] arm: dts: ls1028a: move the watchdog node into /soc

2021-09-02 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 --- arch/arm/dts/fsl-ls1028a.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/fsl

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

2021-09-02 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 v3 28/29] arm: dts: ls1028a: sync the fsl-ls1028a.dtsi with linux

2021-09-02 Thread Michael Walle
-by: Michael Walle --- 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 diff --git a/arch/arm/dts

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

2021-09-02 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 --- .../dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi | 12 +- .../arm/dts/fsl-ls1028a-kontron-sl28-var1.dts | 31 +-- .../fsl-ls1028a-kontron

Re: [PATCH v2 8/9] arm: dts: ls1028a: sync the fsl-ls1028a.dtsi with linux

2021-09-06 Thread Michael Walle
Am 2021-09-01 23:59, schrieb Vladimir Oltean: > As for pcie->lut itself, simplest would be to just default to what is > now the "dbi" reg value, plus a .lut_offset determined by compatible > string, in the case of "fsl,ls1028a-pcie" 0x8, just like Linux. > > Ah, and not to mention that the

[PATCH] mmc: fsl_esdhc: remove 1ms sleep in esdhc_send_cmd_common()

2021-09-10 Thread Michael Walle
it. If there will ever be any regression we can introduce a compile time flag, but for now I'd like to keep it simple. In the split off imx driver this delay was also removed in commit 9098682200e6 ("mmc: fsl_esdhc_imx: remove the 1ms delay before sending command"). Signed-off-by: Mic

[PATCH v2 1/5] board: sl28: enable EFI_SET_TIME support

2021-09-13 Thread Michael Walle
Allow EFI to actually set the time before ExitBootServices(). Signed-off-by: Michael Walle --- changes since v1: - none configs/kontron_sl28_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/kontron_sl28_defconfig b/configs/kontron_sl28_defconfig index e15928bead

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

2021-09-13 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 v1: - new patch configs/kontron_sl28_defconfig | 6

[PATCH v2 2/5] board: sl28: generate FIT update image

2021-09-13 Thread Michael Walle
Generate a FIT update image during build. The image will be called "u-boot.update" and can be used to build an EFI UpdateCapsule or during DFU mode. Although, the latter isn't supported because there is no USB OTG driver yet. Signed-off-by: Michael Walle --- changes since v1: -

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

2021-09-13 Thread Michael Walle
Document the update image and how to use the EFI UpdateCapsule. Signed-off-by: Michael Walle --- 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/kontron/sl28.rst index

[PATCH v2 4/5] doc: board: kontron: sl28: Reduce section levels and change title

2021-09-13 Thread Michael Walle
From: Frieder Schrempf In order to add other Kontron boards to the docs alongside the existing sl28 board, we need to reduce the levels of the sections and change the title. Cc: Fabio Estevam Signed-off-by: Frieder Schrempf Acked-by: Michael Walle --- Frieder, Fabio, I took the liberty

Re: [PATCH v3 01/29] armv8: ls1028a: add IOMMU stream ID to vivante node

2021-09-16 Thread Michael Walle
Am 16. September 2021 11:53:23 MESZ schrieb Vladimir Oltean : >On Thu, Sep 02, 2021 at 06:45:30PM +0200, Michael Walle wrote: >> The fixup is done for the "fsl,ls1028a-gpu" which isn't any official >> device tree binding. Don't break it, but instead add a fixup for anoth

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

2021-09-15 Thread Michael Walle
Am 2021-09-15 02:10, schrieb Vladimir Oltean: On Thu, Sep 02, 2021 at 06:45:50PM +0200, Michael Walle wrote: The driver will look for a named resource "ecc-addr", but this isn't the official binding. In fact, the official device tree binding documentation doesn't mention any reso

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

2021-09-15 Thread Michael Walle
Am 2021-09-15 02:17, schrieb Vladimir Oltean: On Thu, Sep 02, 2021 at 06:45:56PM +0200, Michael Walle wrote: The linux device tree hasn't set this property. To be similarly we remove s/similarly/similar/ it from the u-boot device tree, too. The second controller of the LS1028A has indeed

[PATCH] board: sl28: enable EFI_SET_TIME support

2021-09-08 Thread Michael Walle
Allow EFI to set the time before ExitBootServices(). 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 e15928bead..8bd7d5be4b 100644 --- a/configs

Re: [PATCH] rtc: rv8803: add epson, rx8803 and epson, rx8900 compatible

2021-09-23 Thread Michael Walle
se compatible strings are already approved in Linux (and even for the rv8803 driver in Linux, too). So we don't use different compatibles in u-boot and Linux. With that fixed: Reviewed-by: Michael Walle

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

2021-09-25 Thread Michael Walle
Am 13. September 2021 17:22:38 MESZ schrieb 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

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

2021-10-13 Thread Michael Walle
Hi Zhiqiang, thanks for looking at this patch. Am 2021-10-13 03:46, schrieb Z.Q. Hou: -Original Message- From: Michael Walle Sent: 2021年10月5日 16:38 To: u-boot@lists.denx.de Cc: Jagan Teki ; Priyanka Jain ; Vladimir Oltean ; Tom Rini ; Peter Griffin ; Manivannan Sadhasivam ; Michael

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

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

[PATCH 6/8] usb: dwc3: add layerscape support

2021-10-13 Thread Michael Walle
to be set to peripheral or host. Signed-off-by: Michael Walle --- drivers/usb/dwc3/Kconfig | 10 ++ drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/dwc3-layerscape.c | 222 + 3 files changed, 233 insertions(+) create mode 100644 drivers/usb

[PATCH 4/8] usb: dwc3: Add frame length adjustment quirk

2021-10-13 Thread Michael Walle
longer run Signed-off-by: Michael Walle --- drivers/usb/dwc3/core.c | 26 ++ drivers/usb/dwc3/core.h | 6 ++ 2 files changed, 32 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index dfd7cf683f..4fb6b59d50 100644 --- a/drivers/usb/dwc3/co

[PATCH 5/8] usb: dwc3: Enable undefined length INCR burst type

2021-10-13 Thread Michael Walle
value. Signed-off-by: Michael Walle --- drivers/usb/dwc3/core.c | 69 + drivers/usb/dwc3/core.h | 16 ++ 2 files changed, 85 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 4fb6b59d50..ce1c0e88c2 100644

[PATCH 7/8] board: sl28: switch to dwc3 driver

2021-10-13 Thread Michael Walle
Now that the DWC3 USB driver has support for the layerscape platform, use it. This will have the benefit that peripheral mode will work. Signed-off-by: Michael Walle --- configs/kontron_sl28_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs

[PATCH 8/8] board: sl28: enable USB periheral support and gadgets

2021-10-13 Thread Michael Walle
will hopefully coming soon. Signed-off-by: Michael Walle --- configs/kontron_sl28_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/kontron_sl28_defconfig b/configs/kontron_sl28_defconfig index 5b3ba58d39..0da31a4e54 100644 --- a/configs/kontron_sl28_defconfig +++ b/configs

[PATCH v5 26/28] arm: dts: ls1028a: disable the PCIe controller by default

2021-10-13 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 0/8] usb: dwc3: add Layerscape SoC support

2021-10-13 Thread Michael Walle
it on the Kontron SL28 board, where both host and peripheral mode was tested. OTG mode is not supported. For this to work, one would need to read the hardware status of the OTG pin in the bind() op. But it isn't allowed to access the hardware in the bind() op (if I understand Simon correctly). Michael Walle

[PATCH 3/8] usb: common: silence dubious errors

2021-10-13 Thread Michael Walle
Both dr_mode and maximum-speed properties are usually optional. Drivers will still try to fetch the properties nonetheless, which leads to error messages, although they are no errors. Change pr_err() to pr_debug(). Signed-off-by: Michael Walle --- drivers/usb/common/common.c | 4 ++-- 1 file

[PATCH 2/8] armv8: fsl-layerscape: rework the dwc3 snooping enable code

2021-10-13 Thread Michael Walle
Instead of looking at all USB (host) devices, just search all DWC3 device tree nodes. This will (1) fix a panic if of_match is zero and (2) also apply the fixup if the controller is in peripheral mode. Both happen when the DWC3 USB controller driver is used. Signed-off-by: Michael Walle

[PATCH 1/8] dm: core: add ofnode_for_each_compatible_node()

2021-10-13 Thread Michael Walle
Add a helper to iterate over all nodes with a given compatible string. Signed-off-by: Michael Walle --- include/dm/ofnode.h | 24 1 file changed, 24 insertions(+) diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 6a714d0c7b..0f680e5aa6 100644 --- a/include

[PATCH v5 14/28] arm: dts: ls1028a: move the watchdog node into /soc

2021-10-13 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 v5 21/28] scsi: ceva: rename the resource name to match the linux kernel one

2021-10-13 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 v5 20/28] serial: lpuart: add new compatible fsl, ls1028a-lpuart

2021-10-13 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 v5 19/28] spi: fsl_dspi: rename num-cs to spi-num-chipselects

2021-10-13 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 v5 22/28] usb: xhci: fsl: add new compatible fsl,ls1028a-dwc3

2021-10-13 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 v5 24/28] arm: dts: ls1028a: remove num-lanes in the PCIe controller nodes

2021-10-13 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

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

2021-10-13 Thread Michael Walle
/20210831134013.1625527-8-mich...@walle.cc/ At the time of this writing the patches were accepted and will be included in 5.15. 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 v5 25/28] arm: dts: ls1028a: move the PCI I/O window to match

2021-10-13 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 v5 23/28] pci: layerscape: add official ls1028a binding support

2021-10-13 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 v5 15/28] arm: dts: ls1028a: move the iRC node and its devices into /soc

2021-10-13 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 v5 18/28] spi: fsl_dspi: add new compatible fsl, ls1021a-v1.0-dspi

2021-10-13 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 v5 10/28] arm: dts: ls1028a: move the low-power UART nodes into /soc

2021-10-13 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 v5 08/28] arm: dts: ls1028a: move the SPI and eSDHC controller nodes into /soc

2021-10-13 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 v5 12/28] arm: dts: ls1028a: move SATA and USB controller nodes into /soc

2021-10-13 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 v5 11/28] arm: dts: ls1028a: move the GPIO controller nodes into /soc

2021-10-13 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 v5 04/28] arm: dts: ls1028a: add an empty /soc

2021-10-13 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 v5 01/28] armv8: ls1028a: use the official compatible string for the GPU

2021-10-13 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 v5 02/28] arm: dts: ls1028a: remove /memory node

2021-10-13 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 v5 00/28] arm: dts: ls1028a: sync device tree with linux

2021-10-13 Thread Michael Walle
u-boot,dm-pre-reloc from rdb and qds boards - fix enetc0 and enetc2 labels Michael Walle (28): armv8: ls1028a: use the official compatible string for the GPU arm: dts: ls1028a: remove /memory node arm: dts: ls1028a-{rdb,qds}: remove dm-pre-reloc property arm: dts: ls1028a: add an empty

[PATCH v5 06/28] arm: dts: ls1028a: move I2C controller nodes into /soc

2021-10-13 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 v5 05/28] arm: dts: ls1028a: move the clockgen node into /soc

2021-10-13 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 v5 03/28] arm: dts: ls1028a-{rdb, qds}: remove dm-pre-reloc property

2021-10-13 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 v5 07/28] arm: dts: ls1028a: move the FlexSPI controller node

2021-10-13 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 v5 09/28] arm: dts: ls1028a: move the UART controller nodes into /soc

2021-10-13 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 v5 13/28] arm: dts: ls1028a: move the PCIe controller nodes into /soc

2021-10-13 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 v5 16/28] arm: dts: ls1028a: update the labels

2021-10-13 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 v5 17/28] watchdog: sp805_wdt: use correct compatible string

2021-10-13 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

Re: [PATCH v2 0/9] usb: dwc3: add Layerscape SoC support

2021-10-21 Thread Michael Walle
Hi Bin, Marek suggested to add you. Unfortunately, get_maintainer.pl doesn't mention you. You can find the whole thread here: https://lore.kernel.org/u-boot/20211015131525.721323-1-mich...@walle.cc/ Am 2021-10-15 15:15, schrieb Michael Walle: Primarily, this will add support for peripheral

Re: [PATCH v3 12/16] Layerscape: Add crypto node in device tree

2021-10-21 Thread Michael Walle
Hi, > LS(1021/1012/1028/1043/1046/1088/2088), LX2160 - updated device tree > > Signed-off-by: Gaurav Jain > Reviewed-by: Priyanka Jain > --- > [..] > > diff --git a/arch/arm/dts/fsl-ls1028a.dtsi b/arch/arm/dts/fsl-ls1028a.dtsi > index 50f9b527cd..c2a156ea8e 100644 > ---

[PATCH v2 3/9] armv8: fsl-layerscape: rework the dwc3 snooping enable code

2021-10-15 Thread Michael Walle
Instead of looking at all USB (host) devices, just search all DWC3 device tree nodes. This will (1) fix a panic if of_match is zero and (2) also apply the fixup if the controller is in peripheral mode. Both happen when the DWC3 USB controller driver is used. Signed-off-by: Michael Walle

[PATCH v2 2/9] test: dm: add test for ofnode_for_each_compatible_node()

2021-10-15 Thread Michael Walle
Check that all matching nodes have the correct compatible and that there is at least one match. Signed-off-by: Michael Walle --- test/dm/ofnode.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c index 49efabe871..cea0746bb3 100644

[PATCH v2 0/9] usb: dwc3: add Layerscape SoC support

2021-10-15 Thread Michael Walle
v1: - added test case for the new ofnode_for_each_compatible_node() Michael Walle (9): dm: core: add ofnode_for_each_compatible_node() test: dm: add test for ofnode_for_each_compatible_node() armv8: fsl-layerscape: rework the dwc3 snooping enable code usb: common: silence dubious errors

[PATCH v2 1/9] dm: core: add ofnode_for_each_compatible_node()

2021-10-15 Thread Michael Walle
Add a helper to iterate over all nodes with a given compatible string. Signed-off-by: Michael Walle Reviewed-by: Simon Glass --- include/dm/ofnode.h | 24 1 file changed, 24 insertions(+) diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 6a714d0c7b

[PATCH v2 9/9] board: sl28: enable USB periheral support and gadgets

2021-10-15 Thread Michael Walle
will hopefully coming soon. Signed-off-by: Michael Walle --- configs/kontron_sl28_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/kontron_sl28_defconfig b/configs/kontron_sl28_defconfig index 5b3ba58d39..0da31a4e54 100644 --- a/configs/kontron_sl28_defconfig +++ b/configs

[PATCH v2 7/9] usb: dwc3: add layerscape support

2021-10-15 Thread Michael Walle
to be set to peripheral or host. Signed-off-by: Michael Walle --- drivers/usb/dwc3/Kconfig | 10 ++ drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/dwc3-layerscape.c | 222 + 3 files changed, 233 insertions(+) create mode 100644 drivers/usb

[PATCH v2 6/9] usb: dwc3: Enable undefined length INCR burst type

2021-10-15 Thread Michael Walle
value. Signed-off-by: Michael Walle --- drivers/usb/dwc3/core.c | 69 + drivers/usb/dwc3/core.h | 16 ++ 2 files changed, 85 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 4fb6b59d50..ce1c0e88c2 100644

[PATCH v2 5/9] usb: dwc3: Add frame length adjustment quirk

2021-10-15 Thread Michael Walle
longer run Signed-off-by: Michael Walle --- drivers/usb/dwc3/core.c | 26 ++ drivers/usb/dwc3/core.h | 6 ++ 2 files changed, 32 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index dfd7cf683f..4fb6b59d50 100644 --- a/drivers/usb/dwc3/co

[PATCH v2 8/9] board: sl28: switch to dwc3 driver

2021-10-15 Thread Michael Walle
Now that the DWC3 USB driver has support for the layerscape platform, use it. This will have the benefit that peripheral mode will work. Signed-off-by: Michael Walle --- configs/kontron_sl28_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs

[PATCH v2 4/9] usb: common: silence dubious errors

2021-10-15 Thread Michael Walle
Both dr_mode and maximum-speed properties are usually optional. Drivers will still try to fetch the properties nonetheless, which leads to error messages, although they are no errors. Change pr_err() to pr_debug(). Signed-off-by: Michael Walle --- drivers/usb/common/common.c | 4 ++-- 1 file

[PATCH v3 4/5] doc: board: kontron: sl28: Reduce section levels and change title

2021-09-29 Thread Michael Walle
From: Frieder Schrempf In order to add other Kontron boards to the docs alongside the existing sl28 board, we need to reduce the levels of the sections and change the title. Cc: Fabio Estevam Signed-off-by: Frieder Schrempf Acked-by: Michael Walle --- Frieder, Fabio, I took the liberty

[PATCH v3 2/5] board: sl28: generate FIT update image

2021-09-29 Thread Michael Walle
Generate a FIT update image during build. The image will be called "u-boot.update" and can be used to build an EFI UpdateCapsule or during DFU mode. Although, the latter isn't supported because there is no USB OTG driver yet. Signed-off-by: Michael Walle --- changes since v2: - non

[PATCH v3 1/5] board: sl28: enable EFI_SET_TIME support

2021-09-29 Thread Michael Walle
Allow EFI to actually set the time before ExitBootServices(). Signed-off-by: Michael Walle --- changes since v2: - none changes since v1: - none configs/kontron_sl28_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/kontron_sl28_defconfig b/configs/kontron_sl28_defconfig

<    3   4   5   6   7   8   9   10   11   12   >