From patchwork Fri Apr 14 21:42:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 750965 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w4WNw11tNz9s85 for ; Sat, 15 Apr 2017 07:43:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bLS1HrlD"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="l383PHrz"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=qv5GvYX3azCQ1rdfcTpoxGyYXQP3iLWO0En0ACL2MfU=; b=bLS1HrlDErUXoV SK2F1UYgeiqDyApDfP5eQRUHZNleCOUXyPwh3KslLc4OUEiEfoFShIESjRT8aHA+JnK8uIXqGTx7h i6HjQnhjDVw9eSEy++INzWEollhIJ57yjv0WxUMxi1vDuLUREmYbSlhkfuvVXrEHMy+rY6DIAc9W8 CxYu7rm3hfWe/I/hdmpVHwAuyfMGmMiiugPKd4oOd4VcutYbXw9KVyGjMHEkagUDkQzDMXXm3jWTi xy+BWzHwSFZ3aRMGWg+WGZuqJwhMCYiaTvlR2zk0fnB35P1Wypf8r8iioIPlnQr/OBMTVy3DOnfJr kQZpYlkT3BwQu4dQI06w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cz8zk-00010N-Fs; Fri, 14 Apr 2017 21:43:08 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cz8zh-0000xv-F3 for linux-arm-kernel@lists.infradead.org; Fri, 14 Apr 2017 21:43:07 +0000 Received: by mail-lf0-x242.google.com with SMTP id i3so11067983lfh.2 for ; Fri, 14 Apr 2017 14:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8BeAu9t8JwcTKFwxJFgbBEvE7DRWEz4T/+6KSoY5Kc8=; b=l383PHrzz/SLreMetMqTeLed06wDx1yFsf5W1xMZFGTQM+9HF4LMk2flgt5fAP/L01 YOlvYpub3WADMFmcVSXUBJGDB694O09isJ5LHprgR55aeZd6gRj1835bXdeCds+ycFJY ju+OIeFzYodDtsydWafJS9kb9yf/EGwosXdjbkQpEu61NqM/rY0t9zEBWVvuTmHFLmUp ZKjOaIUXqDj3+PEHndt0OJoH9mQwK6v31MZjDFnwxskjo2Mb+HzKTOpyrFwofsLFyXBZ 0cUFCvyY3gYJ0Bd6nmvnuMgkTNd9AsRORVAsrNIr9G8/5uc6CxXIOSfnlZYs/APPiuIm Utyw== 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:mime-version :content-transfer-encoding; bh=8BeAu9t8JwcTKFwxJFgbBEvE7DRWEz4T/+6KSoY5Kc8=; b=SIpp8hrE+faZlAugUmH3UYvTg4qHxRojXEre+yGJXM/vXwPqbxcdEx+VYT9xSEBa4X IJQnKkwgZg/PUxp5n0l2na0HqrhJ3Qoz9/eiAjpb/5WTqhzEQT8cHopvDpjmldTzCrcV DYCRUqWWB/ip9rnZmrKfU+QyYkzja/i+EDb+0o90+HH4+ycmEvEEtx1593QGvhj14sfg bNdVQwqlw3xexixus3sMRE06yjKIWVYbTijUbFWEOPyepvcAqnB29n/wF5n5XD+ia87H JTqyCRd5UzFGkKNW05+xvNeBhTwNNwIzS60peLMr11M0ubfjvB5LzjBRpIl0TY5HqyFo aEBQ== X-Gm-Message-State: AN3rC/7WStqbIcm3+i37ymCKXPRmLLHnvcLkaQRdXgq5qX2lgu9yAimN 7ZrdVesHZ7N2GA== X-Received: by 10.46.14.25 with SMTP id 25mr2851058ljo.65.1492206162018; Fri, 14 Apr 2017 14:42:42 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id a78sm596658ljb.44.2017.04.14.14.42.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Apr 2017 14:42:41 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Florian Fainelli Subject: [PATCH] ARM: dts: BCM5301X: Add CPU thermal sensor and zone Date: Fri, 14 Apr 2017 23:42:28 +0200 Message-Id: <20170414214228.32521-1-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170414_144305_709896_77CF57A7 X-CRM114-Status: GOOD ( 10.12 ) X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zajec5[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (zajec5[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Hauke Mehrtens , Russell King , Rob Herring , bcm-kernel-feedback-list@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org From: Rafał Miłecki This uses CPU thermal sensor available on every Northstar chipset to monitor temperature. We don't have any cooling or throttling so only a critical trip was added. Signed-off-by: Rafał Miłecki Acked-by: Jon Mason --- arch/arm/boot/dts/bcm5301x.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi index 6a2afe7880ae..bbf39deb89f3 100644 --- a/arch/arm/boot/dts/bcm5301x.dtsi +++ b/arch/arm/boot/dts/bcm5301x.dtsi @@ -356,6 +356,12 @@ "sata2"; }; + thermal: thermal@1800c2c0 { + compatible = "brcm,ns-thermal"; + reg = <0x1800c2c0 0x10>; + #thermal-sensor-cells = <0>; + }; + srab: srab@18007000 { compatible = "brcm,bcm5301x-srab"; reg = <0x18007000 0x1000>; @@ -419,4 +425,24 @@ status = "disabled"; }; }; + + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + coefficients = <(-556) 418000>; + thermal-sensors = <&thermal>; + + trips { + cpu-crit { + temperature = <125000>; + hysteresis = <0>; + type = "critical"; + }; + }; + + cooling-maps { + }; + }; + }; };