From patchwork Wed Jan 11 10:17:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 41887 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3242982wrt; Wed, 11 Jan 2023 02:36:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXtAdtK2sy/1feWdvVrWhh55c4IUhq2kVy6VYGCBl/gc14X3bAPwzTuvEjvrbfgjaS+vpTuu X-Received: by 2002:a17:907:6292:b0:846:56fe:6c68 with SMTP id nd18-20020a170907629200b0084656fe6c68mr69211272ejc.21.1673433374833; Wed, 11 Jan 2023 02:36:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673433374; cv=none; d=google.com; s=arc-20160816; b=kJ0iLudl8XFQDnZEZ0nY1u23SaxD57JwcBoGLgQi+LWrYUvazOr2T4D+QJ5mVqQ+MF AV1pldontuFVcPvGp9uXxqCcFSxLVt03F5bOOqPeaIu4RMOT2flEp6wNM78mk1vqpSC9 zW2x2vYirwciwZbxdVVUB7vWibvgfLibq9CvkzIAuKMrbpqGBCzD3I76zfkw4z1LLTlk mkaDFWzrLn2vgtaj37VAX6vypffUSyT+cIjmnP/eaLsjM7OGDzzkFIKeWkag3KXG7qCl GVXB95X1PLpJ6Ze1Q2JQiI6fBMZVU1OoXNBGJYstgLxmJyeNzSFZKJELst1HprkeAFiU qbaw== 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=LgqNprXdLr0L8yurnsQUIJpGE7z+LdaneIbOT1dQV7RlHD/o5P42mnJX/N5ysrBmM5 LAFVIrnLJMl4p0+ca0zgJZJXVzioXVLTz6CJP5yvbeMQl/rurmq+w7U1dh7DLqvhwRpy le+UbcgRniScG+5Li+7EB49yObVuJEK669NSfH4BSou0yg3TWxI2JDCKHft2D1dhUNkh vfUJ5TfeCWsbi7m8a2DsO6uUMTaZKoNJy1DFkzoe3hxIUQY/BMzNtGXEaxFRV5HC/4pd XMwuOrMIER+DIO9ujifgJdm++5N20y8NPjfeiCUr/0hhUcr+A6cqJaGfpcM2nZUMSFuZ m2Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=J2TOtTd0; 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 wz8-20020a170906fe4800b007c137f5352asi13817263ejb.387.2023.01.11.02.35.51; Wed, 11 Jan 2023 02:36:14 -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=J2TOtTd0; 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 S232437AbjAKKTD (ORCPT + 99 others); Wed, 11 Jan 2023 05:19:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbjAKKSA (ORCPT ); Wed, 11 Jan 2023 05:18:00 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0AB31038; Wed, 11 Jan 2023 02:17:59 -0800 (PST) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30B51xQk017194; Wed, 11 Jan 2023 10:17:54 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=J2TOtTd0umFveEHJYpfrbdwvXDgMt/9FNUEuN8VTi4PrMWzkpkFZ9x4/bKIJ6tb/94xZ 3mp3oK/9M4l72zDuwlMhhEhJniPTS8wM8XCdVYFBF4PtISpxLtJMzjqeo0HlLq6dlY2P Ypo/UuzBvteKSUWdsE4eeRo68jAfs170XlYPq3jOONAM0jCi6R+sYiAlTIfTSGu6Vyra TnqXm/w4y2Mv0aM5ZCG/ltVvYuM7uEoOwzdDAhuG2SHs9RnfK8iN3YNSMnXh79J0OQB3 oWnspqX70vW7Bw798TGWH0JZH16KIZo0URM/kDsLGEIBMPswtt1/AvPQGS3YQ0Om1CRl DA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n1k6a0xkn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Jan 2023 10:17:53 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30BAHqJp020598 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Jan 2023 10:17:52 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; Wed, 11 Jan 2023 02:17:48 -0800 From: Sibi Sankar To: , CC: , , , , , , , , , Sibi Sankar Subject: [PATCH V8 1/2] dt-bindings: firmware: qcom,scm: Add optional interrupt Date: Wed, 11 Jan 2023 15:47:17 +0530 Message-ID: <20230111101718.9225-2-quic_sibis@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230111101718.9225-1-quic_sibis@quicinc.com> References: <20230111101718.9225-1-quic_sibis@quicinc.com> MIME-Version: 1.0 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: q8Io6auYhCx4p0vFzIELQCL1GS0rhq-5 X-Proofpoint-GUID: q8Io6auYhCx4p0vFzIELQCL1GS0rhq-5 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-11_04,2023-01-11_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 clxscore=1015 malwarescore=0 mlxscore=0 priorityscore=1501 spamscore=0 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301110078 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 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754722074809181368?= X-GMAIL-MSGID: =?utf-8?q?1754722074809181368?= 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