Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2187857ybl; Thu, 30 Jan 2020 12:56:55 -0800 (PST) X-Google-Smtp-Source: APXvYqx500Oe5A8fRVgQPcVk0+SzZk01vKbKe/Vx18Vdzb6hpmz9D8hYgyQrLyJwjJ5J6MuhIeOD X-Received: by 2002:aca:fc0c:: with SMTP id a12mr4033991oii.118.1580417814875; Thu, 30 Jan 2020 12:56:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580417814; cv=none; d=google.com; s=arc-20160816; b=VDejCRIkPZZ9/svhCAllK/m4kXlyLSe999Cq2EFtBemqo9LJvctPiCUrrXQfaNB0uY I2Li4UBagFhEzngXuHtHRiBmxAboH7g2ZAC5IKlbgr8fY0upC0Z5zKE1i9nS8vAeY4up zesJIW07VYs6TTKof8m7/bJi7dRRUwG+h55wCwDD4Lter9duHr3xAu4lAIy35KhiLU7D tlv0wscGHFC0YV6Fev+rkGgoDX7KuR8to6u72ESh6nj6nyAoihQBXrfwLZwEiOqGLxzY xVC12U3k0RFQOlaGvFEZWl3qIdgP3nlAAfSjbIjzC1j1nfQtriW2kQlaUCjtwqv3wW8B NjUQ== 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=gywvdJG4S8zg1F0N8TnRS+h5mKkXnwAKlRZJYdtt1ZA=; b=n8tOfm1fszsVcCAE4rjJ293fCPXS/2mLF8pO+/AAIhlABceiSg2DDq3jdg4rmNk36u 5AF4xVd3c7A4fk8QARTZrjfuetpICk3yDwNsduReevJmloAuTj97S+7LngsfPCB60QZW 49d2l2pLCEvv0/ZRHu35Ab5dw3tfpZPSLXrMPGgvRmIVOnM0qJvTpYVmHXc3tJUvzLf7 IowaFOaC+p5BeAxK99PCzmLV268z0sb0iXNzRJESu9pDh49C/uQpN5kAHWAvnPvrCYmN Ow07GBtu6TJ0CPIuivsTQw7Dp4vAHZqe+kN1UyvecX3ir7k281mizirOFAEuyW7t7MrP JvmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fqfQnsIO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si3421996oih.141.2020.01.30.12.56.41; Thu, 30 Jan 2020 12:56:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fqfQnsIO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727559AbgA3Uym (ORCPT + 99 others); Thu, 30 Jan 2020 15:54:42 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:41789 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbgA3Uyl (ORCPT ); Thu, 30 Jan 2020 15:54:41 -0500 Received: by mail-ot1-f67.google.com with SMTP id r27so4441039otc.8; Thu, 30 Jan 2020 12:54:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gywvdJG4S8zg1F0N8TnRS+h5mKkXnwAKlRZJYdtt1ZA=; b=fqfQnsIOmo8FmmJdsz2QjZwzZa6CYUyDAHwdulBh0jkPnMA2cImjHHcOxHjDXmQxpK T6gAsbqbhlv3FqXjp2FtLtncpIuSJcy8c0KH8OQQJTA88lgBhyNTywMuTRS39yqoLn9e otCeRvbEC+QbtcPgCrRsBKdFutoKjpNJThPflcqDwcA6dn9elZQwW4cAmhwrC0l8nrWf yuiA5qOtgXUUsuFXmYRkCEKFgLvGn+d6kknn2KBw3Y513xLJzFWTdVL5+bfddX62jeJc U1SjOTbI/s0t/d877OkaPGV10zeH/1DLghuVq4hmhPkuDAIUTiTWYoPaMvWgvAXhqAx7 aSHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gywvdJG4S8zg1F0N8TnRS+h5mKkXnwAKlRZJYdtt1ZA=; b=pWllvH+ILYwfam+MHPZVQGaJiv36prPhp+dE+KE+rSrPtO+pSm58VRTJjvUQcarLjT 1dj1deJXrxttvQu+S5mL9iaV8aagllfLnS1e6nSa2r2QxCJrQ2gjK4H08okZrEgtxduO ei60I99wYdyDWAA8w/UkMfEmb5vl15hAIaY2K9xDpI23xUbTbj8eNOWiPDZQnHpzTlgj w5RxOBWj5AFpb68rmFz/5CW0+jijjP9tOSj/+tOypT4qIdAorwwRiCyCcxmRIIBAQvh0 HbotAMx4tnxfA2i+PuLsf8iQG/3n6IcaKmn3m9csBGh7YRrNw68riiKYrxMCAVIV/D8V MHWw== X-Gm-Message-State: APjAAAVnbSIxueJ6bvHDDxDSiVKDh8SpQDSIXdr0ZclZzOj0XVEEMwMD v+ngJcI6DyNfIg1HDPvIGrkOf6SBNUL/Irrnkuk= X-Received: by 2002:a9d:64ca:: with SMTP id n10mr5023218otl.325.1580417680064; Thu, 30 Jan 2020 12:54:40 -0800 (PST) MIME-Version: 1.0 References: <20200108162211.22358-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200108162211.22358-5-prabhakar.mahadev-lad.rj@bp.renesas.com> <9c65eb7a-539b-1fa3-f988-40c32aa8dfe3@ti.com> In-Reply-To: <9c65eb7a-539b-1fa3-f988-40c32aa8dfe3@ti.com> From: "Lad, Prabhakar" Date: Thu, 30 Jan 2020 20:54:13 +0000 Message-ID: Subject: Re: [v3 4/6] dt-bindings: PCI: rcar: Add bindings for R-Car PCIe endpoint controller To: Rob Herring Cc: Kishon Vijay Abraham I , Bjorn Helgaas , Mark Rutland , Geert Uytterhoeven , Magnus Damm , Marek Vasut , Yoshihiro Shimoda , linux-pci , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Arnd Bergmann , Greg Kroah-Hartman , Andrew Murray , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , LAK , Linux-Renesas , Chris Paterson , Frank Rowand , Gustavo Pimentel , Jingoo Han , Simon Horman , Shawn Lin , Tom Joseph , Heiko Stuebner , "open list:ARM/Rockchip SoC..." , Lad Prabhakar 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 Hi Rob, On Wed, Jan 22, 2020 at 8:13 AM Kishon Vijay Abraham I wrote: > > Hi Prabhakar, > > On 21/01/20 11:27 PM, Lad, Prabhakar wrote: > > Hi Rob/Kishon, > > > > On Wed, Jan 8, 2020 at 4:22 PM Lad Prabhakar wrote: > >> > >> This patch adds the bindings for the R-Car PCIe endpoint driver. > >> > >> Signed-off-by: Lad Prabhakar > >> --- > >> .../devicetree/bindings/pci/rcar-pci-ep.yaml | 76 +++++++++++++++++++ > >> 1 file changed, 76 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/pci/rcar-pci-ep.yaml > >> > >> diff --git a/Documentation/devicetree/bindings/pci/rcar-pci-ep.yaml b/Documentation/devicetree/bindings/pci/rcar-pci-ep.yaml > >> new file mode 100644 > >> index 000000000000..99c2a1174463 > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/pci/rcar-pci-ep.yaml > >> @@ -0,0 +1,76 @@ > >> +# SPDX-License-Identifier: GPL-2.0 > >> +# Copyright (C) 2020 Renesas Electronics Europe GmbH - https://www.renesas.com/eu/en/ > >> +%YAML 1.2 > >> +--- > >> +$id: http://devicetree.org/schemas/pci/rcar-pcie-ep.yaml# > >> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >> + > >> +title: Renesas R-Car PCIe Endpoint > >> + > >> +maintainers: > >> + - Lad Prabhakar > >> + > >> +properties: > >> + compatible: > >> + items: > >> + - const: renesas,r8a774c0-pcie-ep > >> + - const: renesas,rcar-gen3-pcie-ep > >> + > >> + reg: > >> + maxItems: 5 > >> + > >> + reg-names: > >> + items: > >> + - const: apb-base > >> + - const: memory0 > >> + - const: memory1 > >> + - const: memory2 > >> + - const: memory3 > > As I had mentioned in the other patch, I'd prefer if we can create > standard binding for representing the memory regions. IMHO we should > create subnode for memory regions Each sub-node itself may or may not > have more than one memory region. > > In your platform, since there can be only one allocation in a memory > region, there should be 4 sub-nodes for each of the memory region and > each node should have page_size (or some equivalent property) property > to indicate page_size (= region_size). > > For a platform that doesn't have the restriction, there can be a single > sub-node containing all the memory region. > > Let's wait for Rob's comment though. > Gentle ping.on the suggestions above. Cheers, --Prabhakar > Thanks > Kishon > >> + > >> + power-domains: > >> + maxItems: 1 > >> + > >> + resets: > >> + maxItems: 1 > >> + > >> + clocks: > >> + maxItems: 1 > >> + > >> + clock-names: > >> + items: > >> + - const: pcie > >> + > >> + max-functions: > >> + minimum: 1 > >> + maximum: 6 > >> + > >> +required: > >> + - compatible > >> + - reg > >> + - reg-names > >> + - resets > >> + - power-domains > >> + - clocks > >> + - clock-names > >> + - max-functions > >> + > > apart from dt_binding_check error are we OK with dt bindings ? > > > > Cheers, > > --Prabhakar > > > >> +examples: > >> + - | > >> + #include > >> + #include > >> + > >> + pcie0_ep: pcie-ep@fe000000 { > >> + compatible = "renesas,r8a774c0-pcie-ep", > >> + "renesas,rcar-gen3-pcie-ep"; > >> + reg = <0 0xfe000000 0 0x80000>, > >> + <0x0 0xfe100000 0 0x100000>, > >> + <0x0 0xfe200000 0 0x200000>, > >> + <0x0 0x30000000 0 0x8000000>, > >> + <0x0 0x38000000 0 0x8000000>; > >> + reg-names = "apb-base", "memory0", "memory1", "memory2", "memory3"; > >> + resets = <&cpg 319>; > >> + power-domains = <&sysc R8A774C0_PD_ALWAYS_ON>; > >> + clocks = <&cpg CPG_MOD 319>; > >> + clock-names = "pcie"; > >> + max-functions = /bits/ 8 <1>; > >> + }; > >> -- > >> 2.20.1 > >>