Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3052043pxj; Mon, 10 May 2021 17:31:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeI09HNZPN0vIGQ5RcvtOI1Q+OUEB/RjC8MaD9UHSAJ+rf0Mf/J9nVjGI74D7gpnr/+v0l X-Received: by 2002:a5d:9343:: with SMTP id i3mr17276655ioo.77.1620693074307; Mon, 10 May 2021 17:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620693074; cv=none; d=google.com; s=arc-20160816; b=N6D83On/uu+8WIWn/gygNC2EQ7rZTPLvFBgEPN+2RzK51kn8mfBjAyqYqmqPqCvFR6 nSkrNyKfgydt5EM1tBtiM/7IAutXgD4fKCFuXfwRcO2Y5UZl07eCui+kPnFBVGNLHXCk kl3UpeNBBMo51xX17zgn/K4IhmlLDH49F7QIF+Gms5lOHMQRsDnZmLz6hWEW3FQWrvhQ e03yN1qrzNuDGgh9W6l/6HS+1H77BHtvKxAeolGU/9A8Z7j0jZc3HFayuZ91P8taIrNq aWoazIh2SVzXyucr8llVlq+c6OObDYsiVpp5ouOR+MmXMK9ka6vf24q1A68DiL16EXz6 uAtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cmoyI+jbzFuHzPs836GwRHzqAHaRxQ0315002Fo94F8=; b=L47j5JwpxS/kadL+egpwab68H2KVn6XBg6I6GdCSWBJoMFIq2WI0NmgwyNn45e5oTu AlfZpYLsYsnGGW6eifVaWDl+zfRuN7xRIxKmyHVtQrGS3Pqq6bzLKUGXNmIviwcbbtjD zK4VR2RUFa0kfsz4LisaLzbl1Lq7nT6zllTHXIOUg+CNFVaHO28p6TaCWJGVMSN8XROQ /CkWzP6VKohkHwTCPwjLNg83zkA7vjNYdbKpvVrMDziC55kVFHY57TnGRj7bXGaeNTa/ kfdpqE2Ok5f/S2YmcZ0lZ04cbDUzqDOgRAvKhpueFEJytXoQg9wIYt1eHfRpUsbYOlEt 51qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@opensynergy.com header.s=srmailgate02 header.b=oaeVrtyE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=opensynergy.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si19919812iod.102.2021.05.10.17.31.02; Mon, 10 May 2021 17:31:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@opensynergy.com header.s=srmailgate02 header.b=oaeVrtyE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=opensynergy.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230157AbhEKAaM (ORCPT + 99 others); Mon, 10 May 2021 20:30:12 -0400 Received: from mx1.opensynergy.com ([217.66.60.4]:17517 "EHLO mx1.opensynergy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231428AbhEKA3t (ORCPT ); Mon, 10 May 2021 20:29:49 -0400 Received: from SR-MAILGATE-02.opensynergy.com (localhost.localdomain [127.0.0.1]) by mx1.opensynergy.com (Proxmox) with ESMTP id A8397A1A35; Tue, 11 May 2021 02:22:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=opensynergy.com; h=cc:cc:content-transfer-encoding:content-type:content-type :date:from:from:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=srmailgate02; bh=cmoyI+jbzFuH zPs836GwRHzqAHaRxQ0315002Fo94F8=; b=oaeVrtyElQDSd7Y5fDQV9QkAHjE5 RxDo5U3vQ0FHhgk3TBIDiR6iJ9FJAYAlOlRp9zOtISbitCeOkqi6SjF49mIrABcd L99Fj6YBx19pHUGR+dQoicUwo+ADIWRs+mz1aTVtx27sB0BCVV1tGY2ENzp36hIN P7WTwWuHSvMVIdRBHR19sTV2CNq2YNzrtJ1LoI9PjBQ2nBLI45tVRnSR2IvC/70Q 5quP1qI0fmHiILFHkWuEImcWLpU90Cw/wGXti61OrrdDJxE9QioTFbvr82Hyfhg4 WFtn6o+P0YUIY9J1PrPOgKZ21VXtIxwRzJq9agh8KAS4o4fiBmnnqpfhhw== From: Peter Hilber To: , , , CC: Igor Skalkin , Peter Hilber , Rob Herring , , , , , , , , Vasyl Vavrychuk , Andriy Tryshnivskyy , Cristian Marussi Subject: [RFC PATCH v3 10/12] dt-bindings: arm: Add virtio transport for SCMI Date: Tue, 11 May 2021 02:20:38 +0200 Message-ID: <20210511002040.802226-11-peter.hilber@opensynergy.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210511002040.802226-1-peter.hilber@opensynergy.com> References: <20210511002040.802226-1-peter.hilber@opensynergy.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SR-MAIL-01.open-synergy.com (10.26.10.21) To SR-MAIL-02.open-synergy.com (10.26.10.22) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Igor Skalkin Document the properties for arm,scmi-virtio compatible nodes. The backing virtio SCMI device is described in patch [1]. [1] https://lists.oasis-open.org/archives/virtio-comment/202005/msg00096.html Signed-off-by: Igor Skalkin [ Peter: Adapted patch for submission to upstream. ] Co-developed-by: Peter Hilber Signed-off-by: Peter Hilber --- .../devicetree/bindings/arm/arm,scmi.txt | 35 +++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/arm,scmi.txt b/Documentation/devicetree/bindings/arm/arm,scmi.txt index 667d58e0a659..5d209ba666f6 100644 --- a/Documentation/devicetree/bindings/arm/arm,scmi.txt +++ b/Documentation/devicetree/bindings/arm/arm,scmi.txt @@ -13,6 +13,9 @@ the device tree. Required properties: The scmi node with the following properties shall be under the /firmware/ node. +Some properties are specific to a transport type. + +shmem-based transports (mailbox, smc/hvc): - compatible : shall be "arm,scmi" or "arm,scmi-smc" for smc/hvc transports - mboxes: List of phandle and mailbox channel specifiers. It should contain @@ -21,6 +24,15 @@ The scmi node with the following properties shall be under the /firmware/ node. supported. - shmem : List of phandle pointing to the shared memory(SHM) area as per generic mailbox client binding. + +Virtio transport: + +- compatible : shall be "arm,scmi-virtio". + +The virtio transport only supports a single device. + +Additional required properties: + - #address-cells : should be '1' if the device has sub-nodes, maps to protocol identifier for a given sub-node. - #size-cells : should be '0' as 'reg' property doesn't have any size @@ -50,7 +62,8 @@ Each protocol supported shall have a sub-node with corresponding compatible as described in the following sections. If the platform supports dedicated communication channel for a particular protocol, the 3 properties namely: mboxes, mbox-names and shmem shall be present in the sub-node corresponding -to that protocol. +to that protocol. The virtio transport does not support dedicated communication +channels. Clock/Performance bindings for the clocks/OPPs based on SCMI Message Protocol ------------------------------------------------------------ @@ -129,7 +142,8 @@ Required sub-node properties: [5] Documentation/devicetree/bindings/reset/reset.txt [6] Documentation/devicetree/bindings/regulator/regulator.yaml -Example: +Example (mailbox transport): +---------------------------- sram@50000000 { compatible = "mmio-sram"; @@ -237,3 +251,20 @@ thermal-zones { ... }; }; + +Example (virtio transport): +--------------------------- + +virtio_mmio@4b001000 { + compatible = "virtio,mmio"; + ... +}; + +firmware { + ... + scmi { + compatible = "arm,scmi-virtio"; + ... + +The rest is similar to the mailbox transport example, when omitting the +mailbox/shmem-specific properties. -- 2.25.1