From patchwork Fri Sep 23 12:47:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 1681553 X-Patchwork-Delegate: chunkeey@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=pL/fJ25I; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=terefe.re header.i=@terefe.re header.a=rsa-sha256 header.s=default header.b=uUPauatC; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MYsTh6gPRz1yqV for ; Fri, 23 Sep 2022 22:51:20 +1000 (AEST) 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=LpeltKwV3LN3tm3JrZkmclweuAZAFwt0R54OWtKGel0=; b=pL/fJ25I5GnMR6 vHwVI6cNyjeAmAOJV168A6IvcwIznoB4uoX72iUGrgMVO61i2FOTqpRoPfi7eEqKqQz55FMopM8F7 JesLPVnneZG7Y115xJ/Xxn13DqukbkLutKECejjn5TlAhQ/1JS7F82IOM5rrs9G1hHwQIsrjc3GhK 1rOZs9XpQv0zDY23aVt03HuG+cQpAAw4/sQcEm+K9foMJil7q74IwRkEyWt2rEaQzA4uerQL+HP9j kxcQCVZvsk7pSUfFXEVIkXacuSNNWgs05rJf0qJEbSoKQmEM30QkC2762Q0jxCEaM09GglRkM/3FK DFGZo1nR29U5OZUIM6ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1obi69-004IPC-5p; Fri, 23 Sep 2022 12:48:05 +0000 Received: from mail.terefe.re ([5.255.96.200]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1obi64-004IFB-T8 for openwrt-devel@lists.openwrt.org; Fri, 23 Sep 2022 12:48:02 +0000 Received: from localhost.localdomain (unknown [212.106.161.70]) by mail.terefe.re (Postfix) with ESMTPSA id B1A4420AD4; Fri, 23 Sep 2022 14:47:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1663937272; bh=8+D9zaC0eD2m2jQdY/Y+K8mniHMXzN/z7YiqfEzCsoE=; h=From:To:Cc:Subject:Date:From; b=uUPauatCDlAtXwpzeAag7MuZQVWzpRmmXrl+m4nhYgRYpZAvGbBG908yKzfpAR0O7 4tF6oD5r78f/CDijXlS3t1A0N8hAUw50lLs5jrmQ0JkWf+Cch7lYiQTxNTTAAWZU4A BskQQEXQVHQ475VzY8KbMt2kJIlC3JjT4vUE22ONvVNShkUvTgvV6PylGicaOJehHs YB/WSdoYBIhXUx/eZFZN68tNO46bqDCOGq7eqsMzdQ1+mgFH9PpjcMnNJ99qfyzRKY zfJ0DaFooii+n50dyhHgTesofLH/+aoLzrBewQuQzWpNCP1izAdb8gZn4RfOFzyLBl oQTSicOUXemjQ== From: Tomasz Maciej Nowak To: openwrt-devel@lists.openwrt.org Cc: Tomasz Maciej Nowak Subject: [PATCH] ipq40xx: luma_wrtq-329acn: differentiate ethernet mac addresses Date: Fri, 23 Sep 2022 14:47:39 +0200 Message-Id: <20220923124739.5979-1-tmn505@terefe.re> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220923_054801_408918_D4190873 X-CRM114-Status: UNSURE ( 4.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Tomasz Maciej Nowak On OEM firmware both addresses for In and Out ports are different. Set them as such also in OpenWrt. Fixes: e24635710c7e (" ipq40xx: add support for Luma Home WRTQ-329ACN") Signed-off-by: Tomasz Maciej Nowak --- .../arch/arm/boot/dts/qcom-ipq4018-wrtq-329acn.dts | 12 ++++++++++++ 1 [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Tomasz Maciej Nowak On OEM firmware both addresses for In and Out ports are different. Set them as such also in OpenWrt. Fixes: e24635710c7e (" ipq40xx: add support for Luma Home WRTQ-329ACN") Signed-off-by: Tomasz Maciej Nowak --- .../arch/arm/boot/dts/qcom-ipq4018-wrtq-329acn.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wrtq-329acn.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wrtq-329acn.dts index 5b0c8cf10690..2af429634218 100644 --- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wrtq-329acn.dts +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wrtq-329acn.dts @@ -182,6 +182,14 @@ #address-cells = <1>; #size-cells = <1>; + macaddr_art_0: macaddr@0{ + reg = <0x0000 0x0006>; + }; + + macaddr_art_6: macaddr@6{ + reg = <0x0006 0x0006>; + }; + precal_art_1000: precal@1000 { reg = <0x1000 0x2f20>; }; @@ -227,11 +235,15 @@ &gmac0 { qcom,phy_mdio_addr = <2>; qcom,poll_required = <1>; + nvmem-cell-names = "mac-address"; + nvmem-cells = <&macaddr_art_6>; }; &gmac1 { qcom,phy_mdio_addr = <4>; qcom,poll_required = <1>; + nvmem-cell-names = "mac-address"; + nvmem-cells = <&macaddr_art_0>; }; &tlmm {