Re: [PATCH 1/2] fixup! usb: dwc2: Add support for optional usb phy

2022-03-21 Thread Ahmad Fatoum
Hello Michael, On 21.03.22 23:17, Michael Grzeschik wrote: > Hi Ahmad! > > On Wed, Jan 06, 2021 at 11:05:43AM +0100, Sascha Hauer wrote: >> On Mon, Dec 21, 2020 at 01:32:50AM +0100, Ahmad Fatoum wrote: >>> Linux doesn't seem to enforce a fixed order between phy_init and >>> phy_power_on. The

Re: [PATCH 1/2] fixup! usb: dwc2: Add support for optional usb phy

2022-03-21 Thread Michael Grzeschik
Hi Ahmad! On Wed, Jan 06, 2021 at 11:05:43AM +0100, Sascha Hauer wrote: On Mon, Dec 21, 2020 at 01:32:50AM +0100, Ahmad Fatoum wrote: Linux doesn't seem to enforce a fixed order between phy_init and phy_power_on. The Linux dwc2 driver does power_on and then phy_init, which is the inverse of

[PATCH v2 1/3] ARM: webasto-ccbv2: consider the available memory size for optee

2022-03-21 Thread Juergen Borleis
Signed-off-by: Juergen Borleis --- arch/arm/boards/webasto-ccbv2/lowlevel.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boards/webasto-ccbv2/lowlevel.c b/arch/arm/boards/webasto-ccbv2/lowlevel.c index 32117b0..dfc5c0f 100644 ---

[PATCH v2 2/3] ARM: webasto-marvel: add device tree shared with the kernel

2022-03-21 Thread Juergen Borleis
Signed-off-by: Juergen Borleis --- arch/arm/dts/Makefile | 1 + arch/arm/dts/imx6ul-webasto-marvel.dts | 586 + 2 files changed, 587 insertions(+) create mode 100644 arch/arm/dts/imx6ul-webasto-marvel.dts diff --git a/arch/arm/dts/Makefile

[PATCH v2 3/3] ARM: webasto-marvel: share the run-time setup with the ccbv2 variant

2022-03-21 Thread Juergen Borleis
Signed-off-by: Juergen Borleis --- arch/arm/boards/webasto-ccbv2/board.c| 6 +- arch/arm/boards/webasto-ccbv2/lowlevel.c | 24 ++-- images/Makefile.imx | 2 ++ 3 files changed, 25 insertions(+), 7 deletions(-) diff --git

[PATCH 1/2] net: phy: mv88e6xxx: implement port_set_speed for mv88e6250

2022-03-21 Thread Steffen Trumtrar
From: Steffen Trumtrar barebox port of the linux patch: commit a528e5be6b5f8026eda029b03340dcfa23c70824 Author: Rasmus Villemoes Date: Tue Jun 4 07:34:29 2019 + net: dsa: mv88e6xxx: implement port_set_speed for mv88e6250 The data sheet also mentions the possibility of

[PATCH 2/2] net: phy: mv88e6xxx: add support for mv88e6250

2022-03-21 Thread Steffen Trumtrar
From: Steffen Trumtrar barebox port of the linux patch: commit 1f71836f5d96e4c87fad16db86d324bee47e1d30 Author: Rasmus Villemoes Date: Tue Jun 4 07:34:32 2019 + net: dsa: mv88e6xxx: add support for mv88e6250 This adds support for the Marvell 88E6250. I've checked that

[PATCH] gpio: include header for BIT() used in

2022-03-21 Thread Ahmad Fatoum
From: Ahmad Fatoum e.g. GPIOF_ACTIVE_HIGH/LOW uses currently depend on another header defining BIT(). Remedy this. Signed-off-by: Ahmad Fatoum --- include/gpio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/gpio.h b/include/gpio.h index 81beb4730929..6134190138c3 100644 ---

Re: [PATCH 2/2] mfd: da9063: ensure all gpio devices are probed before

2022-03-21 Thread Andrej Picej
On 16. 03. 22 11:44, Sascha Hauer wrote: On Tue, Mar 15, 2022 at 03:24:23PM +0100, Ahmad Fatoum wrote: On 15.03.22 14:39, Andrej Picej wrote: GPIO lines in da9063 are assigned dynamically, while majority of SOC GPIO drivers assign their GPIOs in static manner (GPIO line numbers can be

[PATCH v1 9/9] net: dsa: add support for SJA11xx switches

2022-03-21 Thread Oleksij Rempel
Port SJA11xx driver from u-boot v2022.04-rc2 to provide support for NXP SJA11xx series of switches. Signed-off-by: Oleksij Rempel --- drivers/net/Kconfig | 17 + drivers/net/Makefile |1 + drivers/net/sja1105.c | 2918 + 3 files changed, 2936

[PATCH v1 3/9] net: add DSA framework to support basic switch functionality

2022-03-21 Thread Oleksij Rempel
Add DSA based port multiplexing functionality for barebox. With this framework we will be able to use different ports of as switch separately. Signed-off-by: Oleksij Rempel --- drivers/net/Kconfig | 3 + drivers/net/Makefile | 1 + drivers/net/dsa.c| 385

[PATCH v1 6/9] spi: port spi_sync_transfer() function from kernel v5.17

2022-03-21 Thread Oleksij Rempel
This function is needed for SJA11xx switch driver Signed-off-by: Oleksij Rempel --- include/spi/spi.h | 24 1 file changed, 24 insertions(+) diff --git a/include/spi/spi.h b/include/spi/spi.h index d133e0e212..b6d08592a3 100644 --- a/include/spi/spi.h +++

[PATCH v1 5/9] net: port part of if_vlan header from kernel v5.17

2022-03-21 Thread Oleksij Rempel
This header is needed for SJA11xx switch driver Signed-off-by: Oleksij Rempel --- include/linux/if_vlan.h | 56 + 1 file changed, 56 insertions(+) create mode 100644 include/linux/if_vlan.h diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h

[PATCH v1 0/9] add basic DSA support

2022-03-21 Thread Oleksij Rempel
Add DSA support to be able to handle different ports of switch controllers to handle as separate Ethernet devices. With this patches different switch ports are visible and configurable will existing barebox infrastructure. For example: - dhcp ethX - devinfo ethX - ... Oleksij Rempel (9): net:

[PATCH v1 2/9] net: add of_find_eth_device_by_node() function

2022-03-21 Thread Oleksij Rempel
For DSA support we need to find MAC node by phandle from the switch port node. So, provide of_find_eth_device_by_node() to solve this task. Signed-off-by: Oleksij Rempel --- include/net.h | 1 + net/eth.c | 16 2 files changed, 17 insertions(+) diff --git a/include/net.h

[PATCH v1 4/9] driver: add dev_get_priv() helper

2022-03-21 Thread Oleksij Rempel
Add dev_get_priv() to make driver porting easier. Needed for SJA11xx switch driver. Signed-off-by: Oleksij Rempel --- include/driver.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/driver.h b/include/driver.h index 85cb30f8b0..b35b5f397e 100644 --- a/include/driver.h +++

[PATCH v1 1/9] net: add RX preprocessor support

2022-03-21 Thread Oleksij Rempel
Add callback for optional rx_preprocessor. This is needed to add DSA switch support and demultiplex traffic received from different switch ports. Signed-off-by: Oleksij Rempel --- include/net.h | 3 +++ net/net.c | 6 ++ 2 files changed, 9 insertions(+) diff --git a/include/net.h

[PATCH v1 8/9] net: phy: make sure MDIO bus is probed if we search for the PHY

2022-03-21 Thread Oleksij Rempel
For DSA support we need to work with multiple MDIO buses. So, we need to make that MDIO bus node is probed before on on request of DSA switch registration. Signed-off-by: Oleksij Rempel --- drivers/net/phy/phy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/phy.c

[PATCH v1 7/9] net: mdio: add MDIO_DEVAD_NONE define

2022-03-21 Thread Oleksij Rempel
We need it for SJA11xx driver. Signed-off-by: Oleksij Rempel --- include/linux/mdio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mdio.h b/include/linux/mdio.h index 4bcb41c71b..b910b05cec 100644 --- a/include/linux/mdio.h +++ b/include/linux/mdio.h @@ -324,4 +324,6 @@

[PATCH v1 1/2] ARM: boards: protonic-imx6: add board specific BBU SD handlers

2022-03-21 Thread Oleksij Rempel
Add barebox update handler for the SD ports. Signed-off-by: Oleksij Rempel --- arch/arm/boards/protonic-imx6/board.c | 34 +++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boards/protonic-imx6/board.c b/arch/arm/boards/protonic-imx6/board.c index

[PATCH v1 2/2] ARM: boards: protonic-imx6: properly configure RGMII direction for the FEC MAC

2022-03-21 Thread Oleksij Rempel
To make SJA1105 switch work properly with bareobx, we need to configure RGMII ref_clk. Signed-off-by: Oleksij Rempel --- arch/arm/boards/protonic-imx6/board.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boards/protonic-imx6/board.c

Re: nand "BCH decoding failed" when using bch8_hw_romcode ecc mode

2022-03-21 Thread Tibault Damman
On 18/03/2022 12:59, Sascha Hauer wrote: > Have a look at "md -s /dev/nand0.raw 0+2112", then you can see how the > OOB data should look like and compare it with the data read in > omap_gpmc_read_page_bch_rom_mode(). The ".raw" is important, I saw you > printed 2112 bytes from a non raw device. I