Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp602918ybl; Fri, 30 Aug 2019 04:35:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7PynSN9aJbH7/WBYK6iNtgprcSTBPsMqYaetiN19jDe0Y2mSQytsaNclfbFGtaP5Z3gX1 X-Received: by 2002:a62:63c1:: with SMTP id x184mr18097576pfb.11.1567164901854; Fri, 30 Aug 2019 04:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567164901; cv=none; d=google.com; s=arc-20160816; b=H9amaRImg+hfzoRRT7eGFkktJEoED7sQ3BVN2iyStQUf7v0x2qQrbkzCFG9XzGZOC0 VV9kKIKDEduBLdXLInWH5C8oW0dwAz+mcaZo/r1WJ4AQR3OxW2nKKW+am8z67+x6bMEq kVerRO8+fl4LhM6rMnbmxd3RosswTSsPoT5Ld9RwMBD93hpnll09bJNAlef485/8eMxz 16GRgj8JPc2uRkPY046bV/jRl8zjEeS1Z0/0aqGhhSDRunzQB0gTdr/TzFR6C6nm06pr Ve9pt72JKmgoge27DpMqQLIt6kKGX+TvRobV414PyXOLvIcGEJ10FaMyVCuWi1e6/D0p vg8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JH8DOOwQtK+X7/b2daR7scxGJ6hjfD5whpOG26LXoDw=; b=FVLJxc9vRofFJzdfpdasu9KTf64sjm/RXePAZWRnjL1snQngp+lvWPEpc+HIFypYVm mNIBsYNS7BPdinwyWQsmSY/3Brf08GCil7TTQ7sCNnP4triNsueGuM2CrknLCzxS9Ebh ncn2Phi4pPgWYqNBZ8jDlQ8s7kH+uZdpZvGkQDYokPe1FqJfXaJ6FtPlrUwyAsxEQQ8J Cw5zhP+HCVzwp1vmF+bd4xDt5mMBs36P3idrewNYsbWO8c4QDDqVK8tMHJ2+UZxeVfdy rVS+4rFtVVx01PwDVrBN4CagJMG5lTPE0pYqZvpjQdP0n+qEcH6Hdh7WgQFgZaBNqqmP Vyvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pvpMdZNe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 r4si4271609pgg.368.2019.08.30.04.34.45; Fri, 30 Aug 2019 04:35:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=pvpMdZNe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728111AbfH3LdH (ORCPT + 99 others); Fri, 30 Aug 2019 07:33:07 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:35627 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727887AbfH3LdG (ORCPT ); Fri, 30 Aug 2019 07:33:06 -0400 Received: by mail-ua1-f68.google.com with SMTP id m8so2204751uap.2 for ; Fri, 30 Aug 2019 04:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JH8DOOwQtK+X7/b2daR7scxGJ6hjfD5whpOG26LXoDw=; b=pvpMdZNedhH1QV+sjozPkOnux4HLnj+LrfUwCIUPHZeKiDux6LH9ehglxbbUGDXs9f Ni9mO+JvsAt6qPEw0qayCxsa+bIqiFhxn4J6p0ZWpEmHHk6kA9ctfT6zWcH8z/Wu9cLu jEy4WymLK2uLBoeCX4kMxOflJGzYGFHOvzLNykjaSSFmTns/YlOkbDGkpAD1h1WE+Wy2 kEcp2aVWfrDMiijlNScHwfa+8znc56KTQ5TJry8CYTccpsYv5CYjZOfK19bIXu8y4zoz oHq2/Nvg2J8yQ3/EdB+o+8Z3FivsvWNKu+cmLLT1bFbricqFrghabe4iWl1XyTtg562Q PdFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JH8DOOwQtK+X7/b2daR7scxGJ6hjfD5whpOG26LXoDw=; b=iOgiCDkS/OmXURd6ueD2CqUROTEXmqjzCExLoYugVNnxPt56aZNKGshnnK/5oxU3um g7pWCVVNG1bnRrHL/BT3tsLK7WZ0zjJJnkxbGi0e3yS6r/TFI1+NaKdjOo/EJi+Bg+SS HlLX/lXXNHpUXTdiVXqCwYIRrztWqdCYkP0WMDsaJwgh0h+5EQ4lYOpIqX5pirKOauZH qXtNGqQlfRfLQra0Ficl4DFU1PIcZD/5bpbvqYQoPw2XQWcqDz6wRUmFHIyoDgVCq0Y2 PZe3W7vEjA7nov9QEA2PTspQnwU+B3lN0LB8A8//ZIkik5igTF72IW4LnjMAXz8mVlZN Y6Eg== X-Gm-Message-State: APjAAAXtjEuHqUFUhsC/FCTeUNN8k2c1ajQrdvQFiYwE0T1z/0pV8/+x tPVQSPdfQ/Eo3LVarVgSfhgcezipQBCAIS8MQQN+xg== X-Received: by 2002:ab0:ed:: with SMTP id 100mr2070335uaj.48.1567164784854; Fri, 30 Aug 2019 04:33:04 -0700 (PDT) MIME-Version: 1.0 References: <66ac3d3707d6296ef85bf1fa321f7f1ee0c02131.1566907161.git.amit.kucheria@linaro.org> <5d65cbe9.1c69fb81.1ceb.2374@mx.google.com> <5d67e6cf.1c69fb81.5aec9.3b71@mx.google.com> In-Reply-To: From: Amit Kucheria Date: Fri, 30 Aug 2019 17:02:54 +0530 Message-ID: Subject: Re: [PATCH v2 07/15] dt: thermal: tsens: Document interrupt support in tsens driver To: Stephen Boyd Cc: Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui , Andy Gross , Bjorn Andersson , Eduardo Valentin , linux-arm-msm , Linux Kernel Mailing List , Marc Gonzalez , Brian Masney , Linux PM list , DTML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 29, 2019 at 10:04 PM Amit Kucheria wrote: > > On Thu, Aug 29, 2019 at 8:23 PM Stephen Boyd wrote: > > > > Quoting Amit Kucheria (2019-08-29 01:48:27) > > > On Wed, Aug 28, 2019 at 6:03 AM Stephen Boyd wrote: > > > > > > > > Quoting Amit Kucheria (2019-08-27 05:14:03) > > > > > Define two new required properties to define interrupts and > > > > > interrupt-names for tsens. > > > > > > > > > > Signed-off-by: Amit Kucheria > > > > > --- > > > > > Documentation/devicetree/bindings/thermal/qcom-tsens.txt | 8 ++++++++ > > > > > 1 file changed, 8 insertions(+) > > > > > > > > > > diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt > > > > > index 673cc1831ee9d..686bede72f846 100644 > > > > > --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt > > > > > +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt > > > > > @@ -22,6 +22,8 @@ Required properties: > > > > > > > > > > - #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description. > > > > > - #qcom,sensors: Number of sensors in tsens block > > > > > +- interrupts: Interrupts generated from Always-On subsystem (AOSS) > > > > > > > > Is it always one? interrupt-names makes it sound like it. > > > > > > > > > +- interrupt-names: Must be one of the following: "uplow", "critical" > > > > > > Will fix to "one or more of the following" > > > > > > > Can we get a known quantity of interrupts for a particular compatible > > string instead? Let's be as specific as possible. The index matters too, > > so please list them in the order that is desired. > > I *think* we can predict what platforms have uplow and critical > interrupts based on IP version currently[1]. For newer interrupt > types, we might need more fine-grained platform compatibles. > > [1] Caveat: this is based only on the list of platforms I've currently > looked at, there might be something internally that breaks these > rules. What do you think if we changed the wording to something like the following, - interrupt-names: Must be one of the following depending on IP version: For compatibles qcom,msm8916-tsens, qcom,msm8974-tsens, qcom,qcs404-tsens, qcom,tsens-v1, use interrupt-names = "uplow"; For compatibles qcom,msm8996-tsens, qcom,msm8998-tsens, qcom,sdm845-tsens, qcom,tsens-v2, use interrupt-names = "uplow", "critical";