From patchwork Thu Aug 24 08:49:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oza Pawandeep X-Patchwork-Id: 9919571 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 8D84A60353 for ; Thu, 24 Aug 2017 08:50:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B678289DA for ; Thu, 24 Aug 2017 08:50:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 704B428B97; Thu, 24 Aug 2017 08:50:56 +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 0D149289DA for ; Thu, 24 Aug 2017 08:50:55 +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=L9qLjnqF1gr1WV jM4Q4M3F816AWEJ5LTezICHAnrMGHYF7AmuaNk1UmlOUFH5KcTNRmsNOwZbdL+M7bFt1Y6hQdJbUP x4dPftwoadXAVRyA0O/xDLhGyRVPJuJfSjUDycU/V7bHrcGAe3uFLCiHa9PbOWeRbB8EFUE9yEmgM mP74pGmejEbTUjAd1xgmQqW10yE4AoJoiOOPLYJzXhMSgXrug7Gim/g2Jtj4/jWdp6+7SQfqIA/9g P/402d2xEpAk+q4kuzau8gW3brMTYy2/fhvRMsQT7//obejJJvXwlwsGDUTbdeB6jBCYu0O4CtlKF YdZBLmyJ2RvGwMXcxQjQ==; 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 1dknqk-0004s2-0q; Thu, 24 Aug 2017 08:50:50 +0000 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dknpk-0002d6-QU for linux-arm-kernel@lists.infradead.org; Thu, 24 Aug 2017 08:49:54 +0000 Received: by mail-wr0-x234.google.com with SMTP id k46so7864985wre.2 for ; Thu, 24 Aug 2017 01:49:28 -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=iAVOY+LsDXB8Bx8Eb3uQTTNGmdrl1nbi3eoGQR8hQgZs9hJyPJnK2Q0Fp1FjuP9etn iOkbAWuOnWIS8T9mVcybc3LHGUXRdC/dr1jCwpvtVlwMnuk4FwUKkxQ0hmncvjm636Yi lR5ghfAacZrPBLjb6/TN1jJetKQxlTTw9KyEM= 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=HEy36TNzI6uB4LsBwBhgouB4kk0ngwPY3qbybMJvm1jSd7e5uJUBDXk/kKDS9q4r1A Hx5dstGEPD7ft41eKGgQZiOfjOfJLQp0ooW2T5DVXiiocokGex86uMbPsqVnGAagdd7G iFA6S20a8G5mBz0koEjiAkH9ncwEs8ndg/GU1LswYITtTJV5U3fOArb1W63DOXbRJKqz F52aYjarmDoDqKF2bpnkCdmqu32v+E4harI8LmMsFXs5ZSCPIQzajDDob2YDOmbRxDto p4g7ICneE+nmyM8YJ5Ien8bWKUHvKaKybN3YbZltee9/sN1wLLxrtOENuCibqAlLEW22 E8wQ== X-Gm-Message-State: AHYfb5gAuH+IW5GlQNTSmAg40beRYrlyKCFFknwuBK7kY65z/MKatWmr IedEqD+MOkdMH+5H X-Received: by 10.223.177.156 with SMTP id q28mr3092186wra.290.1503564566746; Thu, 24 Aug 2017 01:49:26 -0700 (PDT) Received: from anjanavk-OptiPlex-7010.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id g133sm6592832wmd.48.2017.08.24.01.49.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Aug 2017 01:49:25 -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 v4 2/3] dt-bindings: PCI: add PCIe hotplug property Date: Thu, 24 Aug 2017 14:19:07 +0530 Message-Id: <1503564548-1834-3-git-send-email-oza.oza@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503564548-1834-1-git-send-email-oza.oza@broadcom.com> References: <1503564548-1834-1-git-send-email-oza.oza@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170824_014949_607966_0DB1ED98 X-CRM114-Status: GOOD ( 10.70 ) 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.