From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751332AbdHaEvD (ORCPT ); Thu, 31 Aug 2017 00:51:03 -0400 Received: from mail-qt0-f182.google.com ([209.85.216.182]:33405 "EHLO mail-qt0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751034AbdHaEu7 (ORCPT ); Thu, 31 Aug 2017 00:50:59 -0400 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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- 1.9.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: 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> References: <1504155029-24729-1-git-send-email-oza.oza@broadcom.com> Return-path: In-Reply-To: <1504155029-24729-1-git-send-email-oza.oza@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org To: Bjorn Helgaas , helgaas@kernel.org, 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 List-Id: devicetree@vger.kernel.org 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. -- 1.9.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: oza.oza@broadcom.com (Oza Pawandeep) Date: Thu, 31 Aug 2017 10:20:27 +0530 Subject: [PATCH v6 1/3] dt-bindings: PCI: Add PCI hotplug property In-Reply-To: <1504155029-24729-1-git-send-email-oza.oza@broadcom.com> References: <1504155029-24729-1-git-send-email-oza.oza@broadcom.com> Message-ID: <1504155029-24729-2-git-send-email-oza.oza@broadcom.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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. -- 1.9.1