From patchwork Fri Sep 13 15:04:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 11144877 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 BEA5A184E for ; Fri, 13 Sep 2019 15:04:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9F08920830 for ; Fri, 13 Sep 2019 15:04:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mZ5Y2T4k" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390552AbfIMPEl (ORCPT ); Fri, 13 Sep 2019 11:04:41 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:44741 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390365AbfIMPEk (ORCPT ); Fri, 13 Sep 2019 11:04:40 -0400 Received: by mail-io1-f65.google.com with SMTP id j4so63191644iog.11; Fri, 13 Sep 2019 08:04:39 -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; bh=pxzm0Da2RMICbYeB3ji5PIHGS0/dwIlS+lqwiNEvwqk=; b=mZ5Y2T4kUU6YtTmXJmEe0RSeHEYEsHWkf2QZgVBonzWm/eI6fTGnhyk6uqKiwQVJBZ wx1XUa4SB4I3pJ+7XEfiJRUmc1kj0NPtKRvzqz7cRLKAob1TDKAqlXby0IlO7jXnZBaE xoWXKinpKxOVYW4rm3gZ/r/bDTHmZRaU/FzD6PJ7ME+yQtSR1qYuM44EkBb8S0Gsisky 7i/JcdJUADKlzUeddV7gKns/eWg9JJZYkogYQbQDC/0DUcHCQMZqNlfNpXe3BfqTsnZ2 0eMakF/aZmqde2d8mZnekHjWpn9QYwh7fF2whvYQvRmBHvPyiLSWLlm208kAGESC0qX/ NKsg== 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; bh=pxzm0Da2RMICbYeB3ji5PIHGS0/dwIlS+lqwiNEvwqk=; b=EMUZoUsA3jR4Jexlpdfm6+Dy3m7XwfhA/cBl3kCDWkaKUx6pSJ38JImJrTbcY+S43r nmWEEVQfr9lvScg2aENVXXrwiJjziU+sbq3Nxv8kiki96M3pLU0k0QawfdOCxEhklIan XHinHJTdwvqgpxsk2Ydqy72MC54pddvpmN6RatzAiLkkgDFLYc7pkpdEjDlmeGrfcrmj xD5tN46VwcXzH+FrOgD3pVFl6DvE+6NWgGC3yixDkwKv/qv9e7YxdIPuRFatc6UYDs6g yqd7uEH6aZ1IA+oRIOqI/47EmZSdmP0+H1HebpzCxWDyA98KVZcR0qLBf/L+4VksIQGi sBBA== X-Gm-Message-State: APjAAAUXevT6Snd9WRTF4OwTeyOYahNWR10CCNDApNKNyNuNCpt3Seh1 KvJGkqBuS+qSQd/Rqwv5QF3ShLZg X-Google-Smtp-Source: APXvYqyvnUxMPxTaMhLG0wey5/qLTAyik7SBioh2C0zRMy7EmsX+0kPiTQ9ClGLu405lwitix1JYtg== X-Received: by 2002:a6b:5f11:: with SMTP id t17mr305475iob.169.1568387078505; Fri, 13 Sep 2019 08:04:38 -0700 (PDT) Received: from aford-OptiPlex-7050.logicpd.com ([174.46.170.158]) by smtp.gmail.com with ESMTPSA id q8sm19169414ion.82.2019.09.13.08.04.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2019 08:04:37 -0700 (PDT) From: Adam Ford To: linux-omap@vger.kernel.org Cc: adam.ford@logicpd.com, nm@ti.com, hns@goldelico.com, Adam Ford , =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC 1/2] ARM: dts: omap3: Add cpu trips and cooling map for omap3 family Date: Fri, 13 Sep 2019 10:04:08 -0500 Message-Id: <20190913150410.27391-1-aford173@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The OMAP3530, AM3517 and DM3730 all show thresholds of 90C and 105C depending on commercial or industrial temperature ratings. This patch expands the thermal information to the limits of 90 and 105 for alert and critical. For boards who never use industrial temperatures, these can be changed on their respective device trees with something like: &cpu_alert0 { temperature = <85000>; /* millicelsius */ }; &cpu_crit { temperature = <90000>; /* millicelsius */ }; Signed-off-by: Adam Ford diff --git a/arch/arm/boot/dts/omap3-cpu-thermal.dtsi b/arch/arm/boot/dts/omap3-cpu-thermal.dtsi index 235ecfd61e2d..11452590ea85 100644 --- a/arch/arm/boot/dts/omap3-cpu-thermal.dtsi +++ b/arch/arm/boot/dts/omap3-cpu-thermal.dtsi @@ -17,4 +17,25 @@ cpu_thermal: cpu_thermal { /* sensor ID */ thermal-sensors = <&bandgap 0>; + + cpu_trips: trips { + cpu_alert0: cpu_alert { + temperature = <90000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "passive"; + }; + cpu_crit: cpu_crit { + temperature = <105000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "critical"; + }; + }; + + cpu_cooling_maps: cooling-maps { + map0 { + trip = <&cpu_alert0>; + cooling-device = + <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; From patchwork Fri Sep 13 15:04:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 11144879 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 D3331184E for ; Fri, 13 Sep 2019 15:04:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B29E2214DE for ; Fri, 13 Sep 2019 15:04:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AfilKKGA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390365AbfIMPEm (ORCPT ); Fri, 13 Sep 2019 11:04:42 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:33703 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390776AbfIMPEl (ORCPT ); Fri, 13 Sep 2019 11:04:41 -0400 Received: by mail-io1-f66.google.com with SMTP id m11so63232807ioo.0; Fri, 13 Sep 2019 08:04:41 -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:in-reply-to:references; bh=9ZP/Cjz5nuXxOg1voLEZxP2+QDCNebXAWsZl8UUvuq4=; b=AfilKKGA48bLBjgGL6hLXwP8zdvJamJtbYFPFD7Zk4/S4aPKwslFF6KPQZJ/MXDF4A YTK+g90ufqv2o8ZvAfAZ1HYJp8Um9fl1EMoZFTbcStI3mKFYQNanTs5TLnJRnCV52yls 69432gv/VwZfHcDVAWIcWGEsybpNXGdDirWZ7Tr5YeV4dPblQeCGLYvnMdudP6mxedE1 0Q2TD6RavpUCzHqdAL5QyCuLFSORiWxjA6I7bcMUgJ39epmk0pkixwSslXEVmbP5kI1V dBh5NDnmIKjyt9i0qNmfmryt5IaZvd23up9Lh0fBpRXP+fBjuSeoRLIfrTJlXZpR35uk zEUg== 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=9ZP/Cjz5nuXxOg1voLEZxP2+QDCNebXAWsZl8UUvuq4=; b=THCLpI21ewb94PRECciMyeznOR2XxlrfxgGFJj8oCqlVQRz3HnJzCUqbagJgMAcqmB eChQhJcGjOkRDVXacRMEINTD2Q/tte9SciwVwuWk/IeOhMOATjvjEr+rlPvcvFXp4ZB3 RzPOzQki0SdnlhRBVt0jfzB1FLeeGres+aiTPS1AsoQ+lv51gTq31+I8oj6DcpEwULaF Wrr2LSYV4gCr2itH6NEpUfG0ScEfW90bFyoBZKrFuTuuq/34mqjySQMwedilIwRE2S2D TmSS9xfGWOhKTpubWsJsR9CPM3K6YjK9WV/18SYrNYpiHDcg5j1ngk2T6lj4cJlyVE13 492Q== X-Gm-Message-State: APjAAAVF+j+ZdASXruq4fFzbz6NLQ2SQT6ICagf4F/2jwxkQrQRiVjV7 lY7UBcr0NrPufvSBZL8lI0v6B0yA X-Google-Smtp-Source: APXvYqy8J968bNlINj+k8YEhHWGW+EfTEOM4VvtYx9iZxuxBczTobmD2/pDShQeU2ujiC9gOZrX2/g== X-Received: by 2002:a6b:e501:: with SMTP id y1mr284295ioc.127.1568387080238; Fri, 13 Sep 2019 08:04:40 -0700 (PDT) Received: from aford-OptiPlex-7050.logicpd.com ([174.46.170.158]) by smtp.gmail.com with ESMTPSA id q8sm19169414ion.82.2019.09.13.08.04.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2019 08:04:39 -0700 (PDT) From: Adam Ford To: linux-omap@vger.kernel.org Cc: adam.ford@logicpd.com, nm@ti.com, hns@goldelico.com, Adam Ford , =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC 2/2] ARM: omap3: Consolidate thermal references to common omap3 Date: Fri, 13 Sep 2019 10:04:09 -0500 Message-Id: <20190913150410.27391-2-aford173@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190913150410.27391-1-aford173@gmail.com> References: <20190913150410.27391-1-aford173@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Because the omap34xx, omap36xx and am3517 SoC's have the same thermal junction limits, there is no need to duplicate the entry multiple times. This patch removes the thermal references from omap36xx and omap34xx and pushes it into the common omap3.dtsi file with the added benefit of enabling the thermal info on the AM3517. Signed-off-by: Adam Ford diff --git a/arch/arm/boot/dts/omap3.dtsi b/arch/arm/boot/dts/omap3.dtsi index 4043ecb38016..db9cafddbe69 100644 --- a/arch/arm/boot/dts/omap3.dtsi +++ b/arch/arm/boot/dts/omap3.dtsi @@ -44,6 +44,10 @@ }; }; + thermal_zones: thermal-zones { + #include "omap3-cpu-thermal.dtsi" + }; + pmu@54000000 { compatible = "arm,cortex-a8-pmu"; reg = <0x54000000 0x800000>; diff --git a/arch/arm/boot/dts/omap34xx.dtsi b/arch/arm/boot/dts/omap34xx.dtsi index f572a477f74c..b80378d6e5c1 100644 --- a/arch/arm/boot/dts/omap34xx.dtsi +++ b/arch/arm/boot/dts/omap34xx.dtsi @@ -101,10 +101,6 @@ }; }; }; - - thermal_zones: thermal-zones { - #include "omap3-cpu-thermal.dtsi" - }; }; &ssi { diff --git a/arch/arm/boot/dts/omap36xx.dtsi b/arch/arm/boot/dts/omap36xx.dtsi index 6fb23ada1f64..ff2dca63a04e 100644 --- a/arch/arm/boot/dts/omap36xx.dtsi +++ b/arch/arm/boot/dts/omap36xx.dtsi @@ -140,10 +140,6 @@ }; }; }; - - thermal_zones: thermal-zones { - #include "omap3-cpu-thermal.dtsi" - }; }; /* OMAP3630 needs dss_96m_fck for VENC */