From patchwork Thu Dec 1 00:31:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 13060858 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0522EC47088 for ; Thu, 1 Dec 2022 00:32:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=r23HGC3bZlk5si6+XY1nqmqsKyo/iPnaewevm1rwuC4=; b=wAtpnD20BSp9+o twXP3SHiyzIz3CR6kGM8pvGQ9kCVySFCpo/pti0CBV3ynSsHHCJ1L9Qh02shygY1y+ZcV9qG34r+m tJmWrTirow30FH/qH3trFBT9K4nh4jIPr/6O/i/TVmPjPod+7AfuhFUS03QpPh01QmwlNF2maIwas iQ1+3hbseaFqK1+DmSo8QdSL47EFmXeM0iCHxxEelQPMBPXfHAXHR82e9gTATbd+v37Iy2MQ52KPs 47MLWrjd93y75Q7z2FUnRQfdjIv+rBqThZ4/d7CM8FUX/qW+08O1pDfjxcHvyIC1XtvnU2bxbUtK9 ejxnakHbQAPTaArFC+JQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0XU8-003enP-Pc; Thu, 01 Dec 2022 00:31:28 +0000 Received: from finn.gateworks.com ([108.161.129.64] helo=finn.localdomain) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0XU6-003emd-Bx for linux-arm-kernel@lists.infradead.org; Thu, 01 Dec 2022 00:31:27 +0000 Received: from 068-189-091-139.biz.spectrum.com ([68.189.91.139] helo=tharvey.pdc.gateworks.com) by finn.localdomain with esmtp (Exim 4.93) (envelope-from ) id 1p0XTs-0017NA-Re; Thu, 01 Dec 2022 00:31:12 +0000 From: Tim Harvey To: Rob Herring , Krzysztof Kozlowski , Sascha Hauer , Shawn Guo , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Vladimir Oltean Cc: Tim Harvey Subject: [PATCH 2/2] ARM: dts: imx6qdl-gw5904: add dt props for populating eth MAC addrs Date: Wed, 30 Nov 2022 16:31:09 -0800 Message-Id: <20221201003109.448693-2-tharvey@gateworks.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221201003109.448693-1-tharvey@gateworks.com> References: <20221201003109.448693-1-tharvey@gateworks.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221130_163126_426992_36C537C6 X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add device-tree props to allow boot firmware to populate MAC addresses. Signed-off-by: Tim Harvey Reviewed-by: Fabio Estevam --- arch/arm/boot/dts/imx6qdl-gw5904.dtsi | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-gw5904.dtsi b/arch/arm/boot/dts/imx6qdl-gw5904.dtsi index 08463e65dca3..6596e8bd7e60 100644 --- a/arch/arm/boot/dts/imx6qdl-gw5904.dtsi +++ b/arch/arm/boot/dts/imx6qdl-gw5904.dtsi @@ -52,6 +52,11 @@ / { /* these are used by bootloader for disabling nodes */ aliases { + ethernet0 = &fec; + ethernet1 = &lan1; + ethernet2 = &lan2; + ethernet3 = &lan3; + ethernet4 = &lan4; led0 = &led0; led1 = &led1; led2 = &led2; @@ -237,32 +242,36 @@ ports { #address-cells = <1>; #size-cells = <0>; - port@0 { + lan4: port@0 { reg = <0>; label = "lan4"; phy-handle = <&sw_phy0>; phy-mode = "internal"; + local-mac-address = [00 00 00 00 00 00]; }; - port@1 { + lan3: port@1 { reg = <1>; label = "lan3"; phy-handle = <&sw_phy1>; phy-mode = "internal"; + local-mac-address = [00 00 00 00 00 00]; }; - port@2 { + lan2: port@2 { reg = <2>; label = "lan2"; phy-handle = <&sw_phy2>; phy-mode = "internal"; + local-mac-address = [00 00 00 00 00 00]; }; - port@3 { + lan1: port@3 { reg = <3>; label = "lan1"; phy-handle = <&sw_phy3>; phy-mode = "internal"; + local-mac-address = [00 00 00 00 00 00]; }; port@5 {