Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp733436pxj; Fri, 11 Jun 2021 10:04:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlj8/sjXlNOPk+ILGqytpiU/UNGFK7eeWnVThJvNNuPLgocNpE0GBBB5OlN+9BffJd3NMz X-Received: by 2002:a17:906:70d4:: with SMTP id g20mr4460379ejk.327.1623431052760; Fri, 11 Jun 2021 10:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623431052; cv=none; d=google.com; s=arc-20160816; b=qsAwnyWCJ+N6xe7hLKjhrtZ/HRt8R8h7LiWtuLvEjkpVm3DEtQZEHE6oXNVWJA/jPf OehCM6yM27zzRkAOE5pcMWdZMvEkAUkUQWCiMoVhv702acu8eHp+Fvfk2PrMeD2QX+MW BL4jJjAwkUBLRADgY8ukUSE0/oHocj+kaYEy5nKtTonYPzs/XeANEz7O6ZEBti/amR2J z1Qbis2SO9W1E5pVApU+jVcxsOmle8tc5FY1U0qlLQH6L9k9SjFtr2OxcQTvMgU9dpnV 9IzI9wVZQIcnomoanQ6BipN016E0lPJvZUh8PXq0RIn8tVWQUrCol7RQLVUzTJ26OC8d 15kg== 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=Rw/xDGzNIPgvnJnW+3M0cLIk1fxExUa6sRmQxgZPnDE=; b=SMHhwYrXJpg1CvDveKs0ZiVORudbcqqclJmuiyXWv3RQur5ln82G4xsBYF312D9vfo tfJBpeDoaW33Rnt9L4G2k0kcYvIp7FA68G3L7qzEEYfGioQXBNLB7FMcRt6bqUlfJtXM MDvNZR3uaRxYuzsZQRWBC1w/9W/DlzO7dJAfvvIZpqhekP6XTJRUNpKoxKjGiioBWMZm 4HObWT6+avBI3LgmLZWSmvwjiHWthGNUoVCIK7JYe5SPs+SR3trX0gvTbHFcGXUctZ+s AViUlexxVidlFaD0ZcDakNgeL0MyEPyEi5dKHyzC5WcPF9Ei4XT8H4F895HRtunEujXd jUQA== 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 ds7si3463454ejc.236.2021.06.11.10.03.44; Fri, 11 Jun 2021 10:04:12 -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 S231453AbhFKRDP (ORCPT + 99 others); Fri, 11 Jun 2021 13:03:15 -0400 Received: from foss.arm.com ([217.140.110.172]:35780 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbhFKRDK (ORCPT ); Fri, 11 Jun 2021 13:03:10 -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 E118BD6E; Fri, 11 Jun 2021 10:01:11 -0700 (PDT) Received: from e120937-lin.home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 718DF3F719; Fri, 11 Jun 2021 10:01:08 -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, Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v4 13/16] dt-bindings: arm: Add virtio transport for SCMI Date: Fri, 11 Jun 2021 17:59:34 +0100 Message-Id: <20210611165937.701-14-cristian.marussi@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210611165937.701-1-cristian.marussi@arm.com> References: <20210611165937.701-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 CC: Rob Herring CC: devicetree@vger.kernel.org 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. ] Co-developed-by: Cristian Marussi 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