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: 10609153 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 3BCFC5A4 for ; Fri, 21 Sep 2018 06:22:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C50B2DFA4 for ; Fri, 21 Sep 2018 06:22:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A2912E0B3; Fri, 21 Sep 2018 06:22:15 +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 BFFCE2E091 for ; Fri, 21 Sep 2018 06:22:14 +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=uBbOK7XZXUThzYw9t6hQGE2lUFA0/vvreKP2bgVLvKY=; b=uFpZNUB+gE4EMn YS9dkWWpxiLKyVwcFLZlrCLWExr0vFfDQFEOC9Uqf8NJGqS32btcmwI+I8cMZoMTMgBHxPHj8y7KZ QfZb3eY6pR4kbOM9Vz7albbaBYb01ETrNom2SKoCob2+c4F5K4fO1c5Wk1jsbW1DKNgQ5NHMdcN6N 7wC2W5WeJ4pkY0Ml6IeHTIKphGtL6Nv+D1wgzW1/l1Wtpzbe+SDSpYvgLEwEQKw+2R+bwZwBd/U6E Mhite9WTZI7WMtZkMwRnkNd6iTxGVuDDMdvk1LdzQMDXlIGta9tIUeDh0KYGdoLtUHm4PwoxOTnXv 9I9svWT2gAj5pujXjL4w==; 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 1g3EpO-00082m-RS; Fri, 21 Sep 2018 06:22:10 +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-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: 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-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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