From patchwork Mon Jun 13 20:02:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sander Vanheule X-Patchwork-Id: 1642979 X-Patchwork-Delegate: sander@svanheule.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=X646Z3NZ; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=svanheule.net header.i=@svanheule.net header.a=rsa-sha256 header.s=mail1707 header.b=dW5m2d+c; dkim-atps=neutral Authentication-Results: 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=) 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LMN2v2g44z9sFx for ; Tue, 14 Jun 2022 06:09:59 +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: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=SebCXkph0bOiC1ZOKK0leY5IkqwbOFobhb5r1HytEgk=; b=X646Z3NZ++33MS SoHdByqrYXtAHxYzxPQ8jKgS+5OphR0Wu5VvmzVoAsqbrjtTvCxApxQiyO7X4yWQR3byOv3wGNdDX hP0VnvHp9cTq+NcpBaJ2Y5DLmxBUexZdLbXoiIFW/DwpV8akRSW031nk7PCeTarLdXnizO+iGw0pU p2tzoaxeMuNi6PwJJ04/WNn8CQNwR8rkcQz22AsAlgP07YLsWG457qQemyy1V0wXiVtIV4s2cIoze oae01VEQ73kiUMkIMvA/13OHjISXfxRQWnEtqTmYPfyH5sjuh936bbmVeAm7GX3yc8KN1nN0qqeGC gSuZDJdjE+UF9apoJ0eg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0qJT-005UGm-Li; Mon, 13 Jun 2022 20:05:29 +0000 Received: from polaris.svanheule.net ([2a00:c98:2060:a004:1::200]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0qIT-005Trr-1U for openwrt-devel@lists.openwrt.org; Mon, 13 Jun 2022 20:04:29 +0000 Received: from terra.. (unknown [IPv6:2a02:a03f:eaf9:8401:aa9f:5d01:1b2a:e3cd]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id DCCEA2E8325; Mon, 13 Jun 2022 22:04:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1655150657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5JNVfbY/UaVTe3ropZ8WH+JXeiYHwVuV8vfDsp0NuzE=; b=dW5m2d+cAr89QiEEQrKqCMHik6yCU6PG9WjAfTbM7GerKEkdmq8WFctpSeye/ZfkKueYN+ sz85Duupy7PQAVwEOC54oUBqVnd4PFnybUVPErcrK5i1p1RcS1O5TqySAOeRzI4LA0S5wM dNR3CfWSH1QWogqOkrH1ENIn0J8L5xAuelTHlEyp9mgXTmCfg5x0EGy1hBZhdGvo//pFWj zhFqc9IA0k71f2tXRO0fozDtPDB+Nwdb9+uXpaUJzgP5iCYuzX9tODM+a6vN9q8McoUJ+l HTncQ5f2iD8Zv1u71/aV1OxnlNCDXyDO3auQz9rWAfStsELFu87xVobZMxNvaQ== From: Sander Vanheule To: openwrt-devel@lists.openwrt.org Cc: Christian Lamparter , Sebastian Schaper , Sander Vanheule Subject: [PATCH v2 2/2] ath79: D-Link DAP-2xxx (QCA953x): convert ath9k caldata to nvmem Date: Mon, 13 Jun 2022 22:02:46 +0200 Message-Id: <51409a73a9bb493465cb5e93b0d3a600d6f0fe23.1655150409.git.sander@svanheule.net> X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_130427_064135_787B3111 X-CRM114-Status: UNSURE ( 8.41 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) 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: Convert the calibration data reference for the ath9k radio to an nvmem-cell, replacing the downstream mtd-cal-data property. Since the 'art' label is no longer used, it can be dropped. Cc: Sebastian Schaper Signed-off-by: Sander Vanheule --- Changes in v2: - Put nvmem cell defition directly into partition node - Drop unused 'art' [...] Content analysis details: (-2.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [2a00:c98:2060:a004:1:0:0:200 listed in] [list.dnswl.org] -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 Convert the calibration data reference for the ath9k radio to an nvmem-cell, replacing the downstream mtd-cal-data property. Since the 'art' label is no longer used, it can be dropped. Cc: Sebastian Schaper Signed-off-by: Sander Vanheule --- Changes in v2: - Put nvmem cell defition directly into partition node - Drop unused 'art' label --- target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi b/target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi index 59c09dbe1b62..13d41f7bd57d 100644 --- a/target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi +++ b/target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi @@ -42,10 +42,18 @@ read-only; }; - art: partition@ff0000 { + partition@ff0000 { label = "art"; reg = <0xff0000 0x10000>; read-only; + + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + cal_ath9k: calibration@1000 { + reg = <0x1000 0x440>; + }; }; }; }; @@ -54,5 +62,6 @@ &wmac { status = "okay"; - mtd-cal-data = <&art 0x1000>; + nvmem-cells = <&cal_ath9k>; + nvmem-cell-names = "calibration"; };