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

2021-10-13 Thread Michael Walle
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

[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 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 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 --- a

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

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

2021-10-15 Thread Michael Walle
since 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 e

[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 --- a

[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 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 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 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 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 --- a

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

2021-10-15 Thread Michael Walle
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 9/9] board: sl28: enable USB periheral support and gadgets

2021-10-15 Thread Michael Walle
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

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 > --- a/arch/arm/dts/fsl-ls10

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 perip

Re: [PATCH v4 0/5] board: sl28: target refresh

2021-10-22 Thread Michael Walle
Hi Marcel, Am 2021-10-23 00:19, schrieb Marcel Ziswiler: From: Marcel Ziswiler Note that this re-base is only compile tested. Care to explain what this is? Why are you taking my patchset and make a new version of it and rebasing it on the wrong tree? Did I miss something? -michael

Re: [PATCH v4 0/5] board: sl28: target refresh

2021-10-22 Thread Michael Walle
+0200, Michael Walle wrote: Hi Marcel, Am 2021-10-23 00:19, schrieb Marcel Ziswiler: > From: Marcel Ziswiler > > > Note that this re-base is only compile tested. Care to explain what this is? Why are you taking my patchset and make a new version of it and rebasing it on the wrong tree?

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 ha

Re: [U-Boot] [PATCH v4 0/5] Add helper function for linking a DM Eth device to a PHY

2019-11-23 Thread Michael Walle
o-uclass.c | 139 +- 5 files changed, 175 insertions(+), 51 deletions(-) For this series: Tested-by: Michael Walle ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 4/6] drivers: net: add Felix DSA switch driver

2019-11-23 Thread Michael Walle
Am 2019-11-22 02:36, schrieb Alex Marginean: This driver is used for the Ethernet switch integrated into LS1028A NXP. Felix on LS1028A has 4 front panel ports and two internal ports, I/O to/from the switch is done through an ENETC Ethernet interface. The 4 front panel ports are available as Ethe

Re: [U-Boot] [PATCH 5/6] arm: dts: ls1028a: adds Ethernet switch node and its dependencies

2019-11-23 Thread Michael Walle
Am 2019-11-22 02:36, schrieb Alex Marginean: The definition follows the DSA binding in kernel and describes the switch, its ports and PHYs. ENETC PF6 is the 2nd Eth controller linked to the switch on LS1028, it is nitpicking.. LS1028A not used in U-Boot and was disabled. it should be che

Re: [U-Boot] [PATCH 0/6] Introduce DSA Ethernet switch class and Felix driver

2019-11-23 Thread Michael Walle
create mode 100644 include/dsa.h create mode 100644 net/dsa-uclass.c create mode 100644 test/dm/dsa.c For the patches affecting the real hardware: Tested-by: Michael Walle ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 5/6] arm: dts: ls1028a: adds Ethernet switch node and its dependencies

2019-11-23 Thread Michael Walle
Hi, sorry for the second mail. I've missed something. See below. Am 2019-11-22 02:36, schrieb Alex Marginean: The definition follows the DSA binding in kernel and describes the switch, its ports and PHYs. ENETC PF6 is the 2nd Eth controller linked to the switch on LS1028, it is not used in U

[U-Boot] [PATCH] armv8: layerscape: fix SPL multi DTB loading

2019-11-24 Thread Michael Walle
Mark board_fit_config_name_match() as weak so a board can overwrite the empty function. Signed-off-by: Michael Walle --- arch/arm/cpu/armv8/fsl-layerscape/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/spl.c b/arch/arm/cpu/armv8/fsl

Re: [U-Boot] [PATCH] ls1028a: Configure stream IDs for integrated PCI and fix up Linux DT

2019-11-27 Thread Michael Walle
Hi Alex, Am 2019-11-27 14:57, schrieb Alex Marginean: Hardware comes out of reset with implicit values, but these are outside the accepted range for Layerscape gen 3 chassis spec used on LS1028A. Allocate different IDs and fix up Linux DT to use them. Signed-off-by: Alex Marginean --- arch/ar

Re: [U-Boot] [PATCH v2] ls1028a: Configure stream IDs for integrated PCI and fix up Linux DT

2019-11-27 Thread Michael Walle
finally networking in linux, yay ;) Tested-by: Michael Walle --- Changes in v2: - moved code under arm/cpu from board as it's in fact SoC related Replaces v1 and this earlier patch: https://patchwork.ozlabs.org/patch/1144486/ arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 9 ++

Re: [U-Boot] [PATCH v2 1/2] spi: nxp_fspi: new driver for the FlexSPI controller

2019-11-28 Thread Michael Walle
Am 2019-11-29 06:03, schrieb Priyanka Jain: -Original Message- From: U-Boot On Behalf Of Michael Walle Sent: Saturday, November 2, 2019 11:56 PM To: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 1/2] spi: nxp_fspi: new driver for the FlexSPI controller This is a port of the

Re: [U-Boot] [PATCH] net: eth-uclass: ignore unavailable devices

2019-12-01 Thread Michael Walle
Am 2019-12-01 01:55, schrieb Alexandru Marginean: Hi Michael, On 10/22/2019 1:03 AM, Michael Walle wrote: device_probe() may fail in which case the seq_id will be -1. Don't display these devices during startup. While this is only a cosmetic change, the return value of eth_initialize()

[U-Boot] [PATCH] drivers: pci: ignore disabled devices

2019-12-01 Thread Michael Walle
PCI devices may be disabled in the device tree. Devices which are probed by the device tree handle the "status" property and are skipped if disabled. Devices which are probed by the PCI enumeration don't check that property. Fix it. Signed-off-by: Michael Walle --- drivers/pci/p

[PATCH v2 04/12] phy: atheros: Explicitly disable RGMII delays

2019-12-05 Thread Michael Walle
From: Vladimir Oltean To eliminate any doubts about the out-of-reset value of the PHY, that the driver previously relied on. If bisecting shows that this commit breaks your board you probably have a wrong PHY interface mode. You probably want the PHY_INTERFACE_MODE_RGMII_RXID or PHY_INTERFACE_MO

[PATCH v2 02/12] phy: atheros: Use common functions for RGMII internal delays

2019-12-05 Thread Michael Walle
From: Vladimir Oltean Signed-off-by: Vladimir Oltean Acked-by: Joe Hershberger --- drivers/net/phy/atheros.c | 69 +++ 1 file changed, 41 insertions(+), 28 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 537c1a9125..c0c

[PATCH v2 01/12] phy: atheros: Make RGMII Tx delays actually configurable for AR8035

2019-12-05 Thread Michael Walle
From: Vladimir Oltean Delete the extraneous write to debug reg 5 that enables Tx delay When the driver was originally introduced in commit "6027384a phylib: Add Atheros AR8035 GETH PHY support", the Tx delay was being unconditionally enabled. Then during "2ec4d10b phy: atheros: add support for

[PATCH v2 08/12] phy: atheros: introduce debug read and write functions

2019-12-05 Thread Michael Walle
Provide functions to read and write the Atheros debug registers. Signed-off-by: Michael Walle --- drivers/net/phy/atheros.c | 57 --- 1 file changed, 41 insertions(+), 16 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index

[PATCH v2 07/12] phy: atheros: use defines for PHY IDs

2019-12-05 Thread Michael Walle
Signed-off-by: Michael Walle --- drivers/net/phy/atheros.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 01953a1390..5ff5875d3d 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers/net/phy/atheros.c

[PATCH v2 03/12] phy: atheros: Clarify the configuration of the CLK_25M output pin

2019-12-05 Thread Michael Walle
From: Vladimir Oltean Also take the opportunity to use the phy_read_mmd and phy_write_mmd convenience functions. Signed-off-by: Vladimir Oltean Acked-by: Joe Hershberger --- drivers/net/phy/atheros.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/driv

[PATCH v2 00/12] phy: atheros: dt bindings and cleanup

2019-12-05 Thread Michael Walle
e onto them - fix the CLK_25M settings for the AR8035 - add two new patches "fix AR8021 PHY ID mask" and "use defines for PHY IDs" - use the new kernel device tree binding for the AR803x PHYs: https://patchwork.ozlabs.org/patch/1188293/ - add debugging output Michael Wa

[PATCH v2 06/12] phy: atheros: fix AR8021 PHY ID mask

2019-12-05 Thread Michael Walle
The upper bits are all the OUI. Signed-off-by: Michael Walle --- drivers/net/phy/atheros.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 3cc162828c..01953a1390 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers

[PATCH v2 05/12] phy: atheros: Clarify the intention of ar8021_config

2019-12-05 Thread Michael Walle
From: Vladimir Oltean Debug register 5 contains TX_CLK DELAY at bit 8 and reserved values at the other bit positions, just like the other PHYs in the family do. Therefore, it is not necessary to hardcode the reserved values, but instead simply follow the read-modify-write procedure from the commo

[PATCH v2 09/12] phy: atheros: move delay config to common function

2019-12-05 Thread Michael Walle
Signed-off-by: Michael Walle --- drivers/net/phy/atheros.c | 38 ++ 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 660dcd9491..22035c2496 100644 --- a/drivers/net/phy/atheros.c +++ b

[PATCH v2 10/12] phy: atheros: add device tree bindings and config

2019-12-05 Thread Michael Walle
output. Also the PHY supports different RGMII I/O voltages: 1.5V, 1.8V and 2.5V. An internal LDO is able to provide 1.5V (default) and 1.8V. The 2.5V option needs an external supply voltage. This commit adds support to switch the internal LDO to 1.8V. Signed-off-by: Michael Walle --- doc/device-tree

[PATCH v2 11/12] phy: atheros: ar8035: remove static clock config

2019-12-05 Thread Michael Walle
. Please have a look at doc/device-tree-bindings/net/phy/atheros.txt. You need to set "clk-out-frequency = <12500>" because that value was the hardcoded value until this commit. Signed-off-by: Michael Walle --- drivers/net/phy/atheros.c | 13 - 1 file changed, 13 de

[PATCH v2 12/12] phy: atheros: consolidate {ar8031|ar8035}_config()

2019-12-05 Thread Michael Walle
The two functions are now exactly the same, remove one of them. Signed-off-by: Michael Walle --- drivers/net/phy/atheros.c | 30 +++--- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 208b06d3c7

Re: [U-Boot] [PATCH 1/9] phy: atheros: introduce debug read and write functions

2019-12-05 Thread Michael Walle
Am 2019-11-30 02:11, schrieb Joe Hershberger: On Fri, Oct 25, 2019 at 7:28 PM Michael Walle wrote: Provide functions to read and write the Atheros debug registers. Signed-off-by: Michael Walle Acked-by: Joe Hershberger Sorry this was superseeded by https://patchwork.ozlabs.org/project

Re: [U-Boot] [PATCH 1/9] phy: atheros: introduce debug read and write functions

2019-12-05 Thread Michael Walle
Am 2019-11-30 02:11, schrieb Joe Hershberger: On Fri, Oct 25, 2019 at 7:28 PM Michael Walle wrote: Provide functions to read and write the Atheros debug registers. Signed-off-by: Michael Walle Acked-by: Joe Hershberger Sorry this series superseeded by https://patchwork.ozlabs.org

Re: [U-Boot] [PATCH 1/9] phy: atheros: introduce debug read and write functions

2019-12-05 Thread Michael Walle
Hi Joe, Hi Tom, Am 2019-12-05 16:55, schrieb Joe Hershberger: Hi Michael, On Fri, Oct 25, 2019 at 7:28 PM Michael Walle wrote: Provide functions to read and write the Atheros debug registers. Signed-off-by: Michael Walle This series is adding too much size to several of the boards'

Re: [U-Boot] [PATCH 1/9] phy: atheros: introduce debug read and write functions

2019-12-05 Thread Michael Walle
Hi Tom, Am 2019-12-06 00:58, schrieb Tom Rini: On Fri, Dec 06, 2019 at 12:27:39AM +0100, Michael Walle wrote: Hi Joe, Hi Tom, Am 2019-12-05 16:55, schrieb Joe Hershberger: > Hi Michael, > > On Fri, Oct 25, 2019 at 7:28 PM Michael Walle wrote: > > > > Provide functions

Re: [U-Boot] [PATCH 1/9] phy: atheros: introduce debug read and write functions

2019-12-05 Thread Michael Walle
Am 2019-12-06 00:58, schrieb Tom Rini: That said, looking over the u-boot-spl.map, it looks like nfs stuff doesn't get discarded for some reason, I'm going to look in to that. CONFIG_CMD_NFS will pull that. There are also other network related cmds whose code is pulled into the SPL through net/

Re: [U-Boot] [PATCH 1/9] phy: atheros: introduce debug read and write functions

2019-12-09 Thread Michael Walle
Hi Tom, Hi Joe, Am 2019-12-06 00:58, schrieb Tom Rini: On Fri, Dec 06, 2019 at 12:27:39AM +0100, Michael Walle wrote: Hi Joe, Hi Tom, Am 2019-12-05 16:55, schrieb Joe Hershberger: > Hi Michael, > > On Fri, Oct 25, 2019 at 7:28 PM Michael Walle wrote: > > > > Provide

Re: [PATCH v2] drivers: net: fsl_enetc: Pass on primary MAC address to Linux

2019-12-10 Thread Michael Walle
Am 2019-12-10 15:55, schrieb Alex Marginean: Passes on the primary address used by u-boot to Linux. The code does a DT fix-up for ENETC PFs and sets the primary MAC address in IERB. The address in IERB is restored on ENETC PCI functions at FLR. I don't get the reason why this is done in a

Re: [PATCH v2] drivers: net: fsl_enetc: Pass on primary MAC address to Linux

2019-12-11 Thread Michael Walle
Hi Vladimir, Am 2019-12-11 13:46, schrieb Vladimir Oltean: Hi Michael, On Wed, 11 Dec 2019 at 00:48, Michael Walle wrote: Am 2019-12-10 15:55, schrieb Alex Marginean: > Passes on the primary address used by u-boot to Linux. The code does a > DT > fix-up for ENETC PFs and sets th

Re: [PATCH v2] drivers: net: fsl_enetc: Pass on primary MAC address to Linux

2019-12-11 Thread Michael Walle
Am 2019-12-11 14:04, schrieb Alexandru Marginean: On 12/10/2019 11:47 PM, Michael Walle wrote: Am 2019-12-10 15:55, schrieb Alex Marginean: Passes on the primary address used by u-boot to Linux.  The code does a DT fix-up for ENETC PFs and sets the primary MAC address in IERB.  The address

Re: [PATCH v2] drivers: net: fsl_enetc: Pass on primary MAC address to Linux

2019-12-11 Thread Michael Walle
Hi Alex, Am 2019-12-11 16:37, schrieb Alexandru Marginean: On 12/11/2019 2:16 PM, Michael Walle wrote: Hi Vladimir, Am 2019-12-11 13:46, schrieb Vladimir Oltean: Hi Michael, On Wed, 11 Dec 2019 at 00:48, Michael Walle wrote: Am 2019-12-10 15:55, schrieb Alex Marginean: > Passes on

Re: [PATCH v2] drivers: net: fsl_enetc: Pass on primary MAC address to Linux

2019-12-12 Thread Michael Walle
Hi Alex, Am 2019-12-11 22:01, schrieb Alexandru Marginean: Hi Michael, On 12/11/2019 6:03 PM, Michael Walle wrote: Hi Alex, Am 2019-12-11 16:37, schrieb Alexandru Marginean: On 12/11/2019 2:16 PM, Michael Walle wrote: Hi Vladimir, Am 2019-12-11 13:46, schrieb Vladimir Oltean: Hi Michael

Re: [U-Boot] [PATCH v2 1/2] spi: nxp_fspi: new driver for the FlexSPI controller

2019-12-16 Thread Michael Walle
Hi Priyanka, Hi Jagan, Hi Vingesh, Am 2019-11-29 08:49, schrieb Michael Walle: Am 2019-11-29 06:03, schrieb Priyanka Jain: -Original Message- From: U-Boot On Behalf Of Michael Walle Sent: Saturday, November 2, 2019 11:56 PM To: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 1/2

[PATCH v4 2/3] arm: ls1028a: use the new flexspi driver

2019-12-17 Thread Michael Walle
Also align the fspi node with the kernel one. Signed-off-by: Michael Walle Reviewed-by: Kuldeep Singh --- changes since v1: - none changes since v2: - none changes since v3: - none arch/arm/dts/fsl-ls1028a.dtsi | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff

[PATCH v4 1/3] spi: nxp_fspi: new driver for the FlexSPI controller

2019-12-17 Thread Michael Walle
rk support, changing the clock speed was not tested. This also means that it is not possible to change the SPI speed on LS1028A for now (neither is it possible in the linux driver). Signed-off-by: Michael Walle Reviewed-by: Jagan Teki Tested-by: Kuldeep Singh --- changes since v1: - fixed typo, th

[PATCH v4 3/3] arm: dts: ls1028a: fix interrupt properties

2019-12-17 Thread Michael Walle
Signed-off-by: Michael Walle --- changes since v1: - n/a changes since v2: - new patch changes since v3: - none arch/arm/dts/fsl-ls1028a.dtsi | 55 --- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/arch/arm/dts/fsl-ls1028a.dtsi b/arch/a

[PATCH] dm: uclass: don't assign aliased seq numbers

2019-12-18 Thread Michael Walle
ugh I don't understand the root cause of the said problem. Thomas, Michal, could you please test this and then I'd add a second patch removing the old code. Cc: Thomas Fitzsimmons Cc: Michal Simek Signed-off-by: Michael Walle --- drivers/core/uclass.c | 20 ++-- 1 fi

[PATCH] drivers: net: fsl_enetc: use write_hwaddr()

2019-12-18 Thread Michael Walle
Intead of setting the MAC address in enetc_start() use the proper write_hwaddr(). U-Boot takes care of the random MAC address, too. Also, this will correctly handle ethNmacskip etc. Signed-off-by: Michael Walle --- drivers/net/fsl_enetc.c | 17 - 1 file changed, 8 insertions

Re: [PATCH] dm: uclass: don't assign aliased seq numbers

2019-12-18 Thread Michael Walle
Am 2019-12-18 21:00, schrieb Alexandru Marginean: Hi Michael, On 12/18/2019 5:42 PM, Michael Walle wrote: If there are aliases for an uclass, set the base for the "dynamically" allocated numbers next to the highest alias. Please note, that this might lead to holes in the sequences,

Re: [PATCH] drivers: net: fsl_enetc: use write_hwaddr()

2019-12-18 Thread Michael Walle
Am 2019-12-18 19:44, schrieb Alexandru Marginean: Hi Michael, On 12/18/2019 5:47 PM, Michael Walle wrote: Intead of setting the MAC address in enetc_start() use the proper write_hwaddr(). U-Boot takes care of the random MAC address, too. Also, this will correctly handle ethNmacskip etc

[PATCH 0/2] arch: arm: gic-v3-its: stop abusing the device tree

2021-10-27 Thread Michael Walle
@konsulko.com/ [2] https://lore.kernel.org/u-boot/20200726170733.30214-1-rayagonda.kokata...@broadcom.com/ [3] https://lore.kernel.org/u-boot/20200610104120.30668-10-rayagonda.kokata...@broadcom.com/ [4] https://lore.kernel.org/u-boot/20200428021935.27659-1-zhiqiang@nxp.com/ Michael Wal

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

2021-10-27 Thread Michael Walle
: Priyanka Jain Reported-by: Michael Walle Signed-off-by: Tom Rini --- arch/arm/cpu/armv8/fsl-layerscape/soc.c | 18 +- arch/arm/dts/fsl-ls1028a.dtsi | 6 -- arch/arm/dts/fsl-ls1088a.dtsi | 6 -- arch/arm/dts/fsl-ls2080a.dtsi | 6 -- arch/arm

[PATCH 2/2] Revert "arch: arm: use dt and UCLASS_SYSCON to get gic lpi details"

2021-10-27 Thread Michael Walle
Stop using the device tree as a source for ad-hoc information. This reverts commit 2ae7adc659f7fca9ea65df4318e5bca2b8274310. Signed-off-by: Michael Walle --- arch/arm/Kconfig| 2 - arch/arm/cpu/armv8/fsl-layerscape/soc.c | 27 +- arch/arm/include/asm/gic-v3.h

Re: [PATCH 0/2] arch: arm: gic-v3-its: stop abusing the device tree

2021-10-28 Thread Michael Walle
Am 2021-10-28 11:20, schrieb Bharat Gooty: On Thu, Oct 28, 2021 at 2:33 PM Marc Zyngier wrote: For GIC V3, once the LPI tables are programmed, we can not update it, unless we do a reset. For the kexec kernel, where the reboot does not happen, in this case, during the new kernel boot, the new

Re: [PATCH 0/2] arch: arm: gic-v3-its: stop abusing the device tree

2021-10-28 Thread Michael Walle
Am 2021-10-28 13:35, schrieb Bharat Gooty: On Thu, Oct 28, 2021 at 4:52 PM Michael Walle wrote: Am 2021-10-28 11:20, schrieb Bharat Gooty: On Thu, Oct 28, 2021 at 2:33 PM Marc Zyngier wrote: For GIC V3, once the LPI tables are programmed, we can not update it, unless we do a reset. For

Re: [PATCH 2/2] Revert "arch: arm: use dt and UCLASS_SYSCON to get gic lpi details"

2021-10-29 Thread Michael Walle
21-10-28 23:09, schrieb Marc Zyngier: On Wed, 27 Oct 2021 17:54:54 +0100, Michael Walle wrote: Stop using the device tree as a source for ad-hoc information. This reverts commit 2ae7adc659f7fca9ea65df4318e5bca2b8274310. Signed-off-by: Michael Walle --- int ls_gic_rd_tables_init(void

Re: [PATCH 0/2] arch: arm: gic-v3-its: stop abusing the device tree

2021-10-29 Thread Michael Walle
Am 2021-10-29 00:36, schrieb Simon Glass: On Wed, 27 Oct 2021 at 10:55, Michael Walle wrote: Please stop throwing every ad-hoc information in the device tree. Use the official bindings (or maybe some bindings which will get approved soon). Can I suggest that your commit subject be a

(overlapping) lmb allocations during boot

2021-10-31 Thread Michael Walle
Hi, I sometimes see a corrupted initrd during kernel boot on my board (kontron_sl28). Debugging showed that in this case the spin table for the secondary CPUs overlaps with the lmb initrd allocations (initrd_high is set). I had a look at how the fdt and initrd are relocated (if enabled). In summ

Re: (overlapping) lmb allocations during boot

2021-10-31 Thread Michael Walle
Am 2021-10-31 12:44, schrieb Mark Kettenis: Date: Sun, 31 Oct 2021 11:43:38 +0100 From: Michael Walle Hi, I sometimes see a corrupted initrd during kernel boot on my board (kontron_sl28). Debugging showed that in this case the spin table for the secondary CPUs overlaps with the lmb initrd

Re: (overlapping) lmb allocations during boot

2021-10-31 Thread Michael Walle
Am 2021-10-31 13:51, schrieb Mark Kettenis: Date: Sun, 31 Oct 2021 13:04:40 +0100 From: Michael Walle Am 2021-10-31 12:44, schrieb Mark Kettenis: >> Date: Sun, 31 Oct 2021 11:43:38 +0100 >> From: Michael Walle >> >> Hi, >> >> I sometimes see a corrupted i

Re: [PATCH 2/2] Revert "arch: arm: use dt and UCLASS_SYSCON to get gic lpi details"

2021-10-31 Thread Michael Walle
Hi, Am 2021-10-31 17:45, schrieb Z.Q. Hou: -Original Message- From: Marc Zyngier [mailto:m...@kernel.org] Sent: 2021年10月29日 5:09 To: Michael Walle Cc: u-boot@lists.denx.de; Vladimir Oltean ; Z.Q. Hou ; Bharat Gooty ; Rayagonda Kokatanur ; Simon Glass ; Priyanka Jain ; Tom Rini

[PATCH] armv8: layerscape: use memalign() to allocate spintable code

2021-10-31 Thread Michael Walle
. Instead use memalign() which allocates on memory on the heap which is correctly carved out by lmb. Please note, that the memory is later reserved in the device tree as well as in the EFI memory map in ft_fixup_cpu() (in arch/arm/cpu/armv8/fsl-layerscape/fdt.c). Signed-off-by: Michael Walle ---

[PATCH] get_maintainer.pl: add .get_maintainer.conf

2021-10-31 Thread Michael Walle
("scripts/get_maintainer.pl: enable find_maintainer_files") explicitly enabled that feature. Nowadays, we also have to set maintainer_path to a directory. To fix it and enable recursive search of MAINTAINERS, create a configuration file to set these two variables. Signed-o

[PATCH] board: kontron: sl28: add myself to ls1028a.dtsi maintainers

2021-10-31 Thread Michael Walle
I'd like to keep informed about ls1028a.dtsi changes. For now, there is no top-level entry for any layerscape specific files. Instead, add the file entry to my board MAINTAINERS file. Signed-off-by: Michael Walle --- board/kontron/sl28/MAINTAINERS | 1 + 1 file changed, 1 insertion(+)

Re: (overlapping) lmb allocations during boot

2021-10-31 Thread Michael Walle
Am 2021-10-31 18:36, schrieb Mark Kettenis: Date: Sun, 31 Oct 2021 16:19:56 +0100 From: Michael Walle .. >> > Unless CONFIG_EFI_LOADER is defined. Then it relocates the spin table >> > to memory allocated using efi_allocate_pages(). But that function >> > only

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

2021-11-02 Thread Michael Walle
> On Fri, Oct 29, 2021 at 2:14 PM Michal Simek wrote: >> >> When MAC address is randomly generated it should be also saved to >> variables. This step is there when MAC address is passed via pdata but not >> when it is randomly generated. >> >> Signed-off-by: Michal Simek >> --- >> >> net/eth-ucl

Re: [PATCH 00/16] fdt: Make OF_BOARD a boolean option

2021-11-02 Thread Michael Walle
Hi, > On Thu, 28 Oct 2021 at 05:51, Simon Glass wrote: > > On Tue, 26 Oct 2021 at 00:46, Ilias Apalodimas > > wrote: .. > > Linux actually doesn't care if the U-Boot properties are in the tree, > > so long as we have proper bindings. My point here is we only need > > either: > > > > a. one dev

Re: [PATCH v2] bootstage: Add SPL support

2021-11-03 Thread Michael Walle
> Please CC board maintainers on changes to their code. btw. I _think_ this one is because of a broken get_maintainer.pl. See [1]. -michael [1] https://lore.kernel.org/u-boot/20211031223812.634361-1-mich...@walle.cc/

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

2021-11-04 Thread Michael Walle
Am 2021-11-04 12:16, schrieb Michal Simek: On 11/4/21 03:09, Grygorii Strashko wrote: On 02/11/2021 12:27, Michal Simek wrote: On 11/2/21 10:00, Michael Walle wrote: On Fri, Oct 29, 2021 at 2:14 PM Michal Simek wrote: When MAC address is randomly generated it should be also saved to

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

2021-11-04 Thread Michael Walle
Am 2021-11-04 14:15, schrieb Michal Simek: On 11/4/21 13:27, Michael Walle wrote: Am 2021-11-04 12:16, schrieb Michal Simek: On 11/4/21 03:09, Grygorii Strashko wrote: On 02/11/2021 12:27, Michal Simek wrote: On 11/2/21 10:00, Michael Walle wrote: On Fri, Oct 29, 2021 at 2:14 PM Michal

Re: [PATCH 00/11] fsl_esdhc_imx: port several patches from fsl_esdhc

2021-11-05 Thread Michael Walle
Am 2021-11-05 18:39, schrieb Sean Anderson: This series ports some of the patches from fsl_esdhc to fsl_esdhc_imx. Because these drivers share a common lineage, many of these patches apply with minor changes. For each one, I have noted the originating commit in the style of linux stable backports

Re: [EXT] Re: [PATCH v4 03/16] i.MX8M: crypto: updated device tree for supporting DM in SPL

2021-11-08 Thread Michael Walle
Am 2021-11-08 09:48, schrieb ZHIZHIKIN Andrey: .. > Disabling the JR0 node in the kernel makes this error go away, and > decreases the JR count to 2 which can be observed in the NXP vendor kernel. > > I suggest you to extract the node disabling from this patch and send it to Kernel. > Once acce

Re: [PATCH] sf: Querying write-protect status before operating the

2021-11-08 Thread Michael Walle
> On Fri, Nov 5, 2021 at 10:47 PM wrote: > > > > Hi, > > > > On 6/22/21 8:21 AM, chao zeng wrote: > > > From: Chao Zeng > > > > > > When operating the write-protection flash,spi_flash_std_write() and > > > spi_flash_std_erase() would return wrong result.The flash is protected, > > > but write or

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

2021-11-09 Thread 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 usually an error). And IMHO that net list can be fixed in a d

Re: [PATCH 1/1] efi_loader: stop watchdogs in ExitBootServices()

2021-11-09 Thread Michael Walle
> The UEFI specification requires for ExitBootServices() that "the boot > services watchdog timer is disabled". We already disable the software > watchdog. We should additionally disable the hardware watchdogs. What about watchdogs that cannot be stopped? IIRC the IMX SoCs are like that. -michael

Re: [PATCH 1/1] efi_loader: stop watchdogs in ExitBootServices()

2021-11-09 Thread Michael Walle
Am 2021-11-09 15:46, schrieb Mark Kettenis: From: Michael Walle Date: Tue, 9 Nov 2021 15:20:17 +0100 > The UEFI specification requires for ExitBootServices() that "the boot > services watchdog timer is disabled". We already disable the software > watchdog. We should addit

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

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 b

Re: [PATCH v1 4/5] net: macb: Compatible as per device tree

2021-11-11 Thread Michael Walle
> > If Linux driver does not need to be updated to support MPFS macb using > > existing compatible string but U-Boot driver has to, something is > > wrong on the U-Boot macb driver side. > > > > Would you please reconsider the whole changes? > > > We submitted patches(v1, v2) last year for the U-Bo

[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 &quo

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 linu

<    4   5   6   7   8   9   10   11   12   >