From patchwork Fri Mar 29 10:12:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876737 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EFEBC1669 for ; Fri, 29 Mar 2019 10:12:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D949328BE2 for ; Fri, 29 Mar 2019 10:12:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD3DE290D4; Fri, 29 Mar 2019 10:12:37 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D1DC290D0 for ; Fri, 29 Mar 2019 10:12:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728793AbfC2KMg (ORCPT ); Fri, 29 Mar 2019 06:12:36 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44929 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728630AbfC2KMg (ORCPT ); Fri, 29 Mar 2019 06:12:36 -0400 Received: by mail-wr1-f67.google.com with SMTP id y7so1830275wrn.11 for ; Fri, 29 Mar 2019 03:12:34 -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 :in-reply-to:references; bh=+TYtSQVH2QGKxuvpbRnS7W6hHgOIHYvxh6y+HNRyviU=; b=Ey4hlv9NkuLcAMge47eh2MgZLE/ZAhUcJW3vteVwHV9CdE/I3Fn8mh2zYtUxUh/jn7 lsNANyD/GLLLsGjgBKeTHR4AhZxK1s2OO8+L++84vvmN1xvJPkJ9/dYXjmx9qDccsDvZ X3zQQHf0EPOBRP6hfJxGYc48/usdTnc9AyHO32engsqayS+/yJv7Yy2RYaBF8lQr5ZHS Tm8dKV85wfToe+JUgl+BUTO7ufj2i/8FrC2vWzvO6nesj7DMgRg1uXxwuXpcUO9ufRWo xVdp2ihtNb1LF+GYLGT1FBtlohypH6HuHbaY9o5b0cklgheOMfGV/NiH3B9sa3XOHF5r GIZQ== 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:in-reply-to:references; bh=+TYtSQVH2QGKxuvpbRnS7W6hHgOIHYvxh6y+HNRyviU=; b=soS5dk7c8bcBL140LodWQS/y/aizp33znJ1jbJXDsaCIGxUOHtkCYwQdeCOtoDuVso 5wO48q5Ks1y0VVhW4KyvUFfiIAh1QL7b3M1EGXT0g3cDeO1IPrRaOk6N9vs72yDjDxTN 01u0x/RK7omgo7NqxZxmP2EhpOp3mC8+MOkPDa0hH2NUH3zQxmmuVmPXZODqJ0f5AP5z 7bAIYns/mu951GxWm5/+mQ54YGc/fkgY42r6BDHJ5pMNC2gXxk/G7WVQFIcHXw7oUQRX HsFplpIBMVrKGZjN1PA0n7eZyNzMI4EOFrVRyTDjYocUXvevDnLhQuuxw8CdXKqDUKNc FeIQ== X-Gm-Message-State: APjAAAXLioEnsvYevv/7KVrHlSPcCn5Z94XbYGiVHFg1hB5wmazCII7O ji3Z7mfGWBL+vDcKIqcEfOIXRw== X-Google-Smtp-Source: APXvYqz9dPAwQCuGX+Po7XfwBzw/6cuI1fbOif/xWG0iLplG6IwuqZvNHP4rqozRSXDEccc7WMsB6g== X-Received: by 2002:adf:ec11:: with SMTP id x17mr29398866wrn.120.1553854354201; Fri, 29 Mar 2019 03:12:34 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id l12sm1912888wrt.31.2019.03.29.03.12.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:12:33 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 01/13] arm64: dts: msm8998: thermal: split address space into two Date: Fri, 29 Mar 2019 15:42:07 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We've earlier added support to split the register address space into TM and SROT regions. Split up the regmap address space into two for msm8998 that has a similar register layout. The order is important (TM before SROT) because we make an assumption that SROT is always the second address space in order to support legacy DTs. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 3fd0769fe648..ac25e9142cbd 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -590,17 +590,19 @@ cell-index = <0>; }; - tsens0: thermal@10aa000 { + tsens0: thermal@10ab000 { compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; - reg = <0x10aa000 0x2000>; + reg = <0x10ab000 0x1000>, /* TM */ + <0x10aa000 0x1000>; /* SROT */ #qcom,sensors = <12>; #thermal-sensor-cells = <1>; }; - tsens1: thermal@10ad000 { + tsens1: thermal@10ae000 { compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; - reg = <0x10ad000 0x2000>; + reg = <0x10ae000 0x1000>, /* TM */ + <0x10ad000 0x1000>; /* SROT */ #qcom,sensors = <8>; #thermal-sensor-cells = <1>; From patchwork Fri Mar 29 10:12:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876739 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0F91D922 for ; Fri, 29 Mar 2019 10:12:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0E4528BE2 for ; Fri, 29 Mar 2019 10:12:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3209290D0; Fri, 29 Mar 2019 10:12:46 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D26F628BE2 for ; Fri, 29 Mar 2019 10:12:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728958AbfC2KMn (ORCPT ); Fri, 29 Mar 2019 06:12:43 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:34202 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728902AbfC2KMm (ORCPT ); Fri, 29 Mar 2019 06:12:42 -0400 Received: by mail-wm1-f66.google.com with SMTP id o10so9291320wmc.1 for ; Fri, 29 Mar 2019 03:12:41 -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 :in-reply-to:references; bh=yMk7UlBf/9xSKlIqns7qRwCnHRkwDfcRdV2w4dM4dNo=; b=MgnTj6v8T9TOquiXtlbl+r4u2teiTGEDT+R3C/rt+OVrMN4mFSn9AJG4LIIThTeNFU vAaO9JB+e9R6PSoKSy8NR/GZzswo6soZXPmjl3yQQ0CLj+yheeRuZa6ExnOV9YDPSBmT 59Xq+C3lYC61lPdaSf8dZhjug3I6SQ6TF1mYxcUNmrij9OZtTstqeWRo7pbsGdna4729 aomgKCd8ZPvyDCV5jRGvGu+UmrRi+a1scLIGqLSLPDF2uyXztsgzu4g9twt7HEYDameY zw11VSDY+oKcnEpipI2I0ELtEUbz87q6dnhS6MScHslkKwpnxhHJg93K+wZRqRNAwvSI c1GQ== 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:in-reply-to:references; bh=yMk7UlBf/9xSKlIqns7qRwCnHRkwDfcRdV2w4dM4dNo=; b=r/NSz/L8gnGDpOS12royNBZZSEfjqXvJ99xkHtLV8ey9Yc5Ri80Eeg87opxHekWyzC BVCy0HM59qvpA9n8jPAyR9hfYvNl00qxvQYSQN/nZGpsPiF/AzLEd43NCBTOfttrBBdX 59V/27FFv7fVAmyeEp2vJ+bSXZJveCD7jnxpfJS9ompXSEGZRMzWGYAWxnQdZkjfdiid gYSTehsySMyBuo8A8h4QWRxRk2YojZt1kv85UOjTC5NezUwaE35+dWze0aFQSyuTJY5Z mcNPrYDmNUIlnZA8pFCrwVRVPhu5VX+AmP5abeMZxNhmI3gLMub+G13ZXRNka8RxuL2i MxVA== X-Gm-Message-State: APjAAAWJ3U7xSPuHhQle3fG6Ygqoa9fUqlJBB9u/cgIwnCSdhp1TT0cr oRqYotvWZxWp+G46qLpqBIPH+g== X-Google-Smtp-Source: APXvYqz+8DZWYx1Z63Pc78Qy1vI3IAW585QzX1p4p77EWVdrWMsrw+VVxHkLwMxu8sPsQhLiBwZWyg== X-Received: by 2002:a1c:9a41:: with SMTP id c62mr2943482wme.108.1553854360434; Fri, 29 Mar 2019 03:12:40 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id e1sm2904064wrw.66.2019.03.29.03.12.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:12:39 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 02/13] arm64: dts: msm8998: efficiency is not valid property Date: Fri, 29 Mar 2019 15:42:08 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP efficiency comes from downstream. The valid upstream property is capacity-dmips-mhz but until we can come up with those numbers, remove this property. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index ac25e9142cbd..0b6de0c29ee8 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -78,7 +78,6 @@ compatible = "arm,armv8"; reg = <0x0 0x0>; enable-method = "psci"; - efficiency = <1024>; next-level-cache = <&L2_0>; L2_0: l2-cache { compatible = "arm,arch-cache"; @@ -97,7 +96,6 @@ compatible = "arm,armv8"; reg = <0x0 0x1>; enable-method = "psci"; - efficiency = <1024>; next-level-cache = <&L2_0>; L1_I_1: l1-icache { compatible = "arm,arch-cache"; @@ -112,7 +110,6 @@ compatible = "arm,armv8"; reg = <0x0 0x2>; enable-method = "psci"; - efficiency = <1024>; next-level-cache = <&L2_0>; L1_I_2: l1-icache { compatible = "arm,arch-cache"; @@ -127,7 +124,6 @@ compatible = "arm,armv8"; reg = <0x0 0x3>; enable-method = "psci"; - efficiency = <1024>; next-level-cache = <&L2_0>; L1_I_3: l1-icache { compatible = "arm,arch-cache"; @@ -142,7 +138,6 @@ compatible = "arm,armv8"; reg = <0x0 0x100>; enable-method = "psci"; - efficiency = <1536>; next-level-cache = <&L2_1>; L2_1: l2-cache { compatible = "arm,arch-cache"; @@ -161,7 +156,6 @@ compatible = "arm,armv8"; reg = <0x0 0x101>; enable-method = "psci"; - efficiency = <1536>; next-level-cache = <&L2_1>; L1_I_101: l1-icache { compatible = "arm,arch-cache"; @@ -176,7 +170,6 @@ compatible = "arm,armv8"; reg = <0x0 0x102>; enable-method = "psci"; - efficiency = <1536>; next-level-cache = <&L2_1>; L1_I_102: l1-icache { compatible = "arm,arch-cache"; @@ -191,7 +184,6 @@ compatible = "arm,armv8"; reg = <0x0 0x103>; enable-method = "psci"; - efficiency = <1536>; next-level-cache = <&L2_1>; L1_I_103: l1-icache { compatible = "arm,arch-cache"; From patchwork Fri Mar 29 10:12:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876771 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 56E751669 for ; Fri, 29 Mar 2019 10:14:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4137528852 for ; Fri, 29 Mar 2019 10:14:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3325E288F3; Fri, 29 Mar 2019 10:14:21 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCBB428852 for ; Fri, 29 Mar 2019 10:14:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729003AbfC2KMt (ORCPT ); Fri, 29 Mar 2019 06:12:49 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35068 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728998AbfC2KMs (ORCPT ); Fri, 29 Mar 2019 06:12:48 -0400 Received: by mail-wr1-f68.google.com with SMTP id w1so1884977wrp.2 for ; Fri, 29 Mar 2019 03:12:47 -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 :in-reply-to:references; bh=/lEw2WJIQYdMZsFOVD8QtaZ94Qz62D3Eglt9Vc/R/YE=; b=KkLs4yE4PyAr+Yl1regGK7dtXQO096QUH7ZsFUL/hY034MN4bhzXJlWdS+nA2ZD2R6 XGhjd5+Ak3r17le6xL59ByNnqVO0czpMJMlma2BaKZQ5ALm+C5KlAFsx3eEXCV+vjjh8 4G8P/GtqMAq368GPHCzUmuzUcPikcQS0/+ndm0OxZYNGgR+d7FYDHTxwuDfR832rJk+b s5CvoCGf9zm8wyLtravwWTre6C50nunJnLcpQh/WEkiYyLW46gedIf+yrG9W5GwJDbUM H5OcHfcleHY11r2iFkROF1cyPicEenEHNL9E0vLYXlWJOTWhk78urdhZYRoDcgSNhDAQ Au+g== 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:in-reply-to:references; bh=/lEw2WJIQYdMZsFOVD8QtaZ94Qz62D3Eglt9Vc/R/YE=; b=LFNJxAffjKHucDeBefj0RFcA5WiC5ARQcodW+unHyq0XiK830SEUiTu32oy12v2Sbs 0XH5LPl35oLJCxaO55CIcg5zbmjLEM7SJ3KTb7pc8FcJGlqJbm5z1sjO8BnSq5kCnvXi DFquR/Wz6wUWQKH6NMMGmY/KT1Ifow0CbHPik4IV0Acne6vquPNskxZSUNDykxn4gnWx mymnkyRHejJnW0nvXZqRX+ETDe6vaTMYpHSRPapbg8joU3I9ax1AqgFwDqwMNoOlODvE EorEm9Cq7CQ/7ZTH1OPC03gv2D2vEmcbqX+2JJk60qoMDLEaZ8xVZivA5pOwZBu3DckU MOng== X-Gm-Message-State: APjAAAUK3zmHWXcgeHPMMYq2lkPDZNDcBMcgPanWwxTY3m1wqsTFUdGD 4UmKPS+oeJ2zE6n5NfBx8h/ZDQ== X-Google-Smtp-Source: APXvYqwwJ/LLEGH1Pr0MC/8BeRkg0z3t4Yplbrq4oxIxl6Bm7aLpmnzh4KEydM7ATwLyek0jyWG6zw== X-Received: by 2002:a5d:4081:: with SMTP id o1mr5840015wrp.241.1553854366992; Fri, 29 Mar 2019 03:12:46 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id z14sm2072519wrv.78.2019.03.29.03.12.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:12:46 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 03/13] arm64: dts: msm8916: thermal: Add sensor for modem Date: Fri, 29 Mar 2019 15:42:09 +0530 Message-Id: <0f5d5623be3c60efde8a98b45b2e5808190d3675.1553853990.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On platforms that have a modem, sensor 0 monitors the modem. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 0803ca8c02da..c8aa9a0986d2 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -278,7 +278,21 @@ type = "critical"; }; }; + }; + + modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 0>; + trips { + modem_alert0: trip-point@0 { + temperature = <85000>; + hysteresis = <2000>; + type = "hot"; + }; + }; }; }; From patchwork Fri Mar 29 10:12:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876743 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 349FA1874 for ; Fri, 29 Mar 2019 10:13:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22EF8290CF for ; Fri, 29 Mar 2019 10:13:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17482290D4; Fri, 29 Mar 2019 10:13:10 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23533290D0 for ; Fri, 29 Mar 2019 10:13:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729061AbfC2KM5 (ORCPT ); Fri, 29 Mar 2019 06:12:57 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45795 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729037AbfC2KMz (ORCPT ); Fri, 29 Mar 2019 06:12:55 -0400 Received: by mail-wr1-f65.google.com with SMTP id s15so1829191wra.12 for ; Fri, 29 Mar 2019 03:12:54 -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 :in-reply-to:references; bh=F45uud4f8fCAV227MMD1FiQHOuaHoLclmOUA48d6Dsg=; b=Q4nMLi7WinqfW+e3zNC6pCmXvHOvzW+FEuU/N51o2fP/bgvyBuzOmHuzsRp18JDLmr QFCpV16GYJWzpgFiETFix0SblZeoqll96Ix0itKTWDxx4AUxVBLglY7Z1vHbPmrZfKH7 20cljgIWJlH5FzAKLw3tRe4wsd+3yAklz99DOyfsCqMUJP/A3gKqW4edb6C5g00Wdg3D ArGslNenT+9Dl3ogBDeqC82fVI68fPbTAuEZADMfFUlevcOtYXZ0aCyGpjLZcq3dSASs cwG7mGp3qzY3IxhJqyUX9eWLPJa1b2iAXtyAIXksHaTld8LMcofp10mFsz4UTtTdVWGy 1Xkw== 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:in-reply-to:references; bh=F45uud4f8fCAV227MMD1FiQHOuaHoLclmOUA48d6Dsg=; b=Hg/YqbxmAPqoHop3SNNmTYXALOIdBMW+l887Wrx+xRPH429Tk5gdHn1DjK9SnWizCT vEUKGQe0mqRG5LZPTjpvtdxBrVv7a7V2nNAUGciRntU8BZkICQVslETus3oAWBGesokt lQ9d7n2Z1jPBhwlXWT2f4y2/OfzkpFfcQFy9+UsE5paOxOrmWtqVUGnR2zmk+voJgEHm mID5Fabo4DXTxHxaKx7rPqDkmGadqiCwAVJYwCTVAuLR8DpqYLvHttKJngoJbe38ShKq oxbtZoAmkP/8LJ8qFcsRnCPBaNxT4TYg9seo1keDD//bMZmGRrYtvGoOIoAnOl1uIS0f rw7w== X-Gm-Message-State: APjAAAWilqhPmqxfn9UrjiKzeSXKRkvy+d0LpGIWc5PNyy/MjMZ9I/Bk +M/DNpw2aJ8Mg8znOrT8gBAKHQ== X-Google-Smtp-Source: APXvYqwUTz97GlzEWljX6BocTLRDnfNXr4iJ49cczQVQxpV82tFKqQuFG6QJxfIyKj68wB5pjo80Qg== X-Received: by 2002:a5d:4710:: with SMTP id y16mr29314802wrq.176.1553854373296; Fri, 29 Mar 2019 03:12:53 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id y8sm1720955wrm.8.2019.03.29.03.12.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:12:52 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 04/13] arm64: dts: msm8996: thermal: Add temperature sensors near major peripherals Date: Fri, 29 Mar 2019 15:42:10 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP msm8996 has a total of 21 temperature sensors. Populate DT with information about them. There are 2 sensors on each of the cpus - one on the top, the other below (we only expose one on the top in DT for now). For the GPU, we expose both, the one on the top and the one below. Depending on the version of the silicon, sensor 2 is either placed near the L3 cache or the venus video decoder. It would've been nice to be able to be version-specific but we don't have DTs that differentiate the two versions of silicon yet. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 150 ++++++++++++++++++++++++++ 1 file changed, 150 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index c761269caf80..e2408ee91184 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -237,6 +237,156 @@ }; }; }; + + gpu-thermal-top { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 6>; + + trips { + gpu1_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 7>; + + trips { + gpu2_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + m4m-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 1>; + + trips { + m4m_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + l3-or-venus-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 2>; + + trips { + l3_or_venus_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + cluster0-l2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 7>; + + trips { + cluster0_l2_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + cluster1-l2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 12>; + + trips { + cluster1_l2_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + camera-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 1>; + + trips { + camera_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + q6-dsp-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 2>; + + trips { + q6_dsp_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + mem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 3>; + + trips { + mem_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + modemtx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 4>; + + trips { + modemtx_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; }; timer { From patchwork Fri Mar 29 10:12:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876745 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C2854922 for ; Fri, 29 Mar 2019 10:13:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFCA828BE2 for ; Fri, 29 Mar 2019 10:13:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A38FB290D0; Fri, 29 Mar 2019 10:13:10 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A424F28BE2 for ; Fri, 29 Mar 2019 10:13:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729087AbfC2KNC (ORCPT ); Fri, 29 Mar 2019 06:13:02 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37759 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729081AbfC2KNB (ORCPT ); Fri, 29 Mar 2019 06:13:01 -0400 Received: by mail-wr1-f66.google.com with SMTP id w10so1868323wrm.4 for ; Fri, 29 Mar 2019 03:13:00 -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 :in-reply-to:references; bh=Et6sor8PU+KdoioSjuhpGkTFWSasdTtvhbgyNeM0Xbk=; b=ptIWrNy39lKQlHnJMU7bkY1sU969gX4anhjptaOirIAR61aZCNrI+D7JwpwmRiRG8O 3/3fgxy7+vxkHgJu3F/GniVGK1yMDUg7IkC1M1rp4H9+PmHkhEsjw2YnWWY3QscPL/e9 Wr4yuJ24hHs6uFwJn6PQp1pAw90JmzH8b8bcUnNYgVhkng0jJM1FNROjCwpwAdtHK/Ij r3CW03FuFNxXbNxF3XatX7LNg3RiJIVsMI6i69hx/MFvKsOPrqg7+TEaAITVSR/G1dw9 RE+iHvKbbmZ5EPenlCWpeBa8SWrAf6ozpng17mIAX0MvfLw+QvQfrLcvdOi8MehR8DIV 4ciA== 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:in-reply-to:references; bh=Et6sor8PU+KdoioSjuhpGkTFWSasdTtvhbgyNeM0Xbk=; b=sgWSP1/xNs5cwDdCbYIVKL8wCwqcT9DjO1TpUUeiEFITAvPS5iIL2boxaXkTEmkcrn kDcDH7htgTrOfXFQ0Vt8e7OU/+tLIHbcX+kYLX5fpOh6nuDm/LylO+IlhTmZXTmuoDEW cuwGi3P0/GBBlEl5SIh4w8ERXyS6WPuXJhDXyWpqkqJC2xplbWKhCzZETOyg23QuAIMQ 3NUruv3mtPx0h/nOHkWXv+arFSgOOhYNgKyzxpw45MSkymt+dTREBbjw0DZ9WlQez62s ysJTnsBbYJRRde6sz0zJ5jTKjTK20VrpVzNEHj8mVvAKiCOBH4/H8OXZ3Q2cqpq1Qd28 A+Yw== X-Gm-Message-State: APjAAAVwyEwiGTiR2LVhougnAyv5J8enWf/TU/2sbeK77ab5FF0wRBpk P4nUpe3SO3WBV4WqYfK57Rm8h6qrhaA= X-Google-Smtp-Source: APXvYqw9AC7+hArUB5RKgMUsCFlHXz+NydnJRAK3NgwBhWLxXy37epiMbxKuPNQoVcjnS/Gyshbrog== X-Received: by 2002:adf:ba81:: with SMTP id p1mr29163589wrg.192.1553854379291; Fri, 29 Mar 2019 03:12:59 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id g8sm3005774wro.77.2019.03.29.03.12.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:12:58 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 05/13] arm64: dts: msm8998: thermal: Fix the cpu sensor numbers Date: Fri, 29 Mar 2019 15:42:11 +0530 Message-Id: <50441c28c22290ed9df7ab394d773a77603caed5.1553853990.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The silver cluster (typically cpu0-3) are monitored by sensor IDs 1-3 on tsens controller 0. The gold cluster (typically cpu4-7) are monitored by sensor IDs 7-10 on tsens controller 0. Fixes: 4449b6f248d9a1 ("arm64: dts: qcom: msm8998: Add tsens and thermal-zones") Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 0b6de0c29ee8..108a5aa146a2 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -342,7 +342,7 @@ polling-delay-passive = <250>; polling-delay = <1000>; - thermal-sensors = <&tsens0 6>; + thermal-sensors = <&tsens0 1>; trips { cpu_alert0: trip0 { @@ -363,7 +363,7 @@ polling-delay-passive = <250>; polling-delay = <1000>; - thermal-sensors = <&tsens0 7>; + thermal-sensors = <&tsens0 2>; trips { cpu_alert1: trip0 { @@ -384,7 +384,7 @@ polling-delay-passive = <250>; polling-delay = <1000>; - thermal-sensors = <&tsens0 8>; + thermal-sensors = <&tsens0 3>; trips { cpu_alert2: trip0 { @@ -405,7 +405,7 @@ polling-delay-passive = <250>; polling-delay = <1000>; - thermal-sensors = <&tsens0 9>; + thermal-sensors = <&tsens0 4>; trips { cpu_alert3: trip0 { @@ -426,7 +426,7 @@ polling-delay-passive = <250>; polling-delay = <1000>; - thermal-sensors = <&tsens0 10>; + thermal-sensors = <&tsens0 7>; trips { cpu_alert4: trip0 { @@ -447,7 +447,7 @@ polling-delay-passive = <250>; polling-delay = <1000>; - thermal-sensors = <&tsens0 11>; + thermal-sensors = <&tsens0 8>; trips { cpu_alert5: trip0 { @@ -468,7 +468,7 @@ polling-delay-passive = <250>; polling-delay = <1000>; - thermal-sensors = <&tsens1 0>; + thermal-sensors = <&tsens0 9>; trips { cpu_alert6: trip0 { @@ -489,7 +489,7 @@ polling-delay-passive = <250>; polling-delay = <1000>; - thermal-sensors = <&tsens1 1>; + thermal-sensors = <&tsens0 10>; trips { cpu_alert7: trip0 { From patchwork Fri Mar 29 10:12:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876741 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D82C8922 for ; Fri, 29 Mar 2019 10:13:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6AD4290CF for ; Fri, 29 Mar 2019 10:13:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA1EA290D9; Fri, 29 Mar 2019 10:13:09 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 028F5290CF for ; Fri, 29 Mar 2019 10:13:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729104AbfC2KNI (ORCPT ); Fri, 29 Mar 2019 06:13:08 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39022 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729082AbfC2KNH (ORCPT ); Fri, 29 Mar 2019 06:13:07 -0400 Received: by mail-wr1-f66.google.com with SMTP id j9so1871647wrn.6 for ; Fri, 29 Mar 2019 03:13:06 -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 :in-reply-to:references; bh=vvH6TxvABMt17Q7J8MfZHqwxVAuEjNaW4KGdEaboHS0=; b=H57jkGuk0D29CiXmW88I/aT2HO823+vuj3EiitBm7MLZeWixvlewjVEx3WSCzbGUwY O8wT03ne/Nb6t4+uH+csM0WRuQPFdGBpHx3JNFtsErUCsLU4qLpbCvf6d7hxEBpNYJUm 6ujVwHEf14wKZTaR4cLaWYbB8DbhjOoWuQT7H8371bpu41H2Atr6KO5joHrdAthOyHFi LZBSmLrIqVzEuedms/zbPlAYL9+/2q+hmHjyToJ/TJ6ELD4gCGuGv8WiQHGDsI4qthZc uKMTRUGFlOjzCxznxTvF3YoIw+T2koUdqpudEHE8GY5aH2xtqIy4bg9EDGsxoqjJvamn zIMg== 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:in-reply-to:references; bh=vvH6TxvABMt17Q7J8MfZHqwxVAuEjNaW4KGdEaboHS0=; b=jPLh3g8LAnYQTczNMIlfUvYeXn3NrkG0qG2SWg1P2OsEb5QLg3xAdBzFGbuZemaog+ G0Zuiz5FgqIBPkhsTV1DkJQpy4sogVMIbvu2GNF8RiQpmsM4a4rqwU1TaQArTY9QV0vl 4p6E8U6f0C3We3iGaImEOfD3QaUsT1gKWJ1C5PgiiIZlEsZlD9MzQowSWYDAC/aqZpl/ TWfzmg1F2NWWvR2TslBTXZM57ES77Qj3hMged0YckwVTtbOiYJRUWpi70wVuMSrgqJ/c iNNLZJx4VTXfYh3F+7UTm1n5Bc9fhrbp39nmCW07CMgkPgVBHJCopZd1Xn1hCB3oXoGv Wy2g== X-Gm-Message-State: APjAAAVMsiJIspkrghW3lXWgFqO2tZ21Tk7qi3DCSyz+arduCS1Z6IGI hbAsJHBZjRkCAc7OMveufdQlqw== X-Google-Smtp-Source: APXvYqzR392m7p/Q6WhJ0sidAsA/06uDhwjuzaMkQrqni+fnkpz+quvufSHFbgdJWZGDYM6ByM7wMA== X-Received: by 2002:a5d:5190:: with SMTP id k16mr13275120wrv.10.1553854385649; Fri, 29 Mar 2019 03:13:05 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id h84sm2260804wmf.15.2019.03.29.03.13.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:13:04 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 06/13] arm64: dts: msm8998: thermal: Fix the gpu sensor number Date: Fri, 29 Mar 2019 15:42:12 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The GPU sensor is sensor ID 13 on controller 0 Fixes: 4449b6f248d9a1 ("arm64: dts: qcom: msm8998: Add tsens and thermal-zones") Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 108a5aa146a2..56ca9ecdb0bf 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -510,7 +510,7 @@ polling-delay-passive = <250>; polling-delay = <1000>; - thermal-sensors = <&tsens1 3>; + thermal-sensors = <&tsens0 13>; }; }; From patchwork Fri Mar 29 10:12:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876753 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1316C922 for ; Fri, 29 Mar 2019 10:13:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F205228BE2 for ; Fri, 29 Mar 2019 10:13:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4E41290D0; Fri, 29 Mar 2019 10:13:31 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91DDB28BE2 for ; Fri, 29 Mar 2019 10:13:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729241AbfC2KN0 (ORCPT ); Fri, 29 Mar 2019 06:13:26 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:54343 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729168AbfC2KNN (ORCPT ); Fri, 29 Mar 2019 06:13:13 -0400 Received: by mail-wm1-f68.google.com with SMTP id c1so745612wml.4 for ; Fri, 29 Mar 2019 03:13:12 -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 :in-reply-to:references; bh=NNvC9n1z8PdtdpApwkNWkA8fQEaFhqvpx19ozcs0aPs=; b=vHdkqr/mXHVgwz2jYU0rz/ISRvP7xzfrHDVcrzth1TTCpJ+lChaTFzhMD5HIouKLD0 N1r9W30df22N2U8lVsALu4ygogSwzZ0D9zJ6Bk71W5Rs0eTtYUsrHAmfQGegETYqnEJK qWKRuhqFwZhC/ACoM1e3FE6CDolu4y1+bnoGYZZH2oWs7x9knJOzS0efd12qaC4oWd/g XAtke53kyTq1TEQMEaYH5iaV2g/T7lG9sBmpQ25KCW6s13k/93Hszb1Z8FVtJoW4n1Pw yWgIdyWnzUt6O6a21jz6YliK4P+XzhPj46uTb1h1EI0aRnCyKO+rsi1gBobicrmz0JA+ yIJw== 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:in-reply-to:references; bh=NNvC9n1z8PdtdpApwkNWkA8fQEaFhqvpx19ozcs0aPs=; b=RGNVMO97OhGhGBV+ckiceM/yTUN2Pv90y3LAmiWdYXx0L2IIROwhs5QTxtSkWXm9ly 1jyc1+GrwiKbkdtWbS3sodBVddvC7C5x+ukZu9peghCdsZYmIZ/iSQdfS1k0I354WpdA 6t8zvhVmPh9tlbdRyKohR5x57T7fax4JY0AX7662JsPQGYhvA/K3s6fw1JPgjkoI3hQ4 NrudNkz45n56EsZunCr2vjyoDRf6r6K+LUxoNf7kq0uRGmkzFH1DBq950lj8TgR4ud+c rMFSE4sl7C++vpF/AbRcjCz7Lw1IrXu0+MXGPxl2/EDCDXxWa3UjBf0Y8MvYuhpweXRV CGTw== X-Gm-Message-State: APjAAAVUJjq8rNnUZN3lSCCUK+efOP2mJ/ZCqdsgvzGX8LrgvMoChBYI aWCRDOoz9SQ8SHquv+GjQhUvyQ== X-Google-Smtp-Source: APXvYqzye2FJMjtTrJ/KGXxcO1kz091v2GTbmA0lRV/q5hH0or1UZy7a3FrZO4eBj3STT2bRtMxnfQ== X-Received: by 2002:a1c:1d81:: with SMTP id d123mr2862060wmd.59.1553854391757; Fri, 29 Mar 2019 03:13:11 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id d7sm1648941wmf.31.2019.03.29.03.13.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:13:11 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 07/13] arm64: dts: msm8998: thermal: GPU has two sensors, add the second Date: Fri, 29 Mar 2019 15:42:13 +0530 Message-Id: <7af19b6468b6e10f0a24c40b7a467a71ae9bee65.1553853990.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The first sensor is on top and the second sensor below the GPU Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 56ca9ecdb0bf..b368da235663 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -506,11 +506,34 @@ }; }; - gpu-thermal { + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 12>; + + trips { + gpu1_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-top { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 13>; + + trips { + gpu2_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; }; }; From patchwork Fri Mar 29 10:12:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876751 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 866AE1669 for ; Fri, 29 Mar 2019 10:13:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69CA028BE2 for ; Fri, 29 Mar 2019 10:13:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E15D290D0; Fri, 29 Mar 2019 10:13:21 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3A1C290CF for ; Fri, 29 Mar 2019 10:13:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729173AbfC2KNU (ORCPT ); Fri, 29 Mar 2019 06:13:20 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42629 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729202AbfC2KNT (ORCPT ); Fri, 29 Mar 2019 06:13:19 -0400 Received: by mail-wr1-f68.google.com with SMTP id g3so1848103wrx.9 for ; Fri, 29 Mar 2019 03:13:18 -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 :in-reply-to:references; bh=4WP7vJpVKRp4mAy2lLrKwHicvrn2dHrj30KYt06Ejqg=; b=HwfvFzt8WzHIRDTIuZ5svJlx/Vl9TO7GcKcruimTKRHJmnsLIZ69awWsY91wPokyYV HR7XGUH5V2ih3tAzX9UmYrB+yWh1bJen/kGRRVHuV1vP31iZIihdwOnRlsPlgPARDwSg YAaKXKXCBRLdxkr6Yvnb9drh9AEF5NR2yrMUUQZZQ86IMnWCE9a9qYS1Q37t5KfpDJ2R oj3pMR7ACboa4xPsVTQvKqVPRF8jEqWInoVWClXup7rHXEJC/z3AocRvGHRHOmpE8O5b t+7EjQUCmwAQim/YU2s0Yr8do7+e5n0VqoYy9M87M8AmEPEMBEcqJk5BuNtwmQLX6mUJ 8muQ== 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:in-reply-to:references; bh=4WP7vJpVKRp4mAy2lLrKwHicvrn2dHrj30KYt06Ejqg=; b=fKzGG4bCvJhEYf/Bd6bf34WRlopkKcwv+AtpnpbrXGDqllFdTz0WS+3yTqPwSOk0QC yessN0ARZbimC/JWf0g+oCfTLrriUNbCCwuRJWdvTkwqYVSFyIhlQJn1pvZeUSnYgBvv PTrV9f1UBo4xeREpBjiyQv93Whuexknkg2cw2DybeIH9fhODn+GzLRJq4kM023LiI/DZ VHr3QkEASEGsRFgyM9LProR3wx1jrN+1EJw4h4iCNjJ2jAvsU7pmBp/6OhmbLwRujsmI fGhTVxcym0yNm16VGcCbmVlBVh1aQjlEt4cucW1oW+fG2od3IL8QUbVQwnVL7xdBmIkS icXw== X-Gm-Message-State: APjAAAVqiSYiQH0lwaFQ28upT2Vkd0xGnuAIUfk6XdrmnffIzu7AI5h+ Dlr3yos3rRORpPTJ37oQwV+vBA== X-Google-Smtp-Source: APXvYqwCtehYs3FHKPi0HoOMQLG8kd2Nd7Yx1AadsOuhqNnRkAI75cCK97Jsw/YEvOtcFZ8J1Fso+w== X-Received: by 2002:adf:fe03:: with SMTP id n3mr19580004wrr.59.1553854397857; Fri, 29 Mar 2019 03:13:17 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id s10sm1836419wmh.0.2019.03.29.03.13.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:13:17 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 08/13] arm64: dts: msm8998: thermal: Add temperature sensors near major peripherals Date: Fri, 29 Mar 2019 15:42:14 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP msm8998 has a total of 22 temperature sensors. Populate DT with information about them. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 135 ++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index b368da235663..26e476078cb6 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -535,6 +535,141 @@ }; }; }; + + cluster0-mhm-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 5>; + + trips { + cluster0_mhm_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + cluster1-mhm-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 6>; + + trips { + cluster1_mhm_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + cluster1-l2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 11>; + + trips { + cluster1_l2_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 1>; + + trips { + modem_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + mem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 2>; + + trips { + mem_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 3>; + + trips { + wlan_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + q6-dsp-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 4>; + + trips { + q6_dsp_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + camera-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 5>; + + trips { + camera_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + multimedia-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 6>; + + trips { + multimedia_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; }; timer { From patchwork Fri Mar 29 10:12:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876755 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4394A1669 for ; Fri, 29 Mar 2019 10:13:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 313A828BE2 for ; Fri, 29 Mar 2019 10:13:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 228AB290D0; Fri, 29 Mar 2019 10:13:34 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0DC9D28BE2 for ; Fri, 29 Mar 2019 10:13:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729261AbfC2KNb (ORCPT ); Fri, 29 Mar 2019 06:13:31 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:54363 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729206AbfC2KN0 (ORCPT ); Fri, 29 Mar 2019 06:13:26 -0400 Received: by mail-wm1-f67.google.com with SMTP id c1so746318wml.4 for ; Fri, 29 Mar 2019 03:13:24 -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 :in-reply-to:references; bh=o2Wp7eKMAG4NFM8Fr+KWAR1FMJdBJukeKveTGM8Z088=; b=ZtKkJn0ihizrjTT7FNr+XopsRNpLa3tJ1EfFLtumXB84bZiVCbZdDVJoQ0qgLNo1mA Z8+z3I9KCxStiq6vRmlbjzNXcc7u3impVlUE8tk47D1lfd7Sp0TBcro1KXJ1MYGrb1F4 SiTnrK9yJ588yPLN7ag3L7pIcVbIjxlTnqJ42/NZECnkjN/aZKEuZP1JjFKBkGqPOC02 W9bPlAcyxPmkpr+MT5OnkokkC+jqM3ScYqTqr+yUGUKB9tPlWGD12eWnO7UKVr+hP88/ cbwtNn10RVhvpqW+CfhyQWZGikj6JOYXk6KXBHC/LvaX4pf0CssDBWQKKkV0KTMlECH1 tszw== 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:in-reply-to:references; bh=o2Wp7eKMAG4NFM8Fr+KWAR1FMJdBJukeKveTGM8Z088=; b=A1hhZEgQiuFcY1iAPN5R85qYcN7DaoBe/DH+bibmxsDnJlo+i6P40s0fMiO3Kz3NvN z+WVS7LbrLKjNz/OjmVSYsl4jroiDBwKi+Ly+FmmlbZ9XQytmbaFFdHhy2q40JK1bMPV q0z8Ws74urMFKzL4hQ3X/Vi28MMwXSIFn4jNurtY+1DPDq2URPcf6kDy3WFbGVq/HQZy 10RT/+ZSlgpIUZdbKkxJ8PTIB8USfHOwuMmiJEIQSoTkcE0Aefu9isxxljHU6xmJ744y qzyrwL9mhVUyssjqsivGq35A0dzi4wfwU2jBr46XXzIlW6c29xdTpmG3OjMT34tRLTvj T+6Q== X-Gm-Message-State: APjAAAWB6mxbyp2Asy1NCVdDBvDeAh3HDgBOIvOP7wsGgqt/FR3c6KGo 78kFNmflJ//8F+9jbIycGdOAfw== X-Google-Smtp-Source: APXvYqzNIrJr4lTu6aUmyOR9TTjGKS5XrktPzmT8YuIxcoc+gdI3kvLT+8T0L0Q2iI9E2TzwtBwKzQ== X-Received: by 2002:a1c:ca06:: with SMTP id a6mr3041939wmg.14.1553854404056; Fri, 29 Mar 2019 03:13:24 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id h2sm3025684wro.11.2019.03.29.03.13.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:13:23 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 09/13] arm64: dts: sdm845: thermal: Add temperature sensors near major peripherals Date: Fri, 29 Mar 2019 15:42:15 +0530 Message-Id: <19d3a2e99cb5ebce63e5cd1e604d71f8a919828a.1553853990.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP sdm845 has a total of 21 temperature sensors. Populate DT with information about them. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 205 +++++++++++++++++++++++++++ 1 file changed, 205 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 5308f1671824..7c0643ccef18 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2611,5 +2611,210 @@ }; }; }; + + aoss0-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 0>; + + trips { + aoss0_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + cluster0-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 5>; + + trips { + cluster0_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + cluster0_crit: cluster0_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cluster1-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 6>; + + trips { + cluster1_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + cluster1_crit: cluster1_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + gpu-thermal-top { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 11>; + + trips { + gpu1_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 12>; + + trips { + gpu2_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + aoss1-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 0>; + + trips { + aoss1_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + q6-modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 1>; + + trips { + q6_modem_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + mem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 2>; + + trips { + mem_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 3>; + + trips { + wlan_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + q6-hvx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 4>; + + trips { + q6_hvx_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + camera-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 5>; + + trips { + camera_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + video-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 6>; + + trips { + video_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 7>; + + trips { + modem_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; }; }; From patchwork Fri Mar 29 10:12:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876767 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D40FE922 for ; Fri, 29 Mar 2019 10:14:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFB4128BE2 for ; Fri, 29 Mar 2019 10:14:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2849290D0; Fri, 29 Mar 2019 10:14:11 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3252D28BE2 for ; Fri, 29 Mar 2019 10:14:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728804AbfC2KNd (ORCPT ); Fri, 29 Mar 2019 06:13:33 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45032 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729255AbfC2KNc (ORCPT ); Fri, 29 Mar 2019 06:13:32 -0400 Received: by mail-wr1-f65.google.com with SMTP id y7so1833867wrn.11 for ; Fri, 29 Mar 2019 03:13:30 -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 :in-reply-to:references; bh=OujNZc42kCq7zUXMisag/ClKHZpikAp2j81GdH4F8c8=; b=xacPfH2G5Gwha82agXR2eh+YYw351Qi7DUx8/wuwk4IRijVMSYTz0vWKDawvLVK3zl WTE0wzo9RljBbwJme/revgCSuLovGwQ35BRfzapRaXdnkoGlMBF7OQ8OdTNWEprzsE9d ZFnQ6rQIECfrN4u3qddbkwUJ2WJjjuDur1nhVRCRm5T5h2bD+EwMcHx81pEFSePwk7cE 2u7ivr2eaohJupE+otV4g/FxdCXfpDP3WktKRTOKusFFBnbNtGUsrvAhCtrefDUvKtWv eC1QVfqQqyMbpMNk35FNcdSB+vGPgsc/kdbDaFyhp/s60g6GX5sagDaMdIEURaZf4dHI ymbA== 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:in-reply-to:references; bh=OujNZc42kCq7zUXMisag/ClKHZpikAp2j81GdH4F8c8=; b=Icxyc+wPZO/vKcOfFhSQvx7HXYsQFF76dsgTRoi+duSxiFgA3IAuQck7rkVqzhd39U fk0hrVzn3iYLlhAJTbCMhbbyDMcN4B/uttPdz4adEzPjqXJwAZGGDl5KDspUJTB4NopF vd+7vf5o4CjuvKzljQiaOcnZXjzpPXbR6F3O5SWKFE0k2xVIblttim3q27BCqKyqNKQk OXnM/7Ne1MOL25Bv4OQF/xoAHTUlJ+bJKjepOePqeDsM3B6Hq17pMLl/gjifl2RY+K/U KamWZrecNIDum3FuCA9/fa2X0dwYwAThOmYrbWb76R8J2JL/DsuMYlThp6PV/pIrFr30 4a1g== X-Gm-Message-State: APjAAAVXWHCoTRLzvA30ZtUtqkfiHNTi4BPQuvwKmb2zzv589tZti9Wl 7wThzl70RWYGo+AZwBPYyaNuFQ== X-Google-Smtp-Source: APXvYqw2B2MxFkZycud6NYFGKfZk2DCf618bP1nWJ6zy7KC92ePs1kWhsIvaQ+PMjEPgQAOBBcSPHw== X-Received: by 2002:adf:e487:: with SMTP id i7mr31150308wrm.264.1553854410139; Fri, 29 Mar 2019 03:13:30 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id y127sm1595565wmg.29.2019.03.29.03.13.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:13:29 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 10/13] arm64: dts: msm8998: thermal: Make trip names consistent Date: Fri, 29 Mar 2019 15:42:16 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Maintain naming consistency with what was landed for sdm845. Simplifies parsing for test tools. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 48 +++++++++++++-------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 26e476078cb6..998017d4d847 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -338,20 +338,20 @@ }; thermal-zones { - cpu-thermal0 { + cpu0-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 1>; trips { - cpu_alert0: trip0 { + cpu0_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit0: trip1 { + cpu0_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; @@ -359,20 +359,20 @@ }; }; - cpu-thermal1 { + cpu1-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 2>; trips { - cpu_alert1: trip0 { + cpu1_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit1: trip1 { + cpu1_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; @@ -380,20 +380,20 @@ }; }; - cpu-thermal2 { + cpu2-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 3>; trips { - cpu_alert2: trip0 { + cpu2_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit2: trip1 { + cpu2_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; @@ -401,20 +401,20 @@ }; }; - cpu-thermal3 { + cpu3-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 4>; trips { - cpu_alert3: trip0 { + cpu3_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit3: trip1 { + cpu3_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; @@ -422,20 +422,20 @@ }; }; - cpu-thermal4 { + cpu4-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 7>; trips { - cpu_alert4: trip0 { + cpu4_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit4: trip1 { + cpu4_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; @@ -443,20 +443,20 @@ }; }; - cpu-thermal5 { + cpu5-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 8>; trips { - cpu_alert5: trip0 { + cpu5_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit5: trip1 { + cpu5_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; @@ -464,20 +464,20 @@ }; }; - cpu-thermal6 { + cpu6-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 9>; trips { - cpu_alert6: trip0 { + cpu6_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit6: trip1 { + cpu6_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; @@ -485,20 +485,20 @@ }; }; - cpu-thermal7 { + cpu7-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 10>; trips { - cpu_alert7: trip0 { + cpu7_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit7: trip1 { + cpu7_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; From patchwork Fri Mar 29 10:12:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876757 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 872DB1669 for ; Fri, 29 Mar 2019 10:13:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7546528BE2 for ; Fri, 29 Mar 2019 10:13:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 69499290D0; Fri, 29 Mar 2019 10:13:40 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E77028BE2 for ; Fri, 29 Mar 2019 10:13:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727654AbfC2KNi (ORCPT ); Fri, 29 Mar 2019 06:13:38 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37982 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729292AbfC2KNh (ORCPT ); Fri, 29 Mar 2019 06:13:37 -0400 Received: by mail-wr1-f68.google.com with SMTP id k11so1873659wro.5 for ; Fri, 29 Mar 2019 03:13:37 -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 :in-reply-to:references; bh=7Xe7EiqZq0M1Qyy2HtL4P1xMmE3v1eI2RJwikfAYNmQ=; b=ssaX2K4+U8rP7Q0pUqz/wu/qqNVlJBHWFdV4egfy2k2mRv2xucCpxxCRAGCcL8+Wzw SLMh/yNAYdd78yj4chO0L9Pv3OuiKQgS9ndmefToa6SECQ++tYmdCogLBYpsJcoDwTvE WGIq4zSI606OVoGUogBr46guvmnbcZIWDbmA4dopKQwx/d8tjuyD3uM0TmnugnP7bt+v E9Y2Kgqr9VB59WnRnzEO67oCL4KhUwy1H85pOthhyjF9QdVCwUDA+0VUXGnWruz2q/s+ 9A3sRN0cjaeV2ULaiGz9S/vVsG/ntpLMKfufDPzXoB4vpJ+z8t6JEW0gmmsdmjgKPooR qLWQ== 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:in-reply-to:references; bh=7Xe7EiqZq0M1Qyy2HtL4P1xMmE3v1eI2RJwikfAYNmQ=; b=OLHqNfWgPL/YRJ++r+o0SClD9nUzmnuRwPpLlm4P0dx3adGonYfWw6Sa1vDyjOXRMG 7aC4H1cw3b1v4xb/m9ENciLyPpKdvpkeVjuvXlCY7fwVSe88d7t6IVyx6ugGDjJBalku 563skFdtr7TixUl5u09U85extUiExgbZJI2l5Y7cUdehBBQqPaqdQ/Y54JSpsVS1GZIe SRvtw5q6p8u1Xo2dogoivK1ktOoNV5MZ50tYXDqSI1TaK9wA/ScJJ3ezWDoHmH/XW+ft KUehUjraMlrrKRe+tfkKXKuEUj187vkJF0Ro/EURSoVyHrhL9kGijtw6b3pg70GtVRhn 37mg== X-Gm-Message-State: APjAAAVKYKSqhJg2900Lp3XKcU82yfqTpmWEVSsNDG8Gzmeu9PgFwt1J Oo/pbMSn3a5bKwdMds/T/giY7CyqyMk= X-Google-Smtp-Source: APXvYqxEPuNMZA2EZDE/DBYQwT/FVDcTcO2WDZv5VIk2yd4cFRqC1bONiH8jqWEMSItLbQLGXPZwSw== X-Received: by 2002:adf:82f0:: with SMTP id 103mr30601778wrc.260.1553854416276; Fri, 29 Mar 2019 03:13:36 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id n189sm2557811wmb.28.2019.03.29.03.13.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:13:35 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 11/13] arm64: dts: msm8916: thermal: Make trip names consistent Date: Fri, 29 Mar 2019 15:42:17 +0530 Message-Id: <83bd84ec3a4ed9c4758f1c9bdf5168048e1f3b39.1553853990.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Maintain naming consistency with what was landed for sdm845. Simplifies parsing for test tools. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index c8aa9a0986d2..ea734b98ec96 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -180,19 +180,19 @@ }; thermal-zones { - cpu-thermal0 { + cpu0_1-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens 4>; trips { - cpu_alert0: trip0 { + cpu0_1_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit0: trip1 { + cpu0_1_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; @@ -201,7 +201,7 @@ cooling-maps { map0 { - trip = <&cpu_alert0>; + trip = <&cpu0_1_alert0>; cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, @@ -210,19 +210,19 @@ }; }; - cpu-thermal1 { + cpu2_3-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens 3>; trips { - cpu_alert1: trip0 { + cpu2_3_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit1: trip1 { + cpu2_3_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; @@ -231,7 +231,7 @@ cooling-maps { map0 { - trip = <&cpu_alert1>; + trip = <&cpu2_3_alert0>; cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, @@ -247,12 +247,12 @@ thermal-sensors = <&tsens 2>; trips { - gpu_alert: trip0 { + gpu_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - gpu_crit: trip1 { + gpu_crit: gpu_crit { temperature = <95000>; hysteresis = <2000>; type = "critical"; @@ -267,12 +267,12 @@ thermal-sensors = <&tsens 1>; trips { - cam_alert: trip0 { + cam_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cam_crit: trip1 { + cam_crit: cam_crit { temperature = <95000>; hysteresis = <2000>; type = "critical"; From patchwork Fri Mar 29 10:12:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876761 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AA1711874 for ; Fri, 29 Mar 2019 10:13:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 989F528BE2 for ; Fri, 29 Mar 2019 10:13:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CCCA290D0; Fri, 29 Mar 2019 10:13:45 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3484428BE2 for ; Fri, 29 Mar 2019 10:13:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729316AbfC2KNo (ORCPT ); Fri, 29 Mar 2019 06:13:44 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:55328 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729314AbfC2KNo (ORCPT ); Fri, 29 Mar 2019 06:13:44 -0400 Received: by mail-wm1-f68.google.com with SMTP id o25so1891511wmf.5 for ; Fri, 29 Mar 2019 03:13:43 -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 :in-reply-to:references; bh=WwtyREvJ+UtkrXa1gre5M7056T+QmrB65TrvTpb7eZU=; b=gy0e/+kAyAeoBpJjObYYpyULNweOvtWOxFHJJ09TxHS66FQh0TLnslQAhXzAEyDAnF 38lwaBzZPSTRzkN+dplRa3t1JHqJi5MAwTRP4SchhTVXhGiwwIhgLgNzZARe4xWcrhKz qn35XRc8hVaTXhWb/0BL4CCyRpPmDQpIq8WgshN4cwzaAAtYJEN90PAwHpO4soo7Suq8 2dihz+d/duI35s9NixSWajP4EU5utM4iD8NMZ67dc2DbYfQFoxVuTIh83a+zByKp5xgT Nz2lHwlJ/P8uJ/nt6+Oz3RcGmARXxQQAO+9gow/zVUAokEiHTYp23bLEI+/+85lYjWoi 6erQ== 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:in-reply-to:references; bh=WwtyREvJ+UtkrXa1gre5M7056T+QmrB65TrvTpb7eZU=; b=jAziJOjJbwiV8qN+kEdAlGGo5ieqVCOyWOdzEMIWOYqFyzzt9SZguuNvxDdmomTAj7 pzkDzH86NANjUVVrtEC7U4+WeWvo/qOTSnru9beva6qI7lAZdkAbE6LUjeMxh4dLtwte T+i4KejT0j1NBRD0hqZ9jfdAIvGKV3qtCU2aaLM4/rqf7aXQc2F/V2jbz7mb8/HLZf4c L+wUENZxu/CoV1VT8RtIUHAfzeOCkEX/bRW8sCwEO7bKvjbFY8x/iM3dQs1foOe4WGOp wIRcFjDpGqW3gzA9QOba0bqmgAZuIZnmL7Sjg9hps8HQFHQy0ZznaldLiOpiGgqEYtQm EhSA== X-Gm-Message-State: APjAAAVccFp3Ja9xOoJ2apURPmaduwhc8stD0nwB8iMSvfyL9XRCcF91 G4q8azmwmD3jyLU3GGQU4CfBC6Tq3ZM= X-Google-Smtp-Source: APXvYqz3ZVEx3eCq5XN4xn7apppn8Tb1HTJtoUYJ/u6JQJcBvscHtXK/snO/IvJcnZ1OZjLqpjKTCg== X-Received: by 2002:a1c:c013:: with SMTP id q19mr3006025wmf.148.1553854422346; Fri, 29 Mar 2019 03:13:42 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id n1sm1404943wmc.19.2019.03.29.03.13.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:13:41 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 12/13] arm64: dts: msm8996: thermal: Make trip names consistent Date: Fri, 29 Mar 2019 15:42:18 +0530 Message-Id: <659854a32b8a92ae564e0f2b08d962d9002a033a.1553853990.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Maintain naming consistency with what was landed for sdm845. Simplifies parsing for test tools. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index e2408ee91184..edcddc74a4fc 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -154,20 +154,20 @@ }; thermal-zones { - cpu-thermal0 { + cpu0-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 3>; trips { - cpu_alert0: trip0 { + cpu0_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit0: trip1 { + cpu0_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; @@ -175,20 +175,20 @@ }; }; - cpu-thermal1 { + cpu1-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 5>; trips { - cpu_alert1: trip0 { + cpu1_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit1: trip1 { + cpu1_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; @@ -196,20 +196,20 @@ }; }; - cpu-thermal2 { + cpu2-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 8>; trips { - cpu_alert2: trip0 { + cpu2_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit2: trip1 { + cpu2_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; @@ -217,20 +217,20 @@ }; }; - cpu-thermal3 { + cpu3-thermal { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsens0 10>; trips { - cpu_alert3: trip0 { + cpu3_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit3: trip1 { + cpu3_crit: cpu_crit { temperature = <110000>; hysteresis = <2000>; type = "critical"; From patchwork Fri Mar 29 10:12:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10876763 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C442B1669 for ; Fri, 29 Mar 2019 10:13:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B183B290D4 for ; Fri, 29 Mar 2019 10:13:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A597B290D9; Fri, 29 Mar 2019 10:13:52 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A177290D4 for ; Fri, 29 Mar 2019 10:13:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728774AbfC2KNu (ORCPT ); Fri, 29 Mar 2019 06:13:50 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39891 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728784AbfC2KNu (ORCPT ); Fri, 29 Mar 2019 06:13:50 -0400 Received: by mail-wm1-f68.google.com with SMTP id n25so2109153wmk.4 for ; Fri, 29 Mar 2019 03:13:49 -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 :in-reply-to:references; bh=Nh0o7w+Yt9ud7+T6lHPtFI13Y0R7ShnQgi+aiu0VS3Q=; b=ZGFrmr7zZI0jIM9pHHSJelJtWGPZIU0l0RAciOHkHM1DjuIM6iZmobVUiIXoWPsOpX e9uwfcKiOwD1A2+NKeqetExfxWJbVjbKmJQ88BETyDe6d88gS0Z1MdRUzFI4DIIYxLBN 7rrdZApkc38NWlFElPDFVr272rtDux3HxDyX4WoFwhQlUw7xQlg3tkGjkZzF6kyfO5PI ov9WKuj3MZ/G5A7duSglQTPfSWZMAPclvk752DT4g+iPWo/H8zU7ifHlQt7WyGAu5Bn7 12/hhoUxguTqZpftfdGWIzQnz+L+GcoL5P2VNCnfBX3kewA/O4Y02YyETikhcJpDpaQh Eg7g== 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:in-reply-to:references; bh=Nh0o7w+Yt9ud7+T6lHPtFI13Y0R7ShnQgi+aiu0VS3Q=; b=Brkhgc8fn4Y03cjmSL+8dFxs1HlOGGcU74BptBz5ZmQvaxWHdhK5yF/OU9OQitzj65 VehuuE5Db/vcEjFMV7OiYvFCmYPsvyPvHAJKTcwlmB/Ljob/wLmoe+0+eHqJbCfa5lVI Duz4rCYTELzS8W225DKH8KK1rXWcQ73/v9xqB0xea4DJcBCuhnIfxS+ttv62tv3qF2N3 z2/5Da5PFQWeE/5OEsCckhwC6ui1bga6fCAyG2/Q5YSz39ShTSP+hRdMtlL1QBwiaJ1C HnELPQXEX6vaW07/b1wfjTrxcOPbWHhCN8yfeJtR9IKYBcLB2WzYdkjxDqeufoMrIMkc 6Uew== X-Gm-Message-State: APjAAAVnkhTRgQXM8syfwhKBy0AgsieHpqCUIKo/LrX8yonZn9ZPUCBV PPHirWwNhSprCwEtQGvU4SNQfQ/3IFc= X-Google-Smtp-Source: APXvYqx3luLhX/jjPh24NdBSkw8j7xg6LIjb5h3KIj1p+cD/utAHRzRETOmRHrjL8LcTux5rNe5h4A== X-Received: by 2002:a1c:a7c5:: with SMTP id q188mr2990714wme.126.1553854428681; Fri, 29 Mar 2019 03:13:48 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id n189sm2558433wmb.28.2019.03.29.03.13.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:13:47 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 13/13] arm64: dts: msm8916: thermal: Convert camera trip type to hot Date: Fri, 29 Mar 2019 15:42:19 +0530 Message-Id: <86fe318aa10e4fa967b88cf1d0a728271a54613e.1553853990.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We don't have any cooling-devices related to the camera. Use the "hot" trip type so allow the temperature to be exported to userspace and remove the "critical" trip. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index ea734b98ec96..e4b1010f70b6 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -270,12 +270,7 @@ cam_alert0: trip-point@0 { temperature = <75000>; hysteresis = <2000>; - type = "passive"; - }; - cam_crit: cam_crit { - temperature = <95000>; - hysteresis = <2000>; - type = "critical"; + type = "hot"; }; }; };