From mboxrd@z Thu Jan 1 00:00:00 1970 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 402C1C433F5 for ; Wed, 27 Oct 2021 20:36:19 +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 0E9DB60EB4 for ; Wed, 27 Oct 2021 20:36:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0E9DB60EB4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5S6+pFMh71sqz5gGPXz+1HZvLo5H0AF8ppTVZk8uA+0=; b=mRfpsOIS5ijgRY OgZG+kpg3h6NrEaGkNXTCO1TN88ymxPwtVsO8C3x11jPBonNKzReaGxHKXEv9xNW6mlFvTqw6r+KT Zdf4Qc9IGJRuehfMlaWY7jUp19UPXvAkd0nYoe3cLie9BDP4VDRyGv/yp9JhuGQRWpXr6PImDAxVb lYSf11XCyX3gZmpCnpi/g2PuKSALzin8F87/q5HQ+/hy0X87YzY0JB/9thHavQVcAA8gFnelcH1CQ oig7cGJJbZPlB5k5rcx6qZTUtYQ3ZVAy0IND5W7J/CkjoUuHD6M1CzvktQAwmnRAMEilX9pQWu5Pi 18k/bl2Df9MG/XaYhf6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfpdY-0064gk-MM; Wed, 27 Oct 2021 20:35:04 +0000 Received: from mail-yb1-f174.google.com ([209.85.219.174]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfpdU-0064fT-UM for linux-arm-kernel@lists.infradead.org; Wed, 27 Oct 2021 20:35:02 +0000 Received: by mail-yb1-f174.google.com with SMTP id r184so9479434ybc.10 for ; Wed, 27 Oct 2021 13:34:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7Gt7yecOdAu4EbIT5+gTrHUMc9b48g82wGEBF8mjpDQ=; b=PnSGKmj4m/o0y6CXcr2TFE+Fsmx89a4dx2Y8HjPDG5BIETvOsmctWRJOoY+buLEV9+ kAdh1XyK3C7wUw+FMrosxV2yFXmnqMFuep5CRvZErNTJ8XIheAXMErKsr7Dn00mpKyKW vhYboeWvm28LuMN0CQ/0Ws6HWvzwYDiiX4FN0nNr3dauBd8v9w6ylhLfdFSiQ+wsSzfV L3Dc+u1ZJdjqXb4ixxew4ABepD3fgJyD6HNQwKMYjV03n2+fYRHrKUZcwwOg0So+GApJ o3z2O7Ws/co2QIJ4xMFBYoUKQ0H+DL6GthnGeqyL66XSwqHSx/LT4kaN8gP74kfmBYOg Rd7Q== X-Gm-Message-State: AOAM533hfaI/Sm9gCfCPTEaBUwyjO7y1U30XegSh00KpszO53kl/nRuh nemTuOQ2/mpe5OCQhOxMFmuN29f8nw== X-Google-Smtp-Source: ABdhPJxI0okT+tWwLZSJQkZ2bNESj5RO9j1ClK0XZe9EiCGZ3rwINTKkL792OhnRkHUQmV7CNHDEMw== X-Received: by 2002:a9d:7987:: with SMTP id h7mr5341884otm.82.1635366531369; Wed, 27 Oct 2021 13:28:51 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id m34sm332238ooi.16.2021.10.27.13.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Oct 2021 13:28:50 -0700 (PDT) Received: (nullmailer pid 2096909 invoked by uid 1000); Wed, 27 Oct 2021 20:28:50 -0000 Date: Wed, 27 Oct 2021 15:28:50 -0500 From: Rob Herring To: Etienne Carriere Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sudeep Holla , Cristian Marussi , Vincent Guittot , devicetree@vger.kernel.org Subject: Re: [PATCH v6 1/2] dt-bindings: arm: Add OP-TEE transport for SCMI Message-ID: References: <20211026152128.5834-1-etienne.carriere@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211026152128.5834-1-etienne.carriere@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211027_133500_992845_9E58CF55 X-CRM114-Status: GOOD ( 20.80 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Oct 26, 2021 at 05:21:27PM +0200, Etienne Carriere wrote: > 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 > --- > No change since v5 > > Changes since v4: > - Fix sram node name in DTS example: s/-shm-/-sram-/ > > Changes since v3: > - Add description for linaro,optee-channel-id in patternProperties > specifying protocol can optionaly define a dedicated channel id. > - Fix DTS example (duplicated phandles issue, subnodes ordering) > - Fix typo in DTS example and description comments. > > 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 | 66 +++++++++++++++++++ > 1 file changed, 66 insertions(+) > > diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > index 5c4c6782e052..d09ebc80e713 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 specifier required when using OP-TEE transport. > + > protocol@11: > type: object > properties: > @@ -195,6 +203,13 @@ patternProperties: > minItems: 1 > maxItems: 2 > > + linaro,optee-channel-id: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Channel specifier required when using OP-TEE transport and > + protocol has a dedicated communication channel. > + maxItems: 1 Don't need maxItems. > + > required: > - reg > > @@ -226,6 +241,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 +365,48 @@ examples: > reg = <0x11>; > #power-domain-cells = <1>; > }; > + }; > + }; > > + - | > + firmware { > + scmi { > + compatible = "linaro,scmi-optee"; > + linaro,optee-channel-id = <0>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + scmi_dvfs1: protocol@13 { > + reg = <0x13>; > + linaro,optee-channel-id = <1>; > + shmem = <&cpu_optee_lpri0>; > + #clock-cells = <1>; > + }; > + > + scmi_clk0: protocol@14 { > + reg = <0x14>; > + #clock-cells = <1>; > + }; > + }; > + }; > + > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + sram@51000000 { > + compatible = "mmio-sram"; > + reg = <0x0 0x51000000 0x0 0x10000>; > + > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0 0x0 0x51000000 0x10000>; > + > + cpu_optee_lpri0: optee-sram-section@0 { > + compatible = "arm,scmi-shmem"; > + reg = <0x0 0x80>; > + }; > }; > }; > > -- > 2.17.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel