Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp581245pxa; Fri, 21 Aug 2020 15:14:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoxIVDJN0BlBEmJvC50YZ8lBmrIKYV4TZR8PnjawO+rxpBIzmpRz6Z7+HZZq1bEgfVr/iy X-Received: by 2002:a17:906:fa15:: with SMTP id lo21mr5180858ejb.42.1598048058386; Fri, 21 Aug 2020 15:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598048058; cv=none; d=google.com; s=arc-20160816; b=RiSP6vtPKRtkg/lUYBBxZRxre/onQBkgjunjGtritYZLnRNDEJdy0RSCMPXqrmZUhi 6qoVaioOYpR5fIjYlrbLI75snwvE49TovcOz1FNFyTsru7z9IQql/vM5JuCI29D+alaJ CU3Co4s4udMmdGIHj2nf7RcT4rI1uYxZCRRYuCGwVHkOud+1klb4FSQcBrM7jaZKAMl+ Y75tLjYb4tg4x699/FC/ijK+5y7PB7ujkcSXOb+KvWWgS6sN7Anw6Pb/H6hbzXTzJMAN /qnCLH78lCNQtG5ySQAXSgtQERF8oN1Nf+tS1ClyoO63kMuOVh0mqsi4NuwrfmefJReL jzCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=R3DTXx0Co9oLr6+/lJMHaWXumtW+zp5VS8ZtBntWv0c=; b=Yx4kgYkKRq+8MXDWsgT5GDktvSYrqwD6KuCC78oowJU8y5wort5VW/SCQwEvcdgGYy oXrNZf8C7jyxnuYsAogC/L3fjgXYbh8CiysbsaRLh1idoLC9+RcBxD6vNtztIB3PLF2Q gABlVqlcPTRh15htjVfKHvWnUoXgzdKgm7jK7WojhdKM2qX3/cC8A+TQr8Xca6ZrtJXN vHgFx5fkg992bwVi80VZgzm2DiF/qbK9du+lYHncyHjepUseDwLgbdsA4xLX61gWBev3 PwsVr1L7NSyzQQ+ulSSEeBuCc5/oEE3cRlSr2cXc0hj+KLwXVe9xUym1Wxq/Pv+6ADPB hK7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aX8ReITK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc15si1778139ejb.374.2020.08.21.15.13.54; Fri, 21 Aug 2020 15:14:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aX8ReITK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726816AbgHUWLg (ORCPT + 99 others); Fri, 21 Aug 2020 18:11:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:41782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726641AbgHUWLf (ORCPT ); Fri, 21 Aug 2020 18:11:35 -0400 Received: from mail-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B61422087D; Fri, 21 Aug 2020 22:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598047894; bh=fjUhRuQKm8f1fb1XU0Zes6sQDguM9nwNey/Mjg35Qho=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aX8ReITKM/Ta8LYT5WqOhz02VJTGSGvn7Mw8W7e+XUMMiBHEu+OeNJvyK4jVY0VCt t6OjIKsIKF7mQtHBI0qaLf9egUKAq+ilN+m34gGKwGuIcfVEyw95MKpCP8mkryPOPG +TydynQFsLt1TVnV3Ccq2fAClSMNql6z6T5vvzro= Received: by mail-oo1-f42.google.com with SMTP id x6so672494ooe.8; Fri, 21 Aug 2020 15:11:34 -0700 (PDT) X-Gm-Message-State: AOAM530JTZVYpnhX4UVs10IrBm4iP2kne9cCAoNTuvjtJped0p8Z94B5 ++hEIT0ZGdGPniQNSxL425PDmsIWVmMwp9kGVA== X-Received: by 2002:a4a:a60a:: with SMTP id e10mr3730622oom.25.1598047893992; Fri, 21 Aug 2020 15:11:33 -0700 (PDT) MIME-Version: 1.0 References: <1598003509-27896-1-git-send-email-wuht06@gmail.com> <1598003509-27896-2-git-send-email-wuht06@gmail.com> In-Reply-To: <1598003509-27896-2-git-send-email-wuht06@gmail.com> From: Rob Herring Date: Fri, 21 Aug 2020 16:11:22 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: PCI: sprd: Document Unisoc PCIe RC host controller To: Hongtao Wu Cc: Lorenzo Pieralisi , Orson Zhai , Baolin Wang , Chunyan Zhang , PCI , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Billows Wu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 21, 2020 at 3:52 AM Hongtao Wu wrote: > > From: Billows Wu > > This series adds PCIe bindings for Uisoc SoCs. typo > This controller is based on DesignWare PCIe IP. > > Signed-off-by: Billows Wu > --- > .../devicetree/bindings/pci/sprd-pcie.yaml | 88 ++++++++++++++++++++++ > 1 file changed, 88 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pci/sprd-pcie.yaml > > diff --git a/Documentation/devicetree/bindings/pci/sprd-pcie.yaml b/Documentation/devicetree/bindings/pci/sprd-pcie.yaml > new file mode 100644 > index 0000000..6eab4b8 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pci/sprd-pcie.yaml > @@ -0,0 +1,88 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pci/sprd-pcie.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: SoC PCIe Host Controller Device Tree Bindings > + > +maintainers: > + - Billows Wu > + > +allOf: > + - $ref: /schemas/pci/pci-bus.yaml# > + - $ref: "sprd-pcie.yaml#" Drop this. You don't need to include yourself. > + > +properties: > + compatible: > + items: > + - const: sprd,pcie > + - const: sprd,pcie-ep > + > + reg: > + minItems: 2 > + maxItems: 3 > + items: > + - description: Controller control and status registers. > + - description: PCIe shadow registers. > + - description: PCIe configuration registers. > + > + reg-names: > + items: > + - const: dbi > + - const: dbi2 > + - const: cfg 'config' is the standard name. > + > + ranges: > + maxItems: 2 > + > + num-lanes: > + maxItems: 1 maxItems is for arrays and this is not an array. How many lanes are valid? enum: [ 1, 2, 27?, ... ] > + description: Number of lanes to use for this port. > + > + num-ib-windows: > + maxItems: 1 Not an array. > + description: Number of inbound windows to use for this port. > + > + num-ob-windows: > + maxItems: 1 Not an array. > + description: Number of outbound windows to use for this port. > + > + bus-range: > + description: Range of bus numbers associated with this controller. Drop if you don't have constraints. > + > + interrupts: > + maxItems: 1 > + > + interrupt-names: > + maxItems: 1 Need to define the name, though you don't really need this with only 1. > + > +required: > + - compatible > + - reg > + - reg-names > + - num-lanes > + - ranges > + - bus-range > + - interrupts > + - interrupt-names > + > +examples: > + - | > + #include > + pcie0@2b100000 { > + compatible = "sprd,pcie", "snps,dw-pcie"; Didn't document "snps,dw-pcie". You'll need a custom 'select' to avoid selecting all instances of "snps,dw-pcie". > + reg = <0x0 0x2b100000 0x0 0x2000>, > + <0x2 0x00000000 0x0 0x2000>; > + reg-names = "dbi", "config"; > + #address-cells = <3>; > + #size-cells = <2>; > + device_type = "pci"; > + ranges = <0x01000000 0x0 0x00000000 0x2 0x00002000 0x0 0x00010000 > + 0x03000000 0x0 0x10000000 0x2 0x10000000 0x1 0xefffffff>; > + bus-range = <0 15>; > + num-lanes = <1>; > + num-viewport = <8>; > + interrupts = ; > + interrupt-names = "msi"; > + }; > -- > 2.7.4 >