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: 9900911 X-Patchwork-Delegate: bhelgaas@google.com 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 4017B60230 for ; Tue, 15 Aug 2017 05:56:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33BCD27E63 for ; Tue, 15 Aug 2017 05:56:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 284FD286F8; Tue, 15 Aug 2017 05:56:20 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91D4B27F7F for ; Tue, 15 Aug 2017 05:56:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753177AbdHOF4M (ORCPT ); Tue, 15 Aug 2017 01:56:12 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:37098 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753097AbdHOF4K (ORCPT ); Tue, 15 Aug 2017 01:56:10 -0400 Received: by mail-wr0-f171.google.com with SMTP id o62so99130wrc.4 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=VMfWXd7YYPB42kycPPgUCcfo1o0LkiXVJSvJ48wVHm94vTqx+OZdQ1SwK52K/3u77h F1vxRozQoFAKX7QoQiHdP02UEmdP1g2AzjuJrHkqhsT4aOMzaPLBtPuFkrvB0emKgwAa QWxEujC5JWraALRJlsIfv5Xm/mnezYLGLoIKv2Vx6+xvHOxDXrGx+ppG0dotb1+TnMiS rf26itVcTqmyU0fM13T8GIns7vSh3FE2NOxtjg9ThwvVR4ieBR4Uy7MwKpoaVhTugdqe pO1joS8M42lmZcKk0zQZ4L7oizjpyiLUJyUZQOw2IeYOK9snppVmEGP5V1W1nb6QMuhj MvOg== X-Gm-Message-State: AHYfb5g64u9OVYFhKVGNAHBcZjeqoQ3rLi+NOJN5CgTjcvydRLR4omtb eOB6Gxi9Zj6NTI0U 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> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.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.