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: 9914489 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 4A043600C5 for ; Tue, 22 Aug 2017 08:13:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55CB828806 for ; Tue, 22 Aug 2017 08:13:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AB7428820; Tue, 22 Aug 2017 08:13:27 +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=unavailable 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 DF93B28806 for ; Tue, 22 Aug 2017 08:13:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932228AbdHVILg (ORCPT ); Tue, 22 Aug 2017 04:11:36 -0400 Received: from mail-wr0-f172.google.com ([209.85.128.172]:35697 "EHLO mail-wr0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932467AbdHVILc (ORCPT ); Tue, 22 Aug 2017 04:11:32 -0400 Received: by mail-wr0-f172.google.com with SMTP id k46so43483538wre.2 for ; Tue, 22 Aug 2017 01:11:31 -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=TUCFBCTgfg+asd7bzl5zTJvLrpWwS3OypVlcuzdQf3MT3pxtIdR4QO7LoEBDM/prnD f5Jrq6WQ0KJ9Kqv0IA2gxTx+eMVaqi2PbYhW2U01l5KScw2fbKUONuqABhZ5iZc2aQLi U/UxJrLrXM4CfSJhZkEnB9S1oXVjBamh2oI2AKp28pxPMb7l/7ZKIR+wHfq1gw3/cxJh vX17IE01zoFRGLLIKJzsYb4jGml5szOeV0sW3mslRm0UQUkIaeNCemCdGR4VjOWuG4QV fDDws+qf64Her8gwCjTD2a/uzUq27cWV+hL2wdBgWKDdnIwfWdaZeU1psOhQRVbW2BJ4 Obuw== X-Gm-Message-State: AHYfb5h8ikh/2ApVpVQIz1Tco4nACJiLyOEKKt4EHiAuiwYd5xDIEzTY HrIrTRf6EX+Tl7LA 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> 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 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.