* [PATCH] arm: mvebu: turris_mox: Set "sfp" label in eth1 DT node when only Mox SFP is detected
@ 2022-08-10 10:54 Pali Rohár
2022-08-10 18:11 ` Marek Behún
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Pali Rohár @ 2022-08-10 10:54 UTC (permalink / raw)
To: Stefan Roese, Marek Behún; +Cc: u-boot
When Mox SFP module is connected after Topaz or Peridot module then port DT
node already contains "sfp" label. But Mox SFP module can be connected also
without Topaz or Peridot module in which case it is connected directly into
he eth1 DT node, which is without any label. So add "sfp" label into eth1
DT node in this case.
Signed-off-by: Pali Rohár <pali@kernel.org>
---
board/CZ.NIC/turris_mox/turris_mox.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/board/CZ.NIC/turris_mox/turris_mox.c b/board/CZ.NIC/turris_mox/turris_mox.c
index 28259e71405f..3dbd68e52366 100644
--- a/board/CZ.NIC/turris_mox/turris_mox.c
+++ b/board/CZ.NIC/turris_mox/turris_mox.c
@@ -821,6 +821,11 @@ int ft_board_setup(void *blob, struct bd_info *bd)
"sgmii");
if (res < 0)
return res;
+
+ res = fdt_setprop_string(blob, node, "label",
+ "sfp");
+ if (res < 0)
+ return res;
}
res = fdt_status_okay_by_compatible(blob, "cznic,moxtet-gpio");
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arm: mvebu: turris_mox: Set "sfp" label in eth1 DT node when only Mox SFP is detected
2022-08-10 10:54 [PATCH] arm: mvebu: turris_mox: Set "sfp" label in eth1 DT node when only Mox SFP is detected Pali Rohár
@ 2022-08-10 18:11 ` Marek Behún
2022-08-17 6:17 ` Stefan Roese
2022-08-23 14:59 ` Stefan Roese
2 siblings, 0 replies; 4+ messages in thread
From: Marek Behún @ 2022-08-10 18:11 UTC (permalink / raw)
To: Pali Rohár; +Cc: Stefan Roese, u-boot
On Wed, 10 Aug 2022 12:54:11 +0200
Pali Rohár <pali@kernel.org> wrote:
> When Mox SFP module is connected after Topaz or Peridot module then port DT
> node already contains "sfp" label. But Mox SFP module can be connected also
> without Topaz or Peridot module in which case it is connected directly into
> he eth1 DT node, which is without any label. So add "sfp" label into eth1
> DT node in this case.
>
> Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <kabel@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm: mvebu: turris_mox: Set "sfp" label in eth1 DT node when only Mox SFP is detected
2022-08-10 10:54 [PATCH] arm: mvebu: turris_mox: Set "sfp" label in eth1 DT node when only Mox SFP is detected Pali Rohár
2022-08-10 18:11 ` Marek Behún
@ 2022-08-17 6:17 ` Stefan Roese
2022-08-23 14:59 ` Stefan Roese
2 siblings, 0 replies; 4+ messages in thread
From: Stefan Roese @ 2022-08-17 6:17 UTC (permalink / raw)
To: Pali Rohár, Marek Behún; +Cc: u-boot
On 10.08.22 12:54, Pali Rohár wrote:
> When Mox SFP module is connected after Topaz or Peridot module then port DT
> node already contains "sfp" label. But Mox SFP module can be connected also
> without Topaz or Peridot module in which case it is connected directly into
> he eth1 DT node, which is without any label. So add "sfp" label into eth1
> DT node in this case.
>
> Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
> ---
> board/CZ.NIC/turris_mox/turris_mox.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/board/CZ.NIC/turris_mox/turris_mox.c b/board/CZ.NIC/turris_mox/turris_mox.c
> index 28259e71405f..3dbd68e52366 100644
> --- a/board/CZ.NIC/turris_mox/turris_mox.c
> +++ b/board/CZ.NIC/turris_mox/turris_mox.c
> @@ -821,6 +821,11 @@ int ft_board_setup(void *blob, struct bd_info *bd)
> "sgmii");
> if (res < 0)
> return res;
> +
> + res = fdt_setprop_string(blob, node, "label",
> + "sfp");
> + if (res < 0)
> + return res;
> }
>
> res = fdt_status_okay_by_compatible(blob, "cznic,moxtet-gpio");
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm: mvebu: turris_mox: Set "sfp" label in eth1 DT node when only Mox SFP is detected
2022-08-10 10:54 [PATCH] arm: mvebu: turris_mox: Set "sfp" label in eth1 DT node when only Mox SFP is detected Pali Rohár
2022-08-10 18:11 ` Marek Behún
2022-08-17 6:17 ` Stefan Roese
@ 2022-08-23 14:59 ` Stefan Roese
2 siblings, 0 replies; 4+ messages in thread
From: Stefan Roese @ 2022-08-23 14:59 UTC (permalink / raw)
To: Pali Rohár, Marek Behún; +Cc: u-boot
On 10.08.22 12:54, Pali Rohár wrote:
> When Mox SFP module is connected after Topaz or Peridot module then port DT
> node already contains "sfp" label. But Mox SFP module can be connected also
> without Topaz or Peridot module in which case it is connected directly into
> he eth1 DT node, which is without any label. So add "sfp" label into eth1
> DT node in this case.
>
> Signed-off-by: Pali Rohár <pali@kernel.org>
Applied to u-boot-marvell/master
Thanks,
Stefan
> ---
> board/CZ.NIC/turris_mox/turris_mox.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/board/CZ.NIC/turris_mox/turris_mox.c b/board/CZ.NIC/turris_mox/turris_mox.c
> index 28259e71405f..3dbd68e52366 100644
> --- a/board/CZ.NIC/turris_mox/turris_mox.c
> +++ b/board/CZ.NIC/turris_mox/turris_mox.c
> @@ -821,6 +821,11 @@ int ft_board_setup(void *blob, struct bd_info *bd)
> "sgmii");
> if (res < 0)
> return res;
> +
> + res = fdt_setprop_string(blob, node, "label",
> + "sfp");
> + if (res < 0)
> + return res;
> }
>
> res = fdt_status_okay_by_compatible(blob, "cznic,moxtet-gpio");
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-08-23 14:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-10 10:54 [PATCH] arm: mvebu: turris_mox: Set "sfp" label in eth1 DT node when only Mox SFP is detected Pali Rohár
2022-08-10 18:11 ` Marek Behún
2022-08-17 6:17 ` Stefan Roese
2022-08-23 14:59 ` Stefan Roese
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox