From patchwork Fri Feb 17 23:56:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Enrico Mioso X-Patchwork-Id: 1744484 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=sn6wJl+b; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=UEBlSLvq; 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 4PJTMS13lTz23yN for ; Sat, 18 Feb 2023 11:00:03 +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=Yrn3Jf6dPBm8TuIyQb0V9VnvPPvkpIpDY+lDnP2TC9Y=; b=sn6wJl+boTRKvL RBwfsnQaRpwV+pn9E1ga8r21nsDdJVHx/mKBIOwtQ+FBuJTe4qb4QuKggNaLSRKFUqez/dEF6po9t 7Zyp30xxl6YfjRyX0HJsWsu7TQCmtKcm9IxHYxBMXQihTU1/Udf4tQ/mci+mjJNCeit1MmLSwpHX8 ckyeTasFZnUdhmfbUmRmPlkK8if5ISrXXBx2wlmuMN+bIERGEaYWa9eF2OROHdACnrrU+gFHL2cvX TTegropUy5t8+aEbjniHJEEuAQJtvxcNtDMQY5SUMHGyOBmb1bNiNsORL2DWFq6fIZRGGEa71K9Kn bgVpVfL610BIjTdirOnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pTAbU-00Fzb8-TX; Fri, 17 Feb 2023 23:57:25 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pTAbR-00FzZy-9Q for openwrt-devel@lists.openwrt.org; Fri, 17 Feb 2023 23:57:22 +0000 Received: by mail-wr1-x433.google.com with SMTP id i15so2386597wry.8 for ; Fri, 17 Feb 2023 15:57:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OQXWAKJ3BA5DJpUhINdzFnd87W8Yxe+eUuvJtd1DfZA=; b=UEBlSLvqm/tWhAoh7VqRqGDI7qzoamK6CPU/+w5pOsBXbt7OguHUop8Vmr+NjmMYOM /R4yifiEQ67v51Gl+tz3vhT1CfnwveXbdiALKa1eqfSPrNyjy0vnAiGiGP2zEykFbgEt SPm+xy0aq0LNCnIrlOJxg/fESPk818IWDINhZGNRvVFm3LfKFmWo2COeHIsj4ClhWeEp /jbsGrd1iZTlWTLkn1pUb8o4e9iDArKobrzfq3EF/sBluTcxyBqHj6ENYdE274Pb+jlj pg+L8eWNGIbT7rxyBgpj9WteFBSgQcOOx1vniZUt8lKcFBiwjYQpQQ2GkLQ4jxxpnqPy k+fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OQXWAKJ3BA5DJpUhINdzFnd87W8Yxe+eUuvJtd1DfZA=; b=xazAwQIz+wUsC3ZlP90TW60YO/ozCczbKi42UW9GqY8qrbSv/4UE8q/AhbMpCcHc+H 8BD/NR3kn+KPIx1v3RDUvVlWvTSoH62CnMLxcD2kuF+lJcGSa3j9L5m2r6NUnUeYYEhs xVFdCvDUNGuMz1aiy4CUA7UWhxGIKS9igLpUOgkYCHn6WenRC18YYAcK+PYwheTCHiZS wbrfnrN1/2eHp0hgAjsYAzYp8k/2gcZdvFqwoyKCTsNdAPSOHQV0GZwpZAcU59owkjC4 K8q3pbKsxFgYEsTHJM5ZZZ25SDUD4smDzXdlxU5hwEqMba2HU1m5fDGWOKUoNC7PoULG OwLQ== X-Gm-Message-State: AO0yUKV5xQfm4n6m0RyH2DSHaeZFp5FhCPuk/klSO80R0sr2J1+OQBSD Fi275mVTbhmuvrQegDkXmz6V/js9TRE4Wg== X-Google-Smtp-Source: AK7set+tj9mKuKkc3FFwjt0JDqDu/+rcS8vguNM+cBiR0+vbSgZzmj5IzN2jSXcuaguc1ujymzma4A== X-Received: by 2002:a5d:5191:0:b0:2c5:a6d4:1398 with SMTP id k17-20020a5d5191000000b002c5a6d41398mr3882549wrv.70.1676678237910; Fri, 17 Feb 2023 15:57:17 -0800 (PST) Received: from localhost.localdomain (h17-ipv4-77-240-224.mynet.it. [77.240.224.17]) by smtp.gmail.com with ESMTPSA id b16-20020adfee90000000b002c592535839sm4889155wro.17.2023.02.17.15.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 15:57:17 -0800 (PST) From: Enrico Mioso To: openwrt-devel@lists.openwrt.org Cc: Enrico Mioso , Andre Valentin , Karol Przybylski Subject: [PATCH RFT 0/2] ipq807x: ZyXEL NBG7815: add fan support Date: Sat, 18 Feb 2023 00:56:50 +0100 Message-Id: <20230217235652.2184875-1-mrkiko.rs@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230217_155721_369644_531FC7CB X-CRM114-Status: GOOD ( 10.74 ) 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: Add on/off fan support for the ZyXEL NBG7815. Single CPU cores, cluster CPU temperatures and the Aquantia PHY temperature sensor are monitored. The tmp103 sensor is missing from this patch, and can be [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:433 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [mrkiko.rs[at]gmail.com] -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 Add on/off fan support for the ZyXEL NBG7815. Single CPU cores, cluster CPU temperatures and the Aquantia PHY temperature sensor are monitored. The tmp103 sensor is missing from this patch, and can be added later, when kernel is bumped to 6.x, as it seems to require non-trivial hwmon backporting. Add kmod-phy-aquantia as default package while at it. Note: this patch has been marked RFT, since temperature values tuning is needed from someone actively using this device in high load conditions. Furthermore, this change depends on an hwmon patch of which the correctness has not been determined. Thanks to robimarko for helping me out. CC: Andre Valentin CC: Karol Przybylski Enrico Mioso (2): ipq807x: ZyXEL NBG7815: add fan support hack-5.15: add Aquantia PHY hwmon temperature clamp patch ...-clamp-temperature-value-in-aqr_hwmo.patch | 30 +++++ .../arm64/boot/dts/qcom/ipq8074-nbg7815.dts | 119 ++++++++++++++++++ target/linux/ipq807x/image/generic.mk | 2 +- 3 files changed, 150 insertions(+), 1 deletion(-) create mode 100644 target/linux/generic/hack-5.15/726-net-phy-aquantia-clamp-temperature-value-in-aqr_hwmo.patch