From patchwork Thu Aug 31 04:50:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oza Pawandeep X-Patchwork-Id: 9931193 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 2E12F602F0 for ; Thu, 31 Aug 2017 04:51:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E83426538 for ; Thu, 31 Aug 2017 04:51:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13140287C8; Thu, 31 Aug 2017 04:51:52 +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 91F0A28725 for ; Thu, 31 Aug 2017 04:51:51 +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=eG973kuLhDJHpNIsenH94lmlndBHnhEhkqerQOCG9CQ=; b=KfHBS3REKA6gny OxECz/5DrgTnQwrq30zRa11s1W9tyeE9SFrWIvM8SzMeEYvSVU22C7/c0/UTeClg4w7ADiT3IptQ5 +cIqr0yrTdmFH7//lCeVgnPP+EXa7xAREgmA3sbITwoWl5Xy1wxvbM+bV+FHQBKSCvoa6T8OM7SQi ufS67mGOxPuvO2t1pnRfXlIQC14tAKOpIw4KiUzzKwycqcP/upPrMtTgLHnAgIZetKNsMl+1LXPMS zN1IjI1GsfqmuXtz486Led1f25NpM13fe5H+QizqtSAKe5PBdrCaYVEEzWzf0jcdXGLdA9TRnym9s X/gz/U9I+7e33Bt6ejtA==; 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 1dnHSF-0008IO-5z; Thu, 31 Aug 2017 04:51:47 +0000 Received: from mail-qt0-x22d.google.com ([2607:f8b0:400d:c0d::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dnHRn-0007wv-AO for linux-arm-kernel@lists.infradead.org; Thu, 31 Aug 2017 04:51:24 +0000 Received: by mail-qt0-x22d.google.com with SMTP id w42so35433247qtg.5 for ; Wed, 30 Aug 2017 21:50:59 -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=e7K0WzPqUIqxjaeIuS7r4G03i+bxXMjmW6jiEeJoQns=; b=PWPAJ0u7116cPCoWe8GdyOVFAX8oicYZ/v5OC45O50VoWNqw3qKXsyNiNy1MlnXw+F zSGU7rHnTXhEZTFR76has8CqV8Y7e7rZp0Z6sFHd2FevKUKXEikzf2Y27ASF1p1H6apZ 5m1nsEINWtTzVm592M+kAooU0iH7RBlb5euZI= 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=e7K0WzPqUIqxjaeIuS7r4G03i+bxXMjmW6jiEeJoQns=; b=E5y3gh/hxys2BEfeI1HKgAxSVaoFpSllAh6Lgyu+5yxxLicCGVYybTJkzjiFkbWOrG Si3U5xqpk/KRWwSRit9aJxSKQ+kFCXCS6x/6fpIg90OlqfGbyFth0r3eroIuq9VFOnR9 /s7hv4/5wrZ3hjHKXTSAQ9Xg1JlMT2hqF++2f4yCmpMAq5vwCKWeuK71aemopcOeFK4C 4bWz4F/g8QWwgHTjnEQ70MEfcgncjeVn2SPCb8GDTG4BKGe329bCzWrwC2Hu5nBexMXK r2YhZ1xbkBbld0XOEAlbYu2ghoRa7jK4roDDn+gtQIm/ZUxxaNXd47ooKCxz2mYR1+Ag Bu0A== X-Gm-Message-State: AHYfb5g5zDgigBkX6CM9WzOkTYGN8pe8opTDNTx/RTke3yhDeYnZCYU5 F1S4CmpFtlKjDvu6 X-Received: by 10.237.59.92 with SMTP id q28mr5153144qte.246.1504155058375; Wed, 30 Aug 2017 21:50:58 -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.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Aug 2017 21:50:57 -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 1/3] dt-bindings: PCI: Add PCI hotplug property Date: Thu, 31 Aug 2017 10:20:27 +0530 Message-Id: <1504155029-24729-2-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170830_215119_922435_7966E362 X-CRM114-Status: GOOD ( 10.57 ) 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 it. 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 Acked-by: Rob Herring 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.