Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp608087imu; Thu, 3 Jan 2019 04:02:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN7b1A33FWLPaiKEN4SS9v7w8wb/ZAhGqON7L5rnkWmort2QRFozUkD8p6lFKFdXgYfnYPAd X-Received: by 2002:a63:1d59:: with SMTP id d25mr17023732pgm.180.1546516936454; Thu, 03 Jan 2019 04:02:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546516936; cv=none; d=google.com; s=arc-20160816; b=UXkyk24gt8XhwaeYB60dV5Yo+hB/K1sNlLPsetHq6a7cbn81C33FmBUGB4fQtjp968 a9burTVFX+ZpL33xx1ncw3hmCxXBVjUjb8AFPiGUkzx/i3Aj4UJBhhuZq8A7LV1qsvmk ST1H6PZuzzPqd54msv2eDEICnbnU8i2wQQMeVnYBuyqjcBn1nBZSB+4CJ2JIe8i0Qpx0 Hc5leXbaihZKY/COzSK+mWyTX5+hBBbuJ+dLqFN+oz5FLh/yuXI9ZpVEgKC+U5C/bDVv RhSvYg6wMKSWXCzKlifjRnPB0C+/Rp5On6fxWMpfANgUsET4Czs0NyywgKGl3eRumMSS G1yg== 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=nZ2W19+rOYu3Y/tMXOuNYWgMFRt3+zm/oa2zUyjqgVE=; b=RlOkzEJGWFVjwTPjYNMFGtUXJKvjuGxw0++QtG+6gw8vcJWXNYOGwSLXaasNt6/20S QrQn4HTuimmvhXAndBF4WKahVJIDTpUCgiK1f5SVMJZ8d54oony8TAd6tpbQD9rWOBHN 7D0vGxWPykLRIzbLYx6IrKuC8VjarpRZWw86mnxC1IfGVM5bOPShnEw6G9SHQ/zprlqG 6MhOsk/Dde565dMEsCDzGI1jm42JgKbrY6mwkfdNuNMWRD9NdOP5N5z0ilTjCArdsEnL hRU1SbTkFcSQe5MDzftPKB1J2ZIgxJwZ++mm70dGN3JUnO/wt1QEQSQLKg5xyU4Q0uKp zw/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=LIJdsVzc; 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 bi6si50123313plb.279.2019.01.03.04.02.01; Thu, 03 Jan 2019 04:02:16 -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=@broadcom.com header.s=google header.b=LIJdsVzc; 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 S1730424AbfACI4C (ORCPT + 99 others); Thu, 3 Jan 2019 03:56:02 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:45368 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730400AbfACI4A (ORCPT ); Thu, 3 Jan 2019 03:56:00 -0500 Received: by mail-pg1-f194.google.com with SMTP id y4so15717836pgc.12 for ; Thu, 03 Jan 2019 00:55:59 -0800 (PST) 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=nZ2W19+rOYu3Y/tMXOuNYWgMFRt3+zm/oa2zUyjqgVE=; b=LIJdsVzcy32F0XTyRFCtIY0QFpFHl10cEQdnc2e0/kF33sgDrgM/FedZvRwXHy2bUQ oPpsg6c1aWRaxexn/MPAfn/zrIGUloTNXHYEgM3B/RpwTP89jQUNJpAXXMqcadMIj7pa AmUE2Qvsha03aG2CN4zrfoJb6xAzGxo0fSgxE= 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=nZ2W19+rOYu3Y/tMXOuNYWgMFRt3+zm/oa2zUyjqgVE=; b=MQt6WaafPNy2NMsR8lamVHcrw4P1xWULxf8ua6WoXElefLIL/Ukx85NqS8XWyEA0xU MoReWv1AcLTEmwxY8le1sTWo+Pvp1Bp+GaL/RXu46Uh0rUWV3E2f9bLqBqqt0TJKAM5f a4AaWt4eKI61efOnSxMMR+KIT9+TBE3FM1v+T3GGIwMih9N/yUVr1NnZPxslOCFwWPfL PRCpIPDsBizj2r2/8PrS31aS1Lej7AvWfoUNXU89/F7GlPfe59nXdwr3AANbshJBZT66 J1E+BsU8CX8obHMuNmet8KQmeEcrPHi2ee6kvxG8dCwakYB7op0XIIfk0RmI7bLC/AEF x52A== X-Gm-Message-State: AJcUukesIzUgVRzMF8jnA+FDldQ9DzOyISlXy9DQFpuR7nS+IFz+NBVM YN/IH8MxjM0e0NwBL92tR/+SRA== X-Received: by 2002:a63:9306:: with SMTP id b6mr15622487pge.36.1546505759360; Thu, 03 Jan 2019 00:55:59 -0800 (PST) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id s190sm78189727pfb.103.2019.01.03.00.55.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Jan 2019 00:55:58 -0800 (PST) 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 v6 3/3] arm64: dts: stingray: Add Stingray Thermal DT support. Date: Thu, 3 Jan 2019 14:25:34 +0530 Message-Id: <1546505734-24527-4-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546505734-24527-1-git-send-email-srinath.mannam@broadcom.com> References: <1546505734-24527-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 cfeaa85..4fd06ed 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