Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D162C32772 for ; Tue, 23 Aug 2022 14:59:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E514C8484F; Tue, 23 Aug 2022 16:59:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1661266788; bh=Tw5LpOoQxOSiID27UTZpAewMKa9HsBuKRU1/a6eXfhY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=bTvoAchwEG+sLWsPhPXYInFliHFgumYLiRDn1rfkxDC2eTQBh7L+3ugIjRaWVhOPT iPGrxwffpvsGIjo3QViMg0h3RJ8A+HItQub9Q3/MKe4DKS9XLrG4JPYAegISm2+u8A 0lExM5nU3P5WukXFwR0t7FIawUPUMulf/7ZgQ6oeEgboQOpNwr74ac/s4ymAwFibPz Xd4ODk0mCnZ1GKDVMwf2MnJan3ETaI7SDsKd7vfe7iunOnoOXmf3LAjjFuFj8h+07G wb4qzlmXIoS5nMl+6dN8Q69aIIfpiBffUGyA7iZbp9+JMsEBA03lfLzSAmLRxQN3Po LWBl8zNke28tQ== Received: by phobos.denx.de (Postfix, from userid 109) id E384C84854; Tue, 23 Aug 2022 16:59:46 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [80.241.59.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9308A84860 for ; Tue, 23 Aug 2022 16:59:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4MBsp64kqdz9sRt; Tue, 23 Aug 2022 16:59:42 +0200 (CEST) Message-ID: <14a016f3-43dc-bf99-ba27-aaa5d59ebdd1@denx.de> Date: Tue, 23 Aug 2022 16:59:41 +0200 MIME-Version: 1.0 Subject: Re: [PATCH] arm: mvebu: turris_mox: Set "sfp" label in eth1 DT node when only Mox SFP is detected Content-Language: en-US To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , =?UTF-8?Q?Marek_Beh=c3=ban?= Cc: u-boot@lists.denx.de References: <20220810105411.13577-1-pali@kernel.org> From: Stefan Roese In-Reply-To: <20220810105411.13577-1-pali@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4MBsp64kqdz9sRt X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 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 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