From patchwork Tue Aug 22 08:10:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oza Pawandeep X-Patchwork-Id: 9914589 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 64402603F9 for ; Tue, 22 Aug 2017 08:40:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F5E1262AE for ; Tue, 22 Aug 2017 08:40:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 343F826538; Tue, 22 Aug 2017 08:40:12 +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 4B6B928734 for ; Tue, 22 Aug 2017 08:40:09 +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=j4KQr2yXZeuNIO267JXMFI3KiAuuHyx08Js0mTTv61c=; b=DZ1GBywnHkqPFW FghuSKRi2HpeYH9bWkSvxk7JQRlvUPrShvw5t/YBdlRrCQ7rWyXJ0D8JUea9+YwosVOPkhICm9NOI BE4uijguITO5wfl3Zd2K+WYEP88eRNFZQWuEWASrIIEtCqMYJzKCqwYLmAMNvRUHdRQPR7JWNWchI 0qCiV4lMgpkoubIcLag8ACPYWAuEHL6d12CGjrQU5M2LVG/v0hTSAIb+FhPP1ZvHVyeD7YA977YLR JEXfWgn+QgvecZrHVQUp55XyXtOoqWgBUIzhzWcFIb+UlAvCdp55LOpHtOY0IYwbg2rKOJ1vAlZ7T cz72i4qIuCcegCCk7f6w==; 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 1dk4ig-0002du-Q6; Tue, 22 Aug 2017 08:39:30 +0000 Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dk4Hw-0002EW-Ln for linux-arm-kernel@lists.infradead.org; Tue, 22 Aug 2017 08:12:29 +0000 Received: by mail-wr0-x22d.google.com with SMTP id p14so49581174wrg.1 for ; Tue, 22 Aug 2017 01:11:32 -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=SU5Pny4anM5GXy0MkkVGrsCAjcDPfh7zClvvGnEU5+k=; b=Ywl5dKhm0aC07fA9YCYPgHGHDIRYcFL+Tom8MrmDlhCK3xYqE/sg5Y1xY7QKYQ2JA2 fZsqN2jW50QNAI/wJfMr2WcNa0u/Auo6jsj2DnCCFlxp40UinB8MddZRMsQwsMiWiVW6 2AbpTEt+RPTSHH+B9TpeDINEbnIc1BVLQOFnU= 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=SU5Pny4anM5GXy0MkkVGrsCAjcDPfh7zClvvGnEU5+k=; b=ZedI11V+fA/699fOH+lkV8lSxxToA48K6+aNVzNMEkFKn1QZq8ZmUw51LhrjCjpFt3 WlsmZsCxxdGr6n3HrYko/9jL7lpTONqTFmm2o5oMZAR37Hcw0zD/MObYx//Ye44xzcbf TBiDsUBn2XN53HnGzn/suy315nazXJ6y2SeAW+u3KT+Q2VFWZ64aQzWSLPufjVQ6YwwY Je5EiDlLA/eLGH3c8MFeuWszBVjvYdG1dTmDBC9+Pt0pzaNBIgqORDL2D5Lq9yuS2BsC 9j00zxf+bEvi2PwsrDtHYkt8aE/sN74FegvkhVJ9977JsyJeRGvRCyfV4txdR8DWhDHp bDlQ== X-Gm-Message-State: AHYfb5iS2UIo3a6e6q3ukkdk6ff9JOm4VJmLHFOD6AZZU8fMMLyFg/7P /21HLQb4WVrBtwCh X-Received: by 10.28.135.81 with SMTP id j78mr7259645wmd.74.1503389490886; Tue, 22 Aug 2017 01:11:30 -0700 (PDT) Received: from anjanavk-OptiPlex-7010.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id 6sm11300681wrn.52.2017.08.22.01.11.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Aug 2017 01:11:30 -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 v3 2/3] dt-bindings: PCI: Add PCIe hotplug property Date: Tue, 22 Aug 2017 13:40:55 +0530 Message-Id: <1503389456-27373-3-git-send-email-oza.oza@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503389456-27373-1-git-send-email-oza.oza@broadcom.com> References: <1503389456-27373-1-git-send-email-oza.oza@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170822_011153_643436_589EF4C1 X-CRM114-Status: GOOD ( 10.78 ) 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 Host drivers have the requirement of implementing PCI hotplug based on the how their SOC supports PCI hotplug. Couple of properties have been added. the one to enable the hotplug feature itself, and the other caters to the PCI hotplug implementation with the use of gpios. Signed-off-by: Oza Pawandeep diff --git a/Documentation/devicetree/bindings/pci/pci.txt b/Documentation/devicetree/bindings/pci/pci.txt index 50f9e2c..0bf25a1 100644 --- a/Documentation/devicetree/bindings/pci/pci.txt +++ b/Documentation/devicetree/bindings/pci/pci.txt @@ -24,3 +24,18 @@ driver implementation may support the following properties: unsupported link speed, for instance, trying to do training for unsupported link speed, etc. Must be '4' for gen4, '3' for gen3, '2' for gen2, and '1' for gen1. Any other values are invalid. + +- slot-pluggable: + PCI hotplug feature 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 the slot-pluggable property is present, the following propertey could + become effective. + - prsnt-gpios: + Array of gpios, could be present if hotplug is supported. + This property defines gpio based hotplug implementation. + Example: + 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.