From patchwork Fri Apr 1 10:20:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 12798058 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 0D0C5C433EF for ; Fri, 1 Apr 2022 10:22:05 +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=1x/TtIpK95eHeUOJy09dz8+eBwUAds7PEusrDTRR+S4=; b=3OWG9J3X1wHRJa mMFm5KP7cy0t5l2HWGQHtPjtHIMFuglqLR5xgY8tPZ34IlEw2FozaSV4ErfI4W9waR+4xtqEA1EAq GKJY/RhgPVFxYQ35guqbx4AbmSKXoVAmW7gfFDkavPBdzKewWZK180y5JjkEvVH/kKFEcpyvgYjcK M7+46B8vYS6nmn9PVhMD86V+4yP9dN4JoOow/rsCunbG6oln16HOViZNo5cpYaf7bUywPxqBz8etK uRC4rdQZGLKoc0+2V7vTLQC4QSVlFwMzxrvwqmL6R1ksD3w1GwGm8AjkKH2jXUNDlk8s5662L3lSP vh496/XqHmHwCo4lQ9OA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1naEOt-0059Yg-18; Fri, 01 Apr 2022 10:21:03 +0000 Received: from sender4-op-o14.zoho.com ([136.143.188.14]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1naEOX-0059Tf-OF for linux-arm-kernel@lists.infradead.org; Fri, 01 Apr 2022 10:20:43 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1648808422; cv=none; d=zohomail.com; s=zohoarc; b=OPMWESSuAgiGm4y2E7OWi3M7/bdGNyqoTxjLqXIUOJ3GEMguITN2e7li96vCtrP03bS14atkA1wscer6/8olPJsm2EK0MPKW+B86g1B6Ynao1InQ4VqzJDHYD4kKEf2AxvZ/PsodcQ+wbwZJrITTtQMQGn7lOIUU/b/NqLzc/eo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1648808422; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=N0LsOdjZnLCmPPWAwJCSqDnXkCKgE0jLv9QVEUXcOtg=; b=DdyW+k1h58Q6bX6W5xBIi5vQ5gYn5pKp3mVllrSnbevp+WSFyXkGVKUiUxcqgrydovDjAOTSZ0hIrc5H2+fQT+7RMQ751zKBaJRfLsMIapQJgpuAV9c5zFoq0xLaFDWT4MmIcnzjDYNnFJTMiK5habyuEWrUkw7P+lBYKTzQPfo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1648808422; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=N0LsOdjZnLCmPPWAwJCSqDnXkCKgE0jLv9QVEUXcOtg=; b=TpBTCYex1Ebro304tl8kyelMQvIPbc4wZ0ntQ7KtlYOvedbD1j99oUUxlo6yGBYS IXgOs4gZLHM0rkIZw1xpCMQ4gGn6YxXNwdtkGQ5ZH68+FND8PZGPBvIuPgMXNEsRdPr UFFURdPxsdVlvWy23Yt/ByTMwJmgFNP90CNDxEFo= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1648808420168564.6989434315456; Fri, 1 Apr 2022 03:20:20 -0700 (PDT) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Florian Fainelli Cc: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Hauke Mehrtens , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= Subject: [PATCH 4/5] ARM: dts: BCM5301X: Retrieve gmac1 MAC address from NVRAM on Asus RT-AC88U Date: Fri, 1 Apr 2022 13:20:01 +0300 Message-Id: <20220401102002.15765-4-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220401102002.15765-1-arinc.unal@arinc9.com> References: <20220401102002.15765-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220401_032041_871183_4DDBEC71 X-CRM114-Status: GOOD ( 10.88 ) 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 The et1macaddr NVRAM variable contains a MAC address for gmac1 on Asus RT-AC88U. Add NVMEM cell for it and reference it in the gmac1 node. The Broadcom GBit BCMA driver will issue the MAC address for gmac{0,1,2} retrieved from et{0,1,2}mac from SPROM without this but let's explicitly define it as mac-address on the devicetree. Refer to drivers/net/ethernet/broadcom/bgmac-bcma.c:147. Signed-off-by: Arınç ÜNAL Acked-by: Rafał Miłecki --- arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts index 5696dd5fbaf4..2f944d1c0330 100644 --- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts @@ -25,6 +25,9 @@ memory@0 { nvram@1c080000 { compatible = "brcm,nvram"; reg = <0x1c080000 0x00180000>; + + et1macaddr: et1macaddr { + }; }; leds { @@ -239,6 +242,11 @@ fixed-link { }; }; +&gmac1 { + nvmem-cells = <&et1macaddr>; + nvmem-cell-names = "mac-address"; +}; + &usb2 { vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>; };