Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5921919ybc; Wed, 27 Nov 2019 11:42:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzZcXzoeU4r4C4z1rxcykhaQloBuVNFxkc9M3UV188YkHOxKkGWi/IDOxQtqri/+UBYY03t X-Received: by 2002:a50:e002:: with SMTP id e2mr34322337edl.278.1574883727360; Wed, 27 Nov 2019 11:42:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574883727; cv=none; d=google.com; s=arc-20160816; b=fXA4qc4YSFg0LxgmC1dikmPb9kSbU9kzHd/bcWErNqTiKt8Boo3n/r95C5Ark/KQBM Akm+W+2Y2EzkGKD7zZoDBqami8sylu3Cu8xFKGsN38iHRBl+vKWrc6zLwVuokmgH0Scz wBWPGBlYmk42MqeyA4j6k+EgV79ruz7QMOv68slTru3vnSK4ngp6Batq39+E/YP1EPg1 VRGTZJE0HcdIcLC5i+dDibsiGaHGHgCyYqdc+0fzIjAltc7BkorbS5E9GDCu1MWG/FQc ei5HTazfJJR9i2fh4BfjHXYk7mk2IUhaoC2HRNJeU4pkXCGZTfqvea+OHWYp+kG+fCyI EZcQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature:dkim-signature; bh=E/eIlh2168YayUz7yI7wcMUEWzVWY48EgCDeJX0YMmc=; b=jZKao/LifS+H2zEmtvkBjHGe1XqgOYzTAUwYE+I3YvSFzqeeIga7gndc7qTIYIjqLf 3aJimemDa0pNn1NHZeMjJrIORyu+gbZ5eh9wygwUPvtpfJCevHNKCDJP3YoGADQC4Yxz IRAwHyK2FRCFxwpn5tt/eSTAmngcPxJoSUgv2j7GkMpWg8g2d3gc4ka0KDBTw2TFbCps UeGNkP6nfLYpSP1X3LE3w28xYJegNAFGxJOBVi8G0bDGepmpWq8+YO9rda9dfeDBcHAJ 8Zv9alNknBHExlgG/ehu9NYKZ4p4orfLiOaovIp5r0O1GgjrFTROIsQ0utSoP+3kv/V4 6ECA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=OGV5MB7v; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=a9kBxkyV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si10051137ejv.305.2019.11.27.11.41.43; Wed, 27 Nov 2019 11:42:07 -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=@sholland.org header.s=fm1 header.b=OGV5MB7v; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=a9kBxkyV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728352AbfK0Tkp (ORCPT + 99 others); Wed, 27 Nov 2019 14:40:45 -0500 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:40735 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728342AbfK0Tko (ORCPT ); Wed, 27 Nov 2019 14:40:44 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 0F7C96E1B; Wed, 27 Nov 2019 14:40:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 27 Nov 2019 14:40:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=E /eIlh2168YayUz7yI7wcMUEWzVWY48EgCDeJX0YMmc=; b=OGV5MB7v9L4rOLaXQ J2XEyZ+7vKPjJVyBSlgfr4asg+jthrU79qhCu9A77Kai+VIUoyMt/UspFCmISUvh fN/SwO6HeCySalYiK5IWjFxCQjK1JuL/wR7Zq/rP/FPXus35l7U45dhoceTMpckw koT4wVAThGHzQ+pR3pJGIef9HFXr4wln7d8bBA4PhWLWsRA/0g6MSkuONbA19g5z 0NHcFzKOxrDS881CzG4qU5bFBACrc2qJltShmQuEG+SlpGsFIrUn21Nv9SvWfS/a ARl6kvtkpl52tZ26c0h1R2udVVGRSKeo9GNOhsxF2eRX57b4pBj0tGP8HisB4vT7 /o2AQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=E/eIlh2168YayUz7yI7wcMUEWzVWY48EgCDeJX0YM mc=; b=a9kBxkyVK77sxjD/7mLsLVOu7ZRh8aqcB+qVA6ZhTszjPgdeGUsZCBr5W 9XdNCfEEx0Ki8DFVR2oeEvPlpperlCQCoBXlPOBLm3lS3aalBRSBCbkiLzPz0uPk nF+lfeV1s+/abGu1wou3b+MktFjRpG/zLVHI7fJkZpeq5ovIdKzfoEsFTA4ZU8du VsuGjH05IwzNfKqIuZzm9Pmh8jPE6CWerFIAQ2EAyG9ljYIsKHsO41A750agoNdP IC0jeNj/pcF7thyz2zUKUUzaoTHhsDQ9eK4rpWvfi7FlkC8ih7r4Kss+UJ0HvAYN Aq36RAcm02qB8ha8h7unRK98xAHKQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeihedguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc fkphepudefiedrfedvrdeifedrvdegvdenucfrrghrrghmpehmrghilhhfrhhomhepshgr mhhuvghlsehshhholhhlrghnugdrohhrghenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.16.195] (unknown [136.32.63.242]) by mail.messagingengine.com (Postfix) with ESMTPA id 4BEF980059; Wed, 27 Nov 2019 14:40:40 -0500 (EST) Subject: Re: [PATCH v6 4/7] ARM: dts: sun8i-h3: Add thermal sensor and thermal zones To: Vasily Khoruzhick , 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_Jirman?= , linux-kernel@vger.kernel.org References: <20191127052935.1719897-1-anarsoul@gmail.com> <20191127052935.1719897-5-anarsoul@gmail.com> From: Samuel Holland Message-ID: <78c38148-872d-6aa1-5848-c0df2c22c2b6@sholland.org> Date: Wed, 27 Nov 2019 13:40:39 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20191127052935.1719897-5-anarsoul@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 11/26/19 11:29 PM, Vasily Khoruzhick wrote: > 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>; > + }; All of the lines added here are common between the H3 and H5, so they can go in the shared SID node in sunxi-h3-h5.dtsi. Cheers, Samuel > }; >