From patchwork Thu Aug 31 04:44:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oza Pawandeep X-Patchwork-Id: 9931137 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 1B25C602F0 for ; Thu, 31 Aug 2017 04:45:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12C302881C for ; Thu, 31 Aug 2017 04:45:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0779A28820; Thu, 31 Aug 2017 04:45:42 +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 B5DF42881C for ; Thu, 31 Aug 2017 04:45:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750816AbdHaEoj (ORCPT ); Thu, 31 Aug 2017 00:44:39 -0400 Received: from mail-qk0-f172.google.com ([209.85.220.172]:37281 "EHLO mail-qk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210AbdHaEog (ORCPT ); Thu, 31 Aug 2017 00:44:36 -0400 Received: by mail-qk0-f172.google.com with SMTP id k126so36262273qkb.4 for ; Wed, 30 Aug 2017 21:44:35 -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=ZaMIK8cXqd8SqE76IIjfnyy7hxK1DYyCJj0/DInFBLC/xCikyOhPQ7LFQsFT41ItyF s5QC1lAoiLEPhD9JyuZXvzzgfs6WPXv5Mttob0q5Y8P67f87KQ/QyGoXpq3rD+9Wddfe HUVI6EfrobJT53Sd3B+LQlM4fIyvcfR43jX2E= 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=Il8l5fdMwnt9paHL89OdMVWol9ZQzRFa1K7lUmBPWDOfNQXlfzSJO5rJrbXB++5xUK 5JZpSxOfvMmWDejdIXWc6ylvCOHedAU3v9eLWF6tpQqUf4MVVmh8w3htlu25VPm7nxRh CVbl3izhaZZbaa/TVul2z97gBxAmc56uJSGSQfdChth/Oo12k76WtZrHpkJm+gmUOg8f /R4uzNGUp41gvGMTzeDCdFH3ms5wPf06ubfGUdDXD4AcJ510WQTurMxpgff5P6b96eKl jgEVQR0pqASOkXepit2b08wIg+iUP0Q4utgwOddONTOj0sjE0msQVy/ZyXEJMdFjEDMb eQbg== X-Gm-Message-State: AHYfb5jQYqxZAS4eCZ0MGPmLA4p6Tr51+oryyFTMBhVP7EWaDWUF86+y U/QLDQ7SzmEfVi3X X-Received: by 10.55.97.76 with SMTP id v73mr2124426qkb.90.1504154675277; Wed, 30 Aug 2017 21:44:35 -0700 (PDT) Received: from anjanavk-OptiPlex-7010.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id i13sm4769713qke.7.2017.08.30.21.44.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Aug 2017 21:44:34 -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 v5 1/3] dt-bindings: PCI: Add PCI hotplug property Date: Thu, 31 Aug 2017 10:14:28 +0530 Message-Id: <1504154670-24608-2-git-send-email-oza.oza@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504154670-24608-1-git-send-email-oza.oza@broadcom.com> References: <1504154670-24608-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 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.