From patchwork Fri Oct 18 08:06:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Marussi X-Patchwork-Id: 13841365 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 731F1D2A53A for ; Fri, 18 Oct 2024 08:13:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SZ0cOkUjiUgGmac+XqGBOzTboVUk0z8DUXYq6w+ysTA=; b=bJ/86MnpC6YXNyNbllNavxAx17 gRZrD2gz/lqN+Scr1COBORIFtJvIdTHcFEP+66JrAwU1HF8GAEJIZNyXbavlblQnW9zO+67le1K9A ox+msXTQsVClRq4+4NJeZUGTg+qWASooyMKXJ3YB62KArf+GEJ6OOvJNHqxUme3mdYkZhf8EpEv0c kTIuc/+k6OgsOouRUTknsGfbt4VNrxUTfqQKpmVTMdB6RtxxxRxOQGEUv7n0ohGfBSVBJTiqPyLAg RDSLJuoLDdgqg46LgkC9D2tCExiUyjx1SbNVURLzReCPPlUjp+HhyW8Yqpk4GimwOkK3TvFKpNpEx JyhX3ncw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1i6i-0000000HSpj-3PXx; Fri, 18 Oct 2024 08:13:12 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1i0h-0000000HRLA-0Qes for linux-arm-kernel@lists.infradead.org; Fri, 18 Oct 2024 08:07:04 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D95A115DB; Fri, 18 Oct 2024 01:07:27 -0700 (PDT) Received: from pluto.. (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C8E8E3F528; Fri, 18 Oct 2024 01:06:55 -0700 (PDT) From: Cristian Marussi To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, arm-scmi@vger.kernel.org Cc: sudeep.holla@arm.com, james.quinlan@broadcom.com, f.fainelli@gmail.com, vincent.guittot@linaro.org, etienne.carriere@st.com, peng.fan@oss.nxp.com, michal.simek@amd.com, quic_sibis@quicinc.com, quic_nkela@quicinc.com, dan.carpenter@linaro.org, Cristian Marussi , devicetree@vger.kernel.org, "Rob Herring (Arm)" , Krzysztof Kozlowski Subject: [PATCH 3/5] dt-bindings: firmware: arm,scmi: Introduce more transport properties Date: Fri, 18 Oct 2024 09:06:00 +0100 Message-ID: <20241018080602.3952869-4-cristian.marussi@arm.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20241018080602.3952869-1-cristian.marussi@arm.com> References: <20241018080602.3952869-1-cristian.marussi@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241018_010659_279955_39C4FE38 X-CRM114-Status: GOOD ( 10.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Depending on specific hardware and firmware design choices, it may be possible for different platforms to end up having different requirements regarding the same transport characteristics. Introduce max-msg-size and max-msg properties to describe such platform specific transport constraints, since they cannot be discovered otherwise. Cc: devicetree@vger.kernel.org Cc: Rob Herring (Arm) Cc: Krzysztof Kozlowski Signed-off-by: Cristian Marussi --- .../devicetree/bindings/firmware/arm,scmi.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 54d7d11bfed4..42852ed887f2 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -131,6 +131,22 @@ properties: be a non-zero value if set. minimum: 1 + max-msg-size: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + An optional value, expressed in bytes, representing the maximum size + allowed for the payload of messages transmitted on this transport. + If set it is recommended to be greater or equal than the minimum size + required to support all the messages defined by the set of protocols + implemented on this platform. + + max-msg: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + An optional value representing the maximum number of concurrent in-flight + messages allowed by this transport. If set, the value should be non-zero. + minimum: 1 + arm,smc-id: $ref: /schemas/types.yaml#/definitions/uint32 description: