From patchwork Mon Oct 3 12:58:53 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: 1685549 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=FsO57Cx3; 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=lLVPyf3E; 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 4Mh1GG5qPwz23jL 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=7Bkfqq1M5qzhOZDWablMnCesbie15iOofyermayjLZY=; b=FsO57Cx3dzG5f8 vxBX7QaF7ATYL9C8qWQN2KpN8fPKOxQk6h2DKDYB5rUDABkW0ridXGmYmYz/b7FFFGDUIwlF0tjYI ckp0VIaVs+sVoHxM4AGSDIWdRegkQ0gaq6QwtVS5QrXs/dIiylODeaiEv58JIxDZqlO2QgbWLy89q tZeycYZs4in03tnicHF7DzLCt9ymoJwp9w+XvgmxdcqpZUi3UFdHXl4iFSjN4L7JxiNiew0/hh89c gLIIwtwWK6uIgd65aSTHUddXCiRYqOv54Gvlg+l0HhfZPRmwBCl+iniBE/jH8ioERjf2oUiR82k9c 17W/V1IfnPLDY99PUaiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ofL2Q-005qYr-Uy; Mon, 03 Oct 2022 12:59:15 +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 1ofL2N-005qW0-1f for openwrt-devel@lists.openwrt.org; Mon, 03 Oct 2022 12:59:12 +0000 Received: from localhost.localdomain (unknown [212.106.161.70]) by mail.terefe.re (Postfix) with ESMTPSA id 8AE8A20ADA; Mon, 3 Oct 2022 14:59:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1664801942; bh=6dBj8ClE3lf6lwgOdCMWrvMHNvPG23Oy5qPLq44BKKs=; h=From:To:Cc:Subject:Date:From; b=lLVPyf3EEuZt0h3OTnPQEKYpSj9UOKz95rbjBzuD74wG/ucrm5gef+vfy7+pYo3Q5 GgRf0sRfClX9P+LAtj2i0yLueOS1SuyRGEIwMf0GFwC0qxXzzJ05OF6vz6LEnDzoAo 98DW7/Ok5b4k19wUM65DVGx5bfQ44OkWaN6UatsY186PdA2dJ8MBir/B9eZuGFeHsk mfLAZ5cRIfkCvWONUX3DPEQLT1pxglxYQzl7XOrERJ1SZltDh/n22kIlNXBH9z7ptN ntVG7eCfjRYOHcUOwI3GiumND//E1oLw5ElxU/Y9soe045KPD/AFH2nOVsSAK9EixF HCz5Mtx1rs4/A== From: Tomasz Maciej Nowak To: openwrt-devel@lists.openwrt.org Cc: Tomasz Maciej Nowak Subject: [PATCH] ipq40xx: luma_wrtq-329acn: convert to DSA Date: Mon, 3 Oct 2022 14:58:53 +0200 Message-Id: <20221003125853.6890-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_055911_532676_BA52EA0D X-CRM114-Status: UNSURE ( 6.56 ) 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 + .../arm/boot/dts/qcom-ipq4018-wrtq-329acn.dts | 55 +++++++++++++------ target/linux/ipq40x [...] 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 + .../arm/boot/dts/qcom-ipq4018-wrtq-329acn.dts | 55 +++++++++++++------ target/linux/ipq40xx/image/generic.mk | 3 +- 3 files changed, 41 insertions(+), 18 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 3d05589369b5..d9a162b10d42 100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -30,6 +30,7 @@ ipq40xx_setup_interfaces() cilab,meshpoint-one|\ edgecore,ecw5211|\ glinet,gl-b2200|\ + luma,wrtq-329acn|\ mikrotik,cap-ac|\ netgear,wac510) ucidef_set_interfaces_lan_wan "lan" "wan" 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 2407698fe1c8..4694c5681914 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 @@ -45,10 +45,6 @@ status = "okay"; }; - mdio@90000 { - status = "okay"; - }; - tcsr@1949000 { compatible = "qcom,tcsr"; reg = <0x1949000 0x100>; @@ -213,6 +209,45 @@ status = "okay"; }; +&gmac { + status = "okay"; +}; + +ðphy0 { + status = "disabled"; +}; + +ðphy1 { + status = "disabled"; +}; + +ðphy3 { + status = "disabled"; +}; + +&mdio { + status = "okay"; +}; + +&switch { + status = "okay"; +}; + +&swport3 { + status = "okay"; + + label = "lan"; + nvmem-cell-names = "mac-address"; + nvmem-cells = <&macaddr_art_6>; +}; + +&swport5 { + status = "okay"; + + nvmem-cell-names = "mac-address"; + nvmem-cells = <&macaddr_art_0>; +}; + &tlmm { serial0_pins: serial0_pinmux { mux { @@ -252,18 +287,6 @@ status = "okay"; }; -ðphy0 { - status = "disabled"; -}; - -ðphy1 { - status = "disabled"; -}; - -ðphy3 { - status = "disabled"; -}; - &wifi0 { status = "okay"; nvmem-cell-names = "pre-calibration"; diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk index 47e8c129b49c..69ec42c26657 100644 --- a/target/linux/ipq40xx/image/generic.mk +++ b/target/linux/ipq40xx/image/generic.mk @@ -727,8 +727,7 @@ define Device/luma_wrtq-329acn BLOCKSIZE := 128k PAGESIZE := 2048 endef -# Missing DSA Setup -#TARGET_DEVICES += luma_wrtq-329acn +TARGET_DEVICES += luma_wrtq-329acn define Device/meraki_mr33 $(call Device/FitImage)