From patchwork Mon Oct 3 12:59:15 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: 1685550 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=HP2ObhnD; 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=A8s5bN/S; 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 4Mh1GG4r43z1yqm for ; Tue, 4 Oct 2022 00:02:46 +1100 (AEDT) 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=CfnUBfKqLeGnm2PnaRDRYjLpPf5R81tGMTkz2j4YIiQ=; b=HP2ObhnD67YcmF PoNLFmik8yuTMy+xFirh/n6rwVo17otkZFWu6MHHajWfHVZHH76LUowdyPM7hf7eKdJHeUN3Kivn9 20zjKKY7HFMIgJ/h3g3yKmFHo9Yxm/VQAJnZZ+Kkk19DcY1onilrox7Un8RTHxA3LczvEg8MgIhHk m5n+/IH7mNAC8FDrIx6ypbk9TTl8mr2aWizeUv9Mh2wXEwJr2D4KjQlmpnbhALTdqZ2kj7XlMctq0 pzB90stKGUx1VWozn2ZfopF4QScfzYAfD5s1HWG8rSWs0mBZpy3s4HxaqVNm16nyCwE3OiAYDzRdD mLcOj+CpACrxQ0GiLMXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ofL2e-005qci-7U; Mon, 03 Oct 2022 12:59:28 +0000 Received: from mail.terefe.re ([2a04:52c0:101:a4a:0:ffff:5ff:60c8]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ofL2a-005qbJ-DF for openwrt-devel@lists.openwrt.org; Mon, 03 Oct 2022 12:59:26 +0000 Received: from localhost.localdomain (unknown [212.106.161.70]) by mail.terefe.re (Postfix) with ESMTPSA id F0E1B20ADA; Mon, 3 Oct 2022 14:59:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1664801963; bh=ONNSj5qNjQpWqwNjWe2MgnBv/8XbFfo72/mLIDLFaCo=; h=From:To:Cc:Subject:Date:From; b=A8s5bN/SlkYZuZXed0J0uN0fMIoKID+rua5datqYPBNjHvQ7p0rMjWTICQjXAdhiC 6HdOny8YYAG/fd2tN/gtOh/F5SQiZnz2abD0EeidGFqeD+S5ZEslwfnNzGC5sJKwmW SXmJPag1jfZ99yAurj01TGcSdiKoSuyO3xnkXU4JG4ihUOgxmvqYO6T/gSmxcy5ltF uFFrsf9th9h4rbYZFMXasDEccZIF/kMulTkr5aKhPrOWtieC1KsOcKxF6UssEUZXXt 1UFTw3NrfvBUzbsNCK52IwMOYg9gwYws5zWhyH6dUonuA3XgPxz+HFitG3oZQ20mWV ECJCcQmK9Vavg== From: Tomasz Maciej Nowak To: openwrt-devel@lists.openwrt.org Cc: Tomasz Maciej Nowak Subject: [PATCH] ipq40xx: pakedge_wr-1: convert to DSA Date: Mon, 3 Oct 2022 14:59:15 +0200 Message-Id: <20221003125915.6912-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-20221003_055924_673631_B196099C X-CRM114-Status: UNSURE ( 7.12 ) 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 And enable the device. Signed-off-by: Tomasz Maciej Nowak --- .../ipq40xx/base-files/etc/board.d/02_network | 1 + .../arch/arm/boot/dts/qcom-ipq4018-wr-1.dts | 37 +++++++++++++++++++ target/linux/ipq40xx/ [...] 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 And enable the device. Signed-off-by: Tomasz Maciej Nowak Reviewed-by: Robert Marko --- .../ipq40xx/base-files/etc/board.d/02_network | 1 + .../arch/arm/boot/dts/qcom-ipq4018-wr-1.dts | 37 +++++++++++++++++++ target/linux/ipq40xx/image/generic.mk | 3 +- 3 files changed, 39 insertions(+), 2 deletions(-) diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network index d9a162b10d42..163dcdcbc681 100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -21,6 +21,7 @@ ipq40xx_setup_interfaces() mikrotik,hap-ac3|\ p2w,r619ac-64m|\ p2w,r619ac-128m|\ + pakedge,wr-1|\ zyxel,nbg6617) ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan" ;; diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts index 317fe26e2e9a..16951da47fc0 100644 --- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts @@ -11,6 +11,7 @@ compatible = "pakedge,wr-1"; aliases { + label-mac-device = &gmac; led-boot = &led_power; led-failsafe = &led_power; led-running = &led_power; @@ -177,6 +178,10 @@ status = "okay"; }; +&gmac { + status = "okay"; +}; + &mdio { status = "okay"; }; @@ -185,6 +190,38 @@ status = "okay"; }; +&switch { + status = "okay"; +}; + +&swport1 { + status = "okay"; + + label = "lan4"; +}; + +&swport2 { + status = "okay"; + + label = "lan3"; +}; + +&swport3 { + status = "okay"; + + label = "lan2"; +}; + +&swport4 { + status = "okay"; + + label = "lan1"; +}; + +&swport5 { + status = "okay"; +}; + &tlmm { key_pins: key_pinmux { mux { diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk index 69ec42c26657..3c1cf6744882 100644 --- a/target/linux/ipq40xx/image/generic.mk +++ b/target/linux/ipq40xx/image/generic.mk @@ -938,8 +938,7 @@ define Device/pakedge_wr-1 IMAGE_SIZE := 31232k IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | append-metadata endef -# Missing DSA Setup -#TARGET_DEVICES += pakedge_wr-1 +TARGET_DEVICES += pakedge_wr-1 define Device/plasmacloud_pa1200 $(call Device/FitImageLzma)