From patchwork Fri Jul 21 05:46:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Praveenkumar I X-Patchwork-Id: 123583 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp5820vqg; Thu, 20 Jul 2023 23:30:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlH3YTc7HZSe4J24qHNBMf5xI0PIpIg8LqVDppcJS4qfzgiDKg9Gm/lFhjivImf89awDFVsZ X-Received: by 2002:aa7:c902:0:b0:521:6275:c9af with SMTP id b2-20020aa7c902000000b005216275c9afmr1085309edt.7.1689921014530; Thu, 20 Jul 2023 23:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689921014; cv=none; d=google.com; s=arc-20160816; b=exjhu3OShleoBRK+2I+nfP74Q1/s7BfAb2aUDWmMDeK6nOiMe9Z/BG6WSgEKMN8OAd d6YkK2b4GUHR1L/yq72TPzI/PzfIU4JCFiHt0pdpRUoNPWPBSMzPj8LZD2U5SKlzPvuc u6LswCWbwlbP3Q0PcejSIu2mEVJMkcTsyKZM1/jwzt0M0curKXSgsp5B3D6qozEPSad1 tjVUGae7yLziBrqt6IPhgQXEoDjOBH8yrGc4SRYTiU3DmF3JAbWPX1QLNlnbZK8oEsoo JVOMdDNZtrcewk7I+efHIC4OmHUJMDTOdlsBxgxM4xL1xOo7Y23srOV01F3oa9rRNZ84 TE4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qo44zXbUuZOoGLVl+0XJotkT2m2xQywJHmI2HV22P3k=; fh=X4rJ+cR0B+d5Oa7pFIBp3MHYxg8a+8b0Sx0w3zuICOE=; b=evATgNGBxJCn4qL7fyiCUOZ3GFbLXp6HgHDxJU8uiU+o5Lcs+4Ka+nRcJ3tit2CtEa pf7vdg74/v9sgGZ6/QN1/sahblweJizCthzBzRVuNmCzr/Ge2bknwEVrjSROKdCQydE+ 0nYtWzzM0dJxadY5AlvLDnAOLKBzAZPvpq8b7ZkcGWQUe0NiafpuIgQ+stpmrkoFbGV8 XvlvNdSeSvoJl13zt7mb+snTHvvggBCf7KimAtZw70VriFbFWxnFd949jUjgAsSpgc7s WmBRp+qBi5ssegYrqwJOM86ItcsOg5OgZK3YdlXj/LFkgcqZPr818m+eJZSKL8i1VSyL G4GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iVD2scxB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c15-20020aa7d60f000000b00521db0c480fsi1893455edr.160.2023.07.20.23.29.44; Thu, 20 Jul 2023 23:30:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iVD2scxB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229872AbjGUFrI (ORCPT + 99 others); Fri, 21 Jul 2023 01:47:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbjGUFrC (ORCPT ); Fri, 21 Jul 2023 01:47:02 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FA641984; Thu, 20 Jul 2023 22:47:01 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36L5QBvl031611; Fri, 21 Jul 2023 05:46:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=qo44zXbUuZOoGLVl+0XJotkT2m2xQywJHmI2HV22P3k=; b=iVD2scxBQ5QziJasXK4KGaT7Xki/b78FsnO8JoZ0zijIo99WD7z3X7sYsl39UwN6cAis zNgCgL1iVkBTDvGmp0IwetrZVO2gGYCq6nIXLTUHSd4BNQeT2h9Cx8JIgI/FxEj4BhzW Tr34RT+UAvVA7bfX5Oio1HzmET7ikUuvR2lkRurvJ+zbGyia5D5AIU2biVeE6azDaFMF boaH/aD71QZ2xMX6b93Xb1gHlVWzUGc0wl9dU86caU+UctW/UMGUk1pOW5n4/TspHRYO q5tQ4LIWMswccHuodfF6w3rP5Gw5bQI0v50S15XOILoPjGSNZn1MU4eCBWYKIEsUSgTn Nw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rxup4k5ne-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jul 2023 05:46:56 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36L5ktjM003583 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jul 2023 05:46:55 GMT Received: from hu-ipkumar-blr.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 20 Jul 2023 22:46:50 -0700 From: Praveenkumar I To: , , , , , , , , , , , , , , CC: Subject: [PATCH v5 2/5] dt-bindings: thermal: tsens: Add ipq5332 compatible Date: Fri, 21 Jul 2023 11:16:16 +0530 Message-ID: <20230721054619.2366510-3-quic_ipkumar@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230721054619.2366510-1-quic_ipkumar@quicinc.com> References: <20230721054619.2366510-1-quic_ipkumar@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: IxKc_T841vHrZYlPRekCKZcdcc79_raE X-Proofpoint-ORIG-GUID: IxKc_T841vHrZYlPRekCKZcdcc79_raE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-21_02,2023-07-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 adultscore=0 mlxlogscore=999 lowpriorityscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 bulkscore=0 mlxscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307210052 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772010617511808787 X-GMAIL-MSGID: 1772010617511808787 IPQ5332 uses TSENS v2.3.3 with combined interrupt. RPM is not available in the SoC, hence adding new compatible to have the sensor enablement and calibration function. This patch also adds nvmem-cell-names for ipq5332 Reviewed-by: Krzysztof Kozlowski Signed-off-by: Praveenkumar I --- [v5]: No changes. [v4]: Pick up R-b tag [v3]: No changes. [v2]: Followed the order for ipq5332 and added nvmem-cell-names. .../devicetree/bindings/thermal/qcom-tsens.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index 27e9e16e6455..cca115906762 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -69,6 +69,7 @@ properties: - description: v2 of TSENS with combined interrupt enum: + - qcom,ipq5332-tsens - qcom,ipq8074-tsens - description: v2 of TSENS with combined interrupt @@ -205,6 +206,15 @@ properties: - const: s9_p2_backup - const: s10_p1_backup - const: s10_p2_backup + - items: + - const: mode + - const: base0 + - const: base1 + - pattern: '^s[0-9]+$' + - pattern: '^s[0-9]+$' + - pattern: '^s[0-9]+$' + - pattern: '^s[0-9]+$' + - pattern: '^s[0-9]+$' "#qcom,sensors": description: @@ -266,6 +276,7 @@ allOf: compatible: contains: enum: + - qcom,ipq5332-tsens - qcom,ipq8074-tsens then: properties: @@ -281,6 +292,7 @@ allOf: compatible: contains: enum: + - qcom,ipq5332-tsens - qcom,ipq8074-tsens - qcom,tsens-v0_1 - qcom,tsens-v1