Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5301978imm; Tue, 16 Oct 2018 08:14:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV633N0Bw5xYgN/Ld0ApNCO5B/Hi/NtSzx1LhjpGmjnvmfxmvmxWQNU5nZAaAISJ8yaxLPEeU X-Received: by 2002:a63:da17:: with SMTP id c23-v6mr21161922pgh.23.1539702847369; Tue, 16 Oct 2018 08:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539702847; cv=none; d=google.com; s=arc-20160816; b=mPYDLXE12p66bsAAvLzq+0jMgdwkO5p3XQrkjv/ftWW5/JJIeLm0Fh7BfARqpnmiXW s+QNk1V8yuialQolISpWrr2z8oTwqMKoLy5YEtaRzxqV/dL9ANscIBWqRBvLVU+Bd4mo d+U8Tp0Z9DBfZV4n3FeB2Gc8Nnm0GvIWyrde+ChYFM9GF4WSyiTHIYzsjNdh9t24ZQWz zdg4UV3Fap43aEvDXNm1VWnUgDxttYgSU+WdXIhV6UOkPgUFIP8N9azO2914pPwhFNgg mkK5Zc4BVvn9UxxwchIFMrbhxS98OqiQUR4Men2M+4nLTQfmqKRMX8l9lavV7v+7xyD0 lMkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=On565HBkCyaEcPohsmgzNvP2rwrp9F3R/TfXDSPdaBA=; b=OeQRgJJnR3SfTY/I11DVqYPWacLQdwbblyFxZtNu4pRnLsbqvWQTYXa7FnDp2a0+ck w1hjtPv8aIG0CeaSKEYIOt0o/envFo5VTCZkQWjHqh1J5Grp1Dk8yrgkP9GFdksZYhbS pih8q2L3RI1Xjro10p6pLqjNyO8urWJ3ToP8+BeWghp6q/7dUEwzQLfBHiSx3rYj11uZ IyfjGPUlVJcwB7CCr176k0+2odUtKQeacnq9sbV/fZhn9fdZ5m9LQpV+sZNVbpw+wCVi dPIdpHjRoOa6o+twOwXEj3jK+j0IBxla3CoFSxwiqz23aRd1jpCODKJ2BMHNbktiezCi wQ9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=PVJ12pwm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q85-v6si14358551pfi.183.2018.10.16.08.13.51; Tue, 16 Oct 2018 08:14:07 -0700 (PDT) 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=@broadcom.com header.s=google header.b=PVJ12pwm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727668AbeJPXCn (ORCPT + 99 others); Tue, 16 Oct 2018 19:02:43 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46382 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727652AbeJPXCn (ORCPT ); Tue, 16 Oct 2018 19:02:43 -0400 Received: by mail-pg1-f193.google.com with SMTP id a5-v6so10983390pgv.13 for ; Tue, 16 Oct 2018 08:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=On565HBkCyaEcPohsmgzNvP2rwrp9F3R/TfXDSPdaBA=; b=PVJ12pwmupKnDLWSq99htio06TI1mu/S4dm5MdVNNWEt5QdBDrx8TjOqUhjkDQYdSv fwBrFsol0zSokTC7y+DcDSQeWLCZ+AXH44pvYApT57jCN+D5WELBYK0zQ89uA6T7QsUw k7lrBp4aRix890O6ItItGwrXvzD1gdq70LDfQ= 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; bh=On565HBkCyaEcPohsmgzNvP2rwrp9F3R/TfXDSPdaBA=; b=AdGwcT3ePbHx3Rum7Uq7tc1oxzZVpqDC9u9yUMh/RMBMk6lx9EcnL4nUOBx/hj9wIK uJN5yX26n/M4dDiJ+NGr3ZAolA7d6SVvY8JZ519K8NiSm+dr9Ju8+NNc69RlLKXdx9in nJ7q1lYTkMFeoC5etm7OsvkWVNJTjRekBGTpj7/i2zm5rFMEagzRb7TSbRwWTa0KTX3X 0p8ZTIsDOmmXjhOwXBFXrxGRrpOCqCLdyUVyfpkeoc53bqmPEO5w7GlFYXp2Hw8C/INL xOrFjVX369pcYlWVB9WaGfVaI9G2YC4N0xpfWe6wuMyro+/COvAz9UInXJoU/NHx7Rov slLA== X-Gm-Message-State: ABuFfogsOaqzZe3k12YkioxtWSrMZEJih7AxSdydGMJ9E4qclI9Q7zhd gLgs8p/vN/sa1FIbI3RU95QKog== X-Received: by 2002:a63:cd12:: with SMTP id i18-v6mr20930547pgg.319.1539702708853; Tue, 16 Oct 2018 08:11:48 -0700 (PDT) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id i29-v6sm24227122pfj.82.2018.10.16.08.11.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Oct 2018 08:11:48 -0700 (PDT) From: Srinath Mannam To: daniel.lezcano@linaro.org, Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Pramod Kumar , Srinath Mannam Subject: [PATCH v5 3/3] arm64: dts: stingray: Add Stingray Thermal DT support. Date: Tue, 16 Oct 2018 20:41:20 +0530 Message-Id: <1539702680-3746-4-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539702680-3746-1-git-send-email-srinath.mannam@broadcom.com> References: <1539702680-3746-1-git-send-email-srinath.mannam@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pramod Kumar Add DT nodes for thermal zones memory base address to read temperature. Signed-off-by: Pramod Kumar Signed-off-by: Srinath Mannam Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../arm64/boot/dts/broadcom/stingray/stingray.dtsi | 89 ++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi index e283480..0d246ba 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi @@ -612,4 +612,93 @@ status = "disabled"; }; }; + + tmons { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x8f100000 0x100>; + + tmon: tmon@0 { + compatible = "brcm,sr-thermal"; + reg = <0x0 0x40>; + brcm,tmon-mask = <0x3f>; + #thermal-sensor-cells = <1>; + }; + }; + + thermal-zones { + ihost0_thermal: ihost0-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 0>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + ihost1_thermal: ihost1-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 1>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + ihost2_thermal: ihost2-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 2>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + ihost3_thermal: ihost3-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 3>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + crmu_thermal: crmu-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 4>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + nitro_thermal: nitro-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 5>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; }; -- 2.7.4