From patchwork Fri Sep 20 21:52:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 174161 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3031903ill; Fri, 20 Sep 2019 14:53:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPVa31pEiQvvgbgkhRifTkZv0m2PbKx9jSBX+4oZ9YvJYfUj3p31wckdEBUtZtSFUvcJYJ X-Received: by 2002:a17:906:7d0:: with SMTP id m16mr8148222ejc.95.1569016382961; Fri, 20 Sep 2019 14:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569016382; cv=none; d=google.com; s=arc-20160816; b=cyECh2I8/+V8JgJqrMQOlaQbwjuYJ6qIZGV4W37CcS2oDc8/td46h93ewZSDqmManx BbjHVVb1B69sItcogbGPLoJEBEfOm0lbE5N64N87BlE8HMJFAvUvkXc/0TbObI6eNP1A FIJOLklXCi8gnA846d+PormjLRFT+2wJ7WpD/jqprJ85bos83MviSV9CLOPLrPqmEPn4 BleKLhQTncxuVv8m7JOYPw1FUyAYF3ScH97u0ICFO4QIwJMtjQs0v3jLy+Qf8FqIT7KA QBsn9DOgNUPvjGT7Spft4a569y9Ow9TOSAaeDImTqqzcNwOQzaLnsSOXS2VbFg3vmRT/ yEcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=lIlDkOFMtaJ7NzGQY3181qnj2S+zXBje3XXKns63Nkk=; b=fRdCDVo1NvQnTVz6gMokZLQ1CUExOs6mZasVmKe6CHqlwGfwfAymZzHtaRs2VqqvoQ eaSlJS6ov6MvJzqepaRWcOHTmJV6xnias6us8yTN11lPDchvmQH8llydZP0D4OLZUPHf BzLastCZBLI9myIFkJZ82O9GNPf6EPR68C1vz2780zEN0Zh9+5ap/zPYGfLYwoq7+GF6 6gJktWSAxi6kAZB0wL+PllN1Hk4H79vvEFBpJWr3VUMkjygqc40nauLzVZipf8o7503u QiYMIRLy/uunLNQ9s9mg1X8URBpwkWZnqF1Stn63yzFeBJfDr7gH4ZUHwc5BigjaUqqa mlcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iLk6M9yo; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si2307963edb.159.2019.09.20.14.53.02; Fri, 20 Sep 2019 14:53:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iLk6M9yo; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729570AbfITVw7 (ORCPT + 8 others); Fri, 20 Sep 2019 17:52:59 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:43321 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729056AbfITVw6 (ORCPT ); Fri, 20 Sep 2019 17:52:58 -0400 Received: by mail-pf1-f195.google.com with SMTP id a2so5384297pfo.10 for ; Fri, 20 Sep 2019 14:52:58 -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=lIlDkOFMtaJ7NzGQY3181qnj2S+zXBje3XXKns63Nkk=; b=iLk6M9yokg2PkAgWyqROr8nxnJojb8gm8FvZzMzGXzg28At8IShyjre9xcrGdm6M2l aaIr3ioIJ5KFHusyGuHAsmPKQX0ZHrPeQk2T1OsTitUuVQDqju5Ho+tCMsIvwKc+cCsw vCye5kDnlhHiexDE+3NGSyUkNX1MEqAXkZwZXk4czgRLnS/BHSnvtuF3fHdLW8Ao2ojV 7cg8EQA+BT4JxRE/3/tZXPyZis4yZs75H4Sk8+K8jK1q8l0bgRA5XIYoozP4GPbDJrnr zjbe08kYOWg8IPyKxIr5yulX8uZUiSmcJF9/rkQfo2zLD9ZLIl0Huu0zoIdLlPkHajyh ZM+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=lIlDkOFMtaJ7NzGQY3181qnj2S+zXBje3XXKns63Nkk=; b=nZs/vS5qsjkyu6XEC6TRpkDN2JHcNFzHNlhHS7c4DK+JHdrb9P0ordXz5wG1D9c6s1 rYmOAnGNI4fE6eK1gN9jc4ZP8aHtfSPoTyuoG+13l5pjBJHoEqLg2xkfcGyF5zvjvldv YiTDjfXDpeAny92JtAfNbhlH6RHpbZ5yW6OmtgPU0EnkZM7D0no2fLp3NOLgC09VNm+c qrzWk7sXWdvc9uTZ9RJeffAISrAPFRxFS+/7IU9WoaNaekfP+mlgrsLIPBxHL/QcDctm EeQRAXPShl51TlP8aLp1Q0gmWmf4IMeH1ivMdKTsj4ztIIT81i2cYoh4Nr6gPHbFfjr1 ykUg== X-Gm-Message-State: APjAAAXuHK62zLptsZ8vtQSQ2LgKTc5C4lk1apWCtxs+ijsJoO75NLCR /hb1/1PfguPLJ2AG00DlNnaEXg== X-Received: by 2002:a63:fd42:: with SMTP id m2mr10075685pgj.233.1569016377723; Fri, 20 Sep 2019 14:52:57 -0700 (PDT) Received: from localhost (wsip-98-175-107-49.sd.sd.cox.net. [98.175.107.49]) by smtp.gmail.com with ESMTPSA id 2sm3413281pfa.43.2019.09.20.14.52.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Sep 2019 14:52:57 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, masneyb@onstation.org, swboyd@chromium.org, Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v4 08/15] arm64: dts: sdm845: thermal: Add interrupt support Date: Fri, 20 Sep 2019 14:52:23 -0700 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Register upper-lower interrupts for each of the two tsens controllers. Signed-off-by: Amit Kucheria Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 88 +++++++++++++++------------- 1 file changed, 46 insertions(+), 42 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 4babff5f19b5..fdd74c39b744 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2386,6 +2386,8 @@ reg = <0 0x0c263000 0 0x1ff>, /* TM */ <0 0x0c222000 0 0x1ff>; /* SROT */ #qcom,sensors = <13>; + interrupts = ; + interrupt-names = "uplow"; #thermal-sensor-cells = <1>; }; @@ -2394,6 +2396,8 @@ reg = <0 0x0c265000 0 0x1ff>, /* TM */ <0 0x0c223000 0 0x1ff>; /* SROT */ #qcom,sensors = <8>; + interrupts = ; + interrupt-names = "uplow"; #thermal-sensor-cells = <1>; }; @@ -2712,8 +2716,8 @@ thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 1>; @@ -2756,8 +2760,8 @@ }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 2>; @@ -2800,8 +2804,8 @@ }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 3>; @@ -2844,8 +2848,8 @@ }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 4>; @@ -2888,8 +2892,8 @@ }; cpu4-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 7>; @@ -2932,8 +2936,8 @@ }; cpu5-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 8>; @@ -2976,8 +2980,8 @@ }; cpu6-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 9>; @@ -3020,8 +3024,8 @@ }; cpu7-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 10>; @@ -3064,8 +3068,8 @@ }; aoss0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 0>; @@ -3079,8 +3083,8 @@ }; cluster0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 5>; @@ -3099,8 +3103,8 @@ }; cluster1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 6>; @@ -3119,8 +3123,8 @@ }; gpu-thermal-top { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 11>; @@ -3134,8 +3138,8 @@ }; gpu-thermal-bottom { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 12>; @@ -3149,8 +3153,8 @@ }; aoss1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 0>; @@ -3164,8 +3168,8 @@ }; q6-modem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 1>; @@ -3179,8 +3183,8 @@ }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 2>; @@ -3194,8 +3198,8 @@ }; wlan-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 3>; @@ -3209,8 +3213,8 @@ }; q6-hvx-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 4>; @@ -3224,8 +3228,8 @@ }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 5>; @@ -3239,8 +3243,8 @@ }; video-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 6>; @@ -3254,8 +3258,8 @@ }; modem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 7>;