Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp204995ybr; Fri, 22 May 2020 04:47:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0MhuVgYkSr47KtPtFnBYIwGnEl3VHNC4nMDToG+666QKNCfF6DoXWFOwJ6hvldP1EQ7hw X-Received: by 2002:a05:6402:3044:: with SMTP id bu4mr2682712edb.342.1590148076268; Fri, 22 May 2020 04:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590148076; cv=none; d=google.com; s=arc-20160816; b=C7q/fW2qu4yGZClSrvCE8e2F26MY/RGyfM7xXcKDLwn4zl2UMhHUc+PaE2xikvb7vp JFwFQ2MEbbcQEkvl5jVns6b6Ea0BWVwAJVWFiXu3NRy0oghYu4hioxKjZzzf/+GGJ8Lh cWj55nATkC4eHqaI2tZ9NBamQrkpTIngq5P+pWCkBgcQZsY4I246VDqJm6mtfQc5R8Hk BHGRHKnJ5A5uDWCpW11xcOZZi2nwud/KlN2V+b3rMWw490oWYZuZKyoG9Z6l9oYczn3L 8zR4KAdWp8E3epEa35JWUA3kLkMBVTavkPN2mKzJYlnBtfCRc9JDMYvKL/RHS3f6DG4q jnqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=ioG91ONt67Thh3+++IhEIy7PrY5ruyU1b97zWmsYRzM=; b=E44s9BAPlmzUZim5G2LnMJVUUQn393/w7384qe11hLSPAN+FDMZNX+2cuoj5vpTnDR nQfKvcJAIU0zCIlSS5DODjqvL9mqU1iBbYtKlGXX/7YwpK4yUhRakT/rtTla6mJYykB9 VC9Vpzr6axgv0ku4xrdsUjpAAb44eIp4WmYJkp5m+XbWKkF9aYG+EOaP+NcpyfG5ayOx ISeYzgjR1ge6JBE8CnWOP1zkSlOWYXZ+xr1Cnxem7CCEnCzZ70FE/wOxjrJ6i8XPRbVC 9aaOocTPEH5/2NtnbO60wCps6Ts08SrcTp6Aq5Wqr4p3EZKcGrgAPHVG68VTDUVpZW/p B7KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=QlSEFDpI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si4238563edx.205.2020.05.22.04.47.32; Fri, 22 May 2020 04:47:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=QlSEFDpI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728629AbgEVLpt (ORCPT + 99 others); Fri, 22 May 2020 07:45:49 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:13748 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729184AbgEVLps (ORCPT ); Fri, 22 May 2020 07:45:48 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590147947; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=ioG91ONt67Thh3+++IhEIy7PrY5ruyU1b97zWmsYRzM=; b=QlSEFDpIbDrynOR89qkRS+x/mV14oVxuo3iTqaEq5YtXPmFjJ9HCC+bgl9BMS/uR/i6+Didj ZIBR4tVt3JIW2PIkixgxcDEIHl+J9YxHwI031nUUUVOO9nwB/w6abnyMT2Sc1A1q49yXp086 aCbB2O8gQYGy1zolLY60Bokgf7o= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5ec7bb56569a62550db49ba6 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 22 May 2020 11:45:26 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E15D4C433C6; Fri, 22 May 2020 11:45:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=ham autolearn_force=no version=3.4.0 Received: from codeaurora.org (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: manafm) by smtp.codeaurora.org (Postfix) with ESMTPSA id 301F1C433CA; Fri, 22 May 2020 11:45:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 301F1C433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=manafm@codeaurora.org From: Manaf Meethalavalappu Pallikunhi To: Amit Kucheria , Andy Gross , Bjorn Andersson , Zhang Rui , Daniel Lezcano , Rob Herring Cc: linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manaf Meethalavalappu Pallikunhi Subject: [PATCH v3 2/2] dt-bindings: thermal: tsens: Add cold interrupt support in yaml Date: Fri, 22 May 2020 17:14:52 +0530 Message-Id: <20200522114452.28647-3-manafm@codeaurora.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200522114452.28647-1-manafm@codeaurora.org> References: <20200522114452.28647-1-manafm@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add cold interrupt support for tsens in yaml. Signed-off-by: Manaf Meethalavalappu Pallikunhi --- .../bindings/thermal/qcom-tsens.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index 2ddd39d96766..3592322fe172 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -52,12 +52,14 @@ properties: items: - description: Combined interrupt if upper or lower threshold crossed - description: Interrupt if critical threshold crossed + - description: Interrupt if cold threshold is crossed interrupt-names: minItems: 1 items: - const: uplow - const: critical + - const: cold nvmem-cells: minItems: 1 @@ -109,8 +111,10 @@ allOf: properties: interrupts: minItems: 2 + maxItems: 3 interrupt-names: minItems: 2 + maxItems: 3 required: - compatible @@ -174,4 +178,42 @@ examples: #qcom,sensors = <13>; #thermal-sensor-cells = <1>; }; + + - | + #include + // Example 4 (for any platform containing v2.6+ of the TSENS IP) + // (with thermal-zone): + tsens4: thermal-sensor@c265000 { + compatible = "qcom,sc7180-tsens", "qcom,tsens-v2"; + reg = <0xc265000 0x1ff>, + <0xc223000 0x1ff>; + + interrupts = , + , + ; + interrupt-names = "uplow", "critical", "cold"; + + #qcom,sensors = <15>; + #thermal-sensor-cells = <1>; + }; + + thermal-zones { + cold_thermal: cold-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens4 128>; + + trips { + cold-trip { + temperature = <1>; + hysteresis = <1>; + type = "passive"; + }; + }; + + cooling-maps { + }; + }; + }; ... -- 2.26.2