Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp407775ybg; Tue, 28 Jul 2020 08:55:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7lUvFC2QQy9N+NS0ITb4wPqqvNQh1aFKv/dhiJcgig1K8pm4eUWVSFdW7dRDeb4GElmdq X-Received: by 2002:a17:906:4157:: with SMTP id l23mr9921763ejk.491.1595951745485; Tue, 28 Jul 2020 08:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595951745; cv=none; d=google.com; s=arc-20160816; b=ABmiwJFU8QPMj6aU0Tf7+FOayjwSVjCkuiMtCrZPb96boXJp42F3z7aWVShOEw92xe b8Pf8Hyh2ktQsAOFqqm7w0+z5PNLc9QUL/LMRCb+IH5Pr9NBh/OhvFFtrMIiWz08t7CX U546nQDOlAu45DIXxQnKgQSJ7jiOiZfY8zNn8VxD+5OcDdvuIuFbs4ZC+9o0uxzkLy3J 2T4qfosENYiA7urDLjzGASgdgnz9nz1ax950Y5mqQvMtidLnGNz+WB8QX7huwcI9JIyP qVZCvnAfxIs7OAw7HDM1RrMu75o8OHqhD7JFhiWg0ZWLQYGOqpFuc5u8XkhYAHf79flF NPrg== 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=L7ixZiQcLArnd7v8WuaHzW3wt32xNmgcUP1/eHADW2Q=; b=pdG6uO0uWzX8KBsp8gbNB4n4gJnA9iwagqwVr5Lc2TQvpAw1RULZ3W4wQokWLl0frI DzPCaBetVKO6xcUe5Ta0LtzuifkiiZ79u8HlYH3kPUmfkjwZ6EzGggC3e/5vyOSWUFze Vwb/rR842t7lUeKsGXxbVls4GVFtXDghsuiTc2SoFgP40oHpwDS6q88nXBSlbWD5clJk 0LAixwT0OX0D0s0k1W18gHZndODVOb/9Ab533602ULC0qeDMCEMKr8/ars7yeCLrXUAq GtVIWYl1W8FBxSnpv83Td1cF2IzCMDt7URinI3aig3nVcp0+9euSQ31M47vehyI8PTRq AZAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=En2lNNu0; 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 n15si8259150eje.190.2020.07.28.08.55.23; Tue, 28 Jul 2020 08:55:45 -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=En2lNNu0; 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 S1731170AbgG1PyO (ORCPT + 99 others); Tue, 28 Jul 2020 11:54:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:55912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731164AbgG1PyO (ORCPT ); Tue, 28 Jul 2020 11:54:14 -0400 Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (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 62C6D20809; Tue, 28 Jul 2020 15:54:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595951653; bh=geGOpmuJBayngowsjLPNX2sbYfZomv1ccf9LWNqVwKM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=En2lNNu0u7wbRApCKOaffuq6dP9kx4/IPMKFXpxUTW+HRDP84Fv0Pu2Rw8DCVsS6/ O4dZZP49UyoGnI0XeoWRDYWIr8ksIoMdMMFBa0A6CiJQTUVBiy54CRPFJ1GBdRsZkz +oARxSml34pPR4hJaCztC+/w4pZJ3u3ptx2tn3lk= Received: by mail-ot1-f43.google.com with SMTP id h1so15201141otq.12; Tue, 28 Jul 2020 08:54:13 -0700 (PDT) X-Gm-Message-State: AOAM5306GGPyMXRYKis696z7sWDMtgO2gHkpg0hzg12IdlBAWtpQ+byI zg6BwUaKyKafGRttnRJ9tDWQ8lnfOUSv9pnSiA== X-Received: by 2002:a9d:46c:: with SMTP id 99mr25143787otc.192.1595951652672; Tue, 28 Jul 2020 08:54:12 -0700 (PDT) MIME-Version: 1.0 References: <1595776013-12877-1-git-send-email-sivaprak@qti.qualcomm.com> In-Reply-To: From: Rob Herring Date: Tue, 28 Jul 2020 09:54:00 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V2] dt-bindings: pci: convert QCOM pci bindings to YAML To: Sivaprakash Murugesan Cc: Andy Gross , Bjorn Andersson , Bjorn Helgaas , Sivaprakash Murugesan , linux-arm-msm , PCI , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" 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 Tue, Jul 28, 2020 at 9:27 AM Rob Herring wrote: > > On Sun, Jul 26, 2020 at 9:07 AM Sivaprakash Murugesan > wrote: > > > > From: Sivaprakash Murugesan > > > > Convert QCOM pci bindings to YAML schema > > > > Signed-off-by: Sivaprakash Murugesan > > --- > > [v2] > > - Referenced pci-bus.yaml > > - removed duplicate properties already referenced by pci-bus.yaml > > - Addressed comments from Rob > > .../devicetree/bindings/pci/qcom,pcie.txt | 330 --------------- > > .../devicetree/bindings/pci/qcom,pcie.yaml | 447 +++++++++++++++++++++ > > 2 files changed, 447 insertions(+), 330 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/pci/qcom,pcie.txt > > create mode 100644 Documentation/devicetree/bindings/pci/qcom,pcie.yaml > > > > diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > > new file mode 100644 > > index 000000000000..ddb84f49ac1c > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > > @@ -0,0 +1,447 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > + > > +%YAML 1.2 > > +--- > > +$id: "http://devicetree.org/schemas/pci/qcom,pcie.yaml#" > > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > > + > > +title: Qualcomm PCI express root complex > > + > > +maintainers: > > + - Sivaprakash Murugesan > > + > > +description: > > + QCOM PCIe controller uses Designware IP with Qualcomm specific hardware > > + wrappers. > > + > > +properties: > > + compatible: > > + enum: > > + - qcom,pcie-apq8064 > > + - qcom,pcie-apq8084 > > + - qcom,pcie-ipq4019 > > + - qcom,pcie-ipq8064 > > + - qcom,pcie-ipq8074 > > + - qcom,pcie-msm8996 > > + - qcom,pcie-qcs404 > > + - qcom,pcie-sdm845 > > + > > + reg: > > + description: Register ranges as listed in the reg-names property > > Can drop this. > > > + maxItems: 4 > > + > > + reg-names: > > + items: > > + - const: dbi > > + - const: elbi > > + - const: parf > > + - const: config > > + > > + ranges: > > + maxItems: 2 > > + > > + interrupts: > > + items: > > + - description: MSI interrupts > > + > > + interrupt-names: > > + const: msi > > + > > + "#interrupt-cells": > > In pci-bus.yaml, so you can drop. > > > + const: 1 > > + > > + interrupt-map-mask: > > In pci-bus.yaml, so you can drop. Actually, you'll need to do 'interrupt-map-mask: true' on these. > > > + items: > > + - description: standard PCI properties to define mapping of PCIe > > + interface to interrupt numbers. > > + > > + interrupt-map: > > + maxItems: 4 > > + > > + clocks: > > + minItems: 1 > > + maxItems: 7 > > + > > + clock-names: > > + minItems: 1 > > + maxItems: 7 > > + > > + resets: > > + minItems: 1 > > + maxItems: 12 > > + > > + reset-names: > > + minItems: 1 > > + maxItems: 12 > > + > > + power-domains: > > + maxItems: 1 > > + > > + vdda-supply: > > + description: phandle to power supply > > + > > + vdda_phy-supply: > > + description: phandle to the power supply to PHY > > + > > + vdda_refclk-supply: > > + description: phandle to power supply for ref clock generator > > + > > + vddpe-3v3-supply: > > + description: PCIe endpoint power supply > > + > > + phys: > > + maxItems: 1 > > + items: > > + - description: phandle to the PHY block > > Can drop 'items'. > > With those fixed, > > Reviewed-by: Rob Herring