From nobody Sat Oct 4 12:46:55 2025 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81845244691; Sat, 16 Aug 2025 09:32:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755336774; cv=pass; b=thIg7Qn6f0tV8yK/RcTzlLJLYLU+q/ZOsZIuzCQvL/ZajP3hePCZPiC7v3D3vEYHfu+nXvLecaF7YrfUFmZGLxscvT6X9WHuYVeOyT7KnfRsBLH/izDFTAIjO7L8hsPXSTg6DvZA70wDNUXrj6wsL3FLkZC53F06lR7oMpCNjqc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755336774; c=relaxed/simple; bh=SQaJfpbOWhDFxw/vqH8oWMx6lny/nqo3qGy8Iir7Id4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lSp+CimOxob2BsskJhL0nMfMA1hObzMkkGWgscOh2HrxPBbskgAjb4GXsFk5LuwAC1ws8AMft8WWMK4ZhtggAYoTFzCYE/Ay5Cql5Sk0OQOEb9z3Qi7gAQnE5QuUZxwlPrACNbVW4z0obO3xZpG5l7/1EkXjEbjwg30lwYqOhFI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=icenowy.me; spf=pass smtp.mailfrom=icenowy.me; dkim=pass (2048-bit key) header.d=icenowy.me header.i=uwu@icenowy.me header.b=TJbQoUnU; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=icenowy.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=icenowy.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=icenowy.me header.i=uwu@icenowy.me header.b="TJbQoUnU" ARC-Seal: i=1; a=rsa-sha256; t=1755336761; cv=none; d=zohomail.com; s=zohoarc; b=IFGvuJ8lvQ47tTBEVUAdX0EMfU/jJwqJWgb8t5ai1WOXnBahXZdDgaoHFvE4iO5Bjih2/RCmP9sryRNonbVtHi/o9Wnjs/GFUCnoCmnVLhmLfaGAAxag7zcPJGaK/8xtakV3j+OsgDUG+GgHKKnPJ24E1NdNV/icABhnlWNvDX4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1755336761; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=676VaJ+6XPJQ19N0s+B4LHk5NDzXy0L1JDDJG1OA/hc=; b=JYAOxKura0Xequ9nHFeVceG9RduOk7u37kRuqoZVGIQ9ICQMlr87YDJm5/2swFZH31UEJhAXjIZ/3rph0SaAP0akjdgsDumUfdJg3mZF6/+X9Ngb+QpVtWGjdCa93uuyGP0jxEbbhhVvWYZdckLyUDoMOwBQ5BYj0w/Qnjdl7QI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1755336761; s=zmail2; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=676VaJ+6XPJQ19N0s+B4LHk5NDzXy0L1JDDJG1OA/hc=; b=TJbQoUnUoRMVg3mCyf7lnga9ZABZn9QuvnZsd0MdJYuL9fscDUIDMcoTLozPeJAl wI+L2e/ztO2AGedGaTkFPOV/bFGFtDraPqldwNY5vNotz6A4bcZksrGBI4A5sHM0uYf EwibAL5fN/qBduk2IIbhzEcu3c+Oj+N3F0IpEmCep6GEf+M4arv+HWMAeAsKYk/Aao2 rBD3Hk7qxeQps/8Fima92PhMOAxGMSp7RVzi/DKit9bbCGpOQzBuSPlQYvmDcDzGGWK xdGBNpvqTBZC9XcsWnF5hpxFeTcBEbtD39QHsphVbpWuaUaTDQVC+HD5rYj95btEVon 9uKs/BaPyg== Received: by mx.zohomail.com with SMTPS id 1755336759129283.67420191087547; Sat, 16 Aug 2025 02:32:39 -0700 (PDT) From: Icenowy Zheng To: Drew Fustini , Guo Ren , Fu Wei , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Han Gao , Yao Zi , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH 1/3] riscv: dts: thead: th1520: add coefficients to the PVT node Date: Sat, 16 Aug 2025 17:32:07 +0800 Message-ID: <20250816093209.2600355-2-uwu@icenowy.me> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250816093209.2600355-1-uwu@icenowy.me> References: <20250816093209.2600355-1-uwu@icenowy.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" The manual of TH1520 contains a set of coefficients a little different to the driver default ones. Add them to the device tree node of PVT. Signed-off-by: Icenowy Zheng --- arch/riscv/boot/dts/thead/th1520.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/th= ead/th1520.dtsi index 03f1d73190499..e9c81bdabed8a 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -676,6 +676,10 @@ pvt: pvt@fffff4e000 { reg-names =3D "common", "ts", "pd", "vm"; clocks =3D <&aonsys_clk>; #thermal-sensor-cells =3D <1>; + moortec,ts-coeff-g =3D <42740>; + moortec,ts-coeff-h =3D <220500>; + moortec,ts-coeff-j =3D <(-160)>; + moortec,ts-coeff-cal5 =3D <4094>; }; =20 gpio@fffff52000 { --=20 2.50.1 From nobody Sat Oct 4 12:46:55 2025 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 139E824679B; Sat, 16 Aug 2025 09:32:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755336778; cv=pass; b=r6NsLYmEkHzev+rBTB3YEMhr7Lrrv51aZ2mtxtUqXp83hYfaX1OyzMHIrNh6qqLED7vHrzq7ZX7oUz+UA6xP+pAjFPy/3pjB6oHY9UStC8kyiIQ9hDH/0VTDk+DnCYFEGCm5l9Qfh4725MmIyVYRVTT0r8X4iyi/CwWojWBMnlw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755336778; c=relaxed/simple; bh=KBk1KwAODd1Zk/766TOzD3cy3Z16Ze3mqD9MoBF2AO4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pfCX2EaamUq1HEgrJqrxELXsKVK0x712AQgp54mqq3eqK5hR2l/RgPXsQRaFWGvjAVozxpGs9i0bxO7Zqz6FXSF25+llbZUjVw9PIGFm00gWV7sxFCCShioULOYU8Al8vRxcW71cP+L9k8PPQNYilGNQophzb9qdLEIa2UNVrvA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=icenowy.me; spf=pass smtp.mailfrom=icenowy.me; dkim=pass (2048-bit key) header.d=icenowy.me header.i=uwu@icenowy.me header.b=cu++eg9n; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=icenowy.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=icenowy.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=icenowy.me header.i=uwu@icenowy.me header.b="cu++eg9n" ARC-Seal: i=1; a=rsa-sha256; t=1755336766; cv=none; d=zohomail.com; s=zohoarc; b=ZUVD1jKbcycpJoOHNYt6loehgxTSeRCDJag3kw2I2QnzA+ypHO88tNyQqye1FylJlD1mnBs+EFnle10N+R/eGNjCIxG3mqzHbqJs0kxF313+bGsVuJSNnncrc3GFzLfAGS+cfNNcC9QDsjFSP+aqh3fDaKsLYYIIUXdXWOQKVbo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1755336766; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=T93m/qBDDnHV3ndKiLSsbo6LGiGCBHHPOQ9wTTk4DHs=; b=DC04lwQgdsvQi67rgSxznHA3hJeSQj2Vn4sF+M7mknA368ZE+sWzO65z/+0Ju4mf/Ppr2TYXDhl30iuhi3NciyhP3KV26N5Q2cAitPpbLF28HgiJxlx4YkNVx2J0GVy5mHZEBQS97evZ5iizG3IFwBjqd2dum3LqXErplzt1UTw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1755336766; s=zmail2; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=T93m/qBDDnHV3ndKiLSsbo6LGiGCBHHPOQ9wTTk4DHs=; b=cu++eg9n1Z7p9md9w6Hqnxk23dieTThLkzdyjxuBokoEuIYqdp/ezHSbfK+1hqO6 oBfyAPzX3ddH45cGu8U090vE97Y8Etbx79Sjj7P2pO1yj2WxTvF/iSU5RaB1wnE9qiQ xPFKDojTlNQNYwmnC0/fK1aRrcTKLVhFuIy93c/f1xslO9VfoYLYlDsUxyd+dIvU7h+ wiH4rMOGQISG1D+ELvvAa7Q/zGxYkaSLMATp4VAMSQRlEOGWZuBESxGWL25+JgoHrmy vjAzv3bsSSEMHPmsSEO603t/+CfCZRXedlXpNTNwJ2EtSCqdhF9UhXdtMlB9Nxi9ZaG Mxkbc4B6xw== Received: by mx.zohomail.com with SMTPS id 1755336765084748.2338970354662; Sat, 16 Aug 2025 02:32:45 -0700 (PDT) From: Icenowy Zheng To: Drew Fustini , Guo Ren , Fu Wei , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Han Gao , Yao Zi , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH 2/3] riscv: dts: thead: th1520: add initial thermal zones Date: Sat, 16 Aug 2025 17:32:08 +0800 Message-ID: <20250816093209.2600355-3-uwu@icenowy.me> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250816093209.2600355-1-uwu@icenowy.me> References: <20250816093209.2600355-1-uwu@icenowy.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" As the PVT sensors's "T" means thermal, add thermal zones for the thermal sensors. Because of the current lack of DVFS, only a critical trip point is added now. Signed-off-by: Icenowy Zheng --- arch/riscv/boot/dts/thead/th1520.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/th= ead/th1520.dtsi index e9c81bdabed8a..a48eca5def606 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -701,4 +701,29 @@ gpio4: gpio-controller@0 { }; }; }; + + thermal-zones { + cpu-thermal { + polling-delay-passive =3D <250>; + polling-delay =3D <15000>; + + thermal-sensors =3D <&pvt 0>; + + trips { + cpu_crit: crit-trip { + /* milliCelsius */ + temperature =3D <110000>; + hysteresis =3D <2000>; + type =3D "critical"; + }; + }; + }; + + ddrc-thermal { + polling-delay-passive =3D <250>; + polling-delay =3D <15000>; + + thermal-sensors =3D <&pvt 1>; + }; + }; }; --=20 2.50.1 From nobody Sat Oct 4 12:46:55 2025 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4AFF24469A; Sat, 16 Aug 2025 09:33:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755336791; cv=pass; b=PyiMgyrNToRF76Ku4NEVQlQ8wLyVf8BoNOrTu+dV90V56ctFb4bzUGDPZ4GgTlh6GsaWJnHleFgw/7Cd0msCs5/vdQihZ911kJUGOQzoA/wdWtHyu6CqUaKZJqS+umEtFrPJMASnvrPlVEw8Ux34YNCFq2YwqsawRUSuLBB8U24= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755336791; c=relaxed/simple; bh=BmlE93Zs1Qp2ycCVRZn6NL8x/s3gajsV6GrAT+07b6w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p1CKAgqpJ3BJD5RFd0F/xDsCXngZxMA7wv7Xx68UsqnDPeVBe1x1hVi+oKopmi9MDxiuNJFYcaI7DMJNXHt5HPTDlI1cl1Fbu9WA63R4clkRbnxqQuQVlXLnNtyuZl7rXpq4dWIyLiVFkFZslWa/HrLmq2nvInayxGKjCe8y6C8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=icenowy.me; spf=pass smtp.mailfrom=icenowy.me; dkim=pass (2048-bit key) header.d=icenowy.me header.i=uwu@icenowy.me header.b=iUzjxrQy; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=icenowy.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=icenowy.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=icenowy.me header.i=uwu@icenowy.me header.b="iUzjxrQy" ARC-Seal: i=1; a=rsa-sha256; t=1755336781; cv=none; d=zohomail.com; s=zohoarc; b=W0sLdmC/dzTpbI8WbmZT8YwZeQwmhYwQV4QpaCbOCr9Jt72D65DCoj4QJ2Wg4Bn8clzui2oVabNIBJREggmUQpq/8AKWX3u9Ra4Yd65la25yOqDb5ZAX1gix0gcXLOrrttZAIfcvrQRTvSiPPdOVpqfUsjubZSa7snzqIZfBvkw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1755336781; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=+z/oVlLFF1PycSfqjySbob+HkdEI6/LSvl3u/uL2B6Y=; b=Wxug/1PhLezaZvsblAoh3ZoJ1pNCb81+3/Kj+6TZKRIFrAYznSl/gw/4uC75PC6OM4GYfrkCyjA6pFwopBuXeQvm2vQu7Q+HvmoKSdh6jbZmNubXce4bqLGosJNHF1QMd+/RiAwdPwrFtKqRlpPEU21IXzyzXmSC82rqJf1yrcU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1755336780; s=zmail2; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=+z/oVlLFF1PycSfqjySbob+HkdEI6/LSvl3u/uL2B6Y=; b=iUzjxrQyI6HFaPu3MCLdm3l7YzqJrj9nWNy4mm9KDPRuPP7LgUnMpWQKZyhve+XC CWGZpCLtJullORPPuA5FEQQDMZ3NM06wQu3oh2XK0GWtx2QBe3HxrSpO22uHMc6p4ZK a7XQc0l6FF8Ne7IaII4LApHFq8eG15/yOAh3pYRc0J3zDycyfGoaP2Y4PGDaQlcrkzh bgnlOCYBGTEpbpGU2qoFMjGtXJ2w8XhifWquMYFWjUcztm5vCvlaUByqaPUU3OLorVd NwOkjs/hgF8z3gRSOmNa90hpvPfRXia+a9tYqjsGeqeTYHqO4MoqEJnrCx8jc5AxscE dHNPqFtWrg== Received: by mx.zohomail.com with SMTPS id 1755336778054821.4036963515487; Sat, 16 Aug 2025 02:32:58 -0700 (PDT) From: Icenowy Zheng To: Drew Fustini , Guo Ren , Fu Wei , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Han Gao , Yao Zi , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH 3/3] riscv: dts: thead: th1520: add soft PWM fan for Lichee Pi 4A Date: Sat, 16 Aug 2025 17:32:09 +0800 Message-ID: <20250816093209.2600355-4-uwu@icenowy.me> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250816093209.2600355-1-uwu@icenowy.me> References: <20250816093209.2600355-1-uwu@icenowy.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" Because of the SoM+Dock design of Lichee Pi 4A, heat dissipation does not work well; fortunately it comes with a fan port with PWM driving capability. As the hardware PWM controller of Lichee Pi 4A isn't ready yet, drive it with pwm-gpio driver (software PWM) now. A long PWM period is used, because not only software PWM is used, but also the fan port is a 2-pin one and fast PWM might confuse the BLDC driver on fans. Signed-off-by: Icenowy Zheng --- .../boot/dts/thead/th1520-lichee-pi-4a.dts | 53 +++++++++++++++++++ arch/riscv/boot/dts/thead/th1520.dtsi | 2 +- 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts b/arch/riscv= /boot/dts/thead/th1520-lichee-pi-4a.dts index 4020c727f09e8..f696db01353c5 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts +++ b/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts @@ -4,6 +4,7 @@ */ =20 #include "th1520-lichee-module-4a.dtsi" +#include =20 / { model =3D "Sipeed Lichee Pi 4A"; @@ -28,6 +29,58 @@ aliases { chosen { stdout-path =3D "serial0:115200n8"; }; + + gpio_pwm: gpio-pwm { + #pwm-cells =3D <3>; + compatible =3D "pwm-gpio"; + gpios =3D <&gpio3 3 GPIO_ACTIVE_HIGH>; + }; + + fan: pwm-fan { + compatible =3D "pwm-fan"; + #cooling-cells =3D <2>; + pwms =3D <&gpio_pwm 0 100000000 0>; + cooling-levels =3D <0 66 196 255>; + }; +}; + +&cpu_thermal_zone { + trips { + fan_trip0: fan-trip-0 { + temperature =3D <40000>; + hysteresis =3D <8000>; + type =3D "active"; + }; + + fan_trip1: fan-trip-1 { + temperature =3D <50000>; + hysteresis =3D <8000>; + type =3D "active"; + }; + + fan_trip2: fan-trip-2 { + temperature =3D <60000>; + hysteresis =3D <8000>; + type =3D "active"; + }; + }; + + cooling-maps { + map-active-0 { + cooling-device =3D <&fan 1 1>; + trip =3D <&fan_trip0>; + }; + + map-active-1 { + cooling-device =3D <&fan 2 2>; + trip =3D <&fan_trip1>; + }; + + map-active-2 { + cooling-device =3D <&fan 3 3>; + trip =3D <&fan_trip2>; + }; + }; }; =20 &padctrl0_apsys { diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/th= ead/th1520.dtsi index a48eca5def606..5ac8044a05f1e 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -703,7 +703,7 @@ gpio4: gpio-controller@0 { }; =20 thermal-zones { - cpu-thermal { + cpu_thermal_zone: cpu-thermal { polling-delay-passive =3D <250>; polling-delay =3D <15000>; =20 --=20 2.50.1