From patchwork Fri Sep 21 06:03:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjie Lin X-Patchwork-Id: 10609155 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5DDCF157B for ; Fri, 21 Sep 2018 06:22:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CAFB2DF5D for ; Fri, 21 Sep 2018 06:22:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40B612DF79; Fri, 21 Sep 2018 06:22:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AAC182DF5D for ; Fri, 21 Sep 2018 06:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=lT/4ixGqNFRtVxy91LvmKthkBir73o+X2PgCSkBOOPE=; b=eZJlNYrUe9cURb qDxSFab4uLa+Muui7fXAQ9BgXJ/DcHYoEAkYwzdxrLKLH3KuXRDcCX9OiD1D4g7nHvw3FmhqaXO3O bliMdCLjfC3bc5+/T+gkAjs0jQkBXv+ECnNZunLDiFm0gexFzDap4o/iPkN25NN4jDiSLRctpUKLu 4yIXdceoaMgRQnjfH223WJE5pSI+8Bo4On51Hi0V9lHW3lGHE9Af0mzS8kpIU0Z+x8RLWMSZxBw7J RtTFCzepDWRLs6ZuBMFz263NkKOJDLjjntE44MStjivy3hx1dKlrzD2E/PeA44/3/OJaGBFEmRZp/ RfPb6He0HxP5NPC7Cvxg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g3EpW-00084Z-2o; Fri, 21 Sep 2018 06:22:18 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g3Emu-0005Xu-AT; Fri, 21 Sep 2018 06:19:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=o24Fj2sO2Jycg7qnzQ/v+91m4D91B4tMle7uKbPrf7M=; b=PIylhVvewv9GGqFu/9fW1rf9xj gL99ctkvEjFUfZL5hNIleTg8dYNnluaLU0dQbJNlz4g9EpOtUxrrJme3ODkWAb1nOawNnXm53Annx UZvww19lCXKxNK6CpN4+kNjAffUpK0qzju2kPXFfXTOGCt/xyCOvDDVbE5z7OtBAgZ3uDa0SwQ1i0 ZmiQ2qNCwtiYTU+w6WltwuOZeKYpGJQgnQDBYZjLDik5zw/TTFVj3M3R7x6wEn3XK0qXAs56TAjUl Z0AbZ2bvBu0rKhqlsP3gYOTcalR2XrMNSmjRt/oixhSDRl+b1wHxtzV+UhCiQCTT+Twk/DNDSsUL3 iZWDsSYw==; Received: from mail-sh2.amlogic.com ([58.32.228.45]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g3EXK-0000jx-U4; Fri, 21 Sep 2018 06:03:33 +0000 Received: from droid10.amlogic.com (10.18.11.213) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server id 15.0.1320.4; Fri, 21 Sep 2018 14:03:52 +0800 From: Hanjie Lin To: Lorenzo Pieralisi , Bjorn Helgaas Subject: [RESEND PATCH v3 0/2] add the Amlogic Meson PCIe controller driver Date: Fri, 21 Sep 2018 14:03:38 +0800 Message-ID: <1537509820-52040-1-git-send-email-hanjie.lin@amlogic.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.18.11.213] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180921_070331_169908_BF14D71A X-CRM114-Status: GOOD ( 10.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yixun Lan , Rob Herring , Hanjie Lin , Jianxin Pan , devicetree@vger.kernel.org, Kevin Hilman , Shawn Lin , Niklas Cassel , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Jianguo Sun , Jian Hu , Philippe Ombredanne , Cyrille Pitchen , Qiufang Dai , Gustavo Pimentel , Carlo Caione , linux-amlogic@lists.infradead.org, Liang Yang , linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This is v3 post RESEND: [2] - add Rob's Reviewed-by to patch 1/2 - add more to&cc list suggested by get_maintainer.pl The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare PCI core. This patchset add the driver and dt-bindings of the controller. Till patch v2, we have a dedicated phy driver which only process reset job. It's too overkill so we integrate phy driver into the controller. Changes since v2: [1] - abandon phy driver, move reset to the controller - use devm_add_action_or_reset() to use clock res - format correcting Changes since v1: [0] - use gpio lib instead open code - move 'apb' and 'port' reset from phy driver - format correcting [0] : https://lkml.kernel.org/r/1534227522-186798-1-git-send-email-hanjie.lin@amlogic.com [1] : https://lkml.kernel.org/r/1535096165-45827-1-git-send-email-hanjie.lin@amlogic.com [2] : https://lkml.kernel.org/r/1535616829-167936-1-git-send-email-hanjie.lin@amlogic.com Yue Wang (2): dt-bindings: PCI: meson: add DT bindings for Amlogic Meson PCIe controller PCI: meson: add the Amlogic Meson PCIe controller driver .../devicetree/bindings/pci/amlogic,meson-pcie.txt | 70 +++ drivers/pci/controller/dwc/Kconfig | 12 + drivers/pci/controller/dwc/Makefile | 1 + drivers/pci/controller/dwc/pci-meson.c | 617 +++++++++++++++++++++ 4 files changed, 700 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt create mode 100644 drivers/pci/controller/dwc/pci-meson.c