Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1456163pxj; Sat, 15 May 2021 15:47:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwENJyfxl7sUmleDsosi82iCmInkYZ58JeIYB3NL9B5OZA2dF4qkLuFyWB56xsuvc/kPjm7 X-Received: by 2002:aa7:c7cc:: with SMTP id o12mr64191337eds.291.1621118819911; Sat, 15 May 2021 15:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621118819; cv=none; d=google.com; s=arc-20160816; b=zmU/lrkRYYhihg6AAGLk0uvmzAyesTk8b+nahLyZt33CBETz/0Y5GEebsqtG5bq4lv Qb17i+02s8s8i4YiwK3UG+Qiv/jEcVycbYPMRodSjLJydMx1htzqdJnvU7SQaCrjpyPD ypDCKjayrKoN1UVOouYEoNmvKAQ4pdLnrzdDVz6TDHVayWXuydmGyjTB31dSJfkWfQ1r zPDVzS67pmpxXDeAGQAl5paV9uoedy6S1G8WleinDi+jO3J4Jpo9YEqM2su7LwxBK5Lr hwT+z3fMsZS5Y6/FxYhe4KcSq858+6C0aUcSaEsOZ3XMgUi84MBoKvQgvNs5i1DjBpUl EewA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=OqAzIeRtl0TRmJW6BUjkv/lXV0Jf0M+Q+Tf9iZwefcY=; b=Pk6HTopQK1n0SHjRIqTk9+74/GCSPV8eYMjFvExOrIqzcObKEj2UpY1IrzyeYYyOK8 /cBO3ZxcpvlXQzkUy9W52sh79oLlsPhRF7IwKOO4bpS9fcrkkRP4N1flt/KgAPaWEgME LwfIZtEOpkOpEVERceOh0gsXW5cO5G7xglArvF3Fgx6Hx9aWesGQ8owT9Vi4AWrSWYj7 8GeO7/aAVU9ABlnfZaVKwUYwpJs6SlCOGrHSZC1nKOzua86/BhuDpgn1phab27vt13kA KQ7QkJaNUzahj8AxddfJdgIodDxcVZ7ddWiD2ZTHMSQTy+fwvbgQS5WZPZSB3q+ity7k UXSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b="vIyh/K8Z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce5si9491571edb.102.2021.05.15.15.46.36; Sat, 15 May 2021 15:46:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b="vIyh/K8Z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233801AbhEOQyG (ORCPT + 99 others); Sat, 15 May 2021 12:54:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbhEOQyA (ORCPT ); Sat, 15 May 2021 12:54:00 -0400 Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BEAAC061573 for ; Sat, 15 May 2021 09:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=OqAzIeRtl0TRmJW6BUjkv/lXV0Jf0M+Q+Tf9iZwefcY=; b=vIyh/K8ZHg623Wy2xK1Se+uteN k2AYEHYD7ACMD3qjALbszeLHmoc/Di3OOKFd6c2uITZUu5jHpKx3zgTDf9eaWcRvsgb9Ck0Q+B5GH Eap+scR2G1fBf4v7+C5iGLk+5P28cJbPwS7Bo3kH2+pJw18xiFrZpSmAHH5FUe+kUYfCLa4WlZltA 14ZAlZL/7zZtxiJTXPwUAtJ6nSH9BwxKpDB8RKKMKLoHDQOJhFynLmQqJWEV5bERodZC5Xs0rJ9fb 78mWCt4yDP8qzM4XDwdDmyjLpNmSXNfJ+hsZ49pUkyli0Bc6DO7d+T2LjwbK9e0Wt4wGmUEBqpr9m zi2MjYgQ==; Received: from [2001:4d48:ad59:1409:4::2] (helo=youmian.o362.us) by the.earth.li with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhxWt-0004SU-JA; Sat, 15 May 2021 17:52:43 +0100 Date: Sat, 15 May 2021 17:52:38 +0100 From: Jonathan McDowell To: Andy Gross , Bjorn Andersson , Rob Herring , Ansuel Smith , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] ARM: dts: qcom: Add tsens details to ipq806x Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Jonathan McDowell --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 243 +++++++++++++++++++++++++++- 1 file changed, 242 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index aaab3820ab0b..582d8a59e59b 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -46,6 +46,228 @@ }; }; + thermal-zones { + tsens_tz_sensor0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens 0>; + + trips { + cpu-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu-hot { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + tsens_tz_sensor1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens 1>; + + trips { + cpu-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu-hot { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + tsens_tz_sensor2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens 2>; + + trips { + cpu-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu-hot { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + tsens_tz_sensor3 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens 3>; + + trips { + cpu-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu-hot { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + tsens_tz_sensor4 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens 4>; + + trips { + cpu-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu-hot { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + tsens_tz_sensor5 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens 5>; + + trips { + cpu-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu-hot { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + tsens_tz_sensor6 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens 6>; + + trips { + cpu-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu-hot { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + tsens_tz_sensor7 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens 7>; + + trips { + cpu-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu-hot { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + tsens_tz_sensor8 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens 8>; + + trips { + cpu-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu-hot { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + tsens_tz_sensor9 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens 9>; + + trips { + cpu-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu-hot { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + tsens_tz_sensor10 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens 10>; + + trips { + cpu-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu-hot { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + }; + memory { device_type = "memory"; reg = <0x0 0x0>; @@ -503,13 +725,32 @@ reg = <0x00700000 0x1000>; #address-cells = <1>; #size-cells = <1>; + tsens_calib: calib@400 { + reg = <0x400 0xb>; + }; + tsens_calib_backup: calib_backup@410 { + reg = <0x410 0xb>; + }; }; gcc: clock-controller@900000 { - compatible = "qcom,gcc-ipq8064"; + compatible = "qcom,gcc-ipq8064", "syscon"; reg = <0x00900000 0x4000>; #clock-cells = <1>; #reset-cells = <1>; + #power-domain-cells = <1>; + + tsens: thermal-sensor@900000 { + compatible = "qcom,ipq8064-tsens"; + + nvmem-cells = <&tsens_calib>, <&tsens_calib_backup>; + nvmem-cell-names = "calib", "calib_backup"; + interrupts = ; + interrupt-names = "uplow"; + + #qcom,sensors = <11>; + #thermal-sensor-cells = <1>; + }; }; tcsr: syscon@1a400000 { -- 2.20.1