From patchwork Fri Aug 24 07:36:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjie Lin X-Patchwork-Id: 10575383 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 2B28313B8 for ; Fri, 24 Aug 2018 14:43:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A77C284B9 for ; Fri, 24 Aug 2018 14:43:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DC19285B0; Fri, 24 Aug 2018 14:43:22 +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 11FBB284B9 for ; Fri, 24 Aug 2018 14:43:21 +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=7riL/pFJWr1atS2nUT3rCo8WvqFexczR31JNnQPTjoE=; b=fVfUGOsco2Pp4q 8uCKEylKCm+Wmx5Aqt5/gsq9vRPlOU/bzSnP+DUTgmCvkyqrATTLTeHybUXBoNZy3xz75KSHPWJFx edPUjVDveivhiYITlVipi7T+TT15Tp45s0iJ1aeAzylVX/vTgNH88RRcSllaVNMmS8JCu/8pYwmnf 84Ry22EFQgxJ5qTcnQLxyEuNsqQC37ZGIKw1D2t3+uCVJCXeAvylU9fBhJ3KMVhLCnGxD04P3BYHs vklSnHjhGlQeEVD4RbgFqe12GVqbRaaCT4TkdLWvZI66KRrFDMt1eZnW0d/L0S/99+bmHnu57rm96 Ot4JVehm6nmtrrFUbHRQ==; 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 1ftDJ1-0006KG-O7; Fri, 24 Aug 2018 14:43:20 +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 1ft7OK-00038b-50; Fri, 24 Aug 2018 08:25:10 +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=AIMw0q0lxKdjFKDv8dKqYuUS49mtgeWoKD2+J2mmfco=; b=UGj7wHuSOzBXg6s/kiVeZtxVod PaE4PqVsacD17hEzUjJAKrmxd5qhulAci6yvxrvHN7ycgOH0CoD2TD0ihyvesK1gaPCYRj1Z4dGko G3xJjz3+X0yX4FLMhRaJuBcsu4/64pAJ4pArKm+o97X+9oOB24bQzppiTVkgPgkvgZIxfHhIkqSad YZgl/rqykVf7YhwwVeyXCvd+E7GoIsMnbqMF2kuy1Mnm1ZiDcvvJLOoa1TBZImu6V1s3VQeO8fOGa 13Zs5K6UksZk4DRh8PjgQNjKHTIOqHRTVJgxIgLxliXBGQ4UD4mY3qZ7Szf3EEg2JkuoWoClUFAS0 2YvHaJMw==; 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 1ft7O2-00043n-SH; Fri, 24 Aug 2018 08:24:08 +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, 24 Aug 2018 15:35:39 +0800 From: Hanjie Lin To: Bjorn Helgaas Subject: [PATCH v2 0/2] add the Amlogic Meson PCIe controller driver. Date: Fri, 24 Aug 2018 15:36:02 +0800 Message-ID: <1535096165-45827-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-20180824_092406_901929_99395C9A X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Hanjie Lin , Jianxin Pan , devicetree@vger.kernel.org, Kevin Hilman , Yixun Lan , linux-kernel@vger.kernel.org, Liang Yang , Jian Hu , linux-pci@vger.kernel.org, Qiufang Dai , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Changes since v1: [0] - use gpio lib instead open code - move 'apb' and 'port' reset from phy driver - format correcting [0] : https://lkml.org/lkml/2018/8/14/70 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 | 63 +++ drivers/pci/controller/dwc/Kconfig | 12 + drivers/pci/controller/dwc/Makefile | 1 + drivers/pci/controller/dwc/pci-meson.c | 613 +++++++++++++++++++++ 4 files changed, 689 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt create mode 100644 drivers/pci/controller/dwc/pci-meson.c