From patchwork Fri Sep 1 10:55:49 2023 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: 13372419 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 D2FF4CA0FE1 for ; Fri, 1 Sep 2023 10:56:29 +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=4x1jmHMgExlOspO9dbfETyICOzpXW8HUsTgjqt6HacM=; b=hV0Yv/hqyo6mlO LhKSBYC7lBdUiSzkV4nr1R9bptSZuEnNOG0DU+deKL0Y4rJ0mg9UFC3xfnh18Cz+iKFy8KM6zkLZ3 sU+nD3kEjmx1qKBxYkTBZ12yU+dy9jbkocdIy/Zg5t5y45iD5R4sOiblapGsuWj/jvTUw/dy4ygCk Ue/SfpSv9MADuRsgxY065R4jOsvyGuFhCiUqwGrIQT+cl+ulaNChDW3JjoPElR02THSrSeG/pNqHX 2eNGbjoSlxeBuvb4CTs9BDeMGgaQVrc7Dd0k8tO7wiNCar/1b3MiJpdAq0BP27XfqrWpKdFq4+a94 mqKpkgFpp5qy2wxpLFRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qc1oo-00GzrL-0n; Fri, 01 Sep 2023 10:56:02 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qc1ol-00Gzol-1e for linux-arm-kernel@lists.infradead.org; Fri, 01 Sep 2023 10:56:00 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-500bbe3ef0eso2129693e87.1 for ; Fri, 01 Sep 2023 03:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693565758; x=1694170558; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=U8a+xA7GL0/faKKo3smbV13PcsHnv4aKVFRIta6OWlg=; b=pHEVDAg2fn9UMAnmy0ZF7O6b+rKfBMEE1FOiK06ATTAYzicUf58DKtkc/5v9dMAHYQ 3D1UPkixWsyIZo6MrXj3MnK/9ko0kDJIHCBF2ibEIjWxoiWHIni/a6wNzxIWLHIP55Fo 5lOiB6X17VHvsV4Mb/yB68zc7f24rmn0ZSDx0X+GE4udMvIfBeozLH72wgmQ8jXrDIlF uQtVkMxfR8p6GEifqP2H+QNdoGKBI3WcEQYai1kyFz3wCHGP8GZgINCKnHyXcw6153pZ IY6t9/ihdugs0rjB00Y8HvRQLdZ6Zo+s7vyNahSHZclCHZZs/PPMHKK26mTv9hvxxxiV D05A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693565758; x=1694170558; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U8a+xA7GL0/faKKo3smbV13PcsHnv4aKVFRIta6OWlg=; b=AQAGfQ5Q1lOgv5cgxHAoOnRbALbSJIYElZ2spREeXX47F6UWg1b9eL+iW4U+KFfQiN e7vUoM3ZtVdtfm8SrFyiRzBPUuuFMJvbF80pkw2C3GDme2iF5Iie1nwCXwqQl4zBxogd LGps1XFjinVWb7CHCNongwtcko3eePLZrhDlymlx/P+iE5iSt+mfoo03Y5bSvULWRS3z hTjP4c91vlQS791HNO9ujrCzeSQ0J6jxUs+j2RcZ4KxFwGHcbUwdKc90rUT9SsHntC8Y oGpXme7p3O59fYf0XWGm3FZStG0UngNVwAzkFYiOPyyzIULaTySi4hGynIt676Zvv3Mr ta9Q== X-Gm-Message-State: AOJu0YzI3pP/mOxGwDG5edAhIBnyBzJdwbHJW3P3Vh2tJ+/sPS1hKYLn frI632T4/8B1JEyNBOQ3/YU= X-Google-Smtp-Source: AGHT+IEDpxiit9wGzGHbu83b4Rg0Rj+hBTxcZG/AllA5FNxDk24WDeeSSjGh3EGbCkYuEZw0RPihxg== X-Received: by 2002:a05:6512:b97:b0:4ff:78b6:2ea0 with SMTP id b23-20020a0565120b9700b004ff78b62ea0mr832587lfv.34.1693565757442; Fri, 01 Sep 2023 03:55:57 -0700 (PDT) Received: from localhost.lan ([31.11.218.106]) by smtp.gmail.com with ESMTPSA id l9-20020ac24309000000b004fe202a5c7csm615448lfh.135.2023.09.01.03.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Sep 2023 03:55:56 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Cc: Hauke Mehrtens , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH] ARM: dts: BCM5301X: Set MACs for D-Link DIR-885L Date: Fri, 1 Sep 2023 12:55:49 +0200 Message-Id: <20230901105549.7076-1-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230901_035559_572357_3D29350C X-CRM114-Status: GOOD ( 11.97 ) 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 Specify NVRAM access and use its "et2macaddr" NVMEM cell. Signed-off-by: Rafał Miłecki --- .../dts/broadcom/bcm47094-dlink-dir-885l.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts b/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts index c914569ddd5e..abe0cb245c7e 100644 --- a/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts +++ b/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts @@ -25,6 +25,15 @@ memory@0 { <0x88000000 0x08000000>; }; + nvram@1e3f0000 { + compatible = "brcm,nvram"; + reg = <0x1e3f0000 0x10000>; + + et2macaddr: et2macaddr { + #nvmem-cell-cells = <1>; + }; + }; + nand_controller: nand-controller@18028000 { nand@0 { partitions { @@ -112,6 +121,11 @@ &usb3 { vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>; }; +&gmac0 { + nvmem-cells = <&et2macaddr 0>; + nvmem-cell-names = "mac-address"; +}; + &spi_nor { status = "okay"; }; @@ -142,6 +156,8 @@ port@3 { port@4 { label = "wan"; + nvmem-cells = <&et2macaddr 3>; + nvmem-cell-names = "mac-address"; }; port@8 {