From patchwork Mon Oct 21 10:35:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 177046 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3223989ill; Mon, 21 Oct 2019 03:36:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLeLFnCewJ1Zm0lUvxJ+xFs41Ww6560PTbok6j+NeS7oZO1OC0uFcr53Wo13JaK5g3xUT/ X-Received: by 2002:a17:906:2319:: with SMTP id l25mr21368525eja.309.1571654162086; Mon, 21 Oct 2019 03:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571654162; cv=none; d=google.com; s=arc-20160816; b=oWyzs4bg7hyVMqYGMMOdw1Tc0NKvPzlLAZ5JsDFicJoGot6Awxt1A9xlcDTiNLv6dg nyShJxLyi327uNr0MxU43Ql22RTwtur1iKsJUrSsDO2SSUDUOUDt1NFKhxyi7/I/zNoq 4JRFpA09tJKzj8FDRn1C2FrbavAFaim+xv3+VCuxfZaeXFuF1CkNsgClSDoF3qZ1MyTz 2PCQSgXXlRKeVQrmYzEjRi233lAA0mfg7c+Lq5ydgugg3lrl4Da17+R1qYEQdjb+yIdx LhtHcoYJMwwD1NOnO2SIKzqfe7ZIFgpKG45FJqbzMpu4IJL/kPiCYQ2aev8E/uRwJFST a1qw== 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=cUh1ZeV5zyjcsg3Iod3jbARGXcyJz+PpaHp2DpcKIvo=; b=KSy0VP3YBBKT3Z+Oe181KSeVeIZP86xm8i1QV5RQ+DXeqsPcUQUuzICeDhK1bJi6n5 ij9HuboseyZS37L9LlV+FyPbSEO5Z7PG7NqVvX301osF7sECvOEB8rO65YIJmH2UbS7X ctFMwgZcYUPAu3R+GIzIBVNwP0uZPCsv5huDkaXN8zhVRjPd1Tui/BX6zOqrRjQMH3q/ 1mdW7BuoBXmtmryD/fSF4XrV+bt1l9Xi2xqR/0i1QNIV+gOmu9+l/Z+ZSaKcd9YOtEKq yZZ8GFXcXRf8bDPfDzIhw+GoGIDIfu924fsNvb9kula1GH7RHoEadyLAkYSK3VvigNrn RPCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GB/iNLsV"; 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 d17si8759892edv.76.2019.10.21.03.36.01; Mon, 21 Oct 2019 03:36: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="GB/iNLsV"; 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 S1728271AbfJUKgB (ORCPT + 8 others); Mon, 21 Oct 2019 06:36:01 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40246 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728212AbfJUKgA (ORCPT ); Mon, 21 Oct 2019 06:36:00 -0400 Received: by mail-pf1-f196.google.com with SMTP id x127so8169885pfb.7 for ; Mon, 21 Oct 2019 03:36: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=cUh1ZeV5zyjcsg3Iod3jbARGXcyJz+PpaHp2DpcKIvo=; b=GB/iNLsVk+ApucmOndcOCjbvj0CgYAqzijKY5FGCBUbaN+U/kVWyXWHbkpG7BSggYp f6IbuQNNH5x5j+409JsPqM3ZQJarU5yMHogMhB0PyoyaikyLZmvxEEFHMiSBDwnffIZO WpvIzsaXwYEBhjSwBfaeE2vmVUoU73KJFSPVsLn90WenyvhMqiwWhbDif/QJuCDnGWc5 QgXpc2EGiPmug9U5kBGw8Ffwt+Aim18NdbY+U0BbBw/UwfYMUdtjT2C1unkOxVNPrF1x db8UIVOYhkcOd4txq4pUd3AbSig2rXuqT4iyIRnPiEhWEDPRWyMaVBApa3utcJEO4DMQ BXUQ== 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=cUh1ZeV5zyjcsg3Iod3jbARGXcyJz+PpaHp2DpcKIvo=; b=R9IsYOeoQW/DYJ/EiNaqepj4MDfCPWV4AOhwISxv1kQPiRV7d949elEzzbrXskIzqH Cfsxa9L6RSp136hfuMI0okuwWS3h6os8jgWtpx2qRuVlIhR9lrO/kSRKkMW60MoexuCM +M5MKYNFqbzRA4hJ/3nTlcZyjaovzr7s/FeJbiHL21Bpz75T1p2MDDhAM6ntzL714bGo AKXeMQfR35wTbgBbReiX3vVNYADmmliwH+uGUrRRvnK4wf+m88Xuegr3/cnIhHxVoOCX wyVrvT42TLAE+AifO5gunG8eCRxN6lL6MZWtvtl+bT70cFWniffjh2ZLNzZJF3RpPjn2 ksGw== X-Gm-Message-State: APjAAAUA50kXvIOX7MACRy0XfkH2g0KGYm+RpEBT64B1vKk6J+nnbSBY Oh6reBuGSxZOjw6l5yxPVZX3qw== X-Received: by 2002:a63:934d:: with SMTP id w13mr6975734pgm.185.1571654160053; Mon, 21 Oct 2019 03:36:00 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id e14sm15420515pgk.70.2019.10.21.03.35.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 03:35:59 -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, julia.lawall@lip6.fr, Amit Kucheria , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v6 05/15] arm: dts: msm8974: thermal: Add thermal zones for each sensor Date: Mon, 21 Oct 2019 16:05:24 +0530 Message-Id: <72cc755c16888976edea555f1df60a299daa8a1e.1571652874.git.amit.kucheria@linaro.org> 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 msm8974 has 11 sensors connected to a single TSENS IP. Define a thermal zone for each of those sensors to expose the temperature of each zone. Signed-off-by: Amit Kucheria Tested-by: Brian Masney Reviewed-by: Stephen Boyd --- arch/arm/boot/dts/qcom-msm8974.dtsi | 90 +++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 369e58f64145d..33c534370fd5c 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -217,6 +217,96 @@ }; }; }; + + q6-dsp-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 1>; + + trips { + q6_dsp_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + modemtx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 2>; + + trips { + modemtx_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + video-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 3>; + + trips { + video_alert0: trip-point0 { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 4>; + + trips { + wlan_alert0: trip-point0 { + temperature = <105000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-top { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 9>; + + trips { + gpu1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 10>; + + trips { + gpu2_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; }; cpu-pmu { From patchwork Mon Oct 21 10:35:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 177047 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3224081ill; Mon, 21 Oct 2019 03:36:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZzDIY/zBwBBJDoS8/LlnOJQ9PzOXOzER9qsrm8Nw+KIMr+Tcjs3WZMUs55+Dwe7nZl4hr X-Received: by 2002:aa7:d1ca:: with SMTP id g10mr24236592edp.156.1571654166165; Mon, 21 Oct 2019 03:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571654166; cv=none; d=google.com; s=arc-20160816; b=big0dWWR8FhajAIk2N3C2UfCrx4QAzdq04LvKnftx+U7ysMYVSOZzdsotAw4ICWFFd Akbsre/7m4Rlu3c24cKXv8WnTu0JOxKbeAq6NORd9KQpuIdEDI2ihQ+1XO7RuIQpJkA+ 1lZ1E6oEgaoOEI7bBorCdxnEQWOoyZQO13Yal4AOajzh+rs143axuk6GC+oI+q5DsmgK 9KlIdr4KfYg7q2ekd1lljrHxXwq2cL296RaPFokWpzVc77UfQ/utwjkj/uLHYTor2BnV DjeerDl8mVHx7rJomLj4p5e766s+STlVL087RJT1vdudOmpop+ailPD+Z9l20H6w8c0Q z+uw== 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=yL7Qj8/ghjeqWsofoPv2csuJJiKJS+BI17hOcKQw/eM=; b=SMvEw8AxkjbiTgrHjZb9PdWjRSqsyf5PgRpH702Doer8AzzSO6FKHwSlOFPKo8eMxv kSuLBrvTDRLQGaAqxk6nUsl85Q7hyeXCBJZnec/um4kA7GTcIr7MEcQsOWPKwGJCX+Fx Cua7YegEOW3mw7UpLLwwOSojSBG1b602lkaxgQgOhI+6mxVR/mhONd/y/fsXR6rGK/Cy 3Mh5oJY+puD8O0EyeF3g93ELyojpJs/FuqLWjfFdj5Uvc19ZVrEefqKiwwUXMvxdggLh 3kyZCjnkRrg9csC7cg44uzLZ5CsWkXJj1yskAq/IGPODAZJR/pOPS1N8RnraaB0151s0 KMdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MUTwTSiG; 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 k23si8526331ejc.51.2019.10.21.03.36.06; Mon, 21 Oct 2019 03:36:06 -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=MUTwTSiG; 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 S1728294AbfJUKgE (ORCPT + 8 others); Mon, 21 Oct 2019 06:36:04 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:38255 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728287AbfJUKgE (ORCPT ); Mon, 21 Oct 2019 06:36:04 -0400 Received: by mail-pl1-f194.google.com with SMTP id w8so6423205plq.5 for ; Mon, 21 Oct 2019 03:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=yL7Qj8/ghjeqWsofoPv2csuJJiKJS+BI17hOcKQw/eM=; b=MUTwTSiGPdDBbvXmQKHZ9DYnyo8AkHQ6po0q7qSA0A63lmxlrWVYQVW6dQ+0gCiH3m sYL/hBJQD3b3uapKL8Sdcbls+DjVmN3NC1dDncnZEGI3csHkBuekxHMaXDct/MQrcf5f WMvKbQj/u50owK5QeuO/W1L6PtHynq8RaHyJsZcWj0aS1eeZ4/paNOf7Kc0aygVABnlf g93iKUL7pkhiML2CJeV2sdtTk28rK37GI/eNQgVzwIcG5h/vDdCDqslmp45Zc0uTHWYx iKUWFq0nPT/RIx7y3mE8kyqJQ2gGmiWyhGjUhXsPdUjJTI8qdQv+jd0fr2QfD92hGHaE WfIQ== 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=yL7Qj8/ghjeqWsofoPv2csuJJiKJS+BI17hOcKQw/eM=; b=qSyA5vlNXTAWrpnDn3XsAVTCSlRb7kemivT56iuJs2Bn7gJLFbWIkY//w6b+ePeFD8 MsvqIFwXy0LPLZad8dp0bC4xaZFmToChYgy0jslKWS68RvJFXNXZEg7rvCtaBfzRp1l0 nyBKeMHSHP6MsADIwaBU+6Xw/r66VBn0qqcQvDh3lZKB5pc7Us0+DOfIuhxa5zCOgTaL Oun0Ab/ocNtYl95eDguU4M1lxmR7oANkJ5pERrnG8AtO+xpedtWS1JVhW8EgG9Kj8lbM O34JDpdfc1vo8MAN0RzF7gdJai8U+z+7SVGYw4gtZIzB4c7JkfSgaJciYMYbTtxa0Ipu wGFQ== X-Gm-Message-State: APjAAAW0sYoYvDi47HmbDe0Ugh//errjjjnbsDHkODnpkSj3ybTd7vIS tGLYE0kQBY8yKMcaDxxk8kWBxQ== X-Received: by 2002:a17:902:6acb:: with SMTP id i11mr24852585plt.16.1571654163559; Mon, 21 Oct 2019 03:36:03 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id y15sm22091643pfp.111.2019.10.21.03.36.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 03:36:03 -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, julia.lawall@lip6.fr, Amit Kucheria , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v6 06/15] arm64: dts: msm8916: thermal: Fixup HW ids for cpu sensors Date: Mon, 21 Oct 2019 16:05:25 +0530 Message-Id: <1726fdbf7cf7200ac5dc2a4c811aaee7edc47fd5.1571652874.git.amit.kucheria@linaro.org> 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 msm8916 uses sensors 0, 1, 2, 4 and 5. Sensor 3 is NOT used. Fixup the device tree so that the correct sensor ID is used and as a result we can actually check the temperature for the cpu2_3 sensor. Signed-off-by: Amit Kucheria Reviewed-by: Daniel Lezcano Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 5ea9fb8f2f87d..8686e101905cc 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -179,7 +179,7 @@ polling-delay-passive = <250>; polling-delay = <1000>; - thermal-sensors = <&tsens 4>; + thermal-sensors = <&tsens 5>; trips { cpu0_1_alert0: trip-point@0 { @@ -209,7 +209,7 @@ polling-delay-passive = <250>; polling-delay = <1000>; - thermal-sensors = <&tsens 3>; + thermal-sensors = <&tsens 4>; trips { cpu2_3_alert0: trip-point@0 { From patchwork Mon Oct 21 10:35:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 177048 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3224216ill; Mon, 21 Oct 2019 03:36:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLkWUQPzaxqKWl/oUp0/JO4o0OPEMifTw3rm7cJB0wvclXtGUrFu//ZQSzy0MunOaatyk6 X-Received: by 2002:a17:906:49d8:: with SMTP id w24mr21285199ejv.264.1571654172212; Mon, 21 Oct 2019 03:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571654172; cv=none; d=google.com; s=arc-20160816; b=sPB5WgwyCf5BKPU1xy6zTnkiwpWzVO3ZYYQXqjxvk0vNckv9Ick9pXS1uy/Dl78cm5 z9HXjtXYoCzBPGqhHxP/uG7H4QF1Vg9obJsAT354E8gdP2cp2EqxIGFTc/mEld0D173z 62DimE+kl+zgEEATMppFG+FspoR5zTV2TUu4ZrGqgzxBK4JpJ4kF6M0Ul2zIzuUv4Nse /53XalmIzo1HemYyQ8DzX127pOPO9VammKYgNOd/KN7kFTGgNgpDh0wQgxYYJ60+utGo K7cLXPs0Mu2Un0g2wNA3ekBBS3F9DmnkKnTk51LeTg+ykuQOT6gsWAbNfGRRDKFQlg9A e+oA== 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=Y1D9GXv8iFsbyUTQXSk3tQ7he1bQJKyJg/Sy93IDnQw=; b=C+tsdl+cnlU/p/jcqp436TA7i/fMvb7XEhjYTU9OWkWkyg29rRUkdwpkvP0UbQaSjx DjSoRaI/1uENMf0QDoLo3dkLh9MKzNelLBVupCwUBcE10mCai05avTX5q4EPuz6+KOZD BqU26XwU+Fa/R4sQRlxTUrY/yUysEpj8DiA7USHpF88KIbqxZsY4ZyXkl6wMQ10/pLR0 mWorVBl0jDRuMjNBAhB+Z/asBPSl3sOK8dh/hlhkBxwyX+iUZKKnpDWXYQmZGgZ12EWl M3WzyCSPiRBpF8Ogs7dPvbwhkdVmbRvIS0C+U+AK5ih4ETG3M6cb+CHJikof9eicgKS/ fGLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LuJceAlT; 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 u8si10105430edb.57.2019.10.21.03.36.11; Mon, 21 Oct 2019 03:36:12 -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=LuJceAlT; 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 S1728305AbfJUKgI (ORCPT + 8 others); Mon, 21 Oct 2019 06:36:08 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34693 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728290AbfJUKgI (ORCPT ); Mon, 21 Oct 2019 06:36:08 -0400 Received: by mail-pf1-f196.google.com with SMTP id b128so8189483pfa.1 for ; Mon, 21 Oct 2019 03:36:08 -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=Y1D9GXv8iFsbyUTQXSk3tQ7he1bQJKyJg/Sy93IDnQw=; b=LuJceAlTyDjs0N0lQ1d6C2rSZI0y9R1ZPC4xAVQ/JuMMFQ27pslP1zgtQNfMVgaI/8 9ZBVChUaUMJJ+hqppareYb5m72AXeMOFYl4DmXifJBBM6LVPf6q7R1/O//NHhwAr161J ucoaBhmxl/QIvLJZ3V+LAViNjknh9OfyPPFEIuK6jFSXjx3m4+cDpchrKFmaLZvrXu74 w6u7FWVCu8Af37t8bbTqdGYMpZPKkgJ5kK33J41K0hDebcLE2hzj09Yiqh7gymOXbBpw qC/cgkbUsG18pGxXZAf0bcu/kponnQPrqaO1fH2F0rWX3x75VXuKMg2+6C7c+/tj9pOY 4eWA== 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=Y1D9GXv8iFsbyUTQXSk3tQ7he1bQJKyJg/Sy93IDnQw=; b=CbHxlia+1mB3UCOqFPeVp6T1gi60wLO74R2l8hqvVwlPkMyVtjuKYyIwthuijGOOYj cP07X72R5qcVwgECbRnQmTfb/aO3T3CQwqFWebz+EN5DSHUR0kexmGy4kUm+bDojhOu1 LqL1RpFTR9rcvfz2/mi0CPsdiWtigRSwQ3SOu689Vsfvmx6+pCcYJdjp3jN8KitT1nVZ T2wHH7vkgxap9kWvru33LyDh2qIAXfFlxtqvVxpZth99BDbi2FS8mALaiy7QPV/zeaB6 b/W/h6AbQugQBaCuVKpE3HWR+JexioXWc8XxsEyYoOXT+FXiyUzDXHON+2slvf1Qmp8i XDXQ== X-Gm-Message-State: APjAAAVMdb58wn7ZKe7kmukka9vg9vuFW7DeflVhlHBpg4cdEAizzDOf rXGE8xZDZwEQFXOKDfw0tQtTeQ== X-Received: by 2002:a63:c40e:: with SMTP id h14mr24850505pgd.254.1571654167287; Mon, 21 Oct 2019 03:36:07 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id p190sm15257278pfb.160.2019.10.21.03.36.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 03:36:06 -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, julia.lawall@lip6.fr, Amit Kucheria , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v6 07/15] dt-bindings: thermal: tsens: Convert over to a yaml schema Date: Mon, 21 Oct 2019 16:05:26 +0530 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 Older IP only supports the 'uplow' interrupt, but newer IP supports 'uplow' and 'critical' interrupts. Document interrupt support in the tsens driver by converting over to a YAML schema. Suggested-by: Stephen Boyd Signed-off-by: Amit Kucheria Reviewed-by: Rob Herring --- .../bindings/thermal/qcom-tsens.txt | 55 ------ .../bindings/thermal/qcom-tsens.yaml | 168 ++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 169 insertions(+), 55 deletions(-) delete mode 100644 Documentation/devicetree/bindings/thermal/qcom-tsens.txt create mode 100644 Documentation/devicetree/bindings/thermal/qcom-tsens.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt deleted file mode 100644 index 673cc1831ee9d..0000000000000 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt +++ /dev/null @@ -1,55 +0,0 @@ -* QCOM SoC Temperature Sensor (TSENS) - -Required properties: -- compatible: - Must be one of the following: - - "qcom,msm8916-tsens" (MSM8916) - - "qcom,msm8974-tsens" (MSM8974) - - "qcom,msm8996-tsens" (MSM8996) - - "qcom,qcs404-tsens", "qcom,tsens-v1" (QCS404) - - "qcom,msm8998-tsens", "qcom,tsens-v2" (MSM8998) - - "qcom,sdm845-tsens", "qcom,tsens-v2" (SDM845) - The generic "qcom,tsens-v2" property must be used as a fallback for any SoC - with version 2 of the TSENS IP. MSM8996 is the only exception because the - generic property did not exist when support was added. - Similarly, the generic "qcom,tsens-v1" property must be used as a fallback for - any SoC with version 1 of the TSENS IP. - -- reg: Address range of the thermal registers. - New platforms containing v2.x.y of the TSENS IP must specify the SROT and TM - register spaces separately, with order being TM before SROT. - See Example 2, below. - -- #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description. -- #qcom,sensors: Number of sensors in tsens block -- Refer to Documentation/devicetree/bindings/nvmem/nvmem.txt to know how to specify -nvmem cells - -Example 1 (legacy support before a fallback tsens-v2 property was introduced): -tsens: thermal-sensor@900000 { - compatible = "qcom,msm8916-tsens"; - reg = <0x4a8000 0x2000>; - nvmem-cells = <&tsens_caldata>, <&tsens_calsel>; - nvmem-cell-names = "caldata", "calsel"; - #thermal-sensor-cells = <1>; - }; - -Example 2 (for any platform containing v2 of the TSENS IP): -tsens0: thermal-sensor@c263000 { - compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; - reg = <0xc263000 0x1ff>, /* TM */ - <0xc222000 0x1ff>; /* SROT */ - #qcom,sensors = <13>; - #thermal-sensor-cells = <1>; - }; - -Example 3 (for any platform containing v1 of the TSENS IP): -tsens: thermal-sensor@4a9000 { - compatible = "qcom,qcs404-tsens", "qcom,tsens-v1"; - reg = <0x004a9000 0x1000>, /* TM */ - <0x004a8000 0x1000>; /* SROT */ - nvmem-cells = <&tsens_caldata>; - nvmem-cell-names = "calib"; - #qcom,sensors = <10>; - #thermal-sensor-cells = <1>; - }; diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml new file mode 100644 index 0000000000000..23afc7bf5a44d --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -0,0 +1,168 @@ +# SPDX-License-Identifier: (GPL-2.0 OR MIT) +# Copyright 2019 Linaro Ltd. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/qcom-tsens.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: QCOM SoC Temperature Sensor (TSENS) + +maintainers: + - Amit Kucheria + +description: | + QCOM SoCs have TSENS IP to allow temperature measurement. There are currently + three distinct major versions of the IP that is supported by a single driver. + The IP versions are named v0.1, v1 and v2 in the driver, where v0.1 captures + everything before v1 when there was no versioning information. + +properties: + compatible: + oneOf: + - description: v0.1 of TSENS + items: + - enum: + - qcom,msm8916-tsens + - qcom,msm8974-tsens + - const: qcom,tsens-v0_1 + + - description: v1 of TSENS + items: + - enum: + - qcom,qcs404-tsens + - const: qcom,tsens-v1 + + - description: v2 of TSENS + items: + - enum: + - qcom,msm8996-tsens + - qcom,msm8998-tsens + - qcom,sdm845-tsens + - const: qcom,tsens-v2 + + reg: + maxItems: 2 + items: + - description: TM registers + - description: SROT registers + + nvmem-cells: + minItems: 1 + maxItems: 2 + description: + Reference to an nvmem node for the calibration data + + nvmem-cells-names: + minItems: 1 + maxItems: 2 + items: + - enum: + - caldata + - calsel + + "#qcom,sensors": + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - minimum: 1 + - maximum: 16 + description: + Number of sensors enabled on this platform + + "#thermal-sensor-cells": + const: 1 + description: + Number of cells required to uniquely identify the thermal sensors. Since + we have multiple sensors this is set to 1 + +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8916-tsens + - qcom,msm8974-tsens + - qcom,qcs404-tsens + - qcom,tsens-v0_1 + - qcom,tsens-v1 + then: + properties: + interrupts: + items: + - description: Combined interrupt if upper or lower threshold crossed + interrupt-names: + items: + - const: uplow + + else: + properties: + interrupts: + items: + - description: Combined interrupt if upper or lower threshold crossed + - description: Interrupt if critical threshold crossed + interrupt-names: + items: + - const: uplow + - const: critical + +required: + - compatible + - reg + - "#qcom,sensors" + - interrupts + - interrupt-names + - "#thermal-sensor-cells" + +examples: + - | + #include + // Example 1 (legacy: for pre v1 IP): + tsens1: thermal-sensor@900000 { + compatible = "qcom,msm8916-tsens", "qcom,tsens-v0_1"; + reg = <0x4a9000 0x1000>, /* TM */ + <0x4a8000 0x1000>; /* SROT */ + + nvmem-cells = <&tsens_caldata>, <&tsens_calsel>; + nvmem-cell-names = "caldata", "calsel"; + + interrupts = ; + interrupt-names = "uplow"; + + #qcom,sensors = <5>; + #thermal-sensor-cells = <1>; + }; + + - | + #include + // Example 2 (for any platform containing v1 of the TSENS IP): + tsens2: thermal-sensor@4a9000 { + compatible = "qcom,qcs404-tsens", "qcom,tsens-v1"; + reg = <0x004a9000 0x1000>, /* TM */ + <0x004a8000 0x1000>; /* SROT */ + + nvmem-cells = <&tsens_caldata>; + nvmem-cell-names = "calib"; + + interrupts = ; + interrupt-names = "uplow"; + + #qcom,sensors = <10>; + #thermal-sensor-cells = <1>; + }; + + - | + #include + // Example 3 (for any platform containing v2 of the TSENS IP): + tsens3: thermal-sensor@c263000 { + compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; + reg = <0xc263000 0x1ff>, + <0xc222000 0x1ff>; + + interrupts = , + ; + interrupt-names = "uplow", "critical"; + + #qcom,sensors = <13>; + #thermal-sensor-cells = <1>; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index a69e6db80c79e..c4df814b87b0d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13513,6 +13513,7 @@ L: linux-pm@vger.kernel.org L: linux-arm-msm@vger.kernel.org S: Maintained F: drivers/thermal/qcom/ +F: Documentation/devicetree/bindings/thermal/qcom-tsens.yaml QUALCOMM VENUS VIDEO ACCELERATOR DRIVER M: Stanimir Varbanov From patchwork Mon Oct 21 10:35:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 177051 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3224346ill; Mon, 21 Oct 2019 03:36:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCvrKiIrzzxvQpR41BvCQmsRg6gNDJdBsdWNpiB/bwqhAdPJ1TweToF6jX2ziDOPXfDoVH X-Received: by 2002:a17:906:68d5:: with SMTP id y21mr21268778ejr.272.1571654180822; Mon, 21 Oct 2019 03:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571654180; cv=none; d=google.com; s=arc-20160816; b=s2rlevRlhJd0Qqnp4WljlcH/L5wLQi0d0iFreSwupleTBEL9/dOolQkpGjWJkiLr5t H5v3qc1dtLa51sSLCX8zRmllBPYAXY02riUswzwhDRDXZymUIg7iHuUfoCQMGRBr77SX 5ibK65YRbYNT5kzJ4PZeg/0BDn+/WgUjtSOssSiE1qaI0MKwiXqjPWc90Zzz9GiZhwCH vX0UBfESU8g1SJh9JZ8/FKGsEyOyi4St9lMK43udWh6ey3ZkW/3MnPUkzMZK78qbOKmc qlgEE2Il3i2L4yRt1Lo9Q1givRo3+hLB+9SL4LmU0hch0R64oJmvr4gi3Ja0B5HFk4se WBOA== 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=QjsxaA91mEwEtCjMqajdkCWO8TyKKmvK1rye+wLjlGg=; b=gCPUtknJ5fDeNK4Th529+ZogwShTCnKpnOTNr8gOYZRnSbfhIeqWg08DsoyFNYNPnw ruKgJN6qOarFjlWJjiNExPCHILvKA0S0KMSasIaLMX6EUps6ZRbD2fT2wwpf0KatKfrR 4XRmZM/RmRpyuLGqNo3/roBe0XIJhXT0sNRhNuatwQW75xp9aroJxGEqCNMjmpXtUHxT SiOILqSvJzPoNwO5fcVtmD3Mb/0w5FzSLwxb0BmVrrGnxHIH8yikozYxpJoC90Co4UMZ wt9EcLtsIWyaADTtD2JB+oHTk+mhRHrOJ6eiLnJgqFBq6qnzerbb0VwFyZsNzrTPzdRd 58Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m844zhng; 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 hh20si2079339ejb.95.2019.10.21.03.36.20; Mon, 21 Oct 2019 03:36:20 -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=m844zhng; 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 S1728344AbfJUKgU (ORCPT + 8 others); Mon, 21 Oct 2019 06:36:20 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:34710 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728335AbfJUKgT (ORCPT ); Mon, 21 Oct 2019 06:36:19 -0400 Received: by mail-pf1-f193.google.com with SMTP id b128so8189797pfa.1 for ; Mon, 21 Oct 2019 03:36:19 -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=QjsxaA91mEwEtCjMqajdkCWO8TyKKmvK1rye+wLjlGg=; b=m844zhngeP6JmRlLw3Q9yAiYZVqDDiNowu3C0CL8lrG5BXKUahbeMsaww7iO0ty/za fdtGtKxaLgoykDPHWOWk5i6kx0Sh3TN/NUb3L/ijSG3akcBVehElk9CQm8G9cyQyd3N/ r4BKGlQMdEACKR37SKoqApGxIeMST/1CDK/9ExvDKbPmWac8ZF8McT89JAxGLj7cDFYC /XZ5t6W5H7MsMzAASJRW4uZVR4XALG2ulxlNsaUiRdr8UUD0okq0fcUctBMQk/b/N1nC LjvBmWHEXbXx5EvaRbbsjeM5mTYO1VUyNPA2sdiF8G5iaVTOF1plngFLm6+jd6qXYTy6 AEQg== 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=QjsxaA91mEwEtCjMqajdkCWO8TyKKmvK1rye+wLjlGg=; b=olE/93kDx5vk72ulelJmIJzlTcaJXG2XQVbhBGYlg2FHVZj6vMDIK4EMuGy6rvcMgY x2N2KHQO0mOgaEnDYyv3KHN+uPuAcl4J36x6QFKrQsoeDnNdO6b6T1H0CPQXSDvZqcNJ 9VRqHy/Uk0P/Kw3R0obkckoC0w8SrxH9dEvnPkWkC57UlRiiIjEQ4NX4mLyEXaoFAODY CWqYm2Jw3AsN3ycXrcr7ROZGzUWQbhOQiBj9Z/6eff+mmgD/26BlSOi7YXcQ2p+O4djJ m+W1PZMyPIAlKA7Ls+/rX4o9WtAYgvsb9JIvsR3jJFhzNlxglMEJUiswyFu24fmfBxf2 H98g== X-Gm-Message-State: APjAAAXdO6kvFAo2mCriIHWoLrAbZZ0Ebl3z6zedd/ZswpR+57e5FGGF USfZk6YjlxQtAWrOj+iwOo4JJytfx05aeQ== X-Received: by 2002:a63:82:: with SMTP id 124mr26253814pga.112.1571654178595; Mon, 21 Oct 2019 03:36:18 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id q143sm15543184pfq.103.2019.10.21.03.36.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 03:36: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, agross@kernel.org, masneyb@onstation.org, swboyd@chromium.org, julia.lawall@lip6.fr, Amit Kucheria , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v6 10/15] arm64: dts: msm8998: thermal: Add interrupt support Date: Mon, 21 Oct 2019 16:05:29 +0530 Message-Id: <2735b57bb1e9477926bfef6f6b8ff84b926f5a1b.1571652874.git.amit.kucheria@linaro.org> 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 --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index c6f81431983ee..489d631a96104 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -816,8 +816,9 @@ compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; reg = <0x010ab000 0x1000>, /* TM */ <0x010aa000 0x1000>; /* SROT */ - #qcom,sensors = <14>; + interrupts = ; + interrupt-names = "uplow"; #thermal-sensor-cells = <1>; }; @@ -825,8 +826,9 @@ compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; reg = <0x010ae000 0x1000>, /* TM */ <0x010ad000 0x1000>; /* SROT */ - #qcom,sensors = <8>; + interrupts = ; + interrupt-names = "uplow"; #thermal-sensor-cells = <1>; }; From patchwork Mon Oct 21 10:35:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 177052 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3224402ill; Mon, 21 Oct 2019 03:36:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxH3jZakCJA0a0dIrbxXrXpVJr7CpWv0qQeRgGvJ7WCBZyn9XqEPZVrORarGpOZ1zwhlRnt X-Received: by 2002:aa7:c895:: with SMTP id p21mr24527144eds.38.1571654184564; Mon, 21 Oct 2019 03:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571654184; cv=none; d=google.com; s=arc-20160816; b=fkjzworxIElgxY+islIhthG9ogzsuZCtgeRxq84XsRzrK6cTLQ0d6PBnPrR8++zwc+ Vg885MpPcCLUqV6NSL1BGAys++0fp+fW1zC+jJmhnWeZdxPD1fwKxMIdyuNKZFdIciNy 7nJet27KdaJfacZy0CwX3R1XjUxaIYqxzayC8pNh5trEWFQWUJ4JMEaXDhdNUZ5HtC2m y7w8EYOB8jhmVd5kwyoo2AUEJKF3ouKYtKl36Zva/IyT2bKrb6ogjQsoKol7fIYeEbfg vjy0CK+2W30LTb/Msjiw4vsNIeQXA8ZIq9miyiFIz8n1qC4DMjRNORBBPgkY/3MC3I8a wXuQ== 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=vAk0yGeiCW4SKIjJnq+f9xqPKX6m5wwJtivbwF55fLs=; b=Ls/dfXgs8Bih4EErUQ44/KirMeYtFJMlK7uIzVjp+1SZKkmHnheif65EOS/5Ew7APG Qtw75IFAOv4aYHd+BvNyIrfCIFXfRopzxbybaVdOeC1JNuOi3MmElKuDV4m5hhSCCe7Y DPQDnX/yH0mq7aGHAEx0o4An8fpscVh7brO7gw29MDBFonbvX4p/pxmFER0tQY+UMWqJ Eul80JdsDiMhKOxguxeRVJyc4DEmraNSOoUzTh5ycPWfRlvOmflTk8U30PjOUApDazZu JaR4WKvKz4ldQ4hIO/P/hMyFfWkx2NfGR07o2FrNgo4hRn4ED4gA4GJ0plZCmZc6em78 UFhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S8Bihem9; 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 s46si1672166edd.336.2019.10.21.03.36.24; Mon, 21 Oct 2019 03:36:24 -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=S8Bihem9; 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 S1728340AbfJUKgX (ORCPT + 8 others); Mon, 21 Oct 2019 06:36:23 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:37143 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbfJUKgX (ORCPT ); Mon, 21 Oct 2019 06:36:23 -0400 Received: by mail-pf1-f194.google.com with SMTP id y5so8167689pfo.4 for ; Mon, 21 Oct 2019 03:36:22 -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=vAk0yGeiCW4SKIjJnq+f9xqPKX6m5wwJtivbwF55fLs=; b=S8Bihem9RpDcOyr4KCVSnTKgeUfPM47uXgFRw0WH/pp1ZI/CGMgOaRarY4+jS8r4gS PZpQcWGZJydjFrJx+3/rQeLATVNn+cjQP78gMtCe7O3pARui+qlMs6eRZJgxCjP2i+S9 zexPLrcg0i73kjZjwihN4Bei1fNq1WVTYQ5v0l6Q7AhZjLbA7OTGd6eZNsBQFLIl0P6z MuP6Jc07fhAxSwYpluUMayVoKIkd89LX0INf8iTC0i3POAmGNGI0l9R2lIvdBYXAixEL U7Bfklp9rj0e4JB2/ZjWLoYflbAl246lin6/JZsAc6eGDBUKkoJem52JZkMxarUnsSqw HkQw== 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=vAk0yGeiCW4SKIjJnq+f9xqPKX6m5wwJtivbwF55fLs=; b=gmuNyp5VpCTiB4+TySCcFMhgF8qczNNS3GRfIAcCgUQCRuIISrY0e/rtdxk/008gPb 57Z/ZgdVIzOFzDDPVXGFg/uScUbW/M3cDDamG51IESciVmlgpXvGrLwfT/yaFbfxxfxg 40FQ4GyaswsoxDmEE63nMqK4rALXkZQyL8yhqqmm/jFOOclBvsf/GvkrMJmSyEUt3O1+ 1qVxdqPm5t0NpHqLqK23H148GTctS24hd3lVwdaUL2yfMkExTxWWGO1ayM10lkz6YRlm HJvLFvcXdgNklYko/NEI78EjbSvBy7TW2LSAkgw1d/Ymstdtubh6gpaqY73qwaLkv18Q DwOg== X-Gm-Message-State: APjAAAV2Z8N/PZ+q9wXCdkApqar3sxVbpe3Clpn5LkyRzeCtHmdEz0P9 SzQ9nHKIwRMQ0mCWrUwVu53EbA== X-Received: by 2002:a63:7d53:: with SMTP id m19mr25458922pgn.450.1571654182214; Mon, 21 Oct 2019 03:36:22 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id 19sm14665031pjd.23.2019.10.21.03.36.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 03:36:21 -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, julia.lawall@lip6.fr, Amit Kucheria , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v6 11/15] arm64: dts: qcs404: thermal: Add interrupt support Date: Mon, 21 Oct 2019 16:05:30 +0530 Message-Id: <63d6b0b8bba0d217c2f7bb4240c587ead933b6be.1571652874.git.amit.kucheria@linaro.org> 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 interrupt for the tsens controller. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index a97eeb4569c00..b6a4e60739362 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -290,6 +290,8 @@ nvmem-cells = <&tsens_caldata>; nvmem-cell-names = "calib"; #qcom,sensors = <10>; + interrupts = ; + interrupt-names = "uplow"; #thermal-sensor-cells = <1>; };