From patchwork Wed Feb 7 02:47:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Lin X-Patchwork-Id: 10204587 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E8D4E60327 for ; Wed, 7 Feb 2018 02:54:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D971628C54 for ; Wed, 7 Feb 2018 02:54:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC2DE28CCC; Wed, 7 Feb 2018 02:54:38 +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.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 5476F28C54 for ; Wed, 7 Feb 2018 02:54:38 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=TzRLCJl/Ocm8xm+S19zPcNiCONCW8WjxEhrlKYnLExc=; b=IoItlXiNUOem2w4cQz535dhKBD vLLnz/+bv7lnfyO1Gbv1DJQrGpxv1rAStwNUhz6x2fEhUiINTKvwVan5i8Hhm607P97Kv2UOq4KVZ RY2qpQ89HcbHt+IFJIS2Q42+rcBxQI0pOn9hySTGCa3A06hUSjexDeuxHemb9z+fElcJPOo29MFEF a5b7BG+ZtNm1yJNnYOM9+iVSbFQnb0TfO7CWBnY914VIeM2s2EjihiEm7kiPLtCLnaf3N8bxAv/iw sTBgDjnpJ1Q7Bzw0TyYqWurF3sWd5tyRDCig742BHz4kZ4o5yFgmdZxsspracqF5E0jzP5gR9MZeF rEROD/ZA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ejFsb-0006kc-Sf; Wed, 07 Feb 2018 02:54:37 +0000 Received: from lucky1.263xmail.com ([211.157.147.132]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ejFsY-0006j0-JU for linux-rockchip@lists.infradead.org; Wed, 07 Feb 2018 02:54:36 +0000 Received: from shawn.lin?rock-chips.com (unknown [192.168.167.177]) by lucky1.263xmail.com (Postfix) with ESMTP id 508156922F; Wed, 7 Feb 2018 10:54:21 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 2891538C; Wed, 7 Feb 2018 10:54:20 +0800 (CST) X-RL-SENDER: shawn.lin@rock-chips.com X-FST-TO: bhelgaas@google.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: lintao@rock-chips.com X-DNS-TYPE: 0 Received: from unknown (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith SMTP id 31606EU810Z; Wed, 07 Feb 2018 10:54:21 +0800 (CST) From: Shawn Lin To: Bjorn Helgaas , Lorenzo Pieralisi Subject: [PATCH 4/6] PCI: rockchip: Add rockchip, rk3399-pcie-host compatible Date: Wed, 7 Feb 2018 10:47:28 +0800 Message-Id: <1517971650-61555-5-git-send-email-shawn.lin@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1517971650-61555-1-git-send-email-shawn.lin@rock-chips.com> References: <1517971650-61555-1-git-send-email-shawn.lin@rock-chips.com> X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Heiko Stuebner , linux-pci@vger.kernel.org, Shawn Lin , linux-rockchip@lists.infradead.org, Rob Herring MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP To avoid confusion when folks use this controller as endponint mode, we add rockchip,rk3399-pcie-host to clearly state that it's driver for host here. And rename/update the document to reflect this fact. Signed-off-by: Shawn Lin --- .../bindings/pci/{rockchip-pcie.txt => rockchip-pcie-host.txt} | 3 ++- drivers/pci/rockchip/pcie-rockchip-host.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) rename Documentation/devicetree/bindings/pci/{rockchip-pcie.txt => rockchip-pcie-host.txt} (98%) diff --git a/Documentation/devicetree/bindings/pci/rockchip-pcie.txt b/Documentation/devicetree/bindings/pci/rockchip-pcie-host.txt similarity index 98% rename from Documentation/devicetree/bindings/pci/rockchip-pcie.txt rename to Documentation/devicetree/bindings/pci/rockchip-pcie-host.txt index af34c65..f2f3091 100644 --- a/Documentation/devicetree/bindings/pci/rockchip-pcie.txt +++ b/Documentation/devicetree/bindings/pci/rockchip-pcie-host.txt @@ -5,7 +5,8 @@ Required properties: - #size-cells: Size representation for root ports, set to <2> - #interrupt-cells: specifies the number of cells needed to encode an interrupt source. The value must be 1. -- compatible: Should contain "rockchip,rk3399-pcie" +- compatible: Should contain "rockchip,rk3399-pcie" or + "rockchip,rk3399-pcie-host" - reg: Two register ranges as listed in the reg-names property - reg-names: Must include the following names - "axi-base" diff --git a/drivers/pci/rockchip/pcie-rockchip-host.c b/drivers/pci/rockchip/pcie-rockchip-host.c index f5b0492..efb740d 100644 --- a/drivers/pci/rockchip/pcie-rockchip-host.c +++ b/drivers/pci/rockchip/pcie-rockchip-host.c @@ -1120,6 +1120,7 @@ static int rockchip_pcie_remove(struct platform_device *pdev) static const struct of_device_id rockchip_pcie_of_match[] = { { .compatible = "rockchip,rk3399-pcie", }, + { .compatible = "rockchip,rk3399-pcie-host", }, {} }; MODULE_DEVICE_TABLE(of, rockchip_pcie_of_match);