Re: [PATCH v2] mx6cuboxi: Fix Ethernet after DT sync with Linux

2024-04-02 Thread Josua Mayer
Hi Fabio, Am 01.04.24 um 12:13 schrieb Christian Gmeiner: > Hi Fabio > >> From: Josua Mayer >> >> The i.MX6 Cubox-i and HummingBoards can have different PHYs at varying >> addresses. U-Boot needs to auto-detect which phy is actually present, >> and at which

Re: [PATCH] mx6cuboxi: Fix Ethernet after DT sync with Linux

2024-03-28 Thread Josua Mayer
Am 28.03.24 um 13:51 schrieb Josua Mayer: > Am 28.03.24 um 13:21 schrieb Fabio Estevam: >> From: Josua Mayer >> >> The i.MX6 Cubox-i and HummingBoards can have different PHYs at varying >> addresses. U-Boot needs to auto-detect which phy is actually prese

Re: [PATCH] mx6cuboxi: Fix Ethernet after DT sync with Linux

2024-03-28 Thread Josua Mayer
Am 28.03.24 um 13:21 schrieb Fabio Estevam: > From: Josua Mayer > > The i.MX6 Cubox-i and HummingBoards can have different PHYs at varying > addresses. U-Boot needs to auto-detect which phy is actually present, > and at which address it is responding. > > Auto-detection fr

Re: [PATCH] mx6cuboxi: fix ethernet after synchronise device-tree

2024-03-27 Thread Josua Mayer
ct pre SoM 2.0 and SoM 2.0? > > Is this what board_type() does? > Is HummingBoard2 == SoM 2.0? No, this is carrier-board detection. For the SoM we have nothing. PHY mdio address is actually the best indication we have. > >> This somehow has to happen after probing mdio driver, but before pr

Re: [PATCH] mx6cuboxi: fix ethernet after synchronise device-tree

2024-03-27 Thread Josua Mayer
ill work). This somehow has to happen after probing mdio driver, but before probing ethernet driver. > I have a > handful of such devices here > that are already or will be used in a CI farm so I am interested in > using the latest U-Boot for them. > >> sincerely >> Jos

Re: [PATCH] mx6cuboxi: fix ethernet after synchronise device-tree

2024-03-27 Thread Josua Mayer
Cc: christian.gmei...@gmail.com Hi Christian, please take a look at this patch, I suspect it will (hack-)fix your ethernet issue. Unfortunately I had no time to revisit this yet and implement a correct solution. sincerely Josua Mayer Am 28.07.22 um 09:08 schrieb Josua Mayer: > Please h

Re: [PATCH v2 2/3] arm: mvebu: helios4_defconfig: enable setexpr command

2024-02-13 Thread Josua Mayer
} rootfstype=auto rootwait - Josua Mayer Am 12.02.24 um 21:40 schrieb Dennis Gilmore: > I am curious about your use cases for this. as ideally all systems use the > generic distro boot paths and it is not needed for them. > > Dennis > > On Fri, Feb 2, 2024 at 9:13 AM Josua Mayer wro

[PATCH v2 3/3] board: helios-4: add config fragment for spi booting

2024-02-02 Thread Josua Mayer
of helios4_defconfig by make: make helios4_defconfig spiboot.config Signed-off-by: Josua Mayer --- board/kobol/helios4/spiboot.config | 4 1 file changed, 4 insertions(+) diff --git a/board/kobol/helios4/spiboot.config b/board/kobol/helios4/spiboot.config new file mode 100644 index 00..5ffb7d2e3b

[PATCH v2 2/3] arm: mvebu: helios4_defconfig: enable setexpr command

2024-02-02 Thread Josua Mayer
Update the helios4 defconfig to enable the 'setexpr' command, which is a default and useful for various complex boot-scripts. Signed-off-by: Josua Mayer --- configs/helios4_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/helios4_defconfig b/configs/helios4_defconfig index

[PATCH v2 0/3] arm: mvebu: helios-4: add config fragment for spi booting et al

2024-02-02 Thread Josua Mayer
This patch-set introduces a new config fragment for spi booting on kobol helios-4. Additionally add minor update for default defconfig to enable setexpr command, and fix u-boot command access to i2c0 bus. Signed-off-by: Josua Mayer --- Changes in v2: - replaced new defconfig with config

[PATCH v2 1/3] arm: dts: armada-38x-solidrun-microsom: configure i2c0 bus

2024-02-02 Thread Josua Mayer
these settings from mainline. This fixes accessing i2c bus from u-boot commandline. Signed-off-by: Josua Mayer --- arch/arm/dts/armada-38x-solidrun-microsom.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/armada-38x-solidrun-microsom.dtsi b/arch/arm/dts/armada-38x-solidrun

Re: [PATCH 3/3] arm: mvebu: helios-4: add defconfig for spi booting

2024-02-02 Thread Josua Mayer
Am 14.01.24 um 15:37 schrieb Tom Rini: > On Sun, Jan 14, 2024 at 09:47:31AM +0000, Josua Mayer wrote: >> Hi Tim, >> >> Am 13.01.24 um 18:22 schrieb Tom Rini: >>> On Sat, Jan 13, 2024 at 05:36:57PM +0100, Josua Mayer wrote: >>> >>>> Add a

Re: [PATCH 3/3] arm: mvebu: helios-4: add defconfig for spi booting

2024-01-14 Thread Josua Mayer
Hi Tim, Am 13.01.24 um 18:22 schrieb Tom Rini: > On Sat, Jan 13, 2024 at 05:36:57PM +0100, Josua Mayer wrote: > >> Add a new defconfig based on existing helios4_config file to support >> booting from spi flash. >> >> Settings for environment location are ba

[PATCH 3/3] arm: mvebu: helios-4: add defconfig for spi booting

2024-01-13 Thread Josua Mayer
are not intuitive from menuconfig, numeric values in particular. Signed-off-by: Josua Mayer --- configs/helios4_spi_defconfig | 81 +++ 1 file changed, 81 insertions(+) diff --git a/configs/helios4_spi_defconfig b/configs/helios4_spi_defconfig new file mode 100644

[PATCH 0/3] arm: mvebu: helios-4: add defconfig forspi booting et al

2024-01-13 Thread Josua Mayer
This patch-set introduces a new defconfig for spi booting on kobol helios-4. Additionally add minor update for default defconfig to enable setexpr command, and fix u-boot command access to i2c0 bus. Signed-off-by: Josua Mayer --- Josua Mayer (3): arm: dts: armada-38x-solidrun-microsom

[PATCH 2/3] arm: mvebu: helios4_defconfig: enable setexpr command

2024-01-13 Thread Josua Mayer
Update the helios4 defconfig to enable the 'setexpr' command, which is a default and useful for various complex boot-scripts. Signed-off-by: Josua Mayer --- configs/helios4_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/helios4_defconfig b/configs/helios4_defconfig index

[PATCH 1/3] arm: dts: armada-38x-solidrun-microsom: configure i2c0 bus

2024-01-13 Thread Josua Mayer
these settings from mainline. This fixes accessing i2c bus from u-boot commandline. Signed-off-by: Josua Mayer --- arch/arm/dts/armada-38x-solidrun-microsom.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/armada-38x-solidrun-microsom.dtsi b/arch/arm/dts/armada-38x-solidrun

[PATCH v2 1/2] arm: mvebu: clearfog gtr: add config option to select serdes0 interface

2024-01-12 Thread Josua Mayer
ethernet switch port. Linux already configures a fixed-link at speed 2500 from device-tree. Upgrade serdes 1 rate to 3.125Gbps to support a 2.5Gbps network link on Clearfog GTR. Signed-off-by: Josua Mayer --- board/solidrun/clearfog/Kconfig| 19 +++ board/solidrun/clearfog

[PATCH v2 2/2] board: solidrun: clearfog: fix serdes 1 / eth2 speed for clearfog gtr

2024-01-12 Thread Josua Mayer
are shared with clearfog pro. Signed-off-by: Josua Mayer --- board/solidrun/clearfog/clearfog.c | 8 1 file changed, 8 insertions(+) diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c index 51c5be518a..6977db0a9e 100644 --- a/board/solidrun/clearfog

[PATCH v2 0/2] board: solidrun: clearfog gtr: add serdes configuration

2024-01-12 Thread Josua Mayer
Add missing configuration options for clearog gtr serdes: 1. select between sata and pci-e for serdes 0 2. configure serdes 2 for 2.5Gbps link with managed switch Signed-off-by: Josua Mayer --- Changes in v2: - change choice default logic to remove kconfig warning - Link to v1: https

Re: [PATCH 1/2] arm: mvebu: clearfog gtr: add config option to select serdes0 interface

2024-01-12 Thread Josua Mayer
Hi Stefan, Am 09.01.24 um 12:45 schrieb Stefan Roese: >>   +choice CLEARFOG_GTR_SERDES0 >> +    prompt "Select Clearfog GTR SerDes 0 Function" >> +    help >> +  Select function for SerDes 0 which is shared between CON3 and CON18 >> +  for either pci-e or sata. >> + >> +config

[PATCH 2/2] board: solidrun: clearfog: fix serdes 1 / eth2 speed for clearfog gtr

2024-01-06 Thread Josua Mayer
are shared with clearfog pro. Signed-off-by: Josua Mayer --- board/solidrun/clearfog/clearfog.c | 8 1 file changed, 8 insertions(+) diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c index 51c5be518a..6977db0a9e 100644 --- a/board/solidrun/clearfog

[PATCH 1/2] arm: mvebu: clearfog gtr: add config option to select serdes0 interface

2024-01-06 Thread Josua Mayer
ethernet switch port. Linux already configures a fixed-link at speed 2500 from device-tree. Upgrade serdes 1 rate to 3.125Gbps to support a 2.5Gbps network link on Clearfog GTR. Signed-off-by: Josua Mayer --- board/solidrun/clearfog/Kconfig| 19 +++ board/solidrun/clearfog

[PATCH 0/2] board: solidrun: clearfog gtr: add serdes configuration

2024-01-06 Thread Josua Mayer
Add missing configuration options for clearog gtr serdes: 1. select between sata and pci-e for serdes 0 2. configure serdes 2 for 2.5Gbps link with managed switch Signed-off-by: Josua Mayer --- Josua Mayer (2): arm: mvebu: clearfog gtr: add config option to select serdes0 interface

[PATCH v2 2/2] cmd: mvebu/bubt: move eMMC data-partition uboot from LBA-0 to 4096

2023-10-25 Thread Josua Mayer
tion table on the eMMC data partition while also booting from it. Signed-off-by: Josua Mayer --- V1 -> V2: fixed build without CONFIG_SUPPORT_EMMC_BOOT cmd/mvebu/bubt.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.

[PATCH v2 1/2] arm: mvebu: allow additional 4096 offset for bootable mmc image

2023-10-25 Thread Josua Mayer
: 2226ca17348 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header") Signed-off-by: Josua Mayer --- arch/arm/mach-mvebu/spl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c index e

[PATCH v2 0/2] mvebu: clearfog: add support for emmc boot

2023-10-25 Thread Josua Mayer
it to compile both with, and without CONFIG_SUPPORT_EMMC_BOOT defined. Reported by Stefan Roese with turris_mox_defconfig, thanks! Josua Mayer (2): arm: mvebu: allow additional 4096 offset for bootable mmc image cmd: mvebu/bubt: move eMMC data-partition uboot from LBA-0 to 4096 arch/arm

Re: [PATCH 2/3] cmd: mvebu/bubt: move eMMC data-partition uboot from LBA-0 to 4096

2023-10-25 Thread Josua Mayer
Hi Stefan, Am 20.10.23 um 11:30 schrieb Stefan Roese: On 10/8/23 14:46, Josua Mayer wrote: +    else if (!part) +    start_lba = 4096; This patch leads to this error, e.g. for turris_mox_defconfig: cmd/mvebu/bubt.c: In function 'mmc_burn_image': cmd/mvebu/bubt.c:247:19: error: 'part

Re: [PATCH 3/3] arm: mvebu: clearfog: Add defconfigs for eMMC booting

2023-10-17 Thread Josua Mayer
Hi Stefan, Am 16.10.23 um 10:37 schrieb Stefan Roese: Hi Josua, On 10/8/23 14:46, Josua Mayer wrote: Armada 388 can boot from either eMMC data, boot0 or boot1 partitions. data partition requires booting from LBA-4096 to avoid conflict with MBR. When booting from boot0/boot1 environment

[PATCH 2/2] arm: mvebu: clearfog: support 512MB memory size from tlv eeprom

2023-10-08 Thread Josua Mayer
Handle 2GBit memory size value "2" from tlv eeprom on ddr initialisation, to support SoMs with 512MB ddr memory. Signed-off-by: Josua Mayer --- board/solidrun/clearfog/clearfog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidru

[PATCH 1/2] arm: mvebu: clearfog: read number of ddr channels from tlv data

2023-10-08 Thread Josua Mayer
Extend the existing tlv vendor extension used for ram size by one byte to also store the number of ddr channels. The length of the tlv entry can indicate whether the new information is present. If not default to single channel. Signed-off-by: Josua Mayer --- board/solidrun/clearfog/clearfog.c

[PATCH 0/2] arm: mvebu: clearfog: support additional ddr

2023-10-08 Thread Josua Mayer
This series adds support for additional memory configuration that were been produced in the past - most notably a dual-channel configuration with two 512MB modules. Josua Mayer (2): arm: mvebu: clearfog: read number of ddr channels from tlv data arm: mvebu: clearfog: support 512MB memory size

[PATCH 3/3] arm: mvebu: clearfog: Add defconfigs for eMMC booting

2023-10-08 Thread Josua Mayer
: - clearfog_emmcboot0_defconfig - clearfog_emmcboot1_defconfig - clearfog_emmcdata_defconfig Signed-off-by: Josua Mayer --- configs/clearfog_emmcboot0_defconfig | 82 configs/clearfog_emmcboot1_defconfig | 82 configs/clearfog_emmcdata_defconfig | 82

[PATCH 1/3] arm: mvebu: allow additional 4096 offset for bootable mmc image

2023-10-08 Thread Josua Mayer
: 2226ca17348 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header") Signed-off-by: Josua Mayer --- arch/arm/mach-mvebu/spl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c index 3

[PATCH 2/3] cmd: mvebu/bubt: move eMMC data-partition uboot from LBA-0 to 4096

2023-10-08 Thread Josua Mayer
tion table on the eMMC data partition while also booting from it. Signed-off-by: Josua Mayer --- cmd/mvebu/bubt.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c index ca24a5c1c4b..eb1fef9243d 100644 --- a/cmd/mvebu/bubt.c +++ b

[PATCH 0/3] mvebu: clearfog: add support for emmc boot

2023-10-08 Thread Josua Mayer
command is updated to use LBA-4096 for eMMC data partition only, keeping previous values for SD and boot0/1 unchanged Finally 3 new defconfigs are added - one for each bootable eMMC partition, selecting correct offset, and environment partition. Josua Mayer (3): arm: mvebu: allow additional 4096

Re: [PATCH] cmd: tlv_eeprom: fix signature for populate_serial_number function

2023-05-16 Thread Josua Mayer
Hi Heinrich, Am 16.05.23 um 14:21 schrieb Heinrich Schuchardt: On 5/16/23 10:27, Josua Mayer wrote: populate_serial_number is not used internally for the tlv_eeprom command, but rather provided as a library function for external use.. Remove the devnum that had recently been added by mistake

[RFC v2 3/3] cmd: tlv_eeprom: port to new shared tlv library

2023-05-16 Thread Josua Mayer
new location. Signed-off-by: Josua Mayer --- cmd/Kconfig| 9 +- cmd/tlv_eeprom.c | 507 +++-- configs/clearfog_defconfig | 2 +- include/tlv_eeprom.h | 148 --- 4 files changed, 92 insertions(+), 574 deletions(-) diff -

[RFC v2 1/3] lib: add tlv_eeprom library

2023-05-16 Thread Josua Mayer
the command implementation. Signed-off-by: Josua Mayer Cc: Stefan Roese Cc: Baruch Siach Cc: Heinrich Schuchardt --- cmd/Kconfig | 2 + include/tlv_eeprom.h | 272 lib/Kconfig | 2 + lib/Makefile | 2 + lib/tlv/Kconfig | 18 ++ lib/tlv/Makefile

[RFC v2 2/3] mvebu: clearfog: convert tlv parsing to use new library

2023-05-16 Thread Josua Mayer
Update the existing code reading tlv data from eeprom to use the new tlv library functions rather than relying on tlv_eeprom command internals. Signed-off-by: Josua Mayer --- board/solidrun/common/tlv_data.c | 46 configs/clearfog_defconfig | 4 ++- 2

[RFC v2 0/3] lib: tlv_eeprom: refactor API

2023-05-16 Thread Josua Mayer
the coming weeks. Josua Mayer (3): lib: add tlv_eeprom library mvebu: clearfog: convert tlv parsing to use new library cmd: tlv_eeprom: port to new shared tlv library board/solidrun/common/tlv_data.c | 46 +-- cmd/Kconfig | 7 +- cmd/tlv_eeprom.c

[PATCH] cmd: tlv_eeprom: fix signature for populate_serial_number function

2023-05-16 Thread Josua Mayer
the function to same purpose, along with a node that it only supports reading from the first EEPROM in the system. Fixes: dfda0c0 ("cmd: tlv_eeprom: remove use of global variable current_dev") Signed-off-by: Josua Mayer Cc: Stefan Roese Cc: Baruch Siach Cc: Heinrich Schuchardt

Re: [[PATCH v2] 4/4] cmd: tlv_eeprom: enable 'dev' subcommand before 'read'

2023-05-13 Thread Josua Mayer
address your concerns more easily than the current eeprom_tlv implementation. Sincerely Josua Mayer Am 08.05.23 um 17:42 schrieb Simon Glass: Hi, On Fri, 5 May 2023 at 02:22, Josua Mayer wrote: Move the handler for "tlv_eeprom dev X" command to the beginning of do_tlv_eeprom, to a

[[PATCH v2] 4/4] cmd: tlv_eeprom: enable 'dev' subcommand before 'read'

2023-05-05 Thread Josua Mayer
ggered device lookup. Instead accept values up to the defined array size (MAX_TLV_DEVICES). Signed-off-by: Josua Mayer Reviewed-by: Stefan Roese Cc: Stefan Roese Cc: Baruch Siach Cc: Heinrich Schuchardt --- cmd/tlv_eeprom.c | 26 -- 1 file changed, 16 insertions(+), 1

[[PATCH v2] 2/4] cmd: tlv_eeprom: remove use of global variable has_been_read

2023-05-05 Thread Josua Mayer
has_been_read is only used as an optimization for do_tlv_eeprom. Explicitly use and set inside this function, thus making read_eeprom stateless. Signed-off-by: Josua Mayer Reviewed-by: Stefan Roese Cc: Stefan Roese Cc: Baruch Siach Cc: Heinrich Schuchardt --- cmd/tlv_eeprom.c | 21

[[PATCH v2] 3/4] cmd: tlv_eeprom: handle -ENODEV error from read_eeprom function

2023-05-05 Thread Josua Mayer
When tlv eeprom does not exist, return error code instead of quietly making up tlv structure in memory. Signed-off-by: Josua Mayer Reviewed-by: Stefan Roese Cc: Stefan Roese Cc: Baruch Siach Cc: Heinrich Schuchardt --- cmd/tlv_eeprom.c | 22 -- 1 file changed, 16

[[PATCH v2] 1/4] cmd: tlv_eeprom: remove use of global variable current_dev

2023-05-05 Thread Josua Mayer
Make tlv_eeprom command device selection an explicit parameter of all function calls. Signed-off-by: Josua Mayer Cc: Stefan Roese Cc: Baruch Siach Cc: Heinrich Schuchardt --- cmd/tlv_eeprom.c | 50 ++-- include/tlv_eeprom.h | 3 ++- 2 files

[[PATCH v2] 0/4] cmd: tlv_eeprom: global variables and error cleanup

2023-05-05 Thread Josua Mayer
h!!! I had forgotten to send in v1 - added reviewed-tags by Stefan for patches 2-4 Josua Mayer (4): cmd: tlv_eeprom: remove use of global variable current_dev cmd: tlv_eeprom: remove use of global variable has_been_read cmd: tlv_eeprom: handle -ENODEV error from read_eeprom function cmd:

Re: [PATCH 1/3] cmd: tlv_eeprom: remove use of global variable has_been_read

2023-05-05 Thread Josua Mayer
Hi Stefan, Thanks for reviewing. I just rebased on https://source.denx.de/u-boot/u-boot.git / master, and will send new version soon. - Josua Mayer Am 03.05.23 um 09:55 schrieb Stefan Roese: Hi Josua, On 4/29/23 11:15, Josua Mayer wrote: has_been_read is only used as an optimization

[PATCH 2/3] cmd: tlv_eeprom: handle -ENODEV error from read_eeprom function

2023-04-29 Thread Josua Mayer
When tlv eeprom does not exist, return error code instead of quietly making up tlv structure in memory. Signed-off-by: Josua Mayer Cc: Stefan Roese Cc: Baruch Siach Cc: Heinrich Schuchardt --- cmd/tlv_eeprom.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions

[PATCH 3/3] cmd: tlv_eeprom: enable 'dev' subcommand before 'read'

2023-04-29 Thread Josua Mayer
ggered device lookup. Instead accept values up to the defined array size (MAX_TLV_DEVICES). Signed-off-by: Josua Mayer Cc: Stefan Roese Cc: Baruch Siach Cc: Heinrich Schuchardt --- cmd/tlv_eeprom.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/cm

[PATCH 1/3] cmd: tlv_eeprom: remove use of global variable has_been_read

2023-04-29 Thread Josua Mayer
has_been_read is only used as an optimization for do_tlv_eeprom. Explicitly use and set inside this function, thus making read_eeprom stateless. Signed-off-by: Josua Mayer Cc: Stefan Roese Cc: Baruch Siach Cc: Heinrich Schuchardt --- cmd/tlv_eeprom.c | 21 +++-- 1 file

[PATCH 0/3] cmd: tlv_eeprom: global variables and error cleanup

2023-04-29 Thread Josua Mayer
This patch-set removes some uses of global variables, and improves error reporting for the "read" command. It is intended to help switching to a split tlv library eventually, but general enough to apply independently. Josua Mayer (3): cmd: tlv_eeprom: remove use of global variable has

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-25 Thread Josua Mayer
Hi Pali, Martin, Am 25.02.23 um 10:48 schrieb Martin Rowe: On Sat, 25 Feb 2023 at 07:41, Pali Rohár wrote: On Saturday 25 February 2023 11:42:20 Martin Rowe wrote: This new clearfog_spi_defconfig file is copy of existing clearfog_defconfig file and changed to instruct build system to

Re: [PATCH] mx6cuboxi: fix ethernet after synchronise device-tree

2022-07-28 Thread Josua Mayer
Please hold off merging this patch until someone tested it, I can not do so this week. @Tom Can you confirm if this fixes the networking on your Cubox? Also note that the phy-handle property may or may not be required, I am not sure. sincerely Josua Mayer On Thu, Jul 28, 2022 at 7:05 AM Josua

Re: Pull request: u-boot-imx u-boot-imx-20220726

2022-07-28 Thread Josua Mayer
ft a patch to test this theory, later today. sincerely Josua Mayer On Wed, Jul 27, 2022 at 12:14 PM Fabio Estevam wrote: > [Adding Josua] > > On Tue, Jul 26, 2022 at 3:12 PM Tom Rini wrote: > > > So, funny issue here now. With: > > commit d0399a46e7cda63c07e3eb855

Re: [PATCH v2 4/5] mx6cuboxi: fixup dtb ethernet phy nodes before booting an OS

2022-06-16 Thread Josua Mayer
. sincerely Josua Mayer Am 15.06.22 um 14:11 schrieb sba...@denx.de: SoM revision 1.9 has replaced the ar8035 phy address 0 with an adin1300 at address 1. Because early SoMs had a hardware flaw, the ar8035 can also appear at address 4 - making it a total of 3 phy nodes in the DTB. To avoid confusing

[PATCH] mx6cuboxi: fix board detection while patching device-tree phy nodes

2022-06-16 Thread Josua Mayer
fixup dtb ethernet phy nodes before booting an OS") Signed-off-by: Josua Mayer --- board/solidrun/mx6cuboxi/mx6cuboxi.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/board/solidrun/mx6cuboxi/mx6cuboxi.c index

Re: [PATCH v2 3/5] ARM: dts: imx6qdl-sr-som: add support for alternate phy addresses

2022-05-19 Thread Josua Mayer
Hi Mark, Am 19.05.22 um 13:21 schrieb Mark Kettenis: From: Josua Mayer Date: Thu, 19 May 2022 12:31:58 +0300 The Cubox has an unstable phy address - which can appear at either address 0 (intended) or 4 (unintended). SoM revision 1.9 has replaced the ar8035 phy with an adin1300, which

Re: [PATCH v2 4/5] mx6cuboxi: fixup dtb ethernet phy nodes before booting an OS

2022-05-19 Thread Josua Mayer
Hold off on this one, I found a mistake in the switch case below. While fully functional, it does enable both phy nodes for addresses 0 and 4 unconditionally. Cubox requires both, as do potentially any derivate devices - but the HummingBoards do not. Am 19.05.22 um 12:31 schrieb Josua Mayer

[PATCH v2 4/5] mx6cuboxi: fixup dtb ethernet phy nodes before booting an OS

2022-05-19 Thread Josua Mayer
node that is detected at runtime. Signed-off-by: Josua Mayer --- board/solidrun/mx6cuboxi/mx6cuboxi.c | 78 configs/mx6cuboxi_defconfig | 1 + 2 files changed, 79 insertions(+) diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/board/solidrun/mx6cuboxi

[PATCH v2 5/5] mx6cuboxi: enable driver for adin1300 phy

2022-05-19 Thread Josua Mayer
Since SoMs revision 1.9 the ar8035 phy has been replaced by adin1300. Enable the driver so that the new SoMs have functional networking. Signed-off-by: Josua Mayer --- configs/mx6cuboxi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6cuboxi_defconfig b/configs

[PATCH v2 1/5] phy: adin: fix broken support for adi, phy-mode-override

2022-05-19 Thread Josua Mayer
for phy_get_interface_by_name: https://github.com/u-boot/u-boot/commit/123ca114e07ecf28aa2538748d733e2b22d8b8b5 This patch refactors adin_get_phy_mode_override, implementing the logic in the new function, ofnode_read_phy_mode, from the patch above. Signed-off-by: Nate Drude Tested-by: Josua Mayer

[PATCH v2 3/5] ARM: dts: imx6qdl-sr-som: add support for alternate phy addresses

2022-05-19 Thread Josua Mayer
at it also sync the reset-delay with the upstream Linux dtb. [1] https://patchwork.kernel.org/project/netdevbpf/patch/20220428082848.12191-4-jo...@solid-run.com/ Signed-off-by: Josua Mayer --- arch/arm/dts/imx6qdl-sr-som.dtsi | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions

[PATCH v2 2/5] phy: adin: add support for clock output

2022-05-19 Thread Josua Mayer
[1]. [2] https://patchwork.kernel.org/project/netdevbpf/cover/20220517085143.3749-1-jo...@solid-run.com/ Signed-off-by: Josua Mayer --- V1 -> V2: removed recovered clock options drivers/net/phy/adin.c | 42 ++ 1 file changed, 42 insertions(+) diff --

[PATCH v2 0/5] mx6cuboxi: add eth support for SoMs revision 1.9+

2022-05-19 Thread Josua Mayer
defconfig I have included Nate's patch here only so that it won't get lost - it is fully independent and I have not made any changes. Changes since v1: - applied proper compile fix by Nate Drude - removed -recovered clock options as requested by Linux maintainers Josua Mayer (4): phy: adin: add

Re: [PATCH 0/5] mx6cuboxi: add eth support for SoMs revision 1.9+

2022-05-19 Thread Josua Mayer
changes the Linux maintainers asked for - and drop the first patch now that Nate Drude has submitted a fix: phy: adin: fix broken support for adi,phy-mode-override sincerely Josua Mayer Am 01.05.22 um 15:41 schrieb Josua Mayer: As of Revision 1.9 the SolidRun i.MX6 SoMs ship with a new PHY

Re: [PATCH 1/5] phy: adin: remove broken support for adi,phy-mode-override

2022-05-08 Thread Josua Mayer
, or if it can be applied. Am 05.05.22 um 18:30 schrieb Josua Mayer: \o/ Am 04.05.22 um 15:46 schrieb Nate Drude: Hi Josua, On Wed, 2022-05-04 at 11:51 +0300, Josua Mayer wrote: Hi Nate, Am 02.05.22 um 16:25 schrieb Nate Drude: Hi Josua, On Sun, 2022-05-01 at 15:41 +0300, Josua Mayer wrote

Re: [PATCH] phy: adin: fix broken support for adi,phy-mode-override

2022-05-08 Thread Josua Mayer
Hi Nate, That was quick! I have rebased my changes on top of this patch, and can confirm that the adin phy driver compiles, and still works. I did not test setting adi,[rt]x-internal-delay-ps in dts though. So, I guess you can add my superficial Tested-By: Josua Mayer [PATCH 0/5] mx6cuboxi

Re: [PATCH 1/5] phy: adin: remove broken support for adi,phy-mode-override

2022-05-05 Thread Josua Mayer
\o/ Am 04.05.22 um 15:46 schrieb Nate Drude: Hi Josua, On Wed, 2022-05-04 at 11:51 +0300, Josua Mayer wrote: Hi Nate, Am 02.05.22 um 16:25 schrieb Nate Drude: Hi Josua, On Sun, 2022-05-01 at 15:41 +0300, Josua Mayer wrote: The adin_get_phy_mode_override function does not compile, because

Re: [PATCH 1/5] phy: adin: remove broken support for adi,phy-mode-override

2022-05-04 Thread Josua Mayer
Hi Nate, Am 02.05.22 um 16:25 schrieb Nate Drude: Hi Josua, On Sun, 2022-05-01 at 15:41 +0300, Josua Mayer wrote: The adin_get_phy_mode_override function does not compile, because it is missing both declaration and implementation of phy_get_interface_by_name. Remove the whole function

Re: [PATCH 04/12] cmd: tlv_eeprom: convert functions used by command to api functions

2022-05-03 Thread Josua Mayer
\o/ Am 03.05.22 um 13:54 schrieb Stefan Roese: Hi Josua, On 03.05.22 09:17, Josua Mayer wrote: Am 03.05.22 um 09:16 schrieb Stefan Roese: On 02.05.22 16:18, Josua Mayer wrote: - prog_eeprom: write_tlvinfo_tlv_eeprom - update_crc: tlvinfo_update_crc - is_valid_tlv: is_valid_tlvinfo_entry

Re: [PATCH 04/12] cmd: tlv_eeprom: convert functions used by command to api functions

2022-05-03 Thread Josua Mayer
Am 03.05.22 um 09:16 schrieb Stefan Roese: On 02.05.22 16:18, Josua Mayer wrote: - prog_eeprom: write_tlvinfo_tlv_eeprom - update_crc: tlvinfo_update_crc - is_valid_tlv: is_valid_tlvinfo_entry - is_checksum_valid: tlvinfo_check_crc So while creating a new API it makes sense to prepend

Re: [PATCH 01/12] cmd: tlv_eeprom: remove use of global variable current_dev

2022-05-03 Thread Josua Mayer
(if there is next version that is). Made a mental note, will do. On 02.05.22 16:18, Josua Mayer wrote: Make tlv_eeprom command device selection an explicit parameter of all function calls. Signed-off-by: Josua Mayer Reviewed-by: Stefan Roese Thanks, Stefan ---   cmd/tlv_eeprom.c | 50

[PATCH 10/12] cmd: tlv_eeprom: split off tlv library from command

2022-05-02 Thread Josua Mayer
The eeprom command includes functions for reading and writing tlv-formatted data from an eeprom, as well as an implementation of the cli command tlv_eeprom. Split off the parsing, read and write into a standalone tlv library. Signed-off-by: Josua Mayer --- cmd/Kconfig | 2 + cmd

[PATCH 12/12] lib: tlv_eeprom: add function for reading one entry into a C string

2022-05-02 Thread Josua Mayer
This solves the potentially common problem of getting a specific tlv entry from an eeprom in board-files, without having to introduce several variables, error handling, memcpy and 0-terminating the string. Signed-off-by: Josua Mayer --- include/tlv_eeprom.h | 12 lib/tlv

[PATCH 09/12] cmd: tlv_eeprom: add my copyright

2022-05-02 Thread Josua Mayer
While each of the previous individual changes is small, accumulated they amount to a substantial effort. Explicitly add a Copyright declaration. Signed-off-by: Josua Mayer --- cmd/tlv_eeprom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/tlv_eeprom.c b/cmd/tlv_eeprom.c index

[PATCH 11/12] arm: mvebu: clearfog: enable tlv library for spl in favour of eeprom cmd

2022-05-02 Thread Josua Mayer
The board file used CONFIG_SPL_CMD_TLV_EEPROM as a library to facilitate reading tlv data with the memory size from eeprom. Since the tlv library has been split off, only CONFIG_SPL_EEPROM_TLV_LIB is required now. Signed-off-by: Josua Mayer --- configs/clearfog_defconfig | 3 ++- 1 file changed

[PATCH 07/12] cmd: tlv_eeprom: hide access to static tlv_devices array behind accessor

2022-05-02 Thread Josua Mayer
The tlv_eeprom command logic checks the static tlv_devices array to validate the eeprom number. This array will be move to a separate tlv library. Hide this access behind a new function exists_tlv_eeprom. Signed-off-by: Josua Mayer --- cmd/tlv_eeprom.c | 12 ++-- include

[PATCH 08/12] cmd: tlv_eeprom: clean up two defines for one thing

2022-05-02 Thread Josua Mayer
MAX_TLV_DEVICES defined in C, and TLV_MAX_DEVICES defined in the header serve the same purpose. Replace all occurences of the former by the latter. Signed-off-by: Josua Mayer --- cmd/tlv_eeprom.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/cmd/tlv_eeprom.c b

[PATCH 06/12] cmd: tlv_eeprom: move missing declarations and defines to header

2022-05-02 Thread Josua Mayer
In preparation of splitting the tlv_eeprom command into a separate library, add function declarations and defines used by the command logic to the tlv_eeprom header file. Signed-off-by: Josua Mayer --- cmd/tlv_eeprom.c | 59 include/tlv_eeprom.h

[PATCH 04/12] cmd: tlv_eeprom: convert functions used by command to api functions

2022-05-02 Thread Josua Mayer
- prog_eeprom: write_tlvinfo_tlv_eeprom - update_crc: tlvinfo_update_crc - is_valid_tlv: is_valid_tlvinfo_entry - is_checksum_valid: tlvinfo_check_crc Signed-off-by: Josua Mayer --- cmd/tlv_eeprom.c | 56 +++ include/tlv_eeprom.h | 57

[PATCH 05/12] cmd: tlv_eeprom: remove empty function implementations from header

2022-05-02 Thread Josua Mayer
tlv_eeprom exposed functions are independent from platforms, hence no stubs are required. Signed-off-by: Josua Mayer --- include/tlv_eeprom.h | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/include/tlv_eeprom.h b/include/tlv_eeprom.h index

[PATCH 02/12] cmd: tlv_eeprom: remove use of global variable has_been_read

2022-05-02 Thread Josua Mayer
has_been_read is only used as an optimization for do_tlv_eeprom. Explicitly use and set inside this function, thus making read_eeprom stateless. Signed-off-by: Josua Mayer --- cmd/tlv_eeprom.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/cmd

[PATCH 03/12] cmd: tlv_eeprom: do_tlv_eeprom: stop using non-api read_eeprom function

2022-05-02 Thread Josua Mayer
IN the scope of do_tlv_eeprom, the error-checking provided by the read_eeprom function is not required. Instead use the API function read_tlv_eeprom. Signed-off-by: Josua Mayer --- cmd/tlv_eeprom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tlv_eeprom.c b/cmd

[PATCH 01/12] cmd: tlv_eeprom: remove use of global variable current_dev

2022-05-02 Thread Josua Mayer
Make tlv_eeprom command device selection an explicit parameter of all function calls. Signed-off-by: Josua Mayer --- cmd/tlv_eeprom.c | 50 ++-- include/tlv_eeprom.h | 3 ++- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/cmd

[PATCH 00/12] split tlv_eeprom command into a separate library

2022-05-02 Thread Josua Mayer
and reduce the amount of duplicate code to carry around. Josua Mayer (12): cmd: tlv_eeprom: remove use of global variable current_dev cmd: tlv_eeprom: remove use of global variable has_been_read cmd: tlv_eeprom: do_tlv_eeprom: stop using non-api read_eeprom function cmd: tlv_eeprom

[PATCH 4/5] mx6cuboxi: fixup dtb ethernet phy nodes before booting an OS

2022-05-01 Thread Josua Mayer
node that is detected at runtime. Signed-off-by: Josua Mayer --- board/solidrun/mx6cuboxi/mx6cuboxi.c | 78 configs/mx6cuboxi_defconfig | 1 + 2 files changed, 79 insertions(+) diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/board/solidrun/mx6cuboxi

[PATCH 5/5] mx6cuboxi: enable driver for adin1300 phy

2022-05-01 Thread Josua Mayer
Since SoMs revision 1.9 the ar8038 phy has been replaced by adin1300. Enable the driver so that the new SoMs have functional networking. Signed-off-by: Josua Mayer --- configs/mx6cuboxi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6cuboxi_defconfig b/configs

[PATCH 3/5] ARM: dts: imx6qdl-sr-som: add support for alternate phy addresses

2022-05-01 Thread Josua Mayer
at it also sync the reset-delay with the upstream Linux dtb. [1] https://patchwork.kernel.org/project/netdevbpf/patch/20220428082848.12191-4-jo...@solid-run.com/ Signed-off-by: Josua Mayer --- arch/arm/dts/imx6qdl-sr-som.dtsi | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions

[PATCH 2/5] phy: adin: add support for clock output

2022-05-01 Thread Josua Mayer
/netdevbpf/patch/20220428082848.12191-2-jo...@solid-run.com/ [2] https://patchwork.kernel.org/project/netdevbpf/patch/20220428082848.12191-4-jo...@solid-run.com/ Signed-off-by: Josua Mayer --- drivers/net/phy/adin.c | 46 ++ 1 file changed, 46 insertions

[PATCH 1/5] phy: adin: remove broken support for adi, phy-mode-override

2022-05-01 Thread Josua Mayer
-by: Josua Mayer --- drivers/net/phy/adin.c | 34 -- 1 file changed, 34 deletions(-) diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c index cff841ab3d..2433e76fea 100644 --- a/drivers/net/phy/adin.c +++ b/drivers/net/phy/adin.c @@ -94,35 +94,6 @@ static u32

[PATCH 0/5] mx6cuboxi: add eth support for SoMs revision 1.9+

2022-05-01 Thread Josua Mayer
the clock output pins to the phy driver 3. update device-tree with support for the neew phy 4. support runtime patching of device-tree for Linux: enables only the phy node detected during boot, to avoid warning messages during boot. 5. finally enable the phy driver in the cuboxi defconfig Josua

[PATCH] arm: mvebu: clearfog: add scsi target to distro-boot

2020-02-17 Thread Josua Mayer
Support for sata devices via the scsi command is available and already enabled by default for the Clearfog Base and Pro. This change adds scsi to the list of boot targets used by distro-boot. Signed-off-by: Josua Mayer Cc: Stefan Roese --- include/configs/clearfog.h | 7 +++ 1 file changed

[U-Boot] [PATCH 1/1] add Kconfig for fsuuid command

2017-04-24 Thread Josua Mayer
CONFIG_CMD_FS_UUID was neither whitelisted, nor was it declared in Kconfig. Now it can be enabled in .config and defconfig as expected. Signed-off-by: Josua Mayer <josua.maye...@gmail.com> --- cmd/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig

[U-Boot] [PATCH 0/1] Allow fsuuid command to be built

2017-04-24 Thread Josua Mayer
Hi everybody, With the fsuuid command not being listed in Kconfig, and not being whitelisted, it was impossible to be build it. This patch rectifies that situation by adding a Kconfig piece for it. br Josua Mayer Josua Mayer (1): clearfog: enable distro boot code Kconfig