From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B075C4363D for ; Wed, 23 Sep 2020 15:04:03 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F1ADF21D43 for ; Wed, 23 Sep 2020 15:04:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="wZashwfD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F1ADF21D43 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JDZtAL7nxCUuxLLgF9hG5Wm9CE8zw7Gkukx++S98CJQ=; b=wZashwfD2S3PBVUVBWD03FLZF x7lbU3LxCk+4grDHYA05fKb/Oqlo9ezBcc1tbnnUZOhMmzxUDZJPvcrGdxsHakqbPcM6Worqtq1O/ lTH2vQRH9AR/MRTpwfgzVosznFCgoJUJuIcPs1sNnOU5PkeLSh6e429m7h4NEtn7+erM1ZNzs5WYQ 0cODjlSzWR1eJLg5BqDzRR6O3AG7Zc+deeovjgk+fFXhTcwtP2qJULimHTzLxzbHhhMhjhLjfjswV +C1bfuyYIQGCl68SIpPz5NmuzZeMMrfiC2zaUrLOgeJwygFGbsvzZGqD5Yu6F+Kdd2qxupHM3r3vy oMfdzWZvg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kL6I1-0006cW-F5; Wed, 23 Sep 2020 15:02:37 +0000 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kL6Hx-0006ad-KR for linux-arm-kernel@lists.infradead.org; Wed, 23 Sep 2020 15:02:34 +0000 X-Originating-IP: 90.65.92.90 Received: from localhost (lfbn-lyo-1-1913-90.w90-65.abo.wanadoo.fr [90.65.92.90]) (Authenticated sender: gregory.clement@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id B8E362000E; Wed, 23 Sep 2020 15:02:31 +0000 (UTC) From: Gregory CLEMENT To: Andre Heider , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Rob Herring , Tomasz Maciej Nowak , Pali =?utf-8?Q?Roh=C3=A1r?= Subject: Re: [PATCH] arm64: dts: marvell: espressobin: Simplify v7 ethernet port labeling In-Reply-To: <20200908073050.535919-1-a.heider@gmail.com> References: <20200908073050.535919-1-a.heider@gmail.com> Date: Wed, 23 Sep 2020 17:02:31 +0200 Message-ID: <873638iliw.fsf@BL-laptop> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200923_110233_768164_F1C73744 X-CRM114-Status: GOOD ( 15.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Andre, > Now that the switch ports have a label in the .dtsi, simplify the whole > "switch0" block for the v7 dts files. > > Signed-off-by: Andre Heider Applied on mvebu/dt64 Thanks, Gregory > --- > > This goes on top of Pali's patch: > "arm64: dts: marvell: espressobin: Add ethernet switch aliases" > > The resulting .dtb files are the same. > > .../armada-3720-espressobin-v7-emmc.dts | 18 +++++------------- > .../dts/marvell/armada-3720-espressobin-v7.dts | 18 +++++------------- > 2 files changed, 10 insertions(+), 26 deletions(-) > > diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7-emmc.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7-emmc.dts > index 215d2f702623..61d49d6a2a2a 100644 > --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7-emmc.dts > +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7-emmc.dts > @@ -28,20 +28,12 @@ aliases { > }; > }; > > -&switch0 { > - ports { > - switch0port1: port@1 { > - reg = <1>; > - label = "lan1"; > - phy-handle = <&switch0phy0>; > - }; > +&switch0port1 { > + label = "lan1"; > +}; > > - switch0port3: port@3 { > - reg = <3>; > - label = "wan"; > - phy-handle = <&switch0phy2>; > - }; > - }; > +&switch0port3 { > + label = "wan"; > }; > > /* U11 */ > diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts > index b6f4af8ebafb..44dbe9a21cc7 100644 > --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts > +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts > @@ -27,18 +27,10 @@ aliases { > }; > }; > > -&switch0 { > - ports { > - switch0port1: port@1 { > - reg = <1>; > - label = "lan1"; > - phy-handle = <&switch0phy0>; > - }; > +&switch0port1 { > + label = "lan1"; > +}; > > - switch0port3: port@3 { > - reg = <3>; > - label = "wan"; > - phy-handle = <&switch0phy2>; > - }; > - }; > +&switch0port3 { > + label = "wan"; > }; > -- > 2.28.0 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel