From patchwork Thu Aug 31 04:44:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oza Pawandeep X-Patchwork-Id: 9931135 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 0FAA9602F0 for ; Thu, 31 Aug 2017 04:45:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07EBC2881E for ; Thu, 31 Aug 2017 04:45:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F113528821; Thu, 31 Aug 2017 04:45:33 +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 A8EF92881E for ; Thu, 31 Aug 2017 04:45:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751385AbdHaEop (ORCPT ); Thu, 31 Aug 2017 00:44:45 -0400 Received: from mail-qt0-f169.google.com ([209.85.216.169]:34756 "EHLO mail-qt0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751359AbdHaEom (ORCPT ); Thu, 31 Aug 2017 00:44:42 -0400 Received: by mail-qt0-f169.google.com with SMTP id u11so35524205qtu.1 for ; Wed, 30 Aug 2017 21:44:42 -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=3o6z67VVvSAgDyMuDgcPN1Cl5mKzEg4NQKgcnY2t2Wg=; b=U/wsK9AgeHFcy3Onu6bffkaVKTxh4HP2e/+hkPuqTOT8Za6SWQqzy1H+1UYw+y2czE I10SWEiKLrVmsAvlaeNAiY67f2612vU8tu0cl+JQmZUkPAswEQaeS7ht//5O4MiFUbGS CLbWBKgVOkqM/Kpe1wF/JfRrk/ZMsnE2vaFSM= 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=3o6z67VVvSAgDyMuDgcPN1Cl5mKzEg4NQKgcnY2t2Wg=; b=i36ZPw9h2GvJJ9WH5eo2TFF4T0waQHH3dTN9Q3LnGh+J/HxEZyRdNIsHVlnf2qFqbs e9uKQCHyIxt3bIFF0T57XY8zWSQWRc9XLeA7g0iUKgSuEmwJgnzj1VFmpihyhnRSrPzD qFN95XeRkZAz/SDHRUMO3Qw94KRX1gDB1XZxPJ9BsQfUENssKhIUT2urehHWgcUK6LrM 3KZLWAMPrrxklV05IDCXn/CHgLkwgbypQ98NjNci8gUEe1qAbqdxHaw39h74XqZfJt/J yvNebXkKN0+stqDYgt1WSnKQfRzyfQJCQnBnimEuMB3q0ca/tnyUkYoZjPj0sC3dPD3F +OgA== X-Gm-Message-State: AHYfb5g8heqUy/l/5szizuEaNDBbFYh3NbqGzOnyXccMJA00BZj849dU maQaOvrniGf3DHij X-Received: by 10.200.48.71 with SMTP id g7mr5185008qte.231.1504154681745; Wed, 30 Aug 2017 21:44:41 -0700 (PDT) Received: from anjanavk-OptiPlex-7010.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id i13sm4769713qke.7.2017.08.30.21.44.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Aug 2017 21:44:40 -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 v5 2/3] dt-bindings: PCI iproc: Implement optional property prsnt-gpios Date: Thu, 31 Aug 2017 10:14:29 +0530 Message-Id: <1504154670-24608-3-git-send-email-oza.oza@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504154670-24608-1-git-send-email-oza.oza@broadcom.com> References: <1504154670-24608-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";