Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4919113pxj; Wed, 9 Jun 2021 05:14:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ6sEAqigMroEdn9qGpJfJsTkKXGtT1OSwBPl8MN33XWv/CV5bg9BwUydC2UJqmrMIdsCa X-Received: by 2002:a17:906:3181:: with SMTP id 1mr28689075ejy.36.1623240888223; Wed, 09 Jun 2021 05:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623240888; cv=none; d=google.com; s=arc-20160816; b=qbjyTnIFVpG3mbeZOPUicbedwcvOLx5l1wvgzG6nzXfIh+R2KgxCkFvWZM+NcQp+9l JUWd4U0i+RlNq3yLQa1B4tSIZQBIdByzMAmwdItAoDw0QLePgrsODw0SnKseQxMwCgPE QcNZ/iZUo3Vem52ZXBO8i2P6DkMNPoeNCewanRxPxNXd9fdsL8SyqJicIpPh9A4pmxEa 39SrMTDYHDjlgxHk32rslrbHDujGBPz/3kEgcE9BuuN6PsSWHD/9g98Bf7Cj4aAHavw9 kS8hCGTof6ANI84fn4N21PQNFZPc6p9TibjcmEMPwvL4AumqWg2J/Wftx5i8BVm8HJEi haNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gMKLH4rS/DKvR8iDUQoJJqQHHfZrVjbjWSr00Mt64+c=; b=ca6s2Z2H1qXWyxHV6BOp4CQlaVq8d7r4bjo7/6pc9hXDo2cO4Jie9zy0EUB0jaPIf1 CHbsQ35wdQJqJfkRwM9ISQTWOqUH8ekFoUSzBKg6ARcjhRHtE1uruZZQqmqn+ZEqJ6IX ql5X7J2IWTpxGNwcTbGmGL3fO6bReUK8kUVGoLmox1uO2Yd2Ilt70kGIrrzWyB2As59p aPFJ20M6WxweSu40j210UqBU12JxKs4udCxNt5yzLG0tb+hcWzH+2KhIoKppePe4Nd/m s9BT55Dec6Z5MFho8y1oL1aKFP3/g+LeWaeQUC5iTRlHkRfj9kkpXIYsD1E7GH2rcjNt w5eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HtP5BNNO; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si2161825edd.408.2021.06.09.05.14.24; Wed, 09 Jun 2021 05:14:48 -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=@kernel.org header.s=k20201202 header.b=HtP5BNNO; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235277AbhFIA55 (ORCPT + 99 others); Tue, 8 Jun 2021 20:57:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:56212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231765AbhFIA54 (ORCPT ); Tue, 8 Jun 2021 20:57:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E8FDF6124B; Wed, 9 Jun 2021 00:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623200162; bh=9VZZ3dYanjL4pxobsOVDXf3FlQOUGrTbEBeIxBUzJTQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HtP5BNNO1bd7ZPvsPWKIiMgc6B6yH+iG11ZCZDZ1vYm/Q26cd40/0aI/1UbmZ15Yl A61XyLUv0CTFXdyCS9Qqz+lpET5muULfCS/ZYIl3obcMGNBvG2SfD46ZK9iFa/TAes 2v1tsgs3BHL2SmNZfEjgP1KVy0/RoIZJNCyq/DUCo4bbvB9p9N604zhJjO44ZTchAy wYMi/OAxIPaZuRV0noEbhAvNKKtkOC+kCY/Ee7CoMbHIHkmjWjy7/K9+Sgwgw33Oot aQxjqppjUO6oIVjAmYx6hu2pktc+zlHHdSaJ9eZQ2BbM5sSLjT4r8TMjJpX1SuFMgy Nll1j/iq6ABCg== Received: by mail-qt1-f175.google.com with SMTP id r20so1446557qtp.3; Tue, 08 Jun 2021 17:56:02 -0700 (PDT) X-Gm-Message-State: AOAM530Hgf4lidR9soIzaUcC26yep3W6IWY9PCmhXRSaAdzSIExGsQ67 t2jZWgHBxTBQoZGJ7rplGvoyGgNwNmbitbLCBQ== X-Received: by 2002:aed:30cd:: with SMTP id 71mr23683635qtf.31.1623200162179; Tue, 08 Jun 2021 17:56:02 -0700 (PDT) MIME-Version: 1.0 References: <20210607193928.3092186-1-robh@kernel.org> In-Reply-To: <20210607193928.3092186-1-robh@kernel.org> From: Rob Herring Date: Tue, 8 Jun 2021 19:55:51 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: virtio: Convert virtio-mmio to DT schema To: "Michael S. Tsirkin" Cc: devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Jason Wang , Jean-Philippe Brucker , "open list:DRM DRIVER FOR QEMU'S CIRRUS DEVICE" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 7, 2021 at 2:39 PM Rob Herring wrote: > > Convert the virtio-mmio binding to DT schema format. > > Cc: "Michael S. Tsirkin" > Cc: Jason Wang > Cc: Jean-Philippe Brucker > Cc: virtualization@lists.linux-foundation.org > Signed-off-by: Rob Herring > --- > Jean-Philippe, hopefully you are okay with being listed as the > maintainer here. You're the only active person that's touched this > binding. > > .../devicetree/bindings/virtio/mmio.txt | 47 --------------- > .../devicetree/bindings/virtio/mmio.yaml | 60 +++++++++++++++++++ > 2 files changed, 60 insertions(+), 47 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/virtio/mmio.txt > create mode 100644 Documentation/devicetree/bindings/virtio/mmio.yaml > > diff --git a/Documentation/devicetree/bindings/virtio/mmio.txt b/Documentation/devicetree/bindings/virtio/mmio.txt > deleted file mode 100644 > index 0a575f329f6e..000000000000 > --- a/Documentation/devicetree/bindings/virtio/mmio.txt > +++ /dev/null > @@ -1,47 +0,0 @@ > -* virtio memory mapped device > - > -See https://ozlabs.org/~rusty/virtio-spec/ for more details. > - > -Required properties: > - > -- compatible: "virtio,mmio" compatibility string > -- reg: control registers base address and size including configuration space > -- interrupts: interrupt generated by the device > - > -Required properties for virtio-iommu: > - > -- #iommu-cells: When the node corresponds to a virtio-iommu device, it is > - linked to DMA masters using the "iommus" or "iommu-map" > - properties [1][2]. #iommu-cells specifies the size of the > - "iommus" property. For virtio-iommu #iommu-cells must be > - 1, each cell describing a single endpoint ID. > - > -Optional properties: > - > -- iommus: If the device accesses memory through an IOMMU, it should > - have an "iommus" property [1]. Since virtio-iommu itself > - does not access memory through an IOMMU, the "virtio,mmio" > - node cannot have both an "#iommu-cells" and an "iommus" > - property. > - > -Example: > - > - virtio_block@3000 { > - compatible = "virtio,mmio"; > - reg = <0x3000 0x100>; > - interrupts = <41>; > - > - /* Device has endpoint ID 23 */ > - iommus = <&viommu 23> > - } > - > - viommu: iommu@3100 { > - compatible = "virtio,mmio"; > - reg = <0x3100 0x100>; > - interrupts = <42>; > - > - #iommu-cells = <1> > - } > - > -[1] Documentation/devicetree/bindings/iommu/iommu.txt > -[2] Documentation/devicetree/bindings/pci/pci-iommu.txt > diff --git a/Documentation/devicetree/bindings/virtio/mmio.yaml b/Documentation/devicetree/bindings/virtio/mmio.yaml > new file mode 100644 > index 000000000000..444bfa24affc > --- /dev/null > +++ b/Documentation/devicetree/bindings/virtio/mmio.yaml > @@ -0,0 +1,60 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/virtio/mmio.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: virtio memory mapped devices > + > +maintainers: > + - Jean-Philippe Brucker > + > +description: > + See https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=virtio for > + more details. > + > +properties: > + compatible: > + const: virtio-mmio This should be virtio,mmio.