Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3963164ybc; Tue, 26 Nov 2019 01:22:08 -0800 (PST) X-Google-Smtp-Source: APXvYqx2Y1E7EuZz9doL2ixpdxU/B6uvchbsBynqzIZEqDdObIXaTAZBxBtOyoCv6tAwK/+cr3Yo X-Received: by 2002:a17:906:4899:: with SMTP id v25mr41707879ejq.235.1574760128724; Tue, 26 Nov 2019 01:22:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574760128; cv=none; d=google.com; s=arc-20160816; b=STkQLFOnieeEP9NH5jR3d2RWCe/YzY5bwHSP8k8xLWaOs6DgFmQ2UUqzg6f752MtCE cwy7self2hj1VZ+/cQ+MgTj5LCHNex83a1dZ7rIzX2ZZWFuch30jlRT485e5Kl5oqtyr MX4coGXXFAkf6WEBTBEs5E3BTww1cztdUVmygxPP+5cgGFTJlyOWsXuHJVNx/btXtHZF RnE37nKnEA02slbGzJNsP8R6Op4nOaZIzvouOVzpPuUcPdAAGkz2MTycZZ1XZoLBnj1l gM1PvT4NAZ2js+qes13svC2YOSRwBLpXNdEsqok4+LaFYTODfGYE1SP+Qs0BnCFGwL6s pE+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=C/mjWIfv5GDbypDm/RPjAA3/5MRGkSAF6HWGfGSYrds=; b=QL0dEvb6U8QubmB6pOCjpYXC/z43y4/NIWB5UQUPW8RVopvKlgwBg7oK5FvhK1ZGiM Ax6gXUv2tubNjUHSl0fO4zQvV/ALMuHdnfCo/2fETBv5ljvyM9TazfyhCL25UGtHYsjv FkBIaI+89DrnnZ+mTE5q8XgiFGrGeXGuu0ZPjaSbzXxVcswn/Aup2f7EH9FtLF312vEM uBi2qni27yr112nZjwAAhGnGttcz23LGhoAn0tGqqyZjqsR7Dp9ASk5myW2Nav302Dsx tEit6km0dqRw4nYOTQIokcwiioRH8kqL2iehjeBfnZeny2hBA4myPcRxRd+031yXSFVU O1nQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si7684404edd.156.2019.11.26.01.21.45; Tue, 26 Nov 2019 01:22:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727592AbfKZJUl (ORCPT + 99 others); Tue, 26 Nov 2019 04:20:41 -0500 Received: from mx2.suse.de ([195.135.220.15]:47902 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727397AbfKZJUj (ORCPT ); Tue, 26 Nov 2019 04:20:39 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2070ABA56; Tue, 26 Nov 2019 09:20:36 +0000 (UTC) From: Nicolas Saenz Julienne To: andrew.murray@arm.com, maz@kernel.org, linux-kernel@vger.kernel.org, Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Eric Anholt , Stefan Wahren , Bjorn Helgaas Cc: james.quinlan@broadcom.com, mbrugger@suse.com, phil@raspberrypi.org, jeremy.linton@arm.com, linux-pci@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, Nicolas Saenz Julienne , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v3 2/7] dt-bindings: PCI: Add bindings for brcmstb's PCIe device Date: Tue, 26 Nov 2019 10:19:40 +0100 Message-Id: <20191126091946.7970-3-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191126091946.7970-1-nsaenzjulienne@suse.de> References: <20191126091946.7970-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jim Quinlan The DT bindings description of the brcmstb PCIe device is described. This node can only be used for now on the Raspberry Pi 4. Signed-off-by: Jim Quinlan Co-developed-by: Nicolas Saenz Julienne Signed-off-by: Nicolas Saenz Julienne --- Changes since v2: - Add pci reference schema - Drop all default properties - Assume msi-controller and msi-parent are properly defined - Add num entries on multiple properties - use unevaluatedProperties - Update required properties - Fix license Changes since v1: - Fix commit Subject - Remove linux,pci-domain This was based on Jim's original submission[1], converted to yaml and adapted to the RPi4 case. [1] https://patchwork.kernel.org/patch/10605937/ .../bindings/pci/brcm,stb-pcie.yaml | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml diff --git a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml new file mode 100644 index 000000000000..77d3e81a437b --- /dev/null +++ b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/brcm,stb-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Brcmstb PCIe Host Controller Device Tree Bindings + +maintainers: + - Nicolas Saenz Julienne + +allOf: + - $ref: /schemas/pci/pci-bus.yaml# + +properties: + compatible: + const: brcm,bcm2711-pcie # The Raspberry Pi 4 + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + maxItems: 2 + items: + - description: PCIe host controller + - description: builtin MSI controller + + interrupt-names: + minItems: 1 + maxItems: 2 + items: + - const: pcie + - const: msi + + ranges: + maxItems: 1 + + dma-ranges: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: sw_pcie + + msi-controller: + description: Identifies the node as an MSI controller. + + msi-parent: + description: MSI controller the device is capable of using. + + brcm,enable-ssc: + description: Indicates usage of spread-spectrum clocking. + type: boolean + +required: + - reg + - dma-ranges + - "#interrupt-cells" + - interrupts + - interrupt-names + - interrupt-map-mask + - interrupt-map + - msi-controller + +unevaluatedProperties: false + +examples: + - | + #include + #include + + scb { + #address-cells = <2>; + #size-cells = <1>; + pcie0: pcie@7d500000 { + compatible = "brcm,bcm2711-pcie"; + reg = <0x0 0x7d500000 0x9310>; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + interrupts = , + ; + interrupt-names = "pcie", "msi"; + interrupt-map-mask = <0x0 0x0 0x0 0x7>; + interrupt-map = <0 0 0 1 &gicv2 GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; + msi-parent = <&pcie0>; + msi-controller; + ranges = <0x02000000 0x0 0xf8000000 0x6 0x00000000 0x0 0x04000000>; + dma-ranges = <0x02000000 0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>; + brcm,enable-ssc; + }; + }; -- 2.24.0