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: 9900927 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 9C00960244 for ; Tue, 15 Aug 2017 06:04:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D3BD24B48 for ; Tue, 15 Aug 2017 06:04:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 803E82623C; Tue, 15 Aug 2017 06:04:17 +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.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW 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 03BBB24B48 for ; Tue, 15 Aug 2017 06:04:17 +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:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+Rga9Urjqf0iPxrAFZ5W3RWK5gTECfFIs3rkQuzFfsE=; b=sXoTZdx3gpZsYR pmS+n5993EwBX3ugrc96ZjfQezutnV2X4clDUqO2UqL9W67DzjSAwGNVXDx4hE94J7nBD/cyws+ak 5lpioJNUwd1hDJzcq1GwtFgt4UpubN4nUGR79DWpm5wdbLKSBx2BR68BBh5FOJJNBzB/X1ENyUfMF YXWgKVw4aszb7ZqIwCau26ucdY3AW4U/rrua3R0UwnpyXmPeGTePsJlg3+uc3m26txifFnmkLCQE8 FwxFSML2/gP5/MJxv7d3U/Z3MULYjgYDj0WU5+NZE6y2D2IkKU/0JY3bq2SwaK2gE9YghLGTIYyNs uB0JGmqXKpuZ/TLiKfeg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dhUxb-0000az-CJ; Tue, 15 Aug 2017 06:04:15 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dhUqF-0004vK-0T for linux-arm-kernel@lists.infradead.org; Tue, 15 Aug 2017 05:56:46 +0000 Received: by mail-wm0-x22f.google.com with SMTP id t138so21474740wmt.1 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=ofeLlzKM7cJCYk+N1MmsZ+vEGH0/Lg/iHERafonvOAhWk5m+sxjGs9y3SDmSghlmsZ JcKaTZYjKzNFyXoQxfOl5PNwAXcMdfApdYwtFert6xSkfDIBC2DiXuJauz/g4oZsXQIR rFBd8En8yE2behQ/yCPk7aSn3nJsLhKVFohRZrm96K0nB2tkeXKneUqSTi+nAyJXWa4/ PEy2nbddbH+R+2AYra0xYuVoryJEqrP1YUgfcEYJIzsiJj1k4igVLInFdsKhWZlY13h3 PSNBwA4A3XcGmpKv7JQnMdGUuenEYe4NERT1Ap7vSysEC12ID72Qqt0Cd0Tel5Ri2eFS 7GLA== X-Gm-Message-State: AHYfb5ivstZifc6xmn85qK1dlvnBeBST6i4Q8GGkGmD5eQBdZZOlTf+x gmA7G0VBgVLYqehB 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170814_225639_761242_D8296A29 X-CRM114-Status: UNSURE ( 8.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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";