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 D3138C5478C for ; Fri, 23 Feb 2024 20:00:20 +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=z09cp3ncZ89ZFWlmdDJ7frS1nRRmERzTpQngaDPZljU=; b=bhJ7JxJ0PyV+sl YaSO8lO1ZyWklOka4ZiQkTWZ1/PnVrVVkevBDOsSHtq4+BD5jXF/R9ny15AW2osZ4eCkLfyBLxBED Ow4D6BNVxKERy8yYezeNXbYsHwmuys2hnDtba8m0QD+c9MFYNX8oJ0XhqamdNzz68jxAY7oUuOHFK rojVF22HlLlmWsUrgQHDBRPh0gAnDeLn43nLVVPYQk29jWeK60Dx53MObMziFNZC2mEAdMgSt5i/i rUbWXx70aJ9KsFyFHcd4iyDmNbpN9UeGLlHwUxXVfGZSl6/83GboEn/JHq/oKtnbn8Uqi99Y0kAii a7uewSB37NbB3lDg4qLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdbiH-0000000B6QC-1XKh; Fri, 23 Feb 2024 20:00:05 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdbhQ-0000000B6Lp-3Dts for linux-arm-kernel@lists.infradead.org; Fri, 23 Feb 2024 19:59:18 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a3e8c1e4aa7so122119766b.2 for ; Fri, 23 Feb 2024 11:59:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708718350; x=1709323150; 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=z894Zg2CSZbZzbMtWOcHDsDVjOprmfGRO35Ki4YUhH0=; b=R6nt3AgK66GHEvip5qbh6hqDhjGKnyNpg9tIb5RAJxFoEH4hghMCsOyP4mXdEpO3+F Zfy1MlKbzDlSUWtIOPBIH9DO55VuOWoFbgxAr7kMIJn2xsQG3vMLxlklR2BkGXBXaDVI ZmF7V4QpDL1cDq44HumxlwIq0/WJak0FLRjxO0B9kLp8WMaxgScXe578DGPRoeYfGrNL jELA442mhDwtD1HWBpaFwmb9fFTnjzRQwwCd2VUnfMvg+hjyptic+yjp6RDkdcXoA0gh 5KRHAWxe1ibxwQgjgmRTufEuMKVxAqHyY3g72COLTF2zUFF3DFWQMhOu9CT5LpFMVEya NM4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708718350; x=1709323150; 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=z894Zg2CSZbZzbMtWOcHDsDVjOprmfGRO35Ki4YUhH0=; b=ZPcfmShGqx5YBEwSJ+sfFD6/UUgTkxqOWPDKvSf1+6wYrGRwMViMA9p84BxjZxOMsi AEWo8GFqs0pS60pFLqiCFiqJyc8pJYRu5IeLJ/K7ORSFfz+07hIVhaqbsiUfLD/gvk7J iM6i8WbUQThcwl7LU8Wy/DKMWRfRPGGyEWhpIz3XAtlPdfjVFp6W/DWxd/psZrO9pqRW Q/5+n7Qhc9cKOnLbqTC9Ht4Vuo4nLvfBOss2JKcx1JBnFsTUel+GRL/4Mi3jsGPr8Awf n/qy9gPyOJnurSonuP/z7qHYitLtfs/IkTIJ5pkzwWqhzFV0wQ0if/V1YspNNPxAYguu kgyg== X-Forwarded-Encrypted: i=1; AJvYcCV4XhrwACVUeuDfieIqjrfViaPLPdGpF+gaycdwsYwSmy6Vzm1j3kmoUoe5JUY83Lw0YT1K1i+NrUSkp3PLyRgRIM4zws8gx3Bc6c7XTujolZvcBgA= X-Gm-Message-State: AOJu0Ywub6xMKWb6eNXezM+kRcH3FEP2Nm3vyZmcKjgZRA/csAfpQlxc yHfdcf7TaEHGqRProBYCzVTIWhxywRAZVRGPUkGdJ+ySSm7qWMq2 X-Google-Smtp-Source: AGHT+IHa3BodFIBcxDRDYeqP+u89pkUBXtdIKmif9raMa9dTkft1TZXDVm+m+J5uzAoci0my3baSQw== X-Received: by 2002:a17:906:4bd4:b0:a3e:7a8f:27dc with SMTP id x20-20020a1709064bd400b00a3e7a8f27dcmr485556ejv.49.1708718350027; Fri, 23 Feb 2024 11:59:10 -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 vw15-20020a170907a70f00b00a3f3a5d6752sm2811107ejc.51.2024.02.23.11.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 11:59:09 -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: Fri, 23 Feb 2024 20:59:08 +0100 Message-ID: <6017645.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-20240223_115917_021749_0E20C520 X-CRM114-Status: GOOD ( 17.16 ) 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 I can't cleanly apply patch on top of sunxi/dt-for-6.9. Can you please rebase? 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