From patchwork Fri Mar 20 18:40:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 11450105 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0813317E6 for ; Fri, 20 Mar 2020 18:41:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DAE3A20739 for ; Fri, 20 Mar 2020 18:41:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="J8wc8teh"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="g3XyB46o" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DAE3A20739 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=nTLmFVMfbG+cLBst+K+TxMpQRb6PRN225RBfuWjZpf0=; b=J8wc8tehS9pZBi u7vlZrj4WC4EIng+oeCtD8ZHzju6fhk7OHmMogxfHSQ04iyRSODDQGvvqgG9NMVb+vfrxJ6PXOgHP +3wQK/ZR7dlE0Z+a5fWHpMLrfNDjXBVPkeHj/t5TT2wk520LGiXtZgf4jvIuTG40QY2geKmZ8Encw IBuYejjaRbnl6lbIKgkPIUQL3VUZmxc6bNq7WNa97OtBrL4HWNa4F2w7XOFDuIOTmfg0ch971+M/z gsdbioL6SLBkj61wXdPzixrgi9Rrn9d1aFYN41mas3e0b9ioRS1DYcQ9HN15DXhr6U8RBN6LmorwB 9YF1Q1MZJCLxqGy/cqhw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jFMa7-0001B4-2r; Fri, 20 Mar 2020 18:41:19 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jFMZs-00010k-Jb for linux-arm-kernel@lists.infradead.org; Fri, 20 Mar 2020 18:41:07 +0000 Received: by mail-lf1-x131.google.com with SMTP id v4so1677089lfo.12 for ; Fri, 20 Mar 2020 11:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HNOepU1ErX9HVjO2hwWXh/XJeIEFeY9yaba+EWdpfok=; b=g3XyB46on+zDYAqdN5ObwA1mVTCj9MvhAho0Ucfn368IauuhJ5xOzAgc2NTOyO4auw cFzpNcMbvGw8fkgCwKTXU0fP4cF1Wqo9oAt+KUb6OkvPEdhSiiBzEcaFKOuinltla0f7 qIhZ+JH93B/im3y/XhHHAHBoKUQtT798D34hdwgG9Gu1BeTzQx6xZY5H9zG9CLXyIIul +H+oG3LSv0N14ffZV5df0NAt1nShXjb6UVwuidYf9A/k3tJptomYoj3eCHqN379V9D3B M9Eps1f2GX5vv4VKGW/+wZlk9pRDMQGvYgIdiT1kSpBXUYrfEqRc6aM9K3iqw0Nu9DgP MXsQ== 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=HNOepU1ErX9HVjO2hwWXh/XJeIEFeY9yaba+EWdpfok=; b=NOXhjJJk8mdehSdiz3gTw5yj99PE1vuLNRiNk16wMJkSnFOd4Mn2XWg6e5xxEp3SbR CYefq2O/hd2SHFuf6n6cbbPDJ7Sy5bGV1sQIA3Li2GPMuHia0ppmHSIuGMZjdx1Bynr7 T9bLwIyWww+1DaeN/jriVlm+ax3EvirEl/j73k3ZCM3bB/GKGeetp8t4a25sQURtfqNd +vy0OHuoQkazzrvhk2rCn0TBpb6IT01zA94W4BsxAvUTK159ySl02EEkySzh+fVLAnU2 aSdbQBdoiAHidoGUrekxLq1QzgrrO6a/J2VBGAlpJ9NSuJd1UbrC1J5MYLvDnLHaEkM3 MDkw== X-Gm-Message-State: ANhLgQ0SVh77zt8qMzNPorgxKkst/rV23gJK2zBRyGjEg3Xd0VpcUE+W zwh05z63HOhGbush7nAzyH5cPYX3Q6xe2Q== X-Google-Smtp-Source: ADFU+vvykXxY3FBGsN1kj6by6QOetl2CHpGk/tL/Z7sC20AOI+YcWGHGIXPbA0MJZoUhi3jIOrmwCw== X-Received: by 2002:ac2:4c33:: with SMTP id u19mr6098601lfq.195.1584729660474; Fri, 20 Mar 2020 11:41:00 -0700 (PDT) Received: from localhost.bredbandsbolaget (c-5ac9225c.014-348-6c756e10.bbcust.telenor.se. [92.34.201.90]) by smtp.gmail.com with ESMTPSA id g3sm3873563ljl.44.2020.03.20.11.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Mar 2020 11:40:59 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] ARM: dts: gemini: Rename IDE nodes Date: Fri, 20 Mar 2020 19:40:53 +0100 Message-Id: <20200320184054.5408-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200320_114105_206383_4C01520A X-CRM114-Status: GOOD ( 10.10 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:131 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org By renaming the ATA drive nodes to "ide@" we activate the semantic checks to the DT schema for the controller and use the correct notation for PATA drives. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/gemini-dlink-dir-685.dts | 2 +- arch/arm/boot/dts/gemini-dlink-dns-313.dts | 2 +- arch/arm/boot/dts/gemini-nas4220b.dts | 4 ++-- arch/arm/boot/dts/gemini-sl93512r.dts | 4 ++-- arch/arm/boot/dts/gemini-sq201.dts | 2 +- arch/arm/boot/dts/gemini.dtsi | 8 ++++++-- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/gemini-dlink-dir-685.dts b/arch/arm/boot/dts/gemini-dlink-dir-685.dts index e2030ba16512..055b03440bdb 100644 --- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts +++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts @@ -443,7 +443,7 @@ }; }; - ata@63000000 { + ide@63000000 { status = "okay"; }; diff --git a/arch/arm/boot/dts/gemini-dlink-dns-313.dts b/arch/arm/boot/dts/gemini-dlink-dns-313.dts index 360642a02a48..c6f3d90e3e90 100644 --- a/arch/arm/boot/dts/gemini-dlink-dns-313.dts +++ b/arch/arm/boot/dts/gemini-dlink-dns-313.dts @@ -297,7 +297,7 @@ }; }; - ata@63000000 { + ide@63000000 { status = "okay"; }; }; diff --git a/arch/arm/boot/dts/gemini-nas4220b.dts b/arch/arm/boot/dts/gemini-nas4220b.dts index 521714f38eed..43c45f7e1e0a 100644 --- a/arch/arm/boot/dts/gemini-nas4220b.dts +++ b/arch/arm/boot/dts/gemini-nas4220b.dts @@ -170,11 +170,11 @@ }; }; - ata@63000000 { + ide@63000000 { status = "okay"; }; - ata@63400000 { + ide@63400000 { status = "okay"; }; diff --git a/arch/arm/boot/dts/gemini-sl93512r.dts b/arch/arm/boot/dts/gemini-sl93512r.dts index a98af0351906..a0916d3c1059 100644 --- a/arch/arm/boot/dts/gemini-sl93512r.dts +++ b/arch/arm/boot/dts/gemini-sl93512r.dts @@ -293,11 +293,11 @@ }; }; - ata@63000000 { + ide@63000000 { status = "okay"; }; - ata@63400000 { + ide@63400000 { status = "okay"; }; diff --git a/arch/arm/boot/dts/gemini-sq201.dts b/arch/arm/boot/dts/gemini-sq201.dts index 239dfacaae4d..0c6e6d35bfaa 100644 --- a/arch/arm/boot/dts/gemini-sq201.dts +++ b/arch/arm/boot/dts/gemini-sq201.dts @@ -289,7 +289,7 @@ }; }; - ata@63000000 { + ide@63000000 { status = "okay"; }; diff --git a/arch/arm/boot/dts/gemini.dtsi b/arch/arm/boot/dts/gemini.dtsi index 8cf67b11751f..065ed10a79fa 100644 --- a/arch/arm/boot/dts/gemini.dtsi +++ b/arch/arm/boot/dts/gemini.dtsi @@ -356,7 +356,7 @@ }; }; - ata@63000000 { + ide@63000000 { compatible = "cortina,gemini-pata", "faraday,ftide010"; reg = <0x63000000 0x1000>; interrupts = <4 IRQ_TYPE_EDGE_RISING>; @@ -365,9 +365,11 @@ clock-names = "PCLK"; sata = <&sata>; status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; }; - ata@63400000 { + ide@63400000 { compatible = "cortina,gemini-pata", "faraday,ftide010"; reg = <0x63400000 0x1000>; interrupts = <5 IRQ_TYPE_EDGE_RISING>; @@ -376,6 +378,8 @@ clock-names = "PCLK"; sata = <&sata>; status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; }; dma-controller@67000000 { From patchwork Fri Mar 20 18:40:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 11450103 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0B5121667 for ; Fri, 20 Mar 2020 18:41:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DDD2820739 for ; Fri, 20 Mar 2020 18:41:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="McHBkS/O"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VQeFTUP2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DDD2820739 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=q6gCgfD/82bqF3CTymxqOJEhbwWM/mKPUjQ4S21hdeg=; b=McHBkS/OE1aRKl a7LLh7v5LSpSqtzU3Jp9OO+2y0fQcsEqSxNMsHvJ5TJHfKgjGRQSfUX93F4tMES0Y7X86zqMOx/Zk c9CgOyZc92zRgE1Rh++5U7Gevx0NQ5w6TqdSBR9sKoQhGHViiUSOHIvKV0fKXWu450VkFdYI6r6Rh cd1M5cGTjcv6Lra1Icx2S34A/70rXEcKbhlOkg/Ezj6SD0+kTGj/YAqhF6SD6WID0EzGElU7TGHnC FqVPFPe3ACt/bh+YFcdCsUmTWrq6oIRsC1nQvyBnIIjOL5ivBSpO+CiiNTYifV0aOoAIvotyi5Onw RAYQb5vfcNDVzdnbOUzQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jFMZx-00011a-D3; Fri, 20 Mar 2020 18:41:09 +0000 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jFMZs-00010n-Jq for linux-arm-kernel@lists.infradead.org; Fri, 20 Mar 2020 18:41:07 +0000 Received: by mail-lf1-x142.google.com with SMTP id j15so5368073lfk.6 for ; Fri, 20 Mar 2020 11:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Omt/Zoo0Z6GTK5HAJBh6G5EPifqGLKsplZm135hcC5M=; b=VQeFTUP2ILcvxt+z8aMXCPKh/Ky671ft/heDo6VGxWUNuN0VSniw69d/qNp3/OthtT lVX/anWqQe8i4PYKW6/DP6Cp9Bw0H/vDYEbrr2lelzoQrsa5diNUWKCbWoXhjp5/eMKp Zznrt08vs+wjh3f8HsL/udE9bbTJEvXyy7y9RTXzHPAW6Y/a+UzDXyvQvp2ocwQFPChl eEpIZHwRvnakUQpw2AeBDj1Y1BiHUjkHQr+ud1x80raogJwDJ5vpjfD3HcSkfA0sfLJ9 UaCcTwBKN27XY1Gldo5uVXuZa/x2fMvfU+qhNq5AvB1RdSEC8ytDtEJuymZ7IeT8bak7 3/yQ== 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:mime-version:content-transfer-encoding; bh=Omt/Zoo0Z6GTK5HAJBh6G5EPifqGLKsplZm135hcC5M=; b=P7M2IVuGimpC9mOpMw1iM0aqMLR/b4PAnSfEZ7j4O4MJcfoJgQw+PZ4RuXjt/MbVVf PcPkLw99eDAVPu6PnY8tthNruNW0jvpR3HupsJpibNFzu/mMlHVvdM8mmqDd35cEdChA XZn0Qx30eBWTXuXzmFF9EMMFDs771CzsZN4bIDGO2gc78D/fojivR2l6NkuEr6wWlGWe ikb32EjygQ+mycdFIT53NvdoX4x5FUvFshdhXTeFJ7s1jCdOAHqlpjiwktBqN2e6GyRR 0Dr5icXPfNEIesLnIH2C/gQ6S8T/3/grJ/+pHA6CbbLH3tMqJ3n4Ko3Zkl2EpZ4R45lY MNfA== X-Gm-Message-State: ANhLgQ0w6HS9d7cZ0dIY7cmMP8HRy0T/EWR2fK9REFC31/R6eahWOoZb roU5ZsvuVLP1ENfqP3qp4HvSOv8XoE0sWw== X-Google-Smtp-Source: ADFU+vvoXNAn4CmimbI7rQkMtvHjIJk74cCfZ6s6vwvYazbPVwKafkkCslvQD6d55fOTx/BSs0aQIg== X-Received: by 2002:a05:6512:4c2:: with SMTP id w2mr6133104lfq.136.1584729662409; Fri, 20 Mar 2020 11:41:02 -0700 (PDT) Received: from localhost.bredbandsbolaget (c-5ac9225c.014-348-6c756e10.bbcust.telenor.se. [92.34.201.90]) by smtp.gmail.com with ESMTPSA id g3sm3873563ljl.44.2020.03.20.11.41.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Mar 2020 11:41:01 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] ARM: dts: gemini: Add thermal zone to DIR-685 Date: Fri, 20 Mar 2020 19:40:54 +0100 Message-Id: <20200320184054.5408-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200320184054.5408-1-linus.walleij@linaro.org> References: <20200320184054.5408-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200320_114105_203044_AEA40B54 X-CRM114-Status: GOOD ( 17.10 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:142 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The DIR-685 can now exploit the thermal zone added by the drive temperature sensor inside the hard drive. We have patched the libata subsystem to assign the device nodes properly to the SCSI devices and this is what the drivetemp driver will use to populate the sensor and the thermal zone, so pick that up into the thermal zone and let this control the fan. The hardware lacks an embedded temperature sensor so the D-Link vendor firmware uses this method to control the temperature of the NAS enclosure using the thermal sensor inside the hard drive. The drive temperature trigger points to be used comes from the vendor firmware. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/gemini-dlink-dir-685.dts | 48 ++++++++++++++++++++-- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/gemini-dlink-dir-685.dts b/arch/arm/boot/dts/gemini-dlink-dir-685.dts index 055b03440bdb..cc39289e99dd 100644 --- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts +++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts @@ -119,13 +119,11 @@ /* * This is a Sunon Maglev GM0502PFV2-8 cooling fan @10000 RPM. - * Since the platform has no temperature sensor, this is controlled - * from userspace by using the hard disks S.M.A.R.T. temperature * sensor. It is turned on when the temperature exceeds 46 degrees * and turned off when the temperatures goes below 41 degrees * (celsius). */ - gpio-fan { + fan0: gpio-fan { compatible = "gpio-fan"; /* Collides with IDE */ gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; @@ -133,6 +131,40 @@ #cooling-cells = <2>; }; + thermal-zones { + chassis-thermal { + /* Poll every 20 seconds */ + polling-delay = <20000>; + /* Poll every 2nd second when cooling */ + polling-delay-passive = <2000>; + /* Use the thermal sensor in the hard drive */ + thermal-sensors = <&drive0>; + + /* Tripping points from the fan.script in the rootfs */ + trips { + alert: chassis-alert { + /* At 43 degrees turn on the fan */ + temperature = <43000>; + hysteresis = <3000>; + type = "active"; + }; + crit: chassis-crit { + /* Just shut down at 60 degrees */ + temperature = <60000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&alert>; + cooling-device = <&fan0 1 1>; + }; + }; + }; + }; + /* * The touchpad input is connected to a GPIO bit-banged * I2C bus. @@ -445,6 +477,16 @@ ide@63000000 { status = "okay"; + + /* + * This drive may have a temperature sensor with a + * thermal zone we can use for thermal control of the + * chassis temperature using the fan. + */ + drive0: ide-port@0 { + reg = <0>; + #thermal-sensor-cells = <0>; + }; }; display-controller@6a000000 {