Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp466107rwb; Thu, 12 Jan 2023 23:24:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXuTmpZv2PHaWXZUVkwG+CuN31wk4oREDHJ/D7fomxtJaypQVg2ua2ja9XVVSu8B380VFVBt X-Received: by 2002:aa7:9465:0:b0:582:ca4d:f6ad with SMTP id t5-20020aa79465000000b00582ca4df6admr34090257pfq.7.1673594677705; Thu, 12 Jan 2023 23:24:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673594677; cv=none; d=google.com; s=arc-20160816; b=pnoReDzpF1ObIwqDsr9xTAqO2B6yLo3qgXQiqRSUbZ1EcJ3gMUlle+XWo+fH7WeHfd /7+dh6oHREghD2PK5Oht79CvfGZRfkw2RvhNo1O/LsIEOC/4JDOXu8jYSFvZpdPSSWsR I4MDEjS2vPoW56QX+aqZHhuuIWwKpqI3FsQA7VHnVvQdG+2JPIxOqXQ9MtKWMrhyVf7v Y49wIwC1UmZvR0LT4WZC9FyUiJllaPMa8KbwWMJRRTj0k09G1F75/8keZtYaATPGNhsS G79DM4/w6UWo+Cjn8vtV0LSEL51WShH8v1/btm0hXtog7gxVhYEa4zuIL16EIqrRKdBD s1bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=+YgbCYAPSVK90SB97LphXVYIY5ZBmjOJkMcTj+4RzHo=; b=J9yDzyJAes3frp4T59SJw8Asli9zV5oPmMLEwQQB9vudIYPV0yafiKBtiLPG4mBY2i Q+WOmx0JugB80yScZ9RF+sD8AEa51brEp1OSnX79I3OrtAN6ubN3xw1ile48aBU2gUad ldwR7FXWuS9AGs7ppKa5Bi/UWh0FFDiR0AQvqJbbqGqGGs2bZiow/1ti5IXbOXi7rubI WxI3c7N2jQ/pWYMDwwJLQfK1ckJZOtBO0oCXAlEhm8isSBuWKeDG5W6Xo9LnfAxhF+Mm rduOPpuSNRpVo082g261k7BgiHMjtF8Mpta1GUL6U9M1Pfd7Frb2MSHEf5+jfraFT6cb cAWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=giyiksnY; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c123-20020a624e81000000b005775394c99fsi18791965pfb.52.2023.01.12.23.24.31; Thu, 12 Jan 2023 23:24:37 -0800 (PST) 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=giyiksnY; 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 S241075AbjAMHGF (ORCPT + 50 others); Fri, 13 Jan 2023 02:06:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240475AbjAMHF3 (ORCPT ); Fri, 13 Jan 2023 02:05:29 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2D226EC86; Thu, 12 Jan 2023 22:54:12 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30D5daJ7030531; Fri, 13 Jan 2023 06:54:07 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-type; s=qcppdkim1; bh=+YgbCYAPSVK90SB97LphXVYIY5ZBmjOJkMcTj+4RzHo=; b=giyiksnYA3ZKaVf2eOnxmC/tRjN4KINl6SbiCS0VO7/PObMLIvxL3TN8K+rFxWxOMXgE OF1GZkTWO5VovHZh23pKh949kR/2t1YnORvdBzdnt99VczyQnstkKJwui2A4+0AI5Epi Bwf/kDcBVKbg7X0ubc16PHtiXtSOdS9w1sktuAoRxskif999oS5pn4XhZ9a6t2ezwBe+ A+amEv7i/af3r/NlfOP0DNAMwkxcI5Xj1SqFFnTX/asXflVxXJP13BklMQd23Rd34xKJ YUYxj6vrvpEHq7NZgP2523FJwvLPx4UfajA09D0dSMAZV5WOPiTpOXgKAqCyCY4cipIr Bw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n1ky4nyjk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 06:54:07 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30D6s6uG004838 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 06:54:06 GMT Received: from blr-ubuntu-87.ap.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 12 Jan 2023 22:54:02 -0800 From: Sibi Sankar To: , CC: , , , , , , , , , Sibi Sankar Subject: [PATCH V9 1/2] dt-bindings: firmware: qcom,scm: Add optional interrupt Date: Fri, 13 Jan 2023 12:23:01 +0530 Message-ID: <20230113065303.17727-2-quic_sibis@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230113065303.17727-1-quic_sibis@quicinc.com> References: <20230113065303.17727-1-quic_sibis@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: JQnIEjAmKCbTR7CZssSfD0DsJr2SbZPX X-Proofpoint-GUID: JQnIEjAmKCbTR7CZssSfD0DsJr2SbZPX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-13_02,2023-01-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 bulkscore=0 spamscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 mlxlogscore=999 adultscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301130047 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 From: Guru Das Srinagesh Add an interrupt specification to the bindings to support the wait-queue feature on SM8450 SoCs. Signed-off-by: Guru Das Srinagesh Signed-off-by: Sibi Sankar Reviewed-by: Krzysztof Kozlowski --- The interrupt property for scm firmware from a binding perspective is completely optional i.e. not all tz fw running in the wild on sm8450 devices support this feature. The bootloader does the interrupt property addition on sm8450 devices with wait-queue support. v7 - Pick up R-b. v6: - Fix subject of bindings [Krzysztof] - Update commit message to include the SoC supporting the feature [Krzysztof] - Make the interrupt property valid on SM8450 SoC [Krzysztof] - Rebased on Krzysztof's narrow clocks and interconnect series. - Drop R-b v5: - Pick up R-b v4: - Qualify bindings [Krzysztoff] .../devicetree/bindings/firmware/qcom,scm.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml index 8e6e9ebb343d..01c861f36983 100644 --- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml @@ -73,6 +73,12 @@ properties: '#reset-cells': const: 1 + interrupts: + description: + The wait-queue interrupt that firmware raises as part of handshake + protocol to handle sleeping SCM calls. + maxItems: 1 + qcom,dload-mode: $ref: /schemas/types.yaml#/definitions/phandle-array items: @@ -162,6 +168,18 @@ allOf: properties: interconnects: false + # Interrupts + - if: + not: + properties: + compatible: + contains: + enum: + - qcom,scm-sm8450 + then: + properties: + interrupts: false + required: - compatible -- 2.17.1