Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2194899ybl; Thu, 19 Dec 2019 09:30:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxKXcZsqQ92oV61CXUdXM0Cd7LQq7N4kK/HmfCris+ir0W0df9F75wV0TLE8ZZzxDEXKJK1 X-Received: by 2002:a9d:51ca:: with SMTP id d10mr9707717oth.76.1576776601170; Thu, 19 Dec 2019 09:30:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576776601; cv=none; d=google.com; s=arc-20160816; b=qEevnMPc1eSozIVbNztVLPiN8nCMmRHwX6sBfMq8SCyF8MeNVL2OsiUYINrYB5SJZZ W1uE5iZsbFLMreOUvsQgBlpdNrftnE2rjaHWBCqMV9sI4vOIEl2VpHHtvzMDHw1n51MX VWzk8NhOr3X1PrVpmoehSHwvT0R9qJQSRW+Xz95E79dx6n631LEdn/MhzZcdgELuM0TG B5dn8BYZ6qV5seOKDHoW2P+ueZeEKzJB8LLCp5J+F9ouOvF3iIlKcvx9UC4tssEkvc5d cT3MQ37EIpjXrBFhHRMzYhKz9Dr0YzHj6TAaNxo4ZCEA9kXG1MuAhYQMTHZuExL08BsU 9+dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5JoZyySS78BiNU1aODtc8vpSYvJMQn2ITDVR9fgmYmY=; b=lhIA30iPFdB4yGvBFxPKCWHSj24kVvMRkrRnXyOytFhTdV45hM5sxV1NpFPQovoVJf /sqTVR1eD5VFxmCnXElIx5DI83ySRIg0mw3Pt9ekEuPBDzYvBj0OUpR+9mYc/Fus0A8D cCbEp+P2jlfbCNUQaYmS7OzjxghDqHxdOZySuWAxxBnGW5xknfltV97WqLZebu8EE1Lm 9uG4BMsmzZr627JqcWfRYHWdrMZkR9WSShGlvrzUCTCV19jw5a0lNNqqF0p5CAJyCt90 RTQK93ZBMw/9vU6by9YALVsqvH7PPMXshxzBfeSClG93v57x76CrUX2gczkI/gyJsE/y N7Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WaaqDZqK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r26si3613468otc.163.2019.12.19.09.29.48; Thu, 19 Dec 2019 09:30:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WaaqDZqK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727052AbfLSR2m (ORCPT + 99 others); Thu, 19 Dec 2019 12:28:42 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:35243 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726869AbfLSR2j (ORCPT ); Thu, 19 Dec 2019 12:28:39 -0500 Received: by mail-pf1-f196.google.com with SMTP id b19so3651715pfo.2; Thu, 19 Dec 2019 09:28:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5JoZyySS78BiNU1aODtc8vpSYvJMQn2ITDVR9fgmYmY=; b=WaaqDZqK//XLc6TXiRxt1Qqke4VgaCivw/JuTOr5sVzH2UIKthSS2zBh4NZCnAFUpG kMec0K2/0GBElO2NfKNj8V/XJXihE4NGyoYF/Y805KrJ2Wh+yXcYZR3UMrris97TFeei ktmy934BelNmAqIw8L9aTu8U7ukdKpCqsFBQmezt8YT+hm/ykwUQqFuJWM3AZI3mfLhR KVvmVz1/jhLUWxtdzGorniiACkGqgkj89ev9294DUYfMGvxMDtEDbTiZNTE29YKZSmbB yMSMpYyKyvpLC4IOUpnEOyXdB/KlKqKabiKaKjtNTgaLpFcrdVntBSuqLtdz6ojbVl9D 5Tnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5JoZyySS78BiNU1aODtc8vpSYvJMQn2ITDVR9fgmYmY=; b=hXL7i3P9l1mxbogliEHq/nzbk/KcdkOy6nAuCylog3H6vUx3+z9A077JacVt+rd5Ef 5jmE9wvAysqYMNesqf0Fsu4/YI2Jqqv4QUE0yeVj5xMCIw9RQeYHxHn5xGEhizeYVJOa 2DRChKA1b0Sn9hORRVHIETdGwyLROKXEAq5YwJg+QLlOw7wGsy3grNrY++ZqMiAtdaOm TDMhwLOLwBu9POnFy3c6YBgoSqfS24Ohd/1D5N+Eb3snxsL9VU+buLeXB2aq3DZIq/Tx GBmCfnjUAjY8LYBNkqPgjtuCJUAlPQjpDUpD5ANXDUlzCqq0b5+8ZdoYLI9PAJHuszq4 QCPg== X-Gm-Message-State: APjAAAW803nCiYWkwo15NJe3zuQ6vvE+xfSs/pXx1R+2LULGHDNWb1P2 iMbH+FU0+XTmyCbug9sfffo= X-Received: by 2002:aa7:870c:: with SMTP id b12mr11025712pfo.82.1576776518627; Thu, 19 Dec 2019 09:28:38 -0800 (PST) Received: from anarsoul-thinkpad.lan (216-71-213-236.dyn.novuscom.net. [216.71.213.236]) by smtp.gmail.com with ESMTPSA id v143sm536209pfc.71.2019.12.19.09.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 09:28:38 -0800 (PST) From: Vasily Khoruzhick To: Yangtao Li , Zhang Rui , Daniel Lezcano , Amit Kucheria , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Ond=C5=99ej=20Jirman?= , linux-kernel@vger.kernel.org Cc: Vasily Khoruzhick Subject: [PATCH v8 5/7] arm64: dts: allwinner: h5: Add thermal sensor and thermal zones Date: Thu, 19 Dec 2019 09:28:21 -0800 Message-Id: <20191219172823.1652600-6-anarsoul@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219172823.1652600-1-anarsoul@gmail.com> References: <20191219172823.1652600-1-anarsoul@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ondrej Jirman There are two sensors, one for CPU, one for GPU. Signed-off-by: Ondrej Jirman Signed-off-by: Vasily Khoruzhick --- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi index e92c4de5bf3b..f9df95b2d542 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi @@ -176,6 +176,32 @@ mali: gpu@1e80000 { assigned-clocks = <&ccu CLK_GPU>; assigned-clock-rates = <384000000>; }; + + ths: thermal-sensor@1c25000 { + compatible = "allwinner,sun50i-h5-ths"; + reg = <0x01c25000 0x400>; + interrupts = ; + resets = <&ccu RST_BUS_THS>; + clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; + clock-names = "bus", "mod"; + nvmem-cells = <&ths_calibration>; + nvmem-cell-names = "calibration"; + #thermal-sensor-cells = <1>; + }; + }; + + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&ths 0>; + }; + + gpu_thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&ths 1>; + }; }; }; -- 2.24.1