Re: [PATCH v2 1/3] net: eth-uclass: Introduce NET_PREFER_ROM_MAC_ADDR

2024-04-23 Thread Detlev Casanova
On Monday, April 22, 2024 3:47:21 P.M. EDT Marek Vasut wrote: > On 4/22/24 3:56 PM, Detlev Casanova wrote: > > On some boards, a MAC address is set based on the CPU ID or other > > information. This is usually done in the misc_init_r() function. > > > > This become

[PATCH v2 3/3] net: eth-uclass: Add driver source possibility

2024-04-22 Thread Detlev Casanova
t;driver" instead to avoid confusion. Signed-off-by: Detlev Casanova --- net/eth-uclass.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 682de3ec7bd..3caf03eaef6 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -

[PATCH v2 2/3] configs/rock5b: Set NET_PREFER_ROM_MAC_ADDR to y

2024-04-22 Thread Detlev Casanova
--- configs/rock5b-rk3588_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/rock5b-rk3588_defconfig b/configs/rock5b-rk3588_defconfig index 58c7c44fb4f..4cd4d369561 100644 --- a/configs/rock5b-rk3588_defconfig +++ b/configs/rock5b-rk3588_defconfig @@ -106,3 +106,4 @@

[PATCH v2 1/3] net: eth-uclass: Introduce NET_PREFER_ROM_MAC_ADDR

2024-04-22 Thread Detlev Casanova
address, which can be confusing. To avoid that, this commit introduces NET_PREFER_ROM_MAC_ADDR that can be set for boards that have such an interface. Signed-off-by: Detlev Casanova --- net/Kconfig | 7 +++ net/eth-uclass.c | 9 +++-- 2 files changed, 14 insertions(+), 2 deletions

[PATCH v2 0/3] Introduce NET_PREFER_ROM_MAC_ADDR config

2024-04-22 Thread Detlev Casanova
with a NET_PREFER_ROM_MAC_ADDR config Detlev Casanova (3): net: eth-uclass: Introduce NET_PREFER_ROM_MAC_ADDR configs/rock5b: Set NET_PREFER_ROM_MAC_ADDR to y net: eth-uclass: Add driver source possibility configs/rock5b-rk3588_defconfig | 1 + net/Kconfig | 7 +++ net/eth

Re: [PATCH 2/3] rockchip: Add a board_gen_ethaddr() function

2024-04-02 Thread Detlev Casanova
Hi Jonas, On Thursday, March 14, 2024 2:38:30 P.M. EDT Jonas Karlman wrote: > Hi Detlev, > > On 2024-03-14 15:43, Detlev Casanova wrote: > > Set the MAC address based on the CPU ID only if the ethernet device has > > no ROM or DT address set. > > This patch chan

[PATCH 3/3] net: eth-uclass: Add driver source possibility

2024-03-14 Thread Detlev Casanova
t;driver" instead to avoid confusion. Signed-off-by: Detlev Casanova --- net/eth-uclass.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/eth-uclass.c b/net/eth-uclass.c index f194df8512a..6e521955fa5 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -

[PATCH 2/3] rockchip: Add a board_gen_ethaddr() function

2024-03-14 Thread Detlev Casanova
Set the MAC address based on the CPU ID only if the ethernet device has no ROM or DT address set. Signed-off-by: Detlev Casanova --- arch/arm/Kconfig | 1 + arch/arm/include/asm/arch-rockchip/misc.h | 1 + arch/arm/mach-rockchip/board.c| 30

[PATCH 1/3] net: Add a CONFIG_NET_BOARD_ETHADDR

2024-03-14 Thread Detlev Casanova
it. - If not, if there is a DT MAC address, use it. - If not, if there is a ROM MAC address, use it. - If not, if CONFIG_NET_BOARD_ETHADDR, call board_gen_ethaddr() and use it. - If not, if CONFIG_NET_RANDOM_ETHADDR, generate random MAC - If not, fail with No valid MAC address found Signed-off-by: Detlev

[PATCH 0/3] net: Add a CONFIG_NET_BOARD_ETHADDR

2024-03-14 Thread Detlev Casanova
Basically, the MAC address generation needs to use a board function in its decision algorithm so that there is no MAC mismatch between ROM and environment depending on the order of function calling. See the first commit message for details. Detlev Casanova (3): net: Add

Re: [PATCH v5 1/6] sysinfo: Add IDs for board id and revision

2023-10-18 Thread Detlev Casanova
On Monday, October 16, 2023 1:37:40 P.M. EDT Heinrich Schuchardt wrote: > On 10/2/23 17:20, Detlev Casanova wrote: > > These IDs will be used by the sysinfo command. The new IDs are: > > * SYSINFO_ID_BOARD_ID: The board ID as an integer > > * SYSINFO_ID_BOARD_REV_M

Re: [PATCH v5 6/6] sysinfo: rcar3: Implement BOARD_ID and BOARD_REV_*

2023-10-16 Thread Detlev Casanova
On Saturday, October 7, 2023 5:35:27 P.M. EDT Marek Vasut wrote: > On 10/2/23 17:20, Detlev Casanova wrote: > > Expose that information to the sysinfo command to let scripts make > > decisions based on the board id and revision. > > > > Signed-off-by: Detlev Casanova

Re: [PATCH v5 2/6] cmd: Add a sysinfo command

2023-10-16 Thread Detlev Casanova
On Monday, October 2, 2023 2:56:28 P.M. EDT Simon Glass wrote: > On Mon, 2 Oct 2023 at 09:21, Detlev Casanova > > wrote: > > The command is able to show different information for the running > > system: > > * Model name > > * Board ID > > * Revision &g

[PATCH v5 6/6] sysinfo: rcar3: Implement BOARD_ID and BOARD_REV_*

2023-10-02 Thread Detlev Casanova
Expose that information to the sysinfo command to let scripts make decisions based on the board id and revision. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 89 + 1 file changed, 63 insertions(+), 26 deletions(-) diff --git a/drivers

[PATCH v5 5/6] sysinfo: rcar3: Use int instead of char for revision

2023-10-02 Thread Detlev Casanova
To be used with the sysinfo command, revision values must be considered as integers, not chars as some boards will implement BOARD_REVISION_* and might use numbers greater than 9. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 73 ++--- 1 file

[PATCH v5 4/6] sysinfo: Add documentation

2023-10-02 Thread Detlev Casanova
Add documentation for the sysinfo command with examples. Reviewed-by: Marek Vasut Signed-off-by: Detlev Casanova --- doc/usage/cmd/sysinfo.rst | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 doc/usage/cmd/sysinfo.rst diff --git a/doc/usage

[PATCH v5 3/6] sysinfo: Add a test

2023-10-02 Thread Detlev Casanova
The test runs one of each subcommand and checks that the output matches the values in the sandbox sysinfo driver. Reviewed-by: Marek Vasut Signed-off-by: Detlev Casanova --- configs/sandbox_defconfig | 1 + drivers/sysinfo/sandbox.c | 17 + test/cmd/Makefile | 1 + test

[PATCH v5 2/6] cmd: Add a sysinfo command

2023-10-02 Thread Detlev Casanova
The command is able to show different information for the running system: * Model name * Board ID * Revision This command can be used by boot shell scripts to select configurations depending on the specific running system. Reviewed-by: Marek Vasut Signed-off-by: Detlev Casanova --- cmd

[PATCH v5 1/6] sysinfo: Add IDs for board id and revision

2023-10-02 Thread Detlev Casanova
These IDs will be used by the sysinfo command. The new IDs are: * SYSINFO_ID_BOARD_ID: The board ID as an integer * SYSINFO_ID_BOARD_REV_MAJOR: The board major revision as int * SYSINFO_ID_BOARD_REV_MINOR: The board minor revision as int Reviewed-by: Marek Vasut Signed-off-by: Detlev Casanova

[PATCH v5 0/6] Introduce the sysinfo command

2023-10-02 Thread Detlev Casanova
: - Removed shell function to select linux device tree. This will be distributions job. - Break revision in rev_major and rev_minor in the sysinfo driver. Detlev Casanova (6): sysinfo: Add IDs for board id and revision cmd: Add a sysinfo command sysinfo: Add a test sysinfo: Add documentation

Re: [PATCH v4 0/6] Introduce the sysinfo command

2023-08-08 Thread Detlev Casanova
On Tuesday, August 8, 2023 10:21:11 A.M. EDT Peter Robinson wrote: > On Thu, Jul 20, 2023 at 3:50 PM Detlev Casanova > > wrote: > > The command can be used to show various information that can be used to > > identify the running system. > > > > Currently suppo

[PATCH v4 6/6] sysinfo: rcar3: Implement BOARD_ID and BOARD_REV_*

2023-07-20 Thread Detlev Casanova
Expose that information to the sysinfo command to let scripts make decisions based on the board id and revision. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 103 +++- 1 file changed, 70 insertions(+), 33 deletions(-) diff --git a/drivers

[PATCH v4 5/6] sysinfo: rcar3: Use int instead of char for revision

2023-07-20 Thread Detlev Casanova
To be used with the sysinfo command, revision values must be considered as integers, not chars as some boards will implement BOARD_REVISION_* and might use numbers greater than 9. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 104 1 file

[PATCH v4 4/6] sysinfo: Add documentation

2023-07-20 Thread Detlev Casanova
Add documentation for the sysinfo command with examples. Reviewed-by: Marek Vasut Signed-off-by: Detlev Casanova --- doc/usage/cmd/sysinfo.rst | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 doc/usage/cmd/sysinfo.rst diff --git a/doc/usage

[PATCH v4 3/6] sysinfo: Add a test

2023-07-20 Thread Detlev Casanova
The test runs one of each subcommand and checks that the output matches the values in the sandbox sysinfo driver. Reviewed-by: Marek Vasut Signed-off-by: Detlev Casanova --- configs/sandbox_defconfig | 1 + drivers/sysinfo/sandbox.c | 17 + test/cmd/Makefile | 1 + test

[PATCH v4 2/6] cmd: Add a sysinfo command

2023-07-20 Thread Detlev Casanova
The command is able to show different information for the running system: * Model name * Board ID * Revision This command can be used by boot shell scripts to select configurations depending on the specific running system. Reviewed-by: Marek Vasut Signed-off-by: Detlev Casanova --- cmd

[PATCH v4 1/6] sysinfo: Add IDs for board id and revision

2023-07-20 Thread Detlev Casanova
These IDs will be used by the sysinfo command. The new IDs are: * SYSINFO_ID_BOARD_ID: The board ID as an integer * SYSINFO_ID_BOARD_REV_MAJOR: The board major revision as int * SYSINFO_ID_BOARD_REV_MINOR: The board minor revision as int Reviewed-by: Marek Vasut Signed-off-by: Detlev Casanova

[PATCH v4 0/6] Introduce the sysinfo command

2023-07-20 Thread Detlev Casanova
revision in rev_major and rev_minor in the sysinfo driver. Detlev Casanova (6): sysinfo: Add IDs for board id and revision cmd: Add a sysinfo command sysinfo: Add a test sysinfo: Add documentation sysinfo: rcar3: Use int instead of char for revision sysinfo: rcar3: Implement BOARD_ID

Re: [PATCH v3 4/6] sysinfo: Add documentation

2023-07-17 Thread Detlev Casanova
On Friday, July 14, 2023 1:31:00 P.M. EDT Marek Vasut wrote: > On 7/14/23 18:43, Detlev Casanova wrote: > > [...] > > > +Return value > > + > > + > > +The return value $? is set to 0 (true) if the command succededd > > succeeded -- typo >

Re: [PATCH v3 5/6] sysinfo: rcar3: Use int instead of char for revision

2023-07-14 Thread Detlev Casanova
On Friday, July 14, 2023 1:33:01 P.M. EDT Marek Vasut wrote: > On 7/14/23 18:43, Detlev Casanova wrote: > > To be used with the sysinfo command, revision values must be considered > > as integers, not chars as some boards will implement BOARD_REVISION_* > > and might use n

[PATCH v3 6/6] sysinfo: rcar3: Implement BOARD_ID and BOARD_REV_*

2023-07-14 Thread Detlev Casanova
Expose that information to the sysinfo command to let scripts make decisions based on the board id and revision. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 103 +++- 1 file changed, 70 insertions(+), 33 deletions(-) diff --git a/drivers

[PATCH v3 5/6] sysinfo: rcar3: Use int instead of char for revision

2023-07-14 Thread Detlev Casanova
To be used with the sysinfo command, revision values must be considered as integers, not chars as some boards will implement BOARD_REVISION_* and might use numbers greater than 9. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 104 1 file

[PATCH v3 4/6] sysinfo: Add documentation

2023-07-14 Thread Detlev Casanova
Add documentation for the sysinfo command with examples. Signed-off-by: Detlev Casanova --- doc/usage/cmd/sysinfo.rst | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 doc/usage/cmd/sysinfo.rst diff --git a/doc/usage/cmd/sysinfo.rst b/doc/usage

[PATCH v3 3/6] sysinfo: Add a test

2023-07-14 Thread Detlev Casanova
The test runs one of each subcommand and checks that the output matches the values in the sandbox sysinfo driver. Signed-off-by: Detlev Casanova --- configs/sandbox_defconfig | 1 + drivers/sysinfo/sandbox.c | 17 + test/cmd/Makefile | 1 + test/cmd/test_sysinfo.c | 51

[PATCH v3 2/6] cmd: Add a sysinfo command

2023-07-14 Thread Detlev Casanova
The command is able to show different information for the running system: * Model name * Board ID * Revision This command can be used by boot shell scripts to select configurations depending on the specific running system. Signed-off-by: Detlev Casanova --- cmd/Kconfig | 6 +++ cmd

[PATCH v3 1/6] sysinfo: Add IDs for board id and revision

2023-07-14 Thread Detlev Casanova
These IDs will be used by the sysinfo command. The new IDs are: * SYSINFO_ID_BOARD_ID: The board ID as an integer * SYSINFO_ID_BOARD_REV_MAJOR: The board major revision as int * SYSINFO_ID_BOARD_REV_MINOR: The board minor revision as int Signed-off-by: Detlev Casanova --- include/sysinfo.h

[PATCH v3 0/5] Introduce the sysinfo command

2023-07-14 Thread Detlev Casanova
in the sysinfo driver. Detlev Casanova (6): sysinfo: Add IDs for board id and revision cmd: Add a sysinfo command sysinfo: Add a test sysinfo: Add documentation sysinfo: rcar3: Use int instead of char for revision sysinfo: rcar3: Implement BOARD_ID and BOARD_REV_* cmd/Kconfig

[PATCH v2 4/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION_*

2023-06-28 Thread Detlev Casanova
Expose that information to the command shell to let scripts select the correct devicetree name. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 103 +++- 1 file changed, 70 insertions(+), 33 deletions(-) diff --git a/drivers/sysinfo/rcar3.c b

[PATCH v2 2/4] cmd: Add a sysinfo command

2023-06-28 Thread Detlev Casanova
The command is able to show different information for the running system: * Model name * Board ID * Revision This command can be used by boot shell scripts to select configurations depending on the specific running system. Signed-off-by: Detlev Casanova --- cmd/Kconfig | 6 +++ cmd

[PATCH v2 3/4] sysinfo: rcar3: Use int instead of char for revision

2023-06-28 Thread Detlev Casanova
To be used with the sysinfo command, revision values must be considered as integers, not chars as some boards will implement BOARD_REVISION_* and might use numbers greater than 9. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 104 1 file

[PATCH v2 0/4] Introduce the sysinfo command

2023-06-28 Thread Detlev Casanova
and where to start to test this kind of command. Changes since v1: - Removed shell function to select linux device tree. This will be distributions job. - Break revision in rev_major and rev_minor in the sysinfo driver. Detlev Casanova (4): sysinfo: Add IDs for board id and revision cmd: Add

[PATCH v2 1/4] sysinfo: Add IDs for board id and revision

2023-06-28 Thread Detlev Casanova
These IDs will be used by the sysinfo command. The new IDs are: * SYSINFO_ID_BOARD_ID: The board ID as an integer * SYSINFO_ID_BOARD_REVISION: The board revision as a string Signed-off-by: Detlev Casanova --- include/sysinfo.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include

Re: [PATCH v1 3/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION

2023-06-20 Thread Detlev Casanova
On Tuesday, June 20, 2023 4:03:18 P.M. EDT Marek Vasut wrote: > On 6/20/23 19:49, Detlev Casanova wrote: > > On Monday, June 19, 2023 5:54:44 P.M. EDT Marek Vasut wrote: > >> On 6/19/23 20:27, Detlev Casanova wrote: > >>> On Monday, June 19, 2023 12:11:18 P.M. EDT Mar

Re: [PATCH v1 3/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION

2023-06-20 Thread Detlev Casanova
On Monday, June 19, 2023 5:54:44 P.M. EDT Marek Vasut wrote: > On 6/19/23 20:27, Detlev Casanova wrote: > > On Monday, June 19, 2023 12:11:18 P.M. EDT Marek Vasut wrote: > >> On 6/19/23 16:42, Detlev Casanova wrote: > >>> On Friday, June 16, 2023 8:43:33 P.M. EDT Mar

Re: [PATCH v1 3/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION

2023-06-19 Thread Detlev Casanova
On Monday, June 19, 2023 12:11:18 P.M. EDT Marek Vasut wrote: > On 6/19/23 16:42, Detlev Casanova wrote: > > On Friday, June 16, 2023 8:43:33 P.M. EDT Marek Vasut wrote: > >> On 6/16/23 17:21, Detlev Casanova wrote: > >>> Expose that information to the comma

Re: [PATCH v1 4/4] configs: rcar3: Add shell function to select the linux devicetree

2023-06-19 Thread Detlev Casanova
On Friday, June 16, 2023 8:45:31 P.M. EDT Marek Vasut wrote: > On 6/16/23 17:21, Detlev Casanova wrote: > > This function uses the sysinfo command to determine which linux device > > tree is selected for the running board. > > > > Signed-off-by: Detlev Casanova

Re: [PATCH v1 3/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION

2023-06-19 Thread Detlev Casanova
On Friday, June 16, 2023 8:43:33 P.M. EDT Marek Vasut wrote: > On 6/16/23 17:21, Detlev Casanova wrote: > > Expose that information to the command shell to let scripts select the > > correct devicetree name. > > > > Signed-off-by: Detlev Casanova > > --- > &

[PATCH v1 4/4] configs: rcar3: Add shell function to select the linux devicetree

2023-06-16 Thread Detlev Casanova
This function uses the sysinfo command to determine which linux device tree is selected for the running board. Signed-off-by: Detlev Casanova --- configs/rcar3_ulcb_defconfig | 1 + include/configs/rcar-gen3-common.h | 9 - 2 files changed, 9 insertions(+), 1 deletion(-) diff

[PATCH v1 3/4] sysinfo: rcar3: Implement BOARD_ID and BOARD_REVISION

2023-06-16 Thread Detlev Casanova
Expose that information to the command shell to let scripts select the correct devicetree name. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 46 - 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/drivers/sysinfo/rcar3.c b

[PATCH v1 2/4] cmd: Add a sysinfo command

2023-06-16 Thread Detlev Casanova
The command is able to show different information for the running system: * Model name * Board ID * Revision This command can be used by boot shell scripts to select configurations depending on the specific running system. Signed-off-by: Detlev Casanova --- cmd/Kconfig | 6 +++ cmd

[PATCH v1 1/4] sysinfo: Add IDs for board id and revision

2023-06-16 Thread Detlev Casanova
These IDs will be used by the sysinfo command. The new IDs are: * SYSINFO_ID_BOARD_ID: The board ID as an integer * SYSINFO_ID_BOARD_REVISION: The board revision as a string Signed-off-by: Detlev Casanova --- include/sysinfo.h | 4 1 file changed, 4 insertions(+) diff --git a/include

[PATCH v1 0/4] Introduce the sysinfo command

2023-06-16 Thread Detlev Casanova
to be here upstream or if it chould be something done by packagers. I'm also not sure if a test should be added and where to start to test this kind of command. Detlev Casanova (4): sysinfo: Add IDs for board id and revision cmd: Add a sysinfo command sysinfo: rcar3: Implement BOARD_ID

Re: [PATCH v2 3/3] renesas: rcar3: Load the correct device tree

2023-06-14 Thread Detlev Casanova
On Wednesday, June 14, 2023 11:32:31 A.M. EDT Marek Vasut wrote: > On 6/14/23 17:10, Detlev Casanova wrote: > > On Wednesday, June 14, 2023 9:53:14 A.M. EDT Marek Vasut wrote: > >> On 6/12/23 21:51, Detlev Casanova wrote: > >>> The Renesas R-Car Gen3 boards u

Re: [PATCH v2 3/3] renesas: rcar3: Load the correct device tree

2023-06-14 Thread Detlev Casanova
On Wednesday, June 14, 2023 9:53:14 A.M. EDT Marek Vasut wrote: > On 6/12/23 21:51, Detlev Casanova wrote: > > The Renesas R-Car Gen3 boards use different device trees than > > the default one. > > > > This commit uses the sysinfo's board id and revision > > &g

[PATCH v2 2/3] renesas: rcar3: Expose the board revision in sysinfo

2023-06-12 Thread Detlev Casanova
The board revision is needed to determine which linux device tree to load. Signed-off-by: Detlev Casanova --- .../arm/mach-rmobile/include/mach/sys_proto.h | 6 ++ drivers/sysinfo/rcar3.c | 60 +++ 2 files changed, 40 insertions(+), 26 deletions(-) diff

[PATCH v2 3/3] renesas: rcar3: Load the correct device tree

2023-06-12 Thread Detlev Casanova
-ulcb.dtb Signed-off-by: Detlev Casanova --- board/renesas/ulcb/ulcb.c| 59 configs/rcar3_ulcb_defconfig | 1 + 2 files changed, 60 insertions(+) diff --git a/board/renesas/ulcb/ulcb.c b/board/renesas/ulcb/ulcb.c index 1477750f921..cc78e0952b6 100644 --- a/board

[PATCH v2 1/3] renesas: rcar3: Expose the board id in sysinfo

2023-06-12 Thread Detlev Casanova
This is a preparation commit for selecting the correct device tree name to be loaded depending on the board id. Signed-off-by: Detlev Casanova --- .../arm/mach-rmobile/include/mach/sys_proto.h | 15 ++ drivers/sysinfo/rcar3.c | 30 +++ 2 files

[PATCH v2 0/3] rcar: Select the correct device tree

2023-06-12 Thread Detlev Casanova
revision * Move RCar board IDs definitions to sys_proto.h * fix checkpatch.pl warnings Detlev Casanova (3): renesas: rcar3: Expose the board id in sysinfo renesas: rcar3: Expose the board revision in sysinfo renesas: rcar3: Load the correct device tree .../arm/mach-rmobile/include/mach

Re: [PATCH 2/2] renesas: rcar3: Load the correct device tree

2023-06-12 Thread Detlev Casanova
On Saturday, June 10, 2023 7:58:35 A.M. EDT Marek Vasut wrote: > On 6/9/23 18:00, Detlev Casanova wrote: > > The Renesas R-Car Gen3 H3e (Starter Kit Premier) uses a different > > device tree than the default one. > > > > This uses the sysinfo's board id to d

[PATCH 2/2] renesas: rcar3: Load the correct device tree

2023-06-09 Thread Detlev Casanova
The Renesas R-Car Gen3 H3e (Starter Kit Premier) uses a different device tree than the default one. This uses the sysinfo's board id to determine if the board needs a specific device tree. Signed-off-by: Detlev Casanova --- board/renesas/ulcb/ulcb.c| 34

[PATCH 1/2] renesas: rcar3: Expose the board id in sysinfo

2023-06-09 Thread Detlev Casanova
This is a preparation commit for selecting the correct device tree name to be loaded depending on the board id. Signed-off-by: Detlev Casanova --- drivers/sysinfo/rcar3.c | 31 ++- drivers/sysinfo/rcar3.h | 21 + 2 files changed, 39 insertions

[PATCH 0/2] rcar: Select the correct device tree

2023-06-09 Thread Detlev Casanova
The R-Car Starter Kit Premier(H3e WS3.0) uses the r8a779m1-ulcb.dtb. As u-boot can detect the board id, let's use this to set the correct device tree for that board when using pxe. Detlev Casanova (2): renesas: rcar3: Expose the board id in sysinfo renesas: rcar3: Load the correct device tree

[PATCH] renesas: rcar: Apply ATF overlay for reserved-memory

2023-06-09 Thread Detlev Casanova
. This commit makes sure that the ATF overlay is applied to both device trees. Signed-off-by: Detlev Casanova --- board/renesas/rcar-common/common.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/board/renesas/rcar-common/common.c b/board/renesas/rcar-common

Re: [PATCH v2] renesas: rcar: Apply ATF overlay for reserved-memory

2023-03-23 Thread Detlev Casanova
Hi! ! Just bumping up this patch. On Tuesday, December 6, 2022 11:06:48 A.M. EDT Detlev Casanova wrote: > The function fdtdec_board_setup() is only called by fdtdec_setup() which > needs to be called by the board file. > > This is not the case for the renesas boar

[BUG] Devices of uclass BLK are not listed on x86

2023-03-17 Thread Detlev Casanova
Hello, We have been having an issue with IDE and SCSI drives not being usable on the x86 architecture. After bisecting, it looks like commit f2ebaaa9f38defaf2e616a9fc489fe8b4021 (pci: Handle failed calloc in decode_regions()) is the culprit. Indeed, it was working when decode_regions()

Re: [PATCH v2] imx6: Re-add mmc aliases

2022-12-09 Thread Detlev Casanova
On Friday, December 9, 2022 6:01:13 A.M. EST Peter Robinson wrote: > On Thu, Dec 8, 2022 at 3:23 PM Detlev Casanova > > wrote: > > In commit d0399a46e7cda63c07e3eb8558bef84cfb068028, the device tree was > > synchronized from linux and the aliases were dropped. > > I

[PATCH v3] imx6q-sabrelite: Re-add mmc aliases

2022-12-08 Thread Detlev Casanova
necessary to avoid breaking existing setups. Signed-off-by: Detlev Casanova --- arch/arm/dts/imx6q-sabrelite-u-boot.dtsi | 13 + 1 file changed, 13 insertions(+) create mode 100644 arch/arm/dts/imx6q-sabrelite-u-boot.dtsi diff --git a/arch/arm/dts/imx6q-sabrelite-u-boot.dtsi b/arch/arm/dts

[PATCH v2] imx6: Re-add mmc aliases

2022-12-08 Thread Detlev Casanova
necessary to avoid breaking existing setups. Signed-off-by: Detlev Casanova Gbp-Pq: Topic apertis/imx6 Gbp-Pq: Name 0010-imx6-Re-add-mmc-aliases.patch --- arch/arm/dts/imx6q-sabrelite-u-boot.dtsi | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 arch/arm/dts/imx6q-sabrelite-u

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-07 Thread Detlev Casanova
On Wednesday, December 7, 2022 3:03:56 P.M. EST Tom Rini wrote: > On Mon, Dec 05, 2022 at 02:33:48PM -0300, Fabio Estevam wrote: > > On Mon, Dec 5, 2022 at 12:37 PM Tom Rini wrote: > > > I'm not really happy with this approach. It's not that upstream doesn't > > > have aliases now, it's that it

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-07 Thread Detlev Casanova
On Monday, December 5, 2022 12:33:48 P.M. EST Fabio Estevam wrote: > On Mon, Dec 5, 2022 at 12:37 PM Tom Rini wrote: > > I'm not really happy with this approach. It's not that upstream doesn't > > have aliases now, it's that it has different aliases, right? That's why > > they won't accept

[PATCH v2] renesas: rcar: Apply ATF overlay for reserved-memory

2022-12-06 Thread Detlev Casanova
. Signed-off-by: Detlev Casanova --- board/renesas/rcar-common/common.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/board/renesas/rcar-common/common.c b/board/renesas/rcar-common/common.c index daa1beb14f..c50d09ef8b 100644 --- a/board/renesas/rcar

[PATCH] renesas: rcar: Apply ATF overlay for reserved-memory

2022-12-06 Thread Detlev Casanova
. Signed-off-by: Detlev Casanova --- board/renesas/rcar-common/common.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/board/renesas/rcar-common/common.c b/board/renesas/rcar-common/common.c index daa1beb14f..6eaa0d1a65 100644 --- a/board/renesas/rcar-common/common.c

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-05 Thread Detlev Casanova
On Saturday, December 3, 2022 7:23:10 A.M. EST Fabio Estevam wrote: > On Fri, Dec 2, 2022 at 8:36 PM Tom Rini wrote: > > No, upstream has different aliases and doesn't want these. That's the > > point of the above thread, right? > > Upstream is correct in not accepting new alias for this board,

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-02 Thread Detlev Casanova
On Friday, November 11, 2022 10:35:56 A.M. EST Tom Rini wrote: > On Fri, Nov 11, 2022 at 10:28:43AM -0500, Detlev Casanova wrote: > > On Thursday, October 27, 2022 2:30:51 P.M. EST Tom Rini wrote: > > > On Thu, Oct 27, 2022 at 11:22:52AM -0400, Detlev Casanova wrote:

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-11-11 Thread Detlev Casanova
On Thursday, October 27, 2022 2:30:51 P.M. EST Tom Rini wrote: > On Thu, Oct 27, 2022 at 11:22:52AM -0400, Detlev Casanova wrote: > > In commit d0399a46e7cda63c07e3eb8558bef84cfb068028, the device tree was > > synchronized from linux and the aliases were dropped. > > > &

[PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-10-27 Thread Detlev Casanova
: MMC: FSL_SDHC: 0, FSL_SDHC: 1 Signed-off-by: Detlev Casanova --- arch/arm/dts/imx6qdl-sabrelite.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/imx6qdl-sabrelite.dtsi b/arch/arm/dts/imx6qdl-sabrelite.dtsi index 22f8e2783c..6564e3b82c 100644 --- a/arch/arm/dts

Re: [PATCH v2] pstore: Support already existing reserved-memory node

2022-04-19 Thread Detlev Casanova
Hi Daniel, On Tuesday, April 19, 2022 12:14:07 P.M. EDT Daniel Golle wrote: > Hi Detlev, > > On Tue, Apr 19, 2022 at 09:58:00AM -0400, Detlev Casanova wrote: > > Hey Daniel, > > > > I see that the node is called ramoops@0x42ff. We usually don't set the

Re: [PATCH v2] pstore: Support already existing reserved-memory node

2022-04-19 Thread Detlev Casanova
the best course of action here is to remove that '0x' in your dts, so that u-boot sees it as the pstore node. Regards, Detlev. On Monday, April 18, 2022 7:50:36 P.M. EDT Daniel Golle wrote: > Hi Detlev, > > On Mon, Apr 18, 2022 at 02:46:21PM -0400, Detlev Casanova wrote: >

Re: [PATCH v2] pstore: Support already existing reserved-memory node

2022-04-19 Thread Detlev Casanova
pstore/ramoops reserved-memory is already defined in the fdt > contained in the FIT image (for compatibility with older U-Boot which > didn't care about pstore), so it should be not added again. > > On Mon, Feb 07, 2022 at 11:02:30AM -0500, Detlev Casanova wrote: > > The pstore

[PATCH v2] pstore: Support already existing reserved-memory node

2022-02-07 Thread Detlev Casanova
-cells values. Signed-off-by: Detlev Casanova --- Changes in v2: - Move declarations at beginning of function - Use if instead of switch - Reword Subject cmd/pstore.c | 39 ++- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/cmd/pstore.c b/cmd

[PATCH] pstore: Do not fail if a reserved-memory node already exists

2022-02-02 Thread Detlev Casanova
-cells values. Signed-off-by: Detlev Casanova --- cmd/pstore.c | 43 ++- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/cmd/pstore.c b/cmd/pstore.c index 9fac8c7218..40d3cc9340 100644 --- a/cmd/pstore.c +++ b/cmd/pstore.c @@ -11,6 +11,7