From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3ABDBC5478C for ; Thu, 22 Feb 2024 18:28:25 +0000 (UTC) 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=ZiVj4TW9d6yWoVl8qp6LpqClLsOKpqQLZNy64IpWaxo=; b=cEvIh5g+EbKtIs +RH+CV8/BEg5F+N977crVePuR1cWsqSKbn0+OBFQysP2pJcV6HR6+F+ws7muh/28Nr6f9+FTUBtKo 6eCPdNLh6MezVFwBBz1ogZwtxRLlqQcRs6GRiFDvuAD/s+G72isyZ2ZtsLZZMc2UVRmFLJGB+vCWN G+D+uEO/43+zkzrjDQTirFPdApw1fPpNa8xO4FkD4Kg7RYwO5mdEETcMBBhz3Yb1r5XnaRwnYj+QP K8wPGW6PZO8YE23SZvcupK7ng0xK59bfLm9J2VSx/hJqLj/vLyH1GSr1gwrqE1BHPw5st77rbnEhi kTVFEtDnDjwwqn61a+dQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdDno-0000000642F-30Ty; Thu, 22 Feb 2024 18:28:12 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdDnV-000000063xD-1gWC for linux-arm-kernel@lists.infradead.org; Thu, 22 Feb 2024 18:27:54 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a3e75e30d36so14734466b.1 for ; Thu, 22 Feb 2024 10:27:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708626472; x=1709231272; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tELClXvgGOtyHBZZBd2XEfCIwH1azmS4e74QYILe7xI=; b=B38PcR7cPaEfKm90jVub45u6W3pojN0ea+0c8gNRecrFJbwSXITYh+uPbFqLHcQlFK D68Wg4giCmv2Bxx14q5UtBhyFJGoQD8I8+aFa2Do/2rEusVpNN8h7cUZ8qE7jwe8VpOj 3DOzqacx9gOYwsHPq1sOBs5RZ6qQV7jMzU/fJy03HoSelbVrjwqLj7YqBfdfDtRpUIUd Zl04Wwn2Ob29dPD1t8Pfh9Xs9SVkrdpiurb587s0si8lg2Cp2olThrqB0OUF//ZiCpDt +MIk/QF0JX7ydmLergLHmIT/AO9T0fJG7ki4gsXSIuhb+hZLcx5ondIC7Nt0+lB+ErVp C2Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708626472; x=1709231272; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tELClXvgGOtyHBZZBd2XEfCIwH1azmS4e74QYILe7xI=; b=TDN0d4KZCPTkR++p62Mn/bmfznbrctxU2rmv5eUPKiUGplAGNKLY6cXJUHEKYqmBtI rWaHljiLqXKPhicyHlEq1qT0+uCF6L55vq0WkWrssBtN1gPH4kbayiUoTAydv/gc9EXp PDA57+mm/N6Rd+BUEQRvx/0wkb9sSwt2Tp5e0D8lANU0pUC4+IkLWWYZsxGCogBfAJui RTMm1Y5GjCxC9bsWm+/QzSHy9qHfYi1Yk/6N8c3aLVTjNG6LcVV7F235lgcPjVAeKpTg h3fhSWaScLp5WsogREAlP2mh8WHsyqmJUJhRT/Yq4EE/aUZe3Tof4sBK/oYftNdRvqSm fggw== X-Forwarded-Encrypted: i=1; AJvYcCVOUmTjSvK95ztlFtXho+viHc8tjW1mB8KBe2OOEWj8vtxuzjwwAtMPjbYCTFJ3pT+VGwN8dggSQUqBQVe2g0TII6C0th1E4qzmWoKkWO6MCZkkY+Q= X-Gm-Message-State: AOJu0YxcjbTuIXwOm65Dpdd+J59XrUo/+kPFJxB7oJ9J6y0vJdgMffUr NldXHFdGy2hl9Pt27pMvYt68J4n31N8bjbvbBZggJXi02f0cZ/m5 X-Google-Smtp-Source: AGHT+IEyETD3CnHapZN/pItaYfe7T2SP89qHiRZOnxnaXo9m2VgXcYMwYEO4qUFvxVQA2rz+LGVA2Q== X-Received: by 2002:a17:906:3398:b0:a3e:8b8e:8795 with SMTP id v24-20020a170906339800b00a3e8b8e8795mr2534984eja.34.1708626471678; Thu, 22 Feb 2024 10:27:51 -0800 (PST) Received: from jernej-laptop.localnet (86-58-6-171.dynamic.telemach.net. [86.58.6.171]) by smtp.gmail.com with ESMTPSA id bn9-20020a170907268900b00a3db46018a4sm6143818ejc.71.2024.02.22.10.27.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 10:27:51 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Vasily Khoruzhick , Yangtao Li , Chen-Yu Tsai , Samuel Holland , Andre Przywara Cc: "Rafael J . Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Martin Botka , Maksim Kiselev , Bob McChesney , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH v5 7/7] arm64: dts: allwinner: h616: Add thermal sensor and zones Date: Thu, 22 Feb 2024 19:27:49 +0100 Message-ID: <6017340.lOV4Wx5bFT@jernej-laptop> In-Reply-To: <20240219153639.179814-8-andre.przywara@arm.com> References: <20240219153639.179814-1-andre.przywara@arm.com> <20240219153639.179814-8-andre.przywara@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240222_102753_500130_68675083 X-CRM114-Status: GOOD ( 17.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Dne ponedeljek, 19. februar 2024 ob 16:36:39 CET je Andre Przywara napisal(a): > From: Martin Botka > > There are four thermal sensors: > - CPU > - GPU > - VE > - DRAM > > Add the thermal sensor configuration and the thermal zones. > > Signed-off-by: Martin Botka > Signed-off-by: Andre Przywara Reviewed-by: Jernej Skrabec Best regards, Jernej > --- > .../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 88 +++++++++++++++++++ > 1 file changed, 88 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi > index 12ffabc79bcde..7c7d7c285505c 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > > / { > interrupt-parent = <&gic>; > @@ -138,6 +139,10 @@ sid: efuse@3006000 { > reg = <0x03006000 0x1000>; > #address-cells = <1>; > #size-cells = <1>; > + > + ths_calibration: thermal-sensor-calibration@14 { > + reg = <0x14 0x8>; > + }; > }; > > watchdog: watchdog@30090a0 { > @@ -517,6 +522,19 @@ mdio0: mdio { > }; > }; > > + ths: thermal-sensor@5070400 { > + compatible = "allwinner,sun50i-h616-ths"; > + reg = <0x05070400 0x400>; > + interrupts = ; > + clocks = <&ccu CLK_BUS_THS>; > + clock-names = "bus"; > + resets = <&ccu RST_BUS_THS>; > + nvmem-cells = <&ths_calibration>; > + nvmem-cell-names = "calibration"; > + allwinner,sram = <&syscon>; > + #thermal-sensor-cells = <1>; > + }; > + > usbotg: usb@5100000 { > compatible = "allwinner,sun50i-h616-musb", > "allwinner,sun8i-h3-musb"; > @@ -761,4 +779,74 @@ r_rsb: rsb@7083000 { > #size-cells = <0>; > }; > }; > + > + thermal-zones { > + cpu-thermal { > + polling-delay-passive = <500>; > + polling-delay = <1000>; > + thermal-sensors = <&ths 2>; > + sustainable-power = <1000>; > + > + trips { > + cpu_threshold: cpu-trip-0 { > + temperature = <60000>; > + type = "passive"; > + hysteresis = <0>; > + }; > + cpu_target: cpu-trip-1 { > + temperature = <70000>; > + type = "passive"; > + hysteresis = <0>; > + }; > + cpu_critical: cpu-trip-2 { > + temperature = <110000>; > + type = "critical"; > + hysteresis = <0>; > + }; > + }; > + }; > + > + gpu-thermal { > + polling-delay-passive = <500>; > + polling-delay = <1000>; > + thermal-sensors = <&ths 0>; > + sustainable-power = <1100>; > + > + trips { > + gpu_temp_critical: gpu-trip-0 { > + temperature = <110000>; > + type = "critical"; > + hysteresis = <0>; > + }; > + }; > + }; > + > + ve-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&ths 1>; > + > + trips { > + ve_temp_critical: ve-trip-0 { > + temperature = <110000>; > + type = "critical"; > + hysteresis = <0>; > + }; > + }; > + }; > + > + ddr-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&ths 3>; > + > + trips { > + ddr_temp_critical: ddr-trip-0 { > + temperature = <110000>; > + type = "critical"; > + hysteresis = <0>; > + }; > + }; > + }; > + }; > }; > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel