From patchwork Thu Aug 31 04:50:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oza Pawandeep X-Patchwork-Id: 808028 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.b="IG5erG/M"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xjVMb1r0Lz9s81 for ; Thu, 31 Aug 2017 14:51:39 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750714AbdHaEvJ (ORCPT ); Thu, 31 Aug 2017 00:51:09 -0400 Received: from mail-qt0-f172.google.com ([209.85.216.172]:34700 "EHLO mail-qt0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751336AbdHaEvE (ORCPT ); Thu, 31 Aug 2017 00:51:04 -0400 Received: by mail-qt0-f172.google.com with SMTP id u11so35555172qtu.1 for ; Wed, 30 Aug 2017 21:51:04 -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=IG5erG/MNl5QLTe+Rp4N8rY5han7lvrmDXDwUBz8nzxXjA0T5+iPVPMIdVW24KCRyO tErhsnx3ZDyB9lw/le2OeKI68WwIaHPAoikSpYV0+Y1Hibbk3Hgh14JeAy1qMWXJOXae G7a2/jQV+ztgz3EhL//77t4FF7eExv39NbONw= 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=dDwGC6MiQuPEGXYV5eWrIF/2kJ9RYd8/RZg2EPjtp+fRxsKeyJsnlrb8Kw8K108WzM MMGesNaAdXWxc66SNrqE6wyk6hLnNYEA95FWnTzFQ2ckP5H+Vxj1v7TMzZwIprSXCUn/ krG3GZoaYG18SvAOAIwgpT/wibHMXD7h85wBZPUWsVe1DCn4mp299ASoJHjzC51Cxv3k Fa/PXC8AC2xEqdwuezbj/ylCFnOGvtlXAcM0o1fNNLSnOGiBHl3kSL2nYxo6lBwtFZtq Lyc+amFAWl/NMs85LeuXiUAStWWFp+e4/hcVxiJMN3/VLPuh84gAudDCAd8zR0rIk6uE dDxA== X-Gm-Message-State: AHYfb5g5bFi9JDsE3yLC1JQrBCFWoG1Pqe0RHev7y2zsxKWcvOhAXYw+ uAOZm6gQcVdAf3+l X-Received: by 10.200.35.18 with SMTP id a18mr5200460qta.307.1504155064134; Wed, 30 Aug 2017 21:51:04 -0700 (PDT) Received: from anjanavk-OptiPlex-7010.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id q2sm4857729qti.45.2017.08.30.21.50.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Aug 2017 21:51:03 -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 v6 2/3] dt-bindings: PCI iproc: Implement optional property prsnt-gpios Date: Thu, 31 Aug 2017 10:20:28 +0530 Message-Id: <1504155029-24729-3-git-send-email-oza.oza@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504155029-24729-1-git-send-email-oza.oza@broadcom.com> References: <1504155029-24729-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 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";