From patchwork Tue Aug 15 05:55:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oza Pawandeep X-Patchwork-Id: 9900917 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 B036460230 for ; Tue, 15 Aug 2017 05:56:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A46B827E63 for ; Tue, 15 Aug 2017 05:56:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9941B286F8; Tue, 15 Aug 2017 05:56:37 +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 4DE1A27E63 for ; Tue, 15 Aug 2017 05:56:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753232AbdHOF4U (ORCPT ); Tue, 15 Aug 2017 01:56:20 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:33335 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753230AbdHOF4R (ORCPT ); Tue, 15 Aug 2017 01:56:17 -0400 Received: by mail-wm0-f50.google.com with SMTP id k20so21496956wmg.0 for ; Mon, 14 Aug 2017 22:56:17 -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=o6cEcsqRAuGlI1YidfFLpTmrRn4mX6equzUQ9hChpWM=; b=KbJakv6yNWRbJN5qHORORiq0uROtqtnbJUOJRrc2Hi3tnDfGGsWJXrq0Qom50CfMWY 0UuMo2KlTYJHiBwfjAsCIvrFZWwd0Ob1rEWIENO2cQDtx188AqL+H6MbmrqAxZBCSGnk t0pdplUt5TXxIDGdAlr1Y7LnX/s1vIvQaLC/w= 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=o6cEcsqRAuGlI1YidfFLpTmrRn4mX6equzUQ9hChpWM=; b=keRmr60F8KRdXiDuJEeloZSAx5X/mn7+08Qj/MY0AK2MF4gPHt9CRCbQ81awnxDE6P w1FRxBLLxLOC5i0JVn3jfKFe9nRAhdgNNpU9AbvPulvZzIGgM66QJuDnacq2X3pvdpsI UA54WhDx/jme5FTbaALvnMah55UviBLYiwj/TXx6ahENigLy+IVWJ29YruIELu1XNKFl tWGQmx0hbcoiK2XDkCca5B6uygp+Y15YD1S5gLhvuZGzipoZQLmg6EAcJD+DbNchuq1e E5vZ9FBH4uvYqVmop/lCZwNRfBh3DPBuyaHoYFEvuxeHzazdgM0SsL/4dJHesZ7J4Q7t xw+Q== X-Gm-Message-State: AHYfb5iM9s1SYlQRxYZRLqrs9SFzvRi6INDH2UPLlvQHmQhIUo9A/2zU P3TaKh6YTHldCFHq X-Received: by 10.28.66.147 with SMTP id k19mr630348wmi.31.1502776576556; Mon, 14 Aug 2017 22:56:16 -0700 (PDT) Received: from anjanavk-OptiPlex-7010.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id 9sm7597374wrl.57.2017.08.14.22.56.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Aug 2017 22:56:15 -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, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Oza Pawandeep Subject: [PATCH v2 3/3] PCI: iproc: Implement optional property prsnt-gpios Date: Tue, 15 Aug 2017 11:25:47 +0530 Message-Id: <1502776547-30542-4-git-send-email-oza.oza@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502776547-30542-1-git-send-email-oza.oza@broadcom.com> References: <1502776547-30542-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 'prsnt-gpios' for PCI hotplug feature. Signed-off-by: Oza Pawandeep Reviewed-by: Ray Jui Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt b/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt index b8e48b4..0c5f631 100644 --- a/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt +++ b/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt @@ -72,6 +72,20 @@ 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: +- slot-pluggable: PCI hotplug feature is supported. +- prsnt-gpios: Array of gpios, needs to be present if Hotplug is supported. + +Refer to the following binding documents for more detailed description on +the use of 'slot-pluggable' and 'prsnt-gpios'. + Documentation/devicetree/bindings/pci/pci.txt + +Example: +prsnt-gpios: <&pca9505 32 1>, <&pca9505 33 1>; +This is x4 connector: monitoring max 2 present lines. +prsnt-gpios: <&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";