Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3015044pxv; Mon, 12 Jul 2021 07:21:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkPRnyC4wh1EakETxZlZe7nZQ14OXtd5G01bHxYkVEi83xJF03bgn2v+QZlNnJiHLmv5cM X-Received: by 2002:a92:c8c3:: with SMTP id c3mr21265221ilq.153.1626099664434; Mon, 12 Jul 2021 07:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626099664; cv=none; d=google.com; s=arc-20160816; b=HDtCpq0La14tfEBiOX+dBDwzB0Bdu/n8WdbluMjNGOlNRZIjp1dThJSoWqP58Ritm0 6+em1diSR6Kd8cv/BdWcfQXGliBlQhpFdEy0QMTVKRnZCyfYrI9mJH6sQ79O07KI3MmZ /sgWI3e9Nr89DtgBcl/DTayI1aOflOjidi0ojEGZYdP4MAUpPhnqmeDO0RqylZi7/Fa2 TPhUUvJrXKzhBjMF7/jYQgvH9pHbSGPiLuYs19wL67wA2xqGYSlhZ2zAXJtjm34yXtnH z28nRnJvRBlV3lM07fDivQ9PVhpbDT99o3lU2RaSBaYupi1p4CFCe2M6SwHhYDrD8FNm 25hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=7rtaH35WpyE6zkbbVrtGPRUaeoH/AIEUE6SoI1MHLNk=; b=iqG5SGrNfH+7WubTlS5Q/LTUKwJSxPndtWvaJ4uExh1E9k4Y+Gu3bSMFRLoYMIuyiY a5YXoKuRJK+k3vHNVaIHrDj0HR5bPS6V3qV/MXnCP+TnJW5nFFHXj1EpKiDF64a8xRLq kGZDMsMkoI4W5x7vmPVHRAVwEEJoEPLhGWs5Ypu3VdnGvnnMRsSzvC2EGUG/k0JSdaGM 9gmphauzVD8XJ/Y9yvlCxQYSaFCoJ2G4gYdhDftf4pEkZHqA/JNUEtVbA/4+mjyGKRAf qhOgTP1EW6wSlyI4s8YejAVJd6vE010zeDvkuIzIQUWcfQCgPfrnsQ4SoUlxgwVVmXN7 NynQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si4183368ilv.72.2021.07.12.07.20.52; Mon, 12 Jul 2021 07:21:04 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235183AbhGLOWs (ORCPT + 99 others); Mon, 12 Jul 2021 10:22:48 -0400 Received: from foss.arm.com ([217.140.110.172]:56184 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235178AbhGLOWp (ORCPT ); Mon, 12 Jul 2021 10:22:45 -0400 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 674B91FB; Mon, 12 Jul 2021 07:19:56 -0700 (PDT) Received: from e120937-lin.home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 196FC3F774; Mon, 12 Jul 2021 07:19:52 -0700 (PDT) From: Cristian Marussi To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, virtualization@lists.linux-foundation.org, virtio-dev@lists.oasis-open.org Cc: sudeep.holla@arm.com, james.quinlan@broadcom.com, Jonathan.Cameron@Huawei.com, f.fainelli@gmail.com, etienne.carriere@linaro.org, vincent.guittot@linaro.org, souvik.chakravarty@arm.com, cristian.marussi@arm.com, igor.skalkin@opensynergy.com, peter.hilber@opensynergy.com, alex.bennee@linaro.org, jean-philippe@linaro.org, mikhail.golubev@opensynergy.com, anton.yakovlev@opensynergy.com, Vasyl.Vavrychuk@opensynergy.com, Andriy.Tryshnivskyy@opensynergy.com Subject: [PATCH v6 16/17] dt-bindings: arm: Add virtio transport for SCMI Date: Mon, 12 Jul 2021 15:18:32 +0100 Message-Id: <20210712141833.6628-17-cristian.marussi@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210712141833.6628-1-cristian.marussi@arm.com> References: <20210712141833.6628-1-cristian.marussi@arm.com> 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]. While doing that, make shmem property required only for pre-existing mailbox and smc transports, since virtio-scmi does not need it. [1] https://lists.oasis-open.org/archives/virtio-comment/202102/msg00018.html Reviewed-by: Rob Herring Signed-off-by: Igor Skalkin [ Peter: Adapted patch for submission to upstream. ] Co-developed-by: Peter Hilber Signed-off-by: Peter Hilber [ Cristian: converted to yaml format, moved shmen required property. ] Signed-off-by: Cristian Marussi --- v3 --> V4 - convertd to YAML - make shmem required only for pre-existing mailbox and smc transport - updated VirtIO specification patch message reference - dropped virtio-mmio SCMI device example since really not pertinent to virtio-scmi dt bindings transport: it is not even referenced in SCMI virtio DT node since they are enumerated by VirtIO subsystem and there could be PCI based SCMI devices anyway. --- Documentation/devicetree/bindings/firmware/arm,scmi.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index cebf6ffe70d5..5c4c6782e052 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -34,6 +34,10 @@ properties: - description: SCMI compliant firmware with ARM SMC/HVC transport items: - const: arm,scmi-smc + - description: SCMI compliant firmware with SCMI Virtio transport. + The virtio transport only supports a single device. + items: + - const: arm,scmi-virtio interrupts: description: @@ -172,6 +176,7 @@ patternProperties: Each sub-node represents a protocol supported. If the platform supports a dedicated communication channel for a particular protocol, then the corresponding transport properties must be present. + The virtio transport does not support a dedicated communication channel. properties: reg: @@ -195,7 +200,6 @@ patternProperties: required: - compatible - - shmem if: properties: @@ -209,6 +213,7 @@ then: required: - mboxes + - shmem else: if: @@ -219,6 +224,7 @@ else: then: required: - arm,smc-id + - shmem examples: - | -- 2.17.1