Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp705436ybc; Tue, 12 Nov 2019 08:01:12 -0800 (PST) X-Google-Smtp-Source: APXvYqzqKivXCD8ECFQo8dZtzjjBaIduhkKd8htZvFGNHSM+hzA0cRFD/A+gV2qllNxhnm8SeRXP X-Received: by 2002:a17:906:a3cc:: with SMTP id ca12mr13106164ejb.302.1573574472462; Tue, 12 Nov 2019 08:01:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573574472; cv=none; d=google.com; s=arc-20160816; b=WZZa4XuISER9/CSKbXi3Xy/fo2XwjlikiUtHoOf9WARP7CrqbuE77NRStCSUgVz2Qn 4OPt3WlgvlSpS+uO4eatBxT8Be+DJ/jXOZ6pRvfjm+IdxH/BgttHgejDr0X56y48EJLW +t0tpa5wq7Z92wZqw0bJ2Ttb59fHJtLap9iZ0Ai7S64pC2it/snE9AHcyOEEfsPvB8M4 plbIalIg40RDjF5I58COis0TrD3017QzlUniLGFFRP0uhnyEC740hadRd3r3U7lnz7hy dPlBU65XE44WgmGVr1J/J6lARecCJ8PgXoeqhAlkAcLdngKTN3y+drLg0TdM14u6cln0 vtmA== 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=fYACMKFM+NizKShNEkIHPWPri1uaUK+7BefobAMsvWw=; b=qhrI7pi70n1BRr0YCGOSAR7H+8jnf4hjZSacczp0L6ivSXNwPLKdGlH6w3Amcn9TJh f2/pfDn9WRfwzpDS8lB7z7xVO8J7HPZqXxe6nixoYM31cq4uA9hZbAuSb/jKyH2UrYeL 8ImnRUS9yLgz+KD5Odr4Op5cu579u5U7VGmppPIWGZl28nqXs3eyfBUZnABqEZK3O5mZ h8pEPbeD5ao4tySAuvPL1jxBpAgy/Qs202K6QU6Sd7naXLe15yi2Ch1l1cFVgIsagT8i hn3SCbQ4QyiDDBYycU86S4VGYoXNzd2fGr5/i454+dYHfbCAOsVimYGxbKyZgfHTrh17 BXGg== 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 k24si13531197edk.367.2019.11.12.08.00.47; Tue, 12 Nov 2019 08:01:12 -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 S1727083AbfKLP7p (ORCPT + 99 others); Tue, 12 Nov 2019 10:59:45 -0500 Received: from mx2.suse.de ([195.135.220.15]:56988 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726991AbfKLP7n (ORCPT ); Tue, 12 Nov 2019 10:59:43 -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 E3AEFB3B4; Tue, 12 Nov 2019 15:59:40 +0000 (UTC) From: Nicolas Saenz Julienne To: andrew.murray@arm.com, maz@kernel.org, linux-kernel@vger.kernel.org, Eric Anholt , Stefan Wahren , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Bjorn Helgaas Cc: james.quinlan@broadcom.com, mbrugger@suse.com, phil@raspberrypi.org, jeremy.linton@arm.com, Nicolas Saenz Julienne , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/6] dt-bindings: PCI: Add bindings for brcmstb's PCIe device Date: Tue, 12 Nov 2019 16:59:21 +0100 Message-Id: <20191112155926.16476-3-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191112155926.16476-1-nsaenzjulienne@suse.de> References: <20191112155926.16476-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 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 | 110 ++++++++++++++++++ 1 file changed, 110 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..4cbb18821300 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml @@ -0,0 +1,110 @@ +# SPDX-License-Identifier: GPL-2.0 +%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 + +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 + + "#address-cells": + const: 3 + + "#size-cells": + const: 2 + + "#interrupt-cells": + const: 1 + + interrupt-map-mask: true + + interrupt-map: true + + ranges: true + + dma-ranges: true + + clocks: + maxItems: 1 + + clock-names: + items: + - const: sw_pcie + + msi-controller: + description: Identifies the node as an MSI controller. + type: boolean + + msi-parent: + description: MSI controller the device is capable of using. + $ref: /schemas/types.yaml#/definitions/phandle + + brcm,enable-ssc: + description: Indicates usage of spread-spectrum clocking. + type: boolean + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - "#interrupt-cells" + - interrupt-map-mask + - interrupt-map + - ranges + - dma-ranges + +additionalProperties: false + +examples: + - | + #include + #include + + scb { + #address-cells = <2>; + #size-cells = <1>; + pcie0: pcie@7d500000 { + compatible = "brcm,bcm2711-pcie"; + reg = <0x0 0x7d500000 0x9310>; + #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 + 0 0 0 2 &gicv2 GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH + 0 0 0 3 &gicv2 GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH + 0 0 0 4 &gicv2 GIC_SPI 146 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