Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1813529ybg; Thu, 30 Jul 2020 03:24:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQneKtr2970onbky4Tvw5QBEKhJJRfBgLZd8j9iic9ZRFlQH9OXOAin7DtJAjJHJwhAB0c X-Received: by 2002:aa7:c6c3:: with SMTP id b3mr1953462eds.215.1596104692378; Thu, 30 Jul 2020 03:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596104692; cv=none; d=google.com; s=arc-20160816; b=o3N2e14tWaZgJ3+FndMun3+Zg6PGZ4lc+Q6xVppMyu4p8ksrlxqqPJw1xuqQfUGATA X33SrOmVkZ1TxwlfLX89v9owF5Cze74IhztO+NZ1N0I4jey0PzJEpA4bxdfoFqAnxLXR je/Qow3A7cOWYU9U1GEe0v3BAzZJDf39O3ZzcFvnid/Pxpcn1KNCkngyHFrn1j72M17D Du4YCZV2grpxABtZiGwk9sXYALr24R5f1K7Ff+LMkzP+3VSIHujreY0kfkRWvslwfX2Q leCQ1sjY/6mrahVqhLI52RcVlTuQlDzAS/k0Il9zW0JuCbsuS7W3WYTZx6rmxTbCy7zW +nCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zRbadOeZ+63tn6S8alO37yU2ZdtL1Il1uzwgccWCVMM=; b=CgNbsFeObW/jSS/7Wx1lAsIrIOwWoHDHlcnHNrql+Riib7oez80V0h9mGjoG7BHbh4 I8Rj5Q2S21pZR3dZ9TfFWIwug+PaEkDYdxUdic9gv5kBLbb5x7kzCTpH3qoPKJAYjLKI yxNivNoSZ/PCeKPEtXfFESXlv0k3XiZKZiFySTSg2hYO11VbtkcexIUx84Dgu8N2GNP0 rgA6wX+czuA9rXhsopx9F3+JqPd5kXUn4c9+0F/FAcquk8d1GR1B4iTyDStMNiW+3lkY gnQnkUqdCP5yPiDBNDc1fj0rtmuW85my4xicf6WzwQPHn3lCD1T/h9hsh3Mi/0kLaJhM xeOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ysoft.com header.s=20160406-ysoft-com header.b=jvFCiK6R; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ysoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si2779815ejm.346.2020.07.30.03.24.30; Thu, 30 Jul 2020 03:24:52 -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; dkim=pass (test mode) header.i=@ysoft.com header.s=20160406-ysoft-com header.b=jvFCiK6R; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ysoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729306AbgG3KXJ (ORCPT + 99 others); Thu, 30 Jul 2020 06:23:09 -0400 Received: from uho.ysoft.cz ([81.19.3.130]:60268 "EHLO uho.ysoft.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729139AbgG3KXI (ORCPT ); Thu, 30 Jul 2020 06:23:08 -0400 X-Greylist: delayed 555 seconds by postgrey-1.27 at vger.kernel.org; Thu, 30 Jul 2020 06:23:07 EDT Received: from iota-build.ysoft.local (unknown [10.1.5.151]) by uho.ysoft.cz (Postfix) with ESMTP id 5CE4BA0828; Thu, 30 Jul 2020 12:13:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=20160406-ysoft-com; t=1596104030; bh=zRbadOeZ+63tn6S8alO37yU2ZdtL1Il1uzwgccWCVMM=; h=From:To:Cc:Subject:Date:From; b=jvFCiK6RExGzZxG/NIMSTloiTeKF0BdkrvgzWwKqNZshZEDxIMy3g6IaD7Q2ZQOlD OmIwaI9kwG5JbHCM2iIWny04zvSau3DiF24LAUJ6apDiVefefKe6uDVMWRUK4q6YMI jvURNHhg/dI42T9EALGbkdF6GjQkdFIDuIJSS55E= From: =?UTF-8?q?Michal=20Vok=C3=A1=C4=8D?= To: Rob Herring , Shawn Guo Cc: Mark Rutland , Sascha Hauer , Fabio Estevam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Michal=20Vok=C3=A1=C4=8D?= Subject: [PATCH] ARM: dts: imx6dl-yapp4: Add ethernet aliases Date: Thu, 30 Jul 2020 12:13:46 +0200 Message-Id: <1596104026-21091-1-git-send-email-michal.vokac@ysoft.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add aliases for ethernet switch ports to allow bootloader to fix MAC addresses to the ones stored in onboard configuration EEPROM. Ursa has only one ethernet port populated (eth2) so alias for the first port has to be removed on this board. Signed-off-by: Michal Vokáč --- arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 9 +++++++-- arch/arm/boot/dts/imx6dl-yapp4-ursa.dts | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi index 999be02d1c03..508ee6adaff8 100644 --- a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi +++ b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi @@ -8,6 +8,11 @@ #include / { + aliases: aliases { + ethernet1 = ð1; + ethernet2 = ð2; + }; + backlight: backlight { compatible = "pwm-backlight"; pwms = <&pwm1 0 500000 PWM_POLARITY_INVERTED>; @@ -151,13 +156,13 @@ }; }; - port@2 { + eth2: port@2 { reg = <2>; label = "eth2"; phy-handle = <&phy_port2>; }; - port@3 { + eth1: port@3 { reg = <3>; label = "eth1"; phy-handle = <&phy_port3>; diff --git a/arch/arm/boot/dts/imx6dl-yapp4-ursa.dts b/arch/arm/boot/dts/imx6dl-yapp4-ursa.dts index a1173bf5bff5..f6ae24efd4aa 100644 --- a/arch/arm/boot/dts/imx6dl-yapp4-ursa.dts +++ b/arch/arm/boot/dts/imx6dl-yapp4-ursa.dts @@ -17,6 +17,10 @@ }; }; +&aliases { + /delete-property/ ethernet1; +}; + &backlight { status = "okay"; }; -- 2.1.4