Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3981887imu; Tue, 18 Dec 2018 07:17:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/VomRVguJc2Xtap5yCduk2p4k0SgnfYnbqcN9KHJSdg2sdpkZx7zZD+gwSSqz2l8BGechi3 X-Received: by 2002:a17:902:3124:: with SMTP id w33mr16958593plb.241.1545146255003; Tue, 18 Dec 2018 07:17:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545146254; cv=none; d=google.com; s=arc-20160816; b=rjYTGT0eEZnsa9Bw2N87kBQSiWCP5358Q0+b4zODGv6z8wk+dA0+WqetDQPrtOKQCg 5wPFAzjG4m3gH3LydHwyhErOzQ4Iili915s4tVin5CXZuypQBYy8w0h5oKzz8PQXMEv8 jRflZqu1nTTWeHpZR5XX4Bf4T8rQzYCAi3n2dqf9IDVhjKHI5U0IGaWS72tPS96jEuZP d8iftJciC6JNFOwQwByooD3dgkCxcvBhwKQd90U3Wzs+Zxs3g5vAWjUhss+PQmR48tSm DGsCIQBO10BHuYhSARiPW9PKsODNqjyuaPphiczOS+XNr7vrBlmEuf0h4vd59k8yNcq4 Y1iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=R6FiizF1WZO/jYfpHg3Lq2YG0OpoJsKc5a+tOWuKe9M=; b=AUj379TZw3T4OIQf7OuTws9BP/sn9ps9ZIaRX603r4vXBZAQjkE0dfOek0hsFhD4lP TkpYv6VFV7z6tiXmHMzqa7lo/S43KePKBhOocFy3G5C7LezJ0zMQPTHB4ss+t2sphag0 FnrQ8o1GMHcLvGtHXUx2CFOpkMqWWs0C42oSfN0wDzuoZhTo/ZicSjbZueHowHvA1vFC 2DyyuH19FncstywPUUZlrwqYpA76MCD5caDP/gBx4sJLv1jT39U7Zz64YtlEpaW6Jhz0 sOqHIZJV6r+1lMwUiHVIwaEW1KuEE2abTrfr6MWWyfVrcUwuoClL3mzqRDtE4kvnpu+y 88jQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t65si14071243pfb.247.2018.12.18.07.17.16; Tue, 18 Dec 2018 07:17:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726863AbeLRPPh (ORCPT + 99 others); Tue, 18 Dec 2018 10:15:37 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:45064 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726546AbeLRPPg (ORCPT ); Tue, 18 Dec 2018 10:15:36 -0500 Received: by mail-oi1-f193.google.com with SMTP id y1so2174695oie.12; Tue, 18 Dec 2018 07:15:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=R6FiizF1WZO/jYfpHg3Lq2YG0OpoJsKc5a+tOWuKe9M=; b=qpXl+P7jpxgs42NuayiPAqNS90Cl7ZBBAeOWVpM3SJa4CcHd+VWJ8C2rgsbtUamP78 hXfLvPauXMGwGjJlMo5a82t6hcdO9Uviu/qOfBehf5w/UtDZ9KgKc7nilUO2rUxXpH9R OQRk6F7jNXVR/P25AhL2yvJws0w2WLCCSSQyRrvdHEdnQwfMYeGOo7/M0muDI5CcxF/W NFM6sCIL5cq5PnmG1VgWynzrfhoInwpsAab59/XipD7Ij6Ojd/oYcbnMgMmrhTqPG5yk e9yJOHPYTl+/oHBNkgEneRKko0/91bnQv5ZQWuOXOnoHY6cPVea6AKzyo16FWmDptIGn eXGw== X-Gm-Message-State: AA+aEWZSRVN8oetjPXPwR2lu2JS7oE8JzPcpm54euwNCNNlN0TezsuVP Ag7Gvu0QvdxMllYIePcqYg== X-Received: by 2002:aca:5205:: with SMTP id g5mr8315705oib.149.1545146134892; Tue, 18 Dec 2018 07:15:34 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id l6sm2813042otk.51.2018.12.18.07.15.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Dec 2018 07:15:34 -0800 (PST) Date: Tue, 18 Dec 2018 09:15:33 -0600 From: Rob Herring To: Andrey Smirnov Cc: Lorenzo Pieralisi , Bjorn Helgaas , Fabio Estevam , Chris Healy , Lucas Stach , Leonard Crestez , "A.s. Dong" , Richard Zhu , devicetree@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v3 3/3] PCI: imx6: Add support for i.MX8MQ Message-ID: <20181218151533.GA2922@bogus> References: <20181218040702.29231-1-andrew.smirnov@gmail.com> <20181218040702.29231-4-andrew.smirnov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181218040702.29231-4-andrew.smirnov@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 17, 2018 at 08:07:02PM -0800, Andrey Smirnov wrote: > Add code needed to support i.MX8MQ variant. > > Signed-off-by: Andrey Smirnov > Reviewed-by: Lucas Stach > Cc: Bjorn Helgaas > Cc: Fabio Estevam > Cc: Chris Healy > Cc: Lucas Stach > Cc: Leonard Crestez > Cc: "A.s. Dong" > Cc: Richard Zhu > Cc: Rob Herring > Cc: devicetree@vger.kernel.org > Cc: linux-imx@nxp.com > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Cc: linux-pci@vger.kernel.org > --- > .../bindings/pci/fsl,imx6q-pcie.txt | 6 +- > drivers/pci/controller/dwc/Kconfig | 4 +- > drivers/pci/controller/dwc/pci-imx6.c | 82 ++++++++++++++++++- > 3 files changed, 87 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt > index d514c1f2365f..1a10c313e8d7 100644 > --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt > +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt > @@ -9,6 +9,7 @@ Required properties: > - "fsl,imx6sx-pcie", > - "fsl,imx6qp-pcie" > - "fsl,imx7d-pcie" > + - "fsl,imx8mq-pcie" > - reg: base address and length of the PCIe controller > - interrupts: A list of interrupt outputs of the controller. Must contain an > entry for each entry in the interrupt-names property. > @@ -45,7 +46,7 @@ Additional required properties for imx6sx-pcie: > PCIE_PHY power domains > - power-domain-names: Must be "pcie", "pcie_phy" > > -Additional required properties for imx7d-pcie: > +Additional required properties for imx7d-pcie and imx8mq-pcie: > - power-domains: Must be set to a phandle pointing to PCIE_PHY power domain > - resets: Must contain phandles to PCIe-related reset lines exposed by SRC > IP block > @@ -54,6 +55,9 @@ Additional required properties for imx7d-pcie: > - "apps" > - "turnoff" > > +Additional required properties for imx8mq-pcie: > +- fsl,controller-id: Logical ID of a given PCIE controller. PCIE1 is 0, PCIE2 is 1; > + Remove this. If GPR register offset is what you need, then put that into DT. Typically, we'd have a property with iomuxc phandle and offset. Rob