Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751633AbdFGV3L (ORCPT ); Wed, 7 Jun 2017 17:29:11 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:34505 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751412AbdFGV3J (ORCPT ); Wed, 7 Jun 2017 17:29:09 -0400 Date: Wed, 7 Jun 2017 16:29:07 -0500 From: Rob Herring To: Marc Gonzalez Cc: Bjorn Helgaas , Marc Zyngier , Thomas Gleixner , Robin Murphy , Lorenzo Pieralisi , Liviu Dudau , David Laight , linux-pci , Linux ARM , Thibaud Cornic , Phuong Nguyen , LKML , DT , Mason Subject: Re: [PATCH v5 1/3] PCI: Add DT binding for tango PCIe controller Message-ID: <20170607212907.2wr3hqbokjb74kj3@rob-hp-laptop> References: <741766e5-cff2-db5f-d40b-6866e08fd966@sigmadesigns.com> <69f3ffe7-3c39-fa94-71f8-91744a869cc9@sigmadesigns.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <69f3ffe7-3c39-fa94-71f8-91744a869cc9@sigmadesigns.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1999 Lines: 62 On Wed, May 31, 2017 at 03:30:26PM +0200, Marc Gonzalez wrote: > Binding for the Sigma Designs SMP8759 SoC. > > Signed-off-by: Marc Gonzalez > --- > Documentation/devicetree/bindings/pci/tango-pcie.txt | 30 ++++++++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pci/tango-pcie.txt b/Documentation/devicetree/bindings/pci/tango-pcie.txt > new file mode 100644 > index 000000000000..35ef2c811a27 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pci/tango-pcie.txt > @@ -0,0 +1,30 @@ > +Sigma Designs Tango PCIe controller > + > +Required properties: > + > +- compatible: "sigma,smp8759-pcie" > +- reg: address/size of PCI configuration space, address/size of register area > +- device_type: "pci" > +- #size-cells: <2> > +- #address-cells: <3> > +- msi-controller > +- ranges: translation from system to bus addresses > +- interrupts: spec for misc interrupts, spec for MSI > + > +http://elinux.org/Device_Tree_Usage#PCI_Address_Translation > +http://elinux.org/Device_Tree_Usage#Advanced_Interrupt_Mapping Why are these here? There's several standard properties you are missing like bus-range. Build your dts with "W=2". dtc recently gained some checks for PCI bindings. > + > +Example: > + > + pcie@2e000 { > + compatible = "sigma,smp8759-pcie"; > + reg = <0x50000000 SZ_4M>, <0x2e000 0x100>; > + device_type = "pci"; > + #size-cells = <2>; > + #address-cells = <3>; > + msi-controller; > + ranges = <0x02000000 0x0 0x00400000 0x50400000 0x0 SZ_60M>; I don't think SZ_60M exists or is available to dts files. Just put the number in. > + interrupts = > + <54 IRQ_TYPE_LEVEL_HIGH>, /* misc interrupts */ > + <55 IRQ_TYPE_LEVEL_HIGH>; /* MSI */ > + }; > -- > 2.11.0 > > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html