From patchwork Mon Feb 28 09:52:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 12762625 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 71D9BC433EF for ; Mon, 28 Feb 2022 09:53:28 +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: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:In-Reply-To:References: List-Owner; bh=hO1P+rveDxaJVWQN5vtNQbl39bTBonqGwbt0fd74mLU=; b=q/1Zd+ayQAyVl1 G8Arz+DnhOWuroWmvmOcy8tCverM0GOq890KoDZtRX5vwwblNOJXgRCum8F1xrJp8PBYBjhMlDrgX SqmhUZQVWHxrnuKU94iInA3Tal7V1p348WRjc3F/zF9yJ2nvo+gHHMmJYoZG3/KOvoMWzNm8S9DUV Pm9cbni9a+9Be9baatTsHFL5I3CJmhTawZMuaa0OwvG/wk/qin9yEn8Kjp2/TEm6Sim/vwzBB9rAO h/GVk1HuayVTK53hAswZPIXh33PalGtodJ8h683+2zw0eUnTXVmcE+G2HmqrIg6kaerkoPRO74ERt Yj4snqpd2/MnEpmSuTBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOchW-00BLSK-QH; Mon, 28 Feb 2022 09:52:19 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOchT-00BLQL-1U for linux-arm-kernel@lists.infradead.org; Mon, 28 Feb 2022 09:52:16 +0000 Received: by mail-lf1-x135.google.com with SMTP id y24so20375166lfg.1 for ; Mon, 28 Feb 2022 01:52:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7UFwbPl9f8Py6YXSM3M76a9/bzu6RAMf9a33a60hkrE=; b=HNbrQKQwI0pqE0E7k/ljdJUpztN5pv8I0t+rkS1UU+OWUttE+oST6g2tDISp6nkHma 9LQfBJcjSeKPHup7WkDkmZ9n9eem1pqtb7mKZ+U9OBZX/0CF1occf1aM6dkwyLegF4Vg RpNoV9z7IWMP58cw+GWB9pjAQGAuNcclbF8X1vWY+G1CtikshPCJMXFEM1YHOxuPnOGv XKBco6nJL3mQKwBLzmBKyNO+9Q3LW6H8Pw3Os2gs8gyZ8U/ZqAbd+WYu5uzsW7VpYtDt 5rvQ30MajNFF/5heSFKUAaV+Zdp/kZBzi4HjmlN0Ql0tlsL/UTwI+eYmJDW8BaaY1iHh vF0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7UFwbPl9f8Py6YXSM3M76a9/bzu6RAMf9a33a60hkrE=; b=5HAEJl2SqHjEnSeOCO9fogjXDGnbO1UqlLqdwXvHGH2jh1vI0QPidp4Usimcrxywzr Q+Pkx6LIkPvPCzBZxvtW9qHuaSOlP/Mrx3JTD+15bJWCP/EUgdr+9toxKVOjszBcrZvG 4XW9hx+VqTjdqsh92qgf9FnKeqR4JWTzmYtOU9KeUcgX9tANWOL+H5YWu7W9ZoIq/R9N JuxBtEm7+iZhb9wobBnndBUWUglEPAT79VznolsacSWMuqKkXcaY3IQUbWIPxp0DnNbD FFsIqrNmxrc9OWcitTBPhc4vuFqYDcKvCHiVLGRXYehnJ3C/8dnHyoWgwqvq/KOLewY/ +2PA== X-Gm-Message-State: AOAM532t5XU95/iOkJqpVdZAiZm0PXgYba6kDi8sdEUdWgIMzE0cyQHn be79DQNLCBfIdoNpUrMwhdM= X-Google-Smtp-Source: ABdhPJyYVr7GFNkr2vgwraQR0M/UyMbtE7GNyjh+t7mYqD9/ZsCgHW+vd7SwJ2Mhr5fTxmOn5btG/A== X-Received: by 2002:a05:6512:3f09:b0:43a:4463:56f9 with SMTP id y9-20020a0565123f0900b0043a446356f9mr11972531lfa.533.1646041930272; Mon, 28 Feb 2022 01:52:10 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id h23-20020ac24d37000000b004436413a26dsm877506lfk.283.2022.02.28.01.52.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 01:52:09 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Cc: Hauke Mehrtens , Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH] ARM: dts: BCM5301X: Add Ethernet MAC address to Luxul XWR-3150 Date: Mon, 28 Feb 2022 10:52:07 +0100 Message-Id: <20220228095207.31821-1-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220228_015215_127343_E7A2EC12 X-CRM114-Status: GOOD ( 12.22 ) 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 From: Rafał Miłecki Luxul XWR-3150 stores MAC as NVRAM variable. Add NVMEM cell for it and reference it in the Ethernet interface node. Signed-off-by: Rafał Miłecki --- arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts index 24ae3c8a3e09..9efcb2424228 100644 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts @@ -25,6 +25,9 @@ memory@0 { nvram@1eff0000 { compatible = "brcm,nvram"; reg = <0x1eff0000 0x10000>; + + et0macaddr: et0macaddr { + }; }; leds { @@ -72,6 +75,11 @@ restart { }; }; +&gmac0 { + nvmem-cells = <&et0macaddr>; + nvmem-cell-names = "mac-address"; +}; + &usb3 { vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>; };