From patchwork Tue Aug 8 04:44:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oza Pawandeep X-Patchwork-Id: 9886529 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 B537C60352 for ; Tue, 8 Aug 2017 04:44:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A83C92877B for ; Tue, 8 Aug 2017 04:44:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CC8B2877C; Tue, 8 Aug 2017 04:44:59 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=unavailable 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 694AC28783 for ; Tue, 8 Aug 2017 04:44:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751971AbdHHEof (ORCPT ); Tue, 8 Aug 2017 00:44:35 -0400 Received: from mail-qk0-f174.google.com ([209.85.220.174]:38171 "EHLO mail-qk0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752100AbdHHEoe (ORCPT ); Tue, 8 Aug 2017 00:44:34 -0400 Received: by mail-qk0-f174.google.com with SMTP id x191so13694283qka.5 for ; Mon, 07 Aug 2017 21:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=ypeR/Nxek1Vm0WxynwxxbXM6urA+q3doKTzZUbMSBik=; b=A2N3tGyV954fskV7wE0tBYtLcptPn0V8ml4+E+0cKXjghsNwzpFOI6vkrlOpb9PG1O 351Gjpu3HuLmtcBiiPQyEoW7/n/KBbFgMoW2Vh3dZc9lfFnKwZOtqKkHPAqDeWMOiKys YweYRTtVJdxckynmrHGTH1w1VsF2gx7eyrIU8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=ypeR/Nxek1Vm0WxynwxxbXM6urA+q3doKTzZUbMSBik=; b=Y3wTWykzQxeeK0EbixlrqbaaElsac0vi/b7L5+TQT2AGut7pMMFEAqYZvFLm6CVsMJ tbFPJnVJH5q1BB/8dKpStmd9j36qv39b+YUTC6R/lwsq5BPYv27j5U5CNLw+jw6syHAB swjs/HJzNN0Ygcd5/wIxLxZWmUOO2jViBOCXuLb3oTx1wNnOk9OzIXzaZQjHiSUO4oie v1uBIJTT/JcTbFbzk4HjW4HQzkQUehM3FAy5Sa56kdlSg/EZ1YiNFL3rAQKoKQTU9iNE 4lQ82KCfAL1b1V3yeKpQ/aRyxohZZn93q6rK0GnqJcIDlFetesw42QiHeIMFmArsKMOG X/eg== X-Gm-Message-State: AHYfb5jvhHtWjrfsdJJzgFJHCxOCDaAzfxmCh0eLi4HJ4qGAAdPNd6te dVfmWgdgG5rwcCwq X-Received: by 10.55.170.77 with SMTP id t74mr3610337qke.201.1502167473692; Mon, 07 Aug 2017 21:44:33 -0700 (PDT) Received: from anjanavk-OptiPlex-7010.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id d3sm260181qka.79.2017.08.07.21.44.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 21:44:33 -0700 (PDT) From: Oza Pawandeep To: Bjorn Helgaas , Rob Herring , Mark Rutland , Ray Jui , Scott Branden , Jon Mason , bcm-kernel-feedback-list@broadcom.com, Oza Pawandeep , Andy Gospodarek , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Oza Pawandeep Subject: [PATCH 2/2] PCI: iproc: Add optional brcm,pci-hotplug Date: Tue, 8 Aug 2017 10:14:15 +0530 Message-Id: <1502167455-10516-3-git-send-email-oza.oza@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502167455-10516-1-git-send-email-oza.oza@broadcom.com> References: <1502167455-10516-1-git-send-email-oza.oza@broadcom.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 Add description for optional device tree property 'brcm,pci-hotplug' for PCI hotplug feature. Signed-off-by: Oza Pawandeep Reviewed-by: Ray Jui diff --git a/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt b/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt index b8e48b4..a3bad24 100644 --- a/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt +++ b/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt @@ -72,6 +72,29 @@ Optional properties: - brcm,pcie-msi-inten: Needs to be present for some older iProc platforms that require the interrupt enable registers to be set explicitly to enable MSI +Optional properties: +- brcm,pci-hotplug: PCI hotplug feature is supported. + +If the brcm,pcie-hotplug property is present, the following properties become +effective: + +- brcm,prsnt-gpio: Array of gpios, needs to be present if Hotplug is supported. + +PCI hotplug implementation is SOC/Board specific, and also it depends on +how add-in card is designed (e.g. how many present pins are implemented). + +If x8 card is connected, then it might be possible that all the +3 present pins could go low, or at least one pin goes low. + +If x4 card is connected, then it might be possible that 2 present +pins go low, or at least one pin goes low. + +Example: +brcm,prsnt-gpio: <&pca9505 32 1>, <&pca9505 33 1>; +This is x4 connector: monitoring max 2 present lines. +brcm,prsnt-gpio: <&pca9505 32 1>, <&pca9505 33 1>, <&pca9505 34 1>; +This is x8 connector: monitoring max 3 present lines. + Example: pcie0: pcie@18012000 { compatible = "brcm,iproc-pcie";