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: 10204585 X-Patchwork-Delegate: bhelgaas@google.com 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 9AA4760327 for ; Wed, 7 Feb 2018 02:54:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8AD5628C54 for ; Wed, 7 Feb 2018 02:54:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E71F28CCC; Wed, 7 Feb 2018 02:54:25 +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=-5.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1CD1B28C54 for ; Wed, 7 Feb 2018 02:54:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752688AbeBGCyY (ORCPT ); Tue, 6 Feb 2018 21:54:24 -0500 Received: from lucky1.263xmail.com ([211.157.147.132]:46955 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752574AbeBGCyX (ORCPT ); Tue, 6 Feb 2018 21:54:23 -0500 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 Cc: Rob Herring , devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, Heiko Stuebner , linux-pci@vger.kernel.org, Shawn Lin 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> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.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);