Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1431271ybl; Tue, 3 Dec 2019 07:06:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxgXH5q3M37McglPIJ5TRWlNX5lJJv0Pjhk/BtzKaQEFcADLCe91HehOZ7sZvUP4JuIR+h0 X-Received: by 2002:aca:c08b:: with SMTP id q133mr3752776oif.46.1575385581542; Tue, 03 Dec 2019 07:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575385581; cv=none; d=google.com; s=arc-20160816; b=yU/K2v/puK463QRRZ/3Wa/AzwvjJDAM7ohIK2ZcM8Df4tIYyIVdxXClYuEzsXSIB7g 08UPKBj4zlt5K4tDDUo+8q/D6cJZNxX2WWFppeK9USVJEHx6UdQpsd3BNhhWm24TfN9v c/8M05uo9j4NIbBa7/JKehs65esIj9NOgua/RPJdYXDHwqHQG9BBEbog6ZUYd3ZciM6p u81MPijVdaazMHXEf/w5NtnXsS8F1sc8+IbudnMMDBRzjNKYJXpBCdFUzrWRBNnj77Hl kcDnh5e3+/eemVdcoZ2rhS+JriB+sR3M7SIma3p/eYWjOrgE5r4kyuVNASId3QQzLX95 ShwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BfeAM3wNh2jGbL/4U6Cb20kxPUMs+M6SmEfJdHBGIOo=; b=L5NxzvxHMNBuYN4LLPxC0G7HOOQC+abvRkJB7y1+bXGrcn3XsTWR7lzgiEHZNStSFj 13xv0+NuRd3b7Vy92wr4SGXbF9BGEEhgu+oDmHDBOrkP+9t2T6FudUnJhwwt2C9QWy+L 9da+ytx7NKmHHPo5gItsT9UUicI5xZXNC+jsBAA2twmMtdpNlXPexKC1zjxJzV5AF0jf snNxorBHzSB3M50MjcNy0OMMJ5Z4ybEIKwNfJcsLiwKDtUMxAvFpZ4HilTiK0wnXLb5g TY4/UzJRj2OeZ75bJUiUnhyfQZW7TlK+XjgAJopvqXhDpMenL7ygUoB9kIska95q3osM epfw== 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 d187si1367078oif.33.2019.12.03.07.06.00; Tue, 03 Dec 2019 07:06:21 -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 S1726505AbfLCPDQ (ORCPT + 99 others); Tue, 3 Dec 2019 10:03:16 -0500 Received: from foss.arm.com ([217.140.110.172]:43988 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726057AbfLCPDQ (ORCPT ); Tue, 3 Dec 2019 10:03:16 -0500 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 E78F531B; Tue, 3 Dec 2019 07:03:14 -0800 (PST) Received: from localhost (unknown [10.37.6.20]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3888E3F52E; Tue, 3 Dec 2019 07:03:14 -0800 (PST) Date: Tue, 3 Dec 2019 15:03:12 +0000 From: Andrew Murray To: Nicolas Saenz Julienne Cc: maz@kernel.org, linux-kernel@vger.kernel.org, Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Eric Anholt , Stefan Wahren , Bjorn Helgaas , 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, Rob Herring , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH v4 1/8] dt-bindings: PCI: Add bindings for brcmstb's PCIe device Message-ID: <20191203150312.GD18399@e119886-lin.cambridge.arm.com> References: <20191203114743.1294-1-nsaenzjulienne@suse.de> <20191203114743.1294-2-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191203114743.1294-2-nsaenzjulienne@suse.de> User-Agent: Mutt/1.10.1+81 (426a6c1) (2018-08-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 03, 2019 at 12:47:34PM +0100, Nicolas Saenz Julienne wrote: > 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 > Reviewed-by: Rob Herring > > --- Reviewed-by: Andrew Murray > > 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 >