From patchwork Fri Apr 21 08:43:12 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: 13219640 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 EA1FDC77B78 for ; Fri, 21 Apr 2023 08:44:19 +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=zz9nPCeFt89zLX4dfRX2/8AkH2hMGm40oYnZSIqCBVc=; b=GZDIfAI6zW/xL6 vOtr1Je3IXLvUibAdirgNtv+WFjK4ZU2Oapc9NYB7cqG4ND/Z6qik0apHZWyyR1w0QgJqKsWBLq/i m06VptF5gXCAXH32YIbmX62h9qjYKyc5c3xRHlchg5GURpXeKIff0KYpCuauvjOuM3AEzapGJJiQu NGpQcTGqRZ3I32kclEeAkfan9vQ8ARGF2tLl3AYQ1IVRZX70uHhQA2n48UvwTSwkgw+EfandYEprw Ndv0muBBTeeefbFh4X9MkrF7XQCD5qNXMlZ4iCANaILmKFT+aMaWKQS4cmJu5uTglHmR3vkKa8HjZ GWA5WrMhAOC23DmFVXGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ppmMe-00A86n-38; Fri, 21 Apr 2023 08:43:32 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ppmMX-00A84Z-2r for linux-arm-kernel@lists.infradead.org; Fri, 21 Apr 2023 08:43:27 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4ec8133c59eso1401095e87.0 for ; Fri, 21 Apr 2023 01:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682066603; x=1684658603; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gvGmFR5di2sik7RBLdOP/KeRkjaQDZZlALHIAzFWnQk=; b=lZgG/9a5Jc/r7LaEpPZhh6Kh2EI401N+EdCAEdxS1ZeYDJ9Pj1/Cc+6Bpv7+ZphX3x XEhmuTTiKKGyQkrPMAhwFjyXMQTjcpw0tck6kIC9evpFucRu4mRhSs+8yh3aTWHjagSH eJTaqtuhvqbM42jvAAFvHdxMUZqvUbwFwB8nAzUgHw8aMJn5wyLVTlDArHTVNGXby1z4 QymzgryUaxPnl8P5wSmYCjB5ueryYvn/Lt2XZtTTP/mP6hoyQikOspdRbxe+XQ5TVvCy 0xUE1DUUgVHOhugnD/7qrUhnIpjWkjxrDUtLj9IVDDU3wNL8iI6pFAGB3+fVFy4oZ+jO nlIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682066603; x=1684658603; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gvGmFR5di2sik7RBLdOP/KeRkjaQDZZlALHIAzFWnQk=; b=eFsJlR55xRr0yepgQplUh05Xi/FM05PA0Vd9qnHKdJ8NztySc1VSEsb2WP4picu0FT E+XLLdESbA1h6lRRTUe9mdxiU4Jqv5GerJPmD8GyE1krO4lqKlSbJ20qjcA1gPEuZNAh ygZntBjxbdGTaHiMYIbYnkP3WuoODzQk7LfZyuLAiC/pUffIPCsPUxwP/KhjIEqbZep6 JioOqTJ2HDJqg1ijBO2gNAJUe76Mi93h17/hozgOKt+V3iSSnAk5JKyK/0x7KW7WmRQx VAeptL3eHzx732ilqk3QQIt6aAnUDRmVB+BXOVmoutvtzNgoQ17i4rHi98nYB3y3O0TA 0Jfw== X-Gm-Message-State: AAQBX9fdqa1Nz/kAdDaal8CKQEd44PmmcauSqlKG9dAU88KMPS/5dAn/ bww2N+lQLQ3rx7wXFsjZbwk= X-Google-Smtp-Source: AKy350aISo20GAPNVBrXfh/unQT0OP7EDE6k1y/Q60ms4Bh+MvtraUkgSHPtS15tDRn4mlL6XlTE3Q== X-Received: by 2002:a05:6512:20e:b0:4eb:1527:e29d with SMTP id a14-20020a056512020e00b004eb1527e29dmr1221705lfo.52.1682066603523; Fri, 21 Apr 2023 01:43:23 -0700 (PDT) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id l16-20020ac25550000000b004edc16dbdfasm480721lfk.119.2023.04.21.01.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 01:43:22 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Rob Herring , Krzysztof Kozlowski , Srinivas Kandagatla Cc: Florian Fainelli , Hauke Mehrtens , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH V2 3/3] ARM: dts: BCM5301X: Specify WAN port MAC address for Luxul XWR-3150 Date: Fri, 21 Apr 2023 10:43:12 +0200 Message-Id: <20230421084312.27932-3-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230421084312.27932-1-zajec5@gmail.com> References: <20230421084312.27932-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230421_014325_938509_0C22336D X-CRM114-Status: GOOD ( 15.51 ) 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 It needs to be calculated based on the base Ethernet interface one. Signed-off-by: Rafał Miłecki --- This PATCH is a proof of concept that can go separately through the ARM DT tree. I'd actually suggest that. There are more .dts files I'll want to update. Srini: can you just take the first 2 patches from this series? --- arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 60a2c441d5bd..2dd05f4dce92 100644 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts @@ -27,6 +27,7 @@ nvram@1eff0000 { reg = <0x1eff0000 0x10000>; et0macaddr: et0macaddr { + #nvmem-cell-cells = <1>; }; }; @@ -76,7 +77,7 @@ button-restart { }; &gmac0 { - nvmem-cells = <&et0macaddr>; + nvmem-cells = <&et0macaddr 0>; nvmem-cell-names = "mac-address"; }; @@ -119,6 +120,8 @@ port@3 { port@4 { reg = <4>; label = "wan"; + nvmem-cells = <&et0macaddr 5>; + nvmem-cell-names = "mac-address"; }; port@5 {