Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5099015ybc; Tue, 26 Nov 2019 21:31:42 -0800 (PST) X-Google-Smtp-Source: APXvYqx2nnG50Wdf42RvqLCyYvrhGwj0x1smU18k2zbcbR6IFuIh6PAnGwqA52IcOET2HjCTggJj X-Received: by 2002:a50:e68c:: with SMTP id z12mr30832253edm.53.1574832701935; Tue, 26 Nov 2019 21:31:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574832701; cv=none; d=google.com; s=arc-20160816; b=TQwf1p0gKRxNQ/ANGYbGrjLGUrDui61qjDLYbci6/9332E9i8bA2KYAhjRh/v8Ri0c MmEtF3thSljLfyeRI6x+V3BYYROAMYDUCRp5grJkkdZ+3gO0qZLgz2gnuqjrqVt5s8Iv s6uKkxOb5w+Hghh7qiPTtgtxAaVMSLChBzWCLOaYdcuhFvCjD8r08aevWv4ri/R4FWtu zfsMlDodUbrl2b/8UAuCdmTMirzLzTxoQHyHzcVhrgmCT6g0DQ5pr0JvkCJ8j9P1OWiw 0Uy9Mx0KqYGLmxYs9rSmrsBtwZfLZGpvZ7AAdMIVC/E4DDO90CMzmpUZdz8+UEQVIgPm 0Q/w== 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=vhMu4ADnQOnOcJ6BIbNumeV+R111igTahrNXaoaT2bg=; b=LcD2Vu+uXMC8yONFzOl4JgMSovNNJcaZs/YCQ2XxCUmG+FdfHc+EKkI6k3Kqhybctj uQU12KUkh9bCfYtDPQUJW5VrUACCAprmPI39WvTkPKR9R/43H/KJdZo0z5JqWZ5vXHep vIbAyO+0xvuet4411VY62+3hT8RPmH21TvIDHkMXYA6cJ31HE/HUWNuGev1/jr6EVchX JX3MAqxQ5ruYsAkwKMyheVXog8mQq07975OFzYZamAdiBkgcmHmpbG2hcB9D56NCvoIT IyMHP2SE6gSz4BwKFlx7rOUO92CI1xPHpnNDfomPRZj4qLpskasBReNDCrs4hgG28SbE 2zJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JI9vifZO; 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 c7si8462217ejz.392.2019.11.26.21.31.17; Tue, 26 Nov 2019 21:31:41 -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=JI9vifZO; 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 S1726985AbfK0FaL (ORCPT + 99 others); Wed, 27 Nov 2019 00:30:11 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46306 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726655AbfK0FaI (ORCPT ); Wed, 27 Nov 2019 00:30:08 -0500 Received: by mail-pg1-f193.google.com with SMTP id k1so1837079pga.13; Tue, 26 Nov 2019 21:30:06 -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=vhMu4ADnQOnOcJ6BIbNumeV+R111igTahrNXaoaT2bg=; b=JI9vifZO/hlNlsVdVbkQAosj4wct0Y/Ey9lvPG25NoShcDsu71L11PV96pOoMZL980 5OITy+OqvSpfCMS4dHDjs+M9mEvAXpC1wPk0vzK5SAaM6xGy2F32057VuoCjH5P0Mz5I ksBf/dHPnPYiBp+jVZIbJmg4T7Zr0L6frm4tgTZYPA8/Vjnhg/Lif+jKoCRmIpVec24Z 3nRW0I5i/LWRo5q9smCmOtu9ecJtC0384AvF8Fa+hGl43nnexUQHchB5yX3mvbZS9Ope U6ptKcW6pV6EGCxhP/yzZs150YOd+LEMO6ovqiDy1R75y2l6o8Jw8oWjT2MA1Im1z1b8 XYLQ== 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=vhMu4ADnQOnOcJ6BIbNumeV+R111igTahrNXaoaT2bg=; b=VNj6vkzPDe2c2aqnRYSD5sUBUN2yaYtLSXY9uD3jGNejFIgk3W9Ds87ErmVGfKAXU6 //KBTWG3Y5vQgx/YQTEytwQO9kOzZXsov3swsKJbquLYe46Ty6wRnvUyvPIo2d5/4tdt 44/lu6ue2mLkBgpGPN9QIdd9pVk+pot+I5g9j6md1cXH0IqL0a8NeNt5+EJ6Fmb1di54 H4vI+hv8G50T/g2UHO6wHSf46D/FRGZVaswpxkDm4iWWkZBNQRo0mI1oz93z6VaeKaD8 lclBZrmc0rfNocJmMZkkSOvWQ+mAOHilc2sA9NKgHDTRQTASPJUK9Fos+/6j8xiGcaIE 77+g== X-Gm-Message-State: APjAAAWognbgcMZR6V9Os3mUDX0cxSuwqGGfsLVhT6W5qaw+5AOVs+qY j90JjR9cD6vx8FDlDmtspIw= X-Received: by 2002:a62:b40b:: with SMTP id h11mr44293621pfn.57.1574832605993; Tue, 26 Nov 2019 21:30:05 -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 p38sm4360825pjp.27.2019.11.26.21.30.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 21:30:05 -0800 (PST) From: Vasily Khoruzhick To: Yangtao Li , Zhang Rui , Eduardo Valentin , 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 v6 4/7] ARM: dts: sun8i-h3: Add thermal sensor and thermal zones Date: Tue, 26 Nov 2019 21:29:32 -0800 Message-Id: <20191127052935.1719897-5-anarsoul@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127052935.1719897-1-anarsoul@gmail.com> References: <20191127052935.1719897-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 is just one sensor for the CPU. Signed-off-by: Ondrej Jirman Signed-off-by: Vasily Khoruzhick --- arch/arm/boot/dts/sun8i-h3.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index e37c30e811d3..42fd0418d678 100644 --- a/arch/arm/boot/dts/sun8i-h3.dtsi +++ b/arch/arm/boot/dts/sun8i-h3.dtsi @@ -177,6 +177,26 @@ assigned-clocks = <&ccu CLK_GPU>; assigned-clock-rates = <384000000>; }; + + ths: ths@1c25000 { + compatible = "allwinner,sun8i-h3-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 = <0>; + }; + }; + + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&ths 0>; + }; }; }; @@ -234,4 +254,10 @@ &sid { compatible = "allwinner,sun8i-h3-sid"; + #address-cells = <1>; + #size-cells = <1>; + + ths_calibration: thermal-sensor-calibration@34 { + reg = <0x34 4>; + }; }; -- 2.24.0