From patchwork Mon Oct 18 11:40:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 12566093 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 676B0C433EF for ; Mon, 18 Oct 2021 11:44:12 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 2819360FD8 for ; Mon, 18 Oct 2021 11:44:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2819360FD8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jQd0Oh4vdlyM6Fj/I4obWEwXptBy7173ch4e/EzsQLo=; b=wcNkYai2u4DDZ/ ODOw/YaXOKcKv4AsSpWLFGFbhYlSPbg/Kn29OuBczbHXLwLDmJ4eVlLP66JDt88CjS3UKKwFSLk51 q160ezCi8bw5uB6Zbwx2N3IwlAxwT9Qe9CSi1vvAoL5RITvCjaX45Gzp7gUPIhPBYI6oRO0HiYErX EFU3BlsS2/KJ3sEHiTo8LY86pm8ILwFV/nz/CPOxQoeoWquwAP7qqRoZIkpN5If16VGCH2/XGe68y NM2zjnLrn2nYNGdlZ/K0Th5a2Hn2aw6J4rGAZcb6KuzlIG/WAW5k1PElrpvBlZjdLWw+aPCvl63DZ zJTDwZarFvwe9bH0XD/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcR2S-00FOlI-GJ; Mon, 18 Oct 2021 11:42:45 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcR11-00FO44-H1 for linux-arm-kernel@lists.infradead.org; Mon, 18 Oct 2021 11:41:18 +0000 Received: by mail-wm1-x32e.google.com with SMTP id g39so4326932wmp.3 for ; Mon, 18 Oct 2021 04:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=zPIojQ5RzeuaqadWrZEbZpzRMQdeFPgWbBMit52fPcI=; b=iCURnxjSOhHzfeFZMPq+Dv1DY6v6VIS3+6ETqypb9yCgscHKOnVOrAjPtOXGulwZZ2 yquC/Z7szQ0Pbn8pcuG2VwlscpvoQFBAow+6UllYlmDBMG6/iFxXQ9lFYt1MyLAjWlq6 BUmpKU3pHW5R0lbJNFXHAruQLO4gMIHiIgLqbvwSCbf7ciqBk4RAgSUdaw18GYyk1J1m NDyg3RV8Pr4iQu7EGa6rhrQ8BeuXTHex8Sr1n+EmVC9UHBICEYG4gYK1M4phkDGV8ci4 Sx6dx/uoqydpfWYpXElfxKfXAfrHNTWx4KjMxNiKLULnoYk+h1WKbi0zjFNbQXDJxo3H bzvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zPIojQ5RzeuaqadWrZEbZpzRMQdeFPgWbBMit52fPcI=; b=GVfSOamuqZge3tnFMfWt44JmTyw2ZGpGqpt+TRZu42mZH9jfqDzo4etzsZ3pDWwhux 7xXR9vcItZOFA6mmHdbu4BDCV+whB/7N16iam8RUOVxvJKJ9AOKNrPj+/yVJ3ak+k7pD fSyFgOhMlp0mfgatF3gbRRfWWS7gabQiNNstbRWK+fZAZVYZI3kFXkfFmw8ueSPMSR58 /rHEaOBraJE15eYIQCmtSnXffxab8olRlBFAffO9lBpJQArpmNo4Ku/49VdvBV+BL6sz RoGM5nBietgGWM9ZYUII8nBKX50/GPrRfs3TF5t71ADFRM/cboFNtSdE6ob1eezBL+4S Dpag== X-Gm-Message-State: AOAM533uIYbfhQYFX9Hu0HUlZ729xeQALAD8AtGd+8NaO77R5Bza/gsN /Af7dsU54KMYOAQRCt2PK6k7uA== X-Google-Smtp-Source: ABdhPJzmo20Ty+p4ZX0gCo3egFMPZJcbNMmW5ipqMgSzq8bz3svkpuRRIWcVRhAEXuO93/GkyzaueQ== X-Received: by 2002:a05:600c:1d1f:: with SMTP id l31mr42782729wms.44.1634557272930; Mon, 18 Oct 2021 04:41:12 -0700 (PDT) Received: from lmecxl0524.lme.st.com ([2a04:cec0:1042:58b3:f8bd:7b81:c866:9456]) by smtp.gmail.com with ESMTPSA id p18sm13595588wrt.54.2021.10.18.04.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Oct 2021 04:41:12 -0700 (PDT) From: Etienne Carriere To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Sudeep Holla , Cristian Marussi , Vincent Guittot , Etienne Carriere , devicetree@vger.kernel.org, Rob Herring Subject: [PATCH v3 1/2] dt-bindings: arm: Add OP-TEE transport for SCMI Date: Mon, 18 Oct 2021 13:40:45 +0200 Message-Id: <20211018114046.25571-1-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211018_044115_605707_8A468D5F X-CRM114-Status: GOOD ( 11.11 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Introduce compatible "linaro,scmi-optee" for SCMI transport channel based on an OP-TEE service invocation. The compatible mandates a channel ID defined with property "linaro,optee-channel-id". Cc: devicetree@vger.kernel.org Cc: Rob Herring Signed-off-by: Etienne Carriere --- Changes since v2: - Define mandatory property linaro,optee-channel-id - Rebased on yaml description file Changes since v1: - Removed modification regarding mboxes property description. --- .../bindings/firmware/arm,scmi.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 5c4c6782e052..12154ecc081b 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -38,6 +38,9 @@ properties: The virtio transport only supports a single device. items: - const: arm,scmi-virtio + - description: SCMI compliant firmware with OP-TEE transport + items: + - const: linaro,scmi-optee interrupts: description: @@ -83,6 +86,11 @@ properties: description: SMC id required when using smc or hvc transports + linaro,optee-channel-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Channel id required when using OP-TEE transports + protocol@11: type: object properties: @@ -195,6 +203,9 @@ patternProperties: minItems: 1 maxItems: 2 + linaro,optee-channel-id: + maxItems: 1 + required: - reg @@ -226,6 +237,16 @@ else: - arm,smc-id - shmem + else: + if: + properties: + compatible: + contains: + const: linaro,scmi-optee + then: + required: + - linaro,optee-channel-id + examples: - | firmware { @@ -340,7 +361,30 @@ examples: reg = <0x11>; #power-domain-cells = <1>; }; + }; + }; + + - | + firmware { + scmi { + compatible = "linaro,scmi-optee"; + linaro,optee-channel = <0>; + + #address-cells = <1>; + #size-cells = <0>; + + scmi_clk: protocol@14 { + reg = <0x14>; + #clock-cells = <1>; + }; + + scmi_dvfs: protocol@13 { + reg = <0x13>; + #clock-cells = <1>; + linaro,optee-channel = <1>; + shmem = <&cpu_scp_hpri0>; + }; }; };