Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp411365imm; Thu, 30 Aug 2018 01:54:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZAcmmHBlc4HGDWRU3kfQrXMjJLYhuKzkBYn7Gt6iA8MpzvEjUlgIB/u1AhlpBEDmxMQ0PV X-Received: by 2002:a63:b914:: with SMTP id z20-v6mr8903979pge.396.1535619253424; Thu, 30 Aug 2018 01:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535619253; cv=none; d=google.com; s=arc-20160816; b=lm9JbqZ0kirZQNMwp5XgTknDQzK+UiJs5jEfnW6vw61VUM4FPEZbXZb4EMRhWtq+Ch 8+C0Lca7RtB61IZwzB/L/PfDmHWxYjF+x6z6a4GnMIanZa88vMoOHDx/CM79XoKdF8sf ZKz6Z9UL7CZKv07j9eVGArFFyXasT+fZK5angLMFXpAYdiXBZPbyC6eKn2n4i4dIAdtS FuvYBva1rpyxtpV8cc5cnsf681D9QhqA/LmSrSS37TiKfNocx7hz4aVvInn2vXOh2etq La3BtTde12mp3lkhKbEPnjYtaat6APrce0aTTCygZp0t23JJi2TOF0jMS1+5blNrZ/Tr xvOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=dIWBNUFtw2DamXZxHIAppm1nASHs6dmCxWRmP6GJnUk=; b=WSveXEDbNDx0qZ3gIyHtQ2PSb2QFysrPQ5meJANLRm1uB6zYDvw59fkrwFM5OGVWst K8EolhwcN28D9ddc50fSBxsjXC6e2u0QGUEvUJL/3cPfOTAlJBkRXUcbN1UUo+QxFX3f wkKd8JpAXWmkpqZYCTFzrAwPdHsuGz7cWvkUERZL0btgy/I5xvAA6yoRKO6j+M9o7bKH AOmdXyrX1e9pddBd2BE4xXSM2SZ/2qjNlxYhFg0hHFWGmUOIeuJp4qFOOvlD9eHim9rf P5nGlVI+Go2OrKKJkYaEwr0ULM+cZcO3IEIE5Gbag0MzGUOYWR5hevNDNzhWqcwTZFSv 76gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="BIo9/M2G"; 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 v3-v6si5805002plp.85.2018.08.30.01.53.57; Thu, 30 Aug 2018 01:54:13 -0700 (PDT) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="BIo9/M2G"; 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 S1727868AbeH3MxX (ORCPT + 99 others); Thu, 30 Aug 2018 08:53:23 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36198 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727345AbeH3MxX (ORCPT ); Thu, 30 Aug 2018 08:53:23 -0400 Received: by mail-wm0-f68.google.com with SMTP id j192-v6so1158293wmj.1 for ; Thu, 30 Aug 2018 01:52:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=dIWBNUFtw2DamXZxHIAppm1nASHs6dmCxWRmP6GJnUk=; b=BIo9/M2G8rSz2eSzZ6dVfAebsIJ2vdiuQsFLjHluAiJlgV82B04IXbg13Z3pfnEaHK Ls+oTxqh1dPIU3yDmiH+Puo58C3BPE3BrWiaKP8rKbPEDxbYb44+VlpDcAO1LphaBYo9 MGqf/nUrCOgV65054CR0fDcvSU5FFmfzxaBmSQDxHrVNE7Kxp3xV2EGFzLu1Fx0umXK5 GsfGDwZI7Ybtzbr0EB9szmmJgp/v6Iz6niCfxwsO/PIShjWEUuwtNJBFIL8Jh2VrT2KI so1pmvZnRsIPhiRXTUvPIeNFnbUvV8Ojcs0PswDhhSC7g10QQeaWrReCHPZJvURq2kL9 ffEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=dIWBNUFtw2DamXZxHIAppm1nASHs6dmCxWRmP6GJnUk=; b=GbQi45/WvwHFhPor+DOMuMsNvyMgWZZ9sIuZCXNzNIng92KfEgSOASA6ROhIPz4btS JVjUtYW4G2dtUUnhfEuQM+owHVuw1nsqx4i7wRu+6fGMWdDS+LSGxdyCcARn2vC9LB1o Xdmc1bzMKfsVcUnhlWxPzWxsNj692Fo3Q7QThpefIhIMh5dBGCFtQRxZWRq3sd0kyRhv CibwV/D3qs7GmgVWz8JM/RECvl7nJvlmHh2Fih6OhZoVpTPd6RQ248eBj5a/hHgRsAqp THtSnJk0MuzfD/2h3q5wmwI3b2xcnvl2yaElHnxwFjXlhJy2Psf51J+jBQCJcmECO0tE Wptg== X-Gm-Message-State: APzg51AsCEBzns2ZTFDXtrEvW7FlwPllcBM13hKpTdp33A4QGM1y0+FB WVYIVzTczaabP6/l6Rfqbyh6BDELtKM= X-Received: by 2002:a1c:ae8d:: with SMTP id x135-v6mr1142442wme.20.1535619134985; Thu, 30 Aug 2018 01:52:14 -0700 (PDT) Received: from boomer ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id t70-v6sm1264696wmt.30.2018.08.30.01.52.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Aug 2018 01:52:14 -0700 (PDT) Message-ID: <186a782b20053c42ca8311c421925617d83ffa07.camel@baylibre.com> Subject: Re: [PATCH v2 1/2] dt-bindings: PCI: meson: add DT bindings for Amlogic Meson PCIe controller From: Jerome Brunet To: Hanjie Lin , Rob Herring Cc: Bjorn Helgaas , Yue Wang , Kevin Hilman , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Yixun Lan , Liang Yang , Jianxin Pan , Qiufang Dai , Jian Hu , devicetree@vger.kernel.org Date: Thu, 30 Aug 2018 10:52:12 +0200 In-Reply-To: <84d5399c-67d4-f8a4-3613-00d91f21292f@amlogic.com> References: <1535096165-45827-1-git-send-email-hanjie.lin@amlogic.com> <1535096165-45827-2-git-send-email-hanjie.lin@amlogic.com> <8c48964151d24758298ba935da336c0829e2b287.camel@baylibre.com> <11d7547b-feb4-6ecb-cef3-db46ce8ee2ef@amlogic.com> <20180829004122.GA25928@bogus> <84d5399c-67d4-f8a4-3613-00d91f21292f@amlogic.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-08-30 at 15:37 +0800, Hanjie Lin wrote: > > On 2018/8/29 8:41, Rob Herring wrote: > > On Mon, Aug 27, 2018 at 04:55:20PM +0800, Hanjie Lin wrote: > > > > > > > > > On 2018/8/24 16:22, Jerome Brunet wrote: > > > > On Fri, 2018-08-24 at 15:36 +0800, Hanjie Lin wrote: > > > > > From: Yue Wang > > > > > > > > > > The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare > > > > > PCI core. This patch adds documentation for the DT bindings in Meson PCIe > > > > > controller. > > > > > > > > > > Signed-off-by: Yue Wang > > > > > Signed-off-by: Hanjie Lin > > > > > --- > > > > > .../devicetree/bindings/pci/amlogic,meson-pcie.txt | 63 ++++++++++++++++++++++ > > > > > 1 file changed, 63 insertions(+) > > > > > create mode 100644 Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt > > > > > > > > > > diff --git a/Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt b/Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt > > > > > new file mode 100644 > > > > > index 0000000..8a831d1 > > > > > --- /dev/null > > > > > +++ b/Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt > > > > > @@ -0,0 +1,63 @@ > > > > > +Amlogic Meson AXG DWC PCIE SoC controller > > > > > + > > > > > +Amlogic Meson PCIe host controller is based on the Synopsys DesignWare PCI core. > > > > > +It shares common functions with the PCIe DesignWare core driver and > > > > > +inherits common properties defined in > > > > > +Documentation/devicetree/bindings/pci/designware-pci.txt. > > > > > + > > > > > +Additional properties are described here: > > > > > + > > > > > +Required properties: > > > > > +- compatible: > > > > > + should contain "amlogic,axg-pcie" to identify the core. > > > > > +- reg: > > > > > + Should contain the configuration address space. > > > > > +- reg-names: Must be > > > > > + - "elbi" External local bus interface registers > > > > > + - "cfg" Meson specific registers > > > > > + - "config" PCIe configuration space > > > > > +- reset-gpios: The GPIO to generate PCIe PERST# assert and deassert signal. > > > > > +- clocks: Must contain an entry for each entry in clock-names. > > > > > +- clock-names: Must include the following entries: > > > > > + - "pclk" PCIe GEN 100M PLL clock > > > > > + - "port" PCIe_x(A or B) RC clock gate > > > > > + - "general" PCIe Phy clock > > > > > + - "mipi" PCIe_x(A or B) 100M ref clock gate > > > > > +- resets: phandle to the reset lines. > > > > > +- reset-names: must contain "phy" and "peripheral" > > > > > + - "port" Port A or B reset > > > > > + - "apb" APB reset > > > > > > > > The above description is not coherent (phy <=> port) > > > > > > > > > > Yes, this should be port and apb here. > > > We'll integrate phy driver into ctrl driver, and move phy reset to here also. > > > > Why? That's the wrong thing to do if they are separate h/w blocks. You > > can do whatever you like in the drivers, but the DT should reflect the > > h/w. > > > > Rob > > > > . > > > > We have the dedicated phy driver which only process reset job, > and we consider that it's too overkill to do just these things . > So we will integrate phy reset job into the controller driver int the next version. Rob has a point there. Even if overkill, it does model the HW as it is. + I spotted in your v2 that there is also a register access, so not only the reset > > thanks.