Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp481618pxk; Wed, 23 Sep 2020 08:05:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0MDL9PRsTpcNfuHCeJKrDk2uXOljbODYhjSFCzH4vmwtPS5ydmP2sYjszmCdwZtjoFMJ+ X-Received: by 2002:a17:906:288d:: with SMTP id o13mr59584ejd.195.1600873512999; Wed, 23 Sep 2020 08:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600873512; cv=none; d=google.com; s=arc-20160816; b=e9C/DNck64pgQAHcgGfmGHDQxm0pRK3G/7M6dU+4ud1918BXLcIzwJqF7D/LrZwd8z +4efyz3N184VI6Lma8VGugn6GV9nsoAA373tmTpIg8loEi0sXz4uqXCk664SToVDFh6G 5lC6iMRdUlXq6HDAN/xU6rJX1lR/PfU4qxXQ4mp0ZQwEAccRvh9jcva0/8ExCvcuTFE0 sgkfMVD4d+2ikOwtn07EzBU9HOdnBI2kmdhsko2pAit7X9+IGo+OxwjZZhU7WmjKT2Us +r+KEYx7+NYa29i29nll897Xh1BGOu7lGw/G+J2otDU8ClQ3xGwNRztGkJwXAihRAE77 Cs5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=7/PXmz0FvjH8/E59TJuu5FeiHoMssAkL4gdyP+A8deM=; b=HJb/McScke/is47VtmS9UWvTl9kjeQbdmf0F+JikCttXETOpQJHz1DRY27jvJ1FiMc yl0IOoXH+nG5/3wHK5Rq+ZvfZAiYwqnBTMuWzPB8Irf9RSCeT21849nDIIdb8RkB0AHe 1rb/PeOVFt4sajQQMF718hEQkRr8Akf3Ktv7IxcYtjAgObtswEGT+ynhK5ZehPKxhvdU gGQDsyMwePu4bXeqXyieB52+PsVIJYOF2R4Bw2/SA1JLhK+mpgEKcDiplm3+FhFTVQK/ k7mW1EYzIZBleSS2ADkAatNDcmUd7WGrPDynKMvPuJJg1xlKFZMMaxgqBG1k8D6eU0dA Efzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si40671edw.287.2020.09.23.08.04.48; Wed, 23 Sep 2020 08:05:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726706AbgIWPCe (ORCPT + 99 others); Wed, 23 Sep 2020 11:02:34 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:45577 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726693AbgIWPCe (ORCPT ); Wed, 23 Sep 2020 11:02:34 -0400 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?= Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org 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 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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