From patchwork Tue Aug 15 05:55:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oza Pawandeep X-Patchwork-Id: 9900925 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 3412E60244 for ; Tue, 15 Aug 2017 06:03:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 266D5286F8 for ; Tue, 15 Aug 2017 06:03:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B2582874A; Tue, 15 Aug 2017 06:03: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 C39DA286F8 for ; Tue, 15 Aug 2017 06:03: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=j4KQr2yXZeuNIO267JXMFI3KiAuuHyx08Js0mTTv61c=; b=T9+16cHAo9c2Bl rlt+1EjrsMSltkyYr7ksUo6nFQYIGTlRWzzKHMvlF53A4qGGnM153MVrffh/lBLg9UbT30ScFehfm OlAXyfB0eJrDw8/StNkl8n1bSl8QFzdo9Z3pgdA5sii5RucVU3aFYmd8EFHKcfwUYW1vgb6YZlMGI 7syPJI/Jp96OUGpZaMB4ZPUh35nurEO4408sQOnQGg/Mek/zR09O/cnOxW7bIXkJqCfsTyq8XaiaG 21i71foVRGyq5AwZQ5hqRo9MLwlYdpUp7IXSOX/L6x9B1W0jRibUASTVGNWHIBXD2865XkZikAova y9vrjZutELbr8O4+Zq3A==; 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 1dhUxD-0000IA-3p; Tue, 15 Aug 2017 06:03:51 +0000 Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dhUq7-0004tk-Nh for linux-arm-kernel@lists.infradead.org; Tue, 15 Aug 2017 05:56:38 +0000 Received: by mail-wr0-x22e.google.com with SMTP id k71so139646wrc.2 for ; Mon, 14 Aug 2017 22:56:10 -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=YicYjkVkWFpLfbiyKdHKsUfULiDxTc3JOEx+wmn+t+KJ/cbCUF9FplYSA1XJmiXZfi 7ZTm+5hHQTWtJ7awVv7lopMudhQAuHUh9qzGTb63PPxGZXEo439xvf7lfY5PycYxSGUf 1Xn/gTSr/bE8j6PlvRDlH2XrCjZYIDV51jYuM= 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=Xrg9jteuCPS2rh5JhvK3cLWoi0cAe2SE5pYlVC8JI6cI2Af9fqpV9Bb9OJe7wBlxYi m8Qc5+zSfgh9/cBGpfJQmcbfBHwv9lSIo01PcyW6J5KIttfr2JhdMgwIioO04BxGgEEe 9ysNL7LGMn1Nuwgs4PC7O566a8d8imr+weG0YV90HvLN+Pxic9xwiSExSgsLIsgObzUx T1UL8sPR+fmPTKNLJBYrGJKnLzy8fNM3dm6Utmq47NZKnBguKumO6lx+9w8dCZiz8frq xMkdwJahmYgkLV+B1thphSFtxFSOGYLGee+3Z3kt/f5BS9gbwQbtJFjfP52Pb4yfJibl Tzlw== X-Gm-Message-State: AHYfb5jsKIHzb7NDR3XbxP0XcMvRWGbloy5Gfb2i0z2tYjnGuWUbbpE9 dNDbf5ZdLQ12zDyZ X-Received: by 10.223.171.9 with SMTP id q9mr17256384wrc.95.1502776569453; Mon, 14 Aug 2017 22:56:09 -0700 (PDT) Received: from anjanavk-OptiPlex-7010.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id 9sm7597374wrl.57.2017.08.14.22.56.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Aug 2017 22:56:08 -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 v2 2/3] Documentation/devicetree: Add PCIe hotplug property Date: Tue, 15 Aug 2017 11:25:46 +0530 Message-Id: <1502776547-30542-3-git-send-email-oza.oza@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502776547-30542-1-git-send-email-oza.oza@broadcom.com> References: <1502776547-30542-1-git-send-email-oza.oza@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170814_225632_617324_005D9600 X-CRM114-Status: GOOD ( 10.91 ) 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 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.