Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05235C433EF for ; Tue, 21 Sep 2021 18:36:58 +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 CB0E960ED8 for ; Tue, 21 Sep 2021 18:36:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CB0E960ED8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=openbsd.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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UrePHmm+0bxv6WD5kv6Wfmlb1dkkNN3v1um3r+2cnjc=; b=GCKJA5lhQ+v5Lt OFGU1Nht90krNTfViFShe+EN+VUNVdcf7b0VUch9Ek/eIrbeiG3jMxc2YfEvKKlWisccDahoEE+t1 NNXw8gzzKJ2WfLOTHqqBiJJRTaj61BPwBbh1tyhhwyUQ445OHPTn5jSBl+zkxfQWv4y3RivLiWM+S YakFvumvYiiHoY1NNRiCUBYDBAIOmabZTMiUJyeF/jUKSl45ifzGOYV+ra1izV+Kdcf+rhl/gUHzm 665CLDXnGg5ZL3a7dN2JlXuJKTA3hDh6lVh8o+CpB8Pt6LpABkogTMqvV9IFlSk4lxPtrLW4Yrwdw e9y80glu8Jqg5JoOuPvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSkbZ-005UJZ-FQ; Tue, 21 Sep 2021 18:34:57 +0000 Received: from lb3-smtp-cloud7.xs4all.net ([194.109.24.31]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSkbM-005UHu-5X; Tue, 21 Sep 2021 18:34:45 +0000 Received: from cust-df1d398c ([IPv6:fc0c:c1f5:9ac0:c45f:1583:5c5b:91fa:2436]) by smtp-cloud7.xs4all.net with ESMTPA id Skb8mlMr9pQdWSkbKmYt3s; Tue, 21 Sep 2021 20:34:42 +0200 From: Mark Kettenis To: devicetree@vger.kernel.org Cc: maz@kernel.org, robin.murphy@arm.com, sven@svenpeter.dev, alyssa@rosenzweig.io, Mark Kettenis , Thomas Gleixner , Rob Herring , Hector Martin , Bjorn Helgaas , Nicolas Saenz Julienne , Jim Quinlan , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Daire McNamara , Saenz Julienne , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-rpi-kernel@lists.infradead.org Subject: [PATCH v5 1/4] dt-bindings: interrupt-controller: Convert MSI controller to json-schema Date: Tue, 21 Sep 2021 20:34:12 +0200 Message-Id: <20210921183420.436-2-kettenis@openbsd.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210921183420.436-1-kettenis@openbsd.org> References: <20210921183420.436-1-kettenis@openbsd.org> MIME-Version: 1.0 X-CMAE-Envelope: MS4xfIlpYFiGaSAXpAnocbCedhdc9w5ORcy16MbexeqrUt9heusGvQR0ct6u4W6KKa6LUSEWt+uhsEfl8afqN2dav/AIj6sBKWxbG9ZqBF2tlE9E5Cx5r8+k naUalhJp0zKsE4TOQhfQMFHq55Lrz/RM2X8AB6F8/si00+vAWZub9nXSB5WcskFXqtUc8+gzveqVg3FS/tOkXh3SJXBCSEGDaJ19KIYnKKvTosrJgAYNMQTC WtwbSAt3CAxnXztaa8/bOKIRxw/bU/8KYv+dhpEm4Dpv8nMqZW35oMSVOA7SzFJ/ms3uMI6ky/d6UB+aF7Hl0Zz/pqckuNfp7CPAT4E1k3EfhZ6E1/J1vioc 01RqHspf3sNw/DUSrTFNRhaWFi68u59GYc/BMiRuFDIUoznpmRo0/Kym8TegGcJPVtKwFnYu6HyVhOby9rXmGBTkYpUMUU4RFKwXfJslLRU1wUoYzSG67QcR +/e62w6eVOFfzYtaYOfXe1QkN3rAtfP2WplmzBd/vjcR6rSvjBwOCpDdVmfgEWzYuP+LghAvuLVz6cC/X2xhKL0P2ZVjvDqTRh4CdlDJW6VuHCMNkGoYjebQ ZLH8olt0tsweARdGIdcocruZubPsiQywSMPOn7cixe6mhQV1aT3d+lq2wks00hHAdPcaRDH5TbHNjjiAuYj34bzWCUXHQ2TgZXzz1rq13pzEZqQ4gNyFQihq 7PO/Cyy5m7EvFdT1qLmgvwaweeAQTmxp19tR6quO9gCIAunQ3LmrdrJkjQ91aTRxv2JffkD+JtDaK7IHhQdcRfHiyVxLNuB9MVL3wVJ0RS+j35CTGqTLTW61 wR3ISaGZteDGDJoOLDg6e1yEoV3z8A79nV7i9BuG+j2XiOzd7JtJrx5QLi5abA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210921_113444_422791_2122D9F6 X-CRM114-Status: GOOD ( 13.96 ) 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 Split the MSI controller bindings from the MSI binding document into DT schema format using json-schema. Acked-by: Marc Zyngier Signed-off-by: Mark Kettenis --- .../interrupt-controller/msi-controller.yaml | 38 +++++++++++++++++++ .../bindings/pci/brcm,stb-pcie.yaml | 1 + .../bindings/pci/microchip,pcie-host.yaml | 1 + 3 files changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml b/Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml new file mode 100644 index 000000000000..58d898d5b943 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/msi-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MSI controller + +maintainers: + - Marc Zyngier + +description: | + An MSI controller signals interrupts to a CPU when a write is made + to an MMIO address by some master. An MSI controller may feature a + number of doorbells. + +properties: + "#msi-cells": + description: | + The number of cells in an msi-specifier, required if not zero. + + Typically this will encode information related to sideband data, + and will not encode doorbells or payloads as these can be + configured dynamically. + + The meaning of the msi-specifier is defined by the device tree + binding of the specific MSI controller. + enum: [0, 1] + + msi-controller: + description: + Identifies the node as an MSI controller. + $ref: /schemas/types.yaml#/definitions/flag + +dependencies: + "#msi-cells": [ msi-controller ] + +additionalProperties: true diff --git a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml index b9589a0daa5c..1fe102743f82 100644 --- a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml @@ -88,6 +88,7 @@ required: allOf: - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/interrupt-controller/msi-controller.yaml# - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml index fb95c276a986..7b0776457178 100644 --- a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml +++ b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml @@ -11,6 +11,7 @@ maintainers: allOf: - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/interrupt-controller/msi-controller.yaml# properties: compatible: -- 2.33.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel