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: 9681807 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B216360386 for ; Fri, 14 Apr 2017 21:43:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95B44286AD for ; Fri, 14 Apr 2017 21:43:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 854B0286C4; Fri, 14 Apr 2017 21:43:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0FA73286AD for ; Fri, 14 Apr 2017 21:43:14 +0000 (UTC) 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-DM; 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-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 { + }; + }; + }; };