Re: [RFC PATCH 02/21] dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF Device

2019-10-15 Thread Kishon Vijay Abraham I
On 16/10/19 12:12 AM, Rob Herring wrote: > On Thu, Sep 26, 2019 at 04:59:14PM +0530, Kishon Vijay Abraham I wrote: >> Add device tree bindings for PCI endpoint function device. The >> nodes for PCI endpoint function device should be attached to >> PCI endpoint function bus

[RFC PATCH 17/21] PCI: endpoint: *_free_bar() to return error codes on failure

2019-09-26 Thread Kishon Vijay Abraham I
Modify pci_epc_get_next_free_bar() and pci_epc_get_first_free_bar() to return error values if there are no free BARs available. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 9 - include/linux/pci-epc.h | 7 +++ 2 files changed, 7

[RFC PATCH 15/21] PCI: endpoint: Remove unused pci_epf_match_device()

2019-09-26 Thread Kishon Vijay Abraham I
Remove unused pci_epf_match_device() function added in pci-epf-core.c Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epf-core.c | 16 include/linux/pci-epf.h | 2 -- 2 files changed, 18 deletions(-) diff --git a/drivers/pci/endpoint/pci-epf

[RFC PATCH 16/21] PCI: endpoint: Fix missing mutex_unlock in error case

2019-09-26 Thread Kishon Vijay Abraham I
There is a missing mutex_unlock() in pci_epc_add_epf() in one of the error scenarios. Fix it here. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/pci/endpoint/pci-epc-core.c b

[RFC PATCH 21/21] NTB: tool: Enable the NTB/PCIe link on the local or remote side of bridge

2019-09-26 Thread Kishon Vijay Abraham I
Invoke ntb_link_enable() to enable the NTB/PCIe link on the local or remote side of the bridge. Signed-off-by: Kishon Vijay Abraham I --- drivers/ntb/test/ntb_tool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ntb/test/ntb_tool.c b/drivers/ntb/test/ntb_tool.c index d592c0ffbd19

[RFC PATCH 20/21] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2019-09-26 Thread Kishon Vijay Abraham I
device has configurable number of memory windows (Max 4), configurable number of doorbell (Max 32), and configurable number of scratch-pad registers. Signed-off-by: Kishon Vijay Abraham I --- drivers/ntb/hw/Kconfig | 1 + drivers/ntb/hw/Makefile | 1 + drivers/ntb/hw/epf

[RFC PATCH 18/21] PCI: endpoint: Add EP function driver to provide NTB functionality

2019-09-26 Thread Kishon Vijay Abraham I
Add a new endpoint function driver to provide NTB functionality using multiple PCIe endpoint instances. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/functions/Kconfig | 12 + drivers/pci/endpoint/functions/Makefile |1 + drivers/pci/endpoint/functions/pci-epf

[RFC PATCH 19/21] PCI: Add TI J721E device to pci ids

2019-09-26 Thread Kishon Vijay Abraham I
Add TI J721E device to the pci id database. Since this device has a configurable PCIe endpoint, it could be used with different drivers. Signed-off-by: Kishon Vijay Abraham I --- include/linux/pci_ids.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/pci_ids.h b/include/linux

[RFC PATCH 12/21] PCI: endpoint: Add support to associate secondary EPC with EPF

2019-09-26 Thread Kishon Vijay Abraham I
. This is in preparation for adding NTB endpoint function driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/functions/pci-epf-test.c | 12 +++-- drivers/pci/endpoint/pci-ep-cfs.c | 6 +-- drivers/pci/endpoint/pci-epc-core.c | 47 drivers/pci

[RFC PATCH 14/21] PCI: cadence: Implement ->msi_map_irq() ops

2019-09-26 Thread Kishon Vijay Abraham I
Implement ->msi_map_irq() ops in order to map physical address to MSI address and return MSI data. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/pcie-cadence-ep.c | 59 1 file changed, 59 insertions(+) diff --git a/drivers/pci/controller/pcie-cade

[RFC PATCH 09/21] PCI: endpoint: Add helper API to get the 'next' unreserved BAR

2019-09-26 Thread Kishon Vijay Abraham I
Add an API to get the next unreserved BAR starting from a given BAR number that can be used by the endpoint function. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 26 ++ include/linux/pci-epc.h | 2 ++ 2 files changed, 24

[RFC PATCH 11/21] PCI: endpoint: Add helper API to populate header with values from DT

2019-09-26 Thread Kishon Vijay Abraham I
Add helper API pci_epc_of_parse_header() to populate header with values from device tree. These values will be written to the configuration space header in the endpoint controller. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 23

[RFC PATCH 07/21] PCI: endpoint: Add "pci-epf-bus" driver

2019-09-26 Thread Kishon Vijay Abraham I
Add "pci-epf-bus" driver that helps to create EPF device from device tree. This is added in order to define an endpoint function completely from device tree. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/Makefile | 3 +- drivers/pci/endpoint/pci-epf-

[RFC PATCH 04/21] Documentation: PCI: Add specification for the *PCI NTB* function device

2019-09-26 Thread Kishon Vijay Abraham I
Add specification for the *PCI NTB* function device. The endpoint function driver and the host PCI driver should be created based on this specification. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/endpoint/pci-test-ntb.txt | 315 1 file changed, 315

[RFC PATCH 13/21] PCI: endpoint: Add pci_epc_ops to map MSI irq

2019-09-26 Thread Kishon Vijay Abraham I
directly write to the physical address (in outbound region) of the other interface to ring doorbell using MSI. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 40 + include/linux/pci-epc.h | 7 + 2 files changed, 47 insertions

[RFC PATCH 08/21] PCI: endpoint: Make *_get_first_free_bar() take into account 64 bit BAR

2019-09-26 Thread Kishon Vijay Abraham I
ount 64 bit BAR while returning the first free unreserved BAR. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/pci/endpoint/pci-epc-core.c b/drivers/pci/endpoint/pci-e

[RFC PATCH 03/21] dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF NTB Device

2019-09-26 Thread Kishon Vijay Abraham I
Add device tree bindings for PCI endpoint NTB function device. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/pci/endpoint/pci-epf-ntb.txt | 31 +++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/endpoint/pci-epf-ntb.txt

[RFC PATCH 05/21] PCI: endpoint: Add API to get reference to EPC from device-tree

2019-09-26 Thread Kishon Vijay Abraham I
Add of_pci_epc_get() and of_pci_epc_get_by_name() to get reference to EPC from device-tree. This is added in preparation to define an endpoint function from device tree. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 61 + include

[RFC PATCH 06/21] PCI: endpoint: Add API to create EPF device from device tree

2019-09-26 Thread Kishon Vijay Abraham I
Add API to create EPF device from device tree and the device managed interface corresponding to it. This is added in order to define an endpoint function completely from device tree. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epf-core.c | 68

[RFC PATCH 01/21] dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF Bus

2019-09-26 Thread Kishon Vijay Abraham I
Add device tree bindings for PCI endpoint function bus to which endpoint function devices should be attached. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/pci/endpoint/pci-epf-bus.txt | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 Documentation

[RFC PATCH 10/21] PCI: endpoint: Make pci_epf_driver ops optional

2019-09-26 Thread Kishon Vijay Abraham I
pci_epf_driver ops optional here. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epf-core.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/pci/endpoint/pci-epf-core.c b/drivers/pci/endpoint/pci-epf-core.c index c74c7cc6d8bd..67015c66d09f 100644 --- a

[RFC PATCH 02/21] dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF Device

2019-09-26 Thread Kishon Vijay Abraham I
Add device tree bindings for PCI endpoint function device. The nodes for PCI endpoint function device should be attached to PCI endpoint function bus. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/pci/endpoint/pci-epf.txt | 28 +++ 1 file changed, 28 insertions

[RFC PATCH 00/21] Implement NTB Controller using multiple PCI

2019-09-26 Thread Kishon Vijay Abraham I
tions/395/attachments/284/481/Implementing_NTB_Controller_Using_PCIe_Endpoint_-_final.pdf Kishon Vijay Abraham I (21): dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF Bus dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF Device dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF NT

Re: [PATCH] tools/pci: Change pcitest compiling process

2018-10-03 Thread Kishon Vijay Abraham I
expeditious way. > > Update documentation accordingly. > > Signed-off-by: Gustavo Pimentel Reviewed-by: Kishon Vijay Abraham I > --- > Documentation/PCI/endpoint/pci-test-howto.txt | 19 ++ > tools/Makefile

Re: [PATCH v3 11/15] ARM: dts: dra7-evm: Add wilink8 wlan support

2018-04-27 Thread Kishon Vijay Abraham I
Hi Rob, On Wednesday 25 April 2018 08:17 PM, Rob Herring wrote: > On Wed, Apr 25, 2018 at 7:54 AM, Kishon Vijay Abraham I wrote: >> From: Hari Nagalla >> >> The wilink module is a combo wireless connectivity sdio >> card based on Texas Instrument's wl18xx s

Re: [PATCH v3 04/15] ARM: dts: dra74x-mmc-iodelay: Add a new pinctrl group for clk line without pullup

2018-04-27 Thread Kishon Vijay Abraham I
Hi Tony, On Wednesday 25 April 2018 07:05 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I [180425 12:57]: >> --- a/arch/arm/boot/dts/dra74x-mmc-iodelay.dtsi >> +++ b/arch/arm/boot/dts/dra74x-mmc-iodelay.dtsi >

[PATCH v4 15/15] Documentation: ARM: Add new MMC requirements for DRA7/K2G

2018-04-25 Thread Kishon Vijay Abraham I
>From 4.18 kernel, all the MMC controller instances in DRA7 are programmed using sdhci based driver (sdhci-omap.c). Document this new requirement here. Both omap2plus_defconfig and multi_v7_defconfig has CONFIG_MMC_SDHCI_OMAP enabled. Signed-off-by: Kishon Vijay Abraham I --- Changes from

[PATCH v3 02/15] ARM: dts: dra71-evm: Add "vqmmc-supply" property for mmc2

2018-04-25 Thread Kishon Vijay Abraham I
Add "vqmmc-supply" property for mmc2 to indicate the supply connected to the IO lines. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra71-evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/dra71-evm.dts b/arch/arm/boot/dts/dra71-evm

[PATCH v3 00/15] dra7: mmc: Update mmc dt node to use sdhci-omap

2018-04-25 Thread Kishon Vijay Abraham I
p4-hsmmc" compatible will use omap_hsmmc driver and "ti,dra7-sdhci" compatible will use sdhci_omap driver. Hari Nagalla (2): ARM: dts: dra72-evm-common: Add wilink8 wlan support ARM: dts: dra7-evm: Add wilink8 wlan support Kishon Vijay Abraham I (11): ARM: dts: dra72-evm-common:

[PATCH v3 03/15] ARM: dts: dra72x-mmc-iodelay: Add a new pinctrl group for clk line without pullup

2018-04-25 Thread Kishon Vijay Abraham I
be used in boards where mmc1_clk line is not connected to an external pullup. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72x-mmc-iodelay.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/dra72x-mmc-iodelay.dtsi b/arch/arm/boot/dts/

[PATCH v3 06/15] ARM: dts: am57xx-idk: Use pinctrl group from dra7xx-mmc-iodelay.dtsi to select pulldown

2018-04-25 Thread Kishon Vijay Abraham I
ew pinctrl group "mmc1_pins_default_no_clk_pu" in dra72x-mmc-iodelay/dra74x-mmc-iodelay added specifically to be used for CLK line without external pull up. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am571x-idk.dts | 2 +- arch/arm/boot/dts/am572x-idk.dts | 2 +- 2 files c

[PATCH v3 01/15] ARM: dts: dra72-evm-common: Remove mmc specific pinmux

2018-04-25 Thread Kishon Vijay Abraham I
mmc specific pinmux is selected from dra72x-mmc-iodelay.dtsi, so remove it from dra72-evm-common.dtsi. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72-evm-common.dtsi | 27 - 1 file changed, 27 deletions(-) diff --git a/arch/arm/boot/dts/dra72-evm

[PATCH v3 08/15] ARM: dts: am574x-idk: Add pinmux configuration for MMC

2018-04-25 Thread Kishon Vijay Abraham I
From: Sekhar Nori Include dra76x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for am574x SoC and use it in the pinctrl properties of MMC devicetree nodes present in am574x-idk.dts. Signed-off-by: Sekhar Nori Signed-off-by: Kishon Vijay Abraham I

[PATCH v3 12/15] ARM: dts: dra76-evm: Add wilink8 wlan support

2018-04-25 Thread Kishon Vijay Abraham I
From: Vishal Mahaveer Add support for WLAN using wilink8 module. On dra76-evm, MMC4 is used for connecting to wilink8 module. Signed-off-by: Vishal Mahaveer Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra76-evm.dts | 31 +++ 1 file changed, 31

[PATCH v3 14/15] ARM: dts: dra7: Add high speed modes capability to MMC1/MMC2 dt node

2018-04-25 Thread Kishon Vijay Abraham I
While the supported UHS mode can be obtained from CAPA2 register, SD Host Controller Standard Specification doesn't define bits for MMC's HS200 and DDR mode capability. Add properties to indicate MMC HS200 and DDR speed mode capability in dt node. Signed-off-by: Kishon Vijay Abraham I

[PATCH v3 10/15] ARM: dts: dra7-evm: Model EVM_3V6 regulator

2018-04-25 Thread Kishon Vijay Abraham I
On TI's DRA74x EVM, EVM_3V6 is connected is connected to the VBAT line of the wilink card. Model it here so that it can be used while adding wilink8 WLAN support. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7-evm.dts | 42 ++ 1 file change

[PATCH v3 07/15] ARM: dts: dra71-evm: Use pinctrl group from dra72x-mmc-iodelay.dtsi to select pulldown

2018-04-25 Thread Kishon Vijay Abraham I
ctrl group "mmc1_pins_default_no_clk_pu" in dra72x-mmc-iodelay added specifically to be used for CLK line without external pull up. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra71-evm.dts | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/arc

[PATCH v3 13/15] ARM: dts: dra7: Use sdhci-omap programming model

2018-04-25 Thread Kishon Vijay Abraham I
Use sdhci-omap programming model based on the generic sdhci library for programming the eMMC/SD/SDIO controller. Signed-off-by: Kishon Vijay Abraham I --- .../boot/dts/am57xx-beagle-x15-common.dtsi| 4 +-- arch/arm/boot/dts/am57xx-beagle-x15.dts | 1 + arch/arm/boot/dts/am57xx-idk

[PATCH v3 15/15] Documentation: ARM: Add new MMC requirements for DRA7/K2G

2018-04-25 Thread Kishon Vijay Abraham I
>From 4.18 kernel, all the MMC controller instances in DRA7 are programmed using sdhci based driver (sdhci-omap.c). Document this new requirement here. Both omap2plus_defconfig and multi_v7_defconfig has CONFIG_MMC_SDHCI_OMAP enabled. Signed-off-by: Kishon Vijay Abraham I --- Documentation/

[PATCH v3 09/15] ARM: dts: dra72-evm-common: Add wilink8 wlan support

2018-04-25 Thread Kishon Vijay Abraham I
Hari Nagalla [nsek...@ti.com: drop WLAN_EN pinmux. It should be done by bootloader. Also, some commit message adjustments] Signed-off-by: Sekhar Nori Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72-evm-common.dtsi | 42 +++ arch/arm/boo

[PATCH v3 05/15] ARM: dts: dra76x-mmc-iodelay: Add a new pinctrl group for clk line without pullup

2018-04-25 Thread Kishon Vijay Abraham I
llup to be used in boards where mmc1_clk line is not connected to an external pullup. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra76x-mmc-iodelay.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/dra76x-mmc-iodelay.dtsi b/arch/arm/boot/dts/

[PATCH v3 11/15] ARM: dts: dra7-evm: Add wilink8 wlan support

2018-04-25 Thread Kishon Vijay Abraham I
Delay values for MMC4. On dra7-evm, MMC4 is used for connecting to wilink module. IODelay data credits to : Vishal Mahaveer and Sekhar Nori Signed-off-by: Ido Yariv Signed-off-by: Eyal Reizer Signed-off-by: Hari Nagalla Signed-off-by: Sekhar Nori Signed-off-by: Kishon Vijay Abraham I --- arc

[PATCH v3 04/15] ARM: dts: dra74x-mmc-iodelay: Add a new pinctrl group for clk line without pullup

2018-04-25 Thread Kishon Vijay Abraham I
llup to be used in boards where mmc1_clk line is not connected to an external pullup. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra74x-mmc-iodelay.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/dra74x-mmc-iodelay.dtsi b/arch/arm/boot/dts/

Re: [RFC 06/10] misc: pci_endpoint_test: Add MSI-X support

2018-04-24 Thread Kishon Vijay Abraham I
Hi, On Tuesday 24 April 2018 04:27 PM, Gustavo Pimentel wrote: > Hi Kishon, > > On 24/04/2018 08:19, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Tuesday 17 April 2018 11:08 PM, Gustavo Pimentel wrote: >>> Hi Kishon, >>> >>> On 1

Re: [RFC 01/10] PCI: dwc: Add MSI-X callbacks handler

2018-04-24 Thread Kishon Vijay Abraham I
Hi, On Tuesday 24 April 2018 03:06 PM, Gustavo Pimentel wrote: > Hi Kishon, > > On 24/04/2018 08:07, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Monday 23 April 2018 03:06 PM, Gustavo Pimentel wrote: >>> Hi Kishon, >>> >>> On 16/04/201

Re: [RFC 06/10] misc: pci_endpoint_test: Add MSI-X support

2018-04-24 Thread Kishon Vijay Abraham I
Hi, On Tuesday 17 April 2018 11:08 PM, Gustavo Pimentel wrote: > Hi Kishon, > > On 17/04/2018 11:33, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Tuesday 10 April 2018 10:44 PM, Gustavo Pimentel wrote: >>> Adds the MSI-X support and updates driver documentat

Re: [RFC 01/10] PCI: dwc: Add MSI-X callbacks handler

2018-04-24 Thread Kishon Vijay Abraham I
Hi, On Monday 23 April 2018 03:06 PM, Gustavo Pimentel wrote: > Hi Kishon, > > On 16/04/2018 10:29, Kishon Vijay Abraham I wrote: >> Hi Gustavo, >> >> On Tuesday 10 April 2018 10:44 PM, Gustavo Pimentel wrote: >>> Changes the pcie_raise_irq function

Re: [RFC 06/10] misc: pci_endpoint_test: Add MSI-X support

2018-04-17 Thread Kishon Vijay Abraham I
Hi, On Tuesday 10 April 2018 10:44 PM, Gustavo Pimentel wrote: > Adds the MSI-X support and updates driver documentation accordingly. > > Changes the driver parameter in order to allow the interruption type > selection. > > Signed-off-by: Gustavo Pimentel > --- > Documentation/misc-devices/pci

Re: [RFC 03/10] PCI: endpoint: Add MSI-X interfaces

2018-04-17 Thread Kishon Vijay Abraham I
Hi, On Tuesday 10 April 2018 10:44 PM, Gustavo Pimentel wrote: > Implements the generic method for calling the get/set callbacks. > > Adds the PCI_EPC_IRQ_MSIX type. > > Adds the MSI-X callbacks signatures to the ops structure. > > Adds sysfs interface for altering the number of MSI-X entries.

Re: [RFC 01/10] PCI: dwc: Add MSI-X callbacks handler

2018-04-16 Thread Kishon Vijay Abraham I
Hi Gustavo, On Tuesday 10 April 2018 10:44 PM, Gustavo Pimentel wrote: > Changes the pcie_raise_irq function signature, namely the interrupt_num > variable type from u8 to u16 to accommodate the MSI-X maximum interrupts > of 2048. > > Implements a PCIe config space capability iterator function to

Re: [PATCH 00/41] omap_hsmmc: Add ADMA support and UHS/HS200/DDR support

2017-05-22 Thread Kishon Vijay Abraham I
Hi, On Saturday 20 May 2017 03:43 AM, Tony Lindgren wrote: > Hi, > > * Kishon Vijay Abraham I [170519 01:19]: >> This series adds UHS, HS200, DDR mode and ADMA support to >> omap_hsmmc driver used to improve the throughput of MMC/SD in dra7 >> SoCs. > > Certai

[PATCH 07/41] mmc: host: omap_hsmmc: Allow io voltage switch even for fixed vdd

2017-05-19 Thread Kishon Vijay Abraham I
Now that vmmc regulator is made optional, do not bail out if vmmc regulator is not found. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/mmc/host/omap_hsmmc.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc

[PATCH 00/41] omap_hsmmc: Add ADMA support and UHS/HS200/DDR support

2017-05-19 Thread Kishon Vijay Abraham I
hsmmc: Add voltage switch support for UHS SD card Kishon Vijay Abraham I (30): mmc: host: omap_hsmmc: Support pbias and vmmc_aux to switch to 1.8v mmc: host: omap_hsmmc: Separate setting voltage capabilities from bus power mmc: host: omap_hsmmc: Program HCTL based on signal_voltage set by

[PATCH 02/41] mmc: host: omap_hsmmc: Separate setting voltage capabilities from bus power

2017-05-19 Thread Kishon Vijay Abraham I
omap_hsmmc_conf_bus_power to be invoked every time there is a voltage switch. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/mmc/host/omap_hsmmc.c | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers

[PATCH 01/41] mmc: host: omap_hsmmc: Support pbias and vmmc_aux to switch to 1.8v

2017-05-19 Thread Kishon Vijay Abraham I
Add support for vmmc_aux to switch to 1.8v. Also use "iov" instead of "vdd" to indicate io voltage. This is in preparation for adding support for io signal voltage switch. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/mmc/ho

[PATCH 04/41] mmc: host: omap_hsmmc: Add voltage switch support for UHS SD card

2017-05-19 Thread Kishon Vijay Abraham I
active and CIRQ can be used to keep the MMC module active. This is required for voltage switching to succeed and the card to enumerate in UHS mode. Signed-off-by: Balaji T K Signed-off-by: Sourav Poddar [kis...@ti.com : cleanup the voltage switch sequence] Signed-off-by: Kishon Vijay Abraham I [nsek

[PATCH 08/41] mmc: host: omap_hsmmc: Remove incorrect voltage switch sequence

2017-05-19 Thread Kishon Vijay Abraham I
in start_signal_voltage_switch ops to be used by mmc core for switching voltages. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 79 --- 1 file changed, 79 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/h

[PATCH 03/41] mmc: host: omap_hsmmc: Program HCTL based on signal_voltage set by mmc core

2017-05-19 Thread Kishon Vijay Abraham I
set on power mode status being changed to MMC_POWER_ON. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/mmc/host/omap_hsmmc.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host

[PATCH 09/41] mmc: host: omap_hsmmc: Add software timer when timeout greater than hardware capablility

2017-05-19 Thread Kishon Vijay Abraham I
er warning in sw timeout function and use sw timeout for busy timeout] Signed-off-by: Ravikumar Kattekola Signed-off-by: Mugunthan V N [kis...@ti.com: Fix the timeout value to account for the entire transfer to complete here.] Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --

[PATCH 05/41] mmc: host: omap_hsmmc: Set clk rate to the max frequency

2017-05-19 Thread Kishon Vijay Abraham I
Set the clock rate of the functional clock to the max frequency that is passed to the driver either using pdata or dt. Also remove unnecessary setting of host->fclk to NULL. This is in preparation for supporting high frequency modes of operation. Signed-off-by: Kishon Vijay Abraham I Sig

[PATCH 12/41] mmc: host: omap_hsmmc: Fix error path sequence

2017-05-19 Thread Kishon Vijay Abraham I
Fix the error path sequence so that clk_disable, runtime_disable etc are done in the reverse order of how they were enabled. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/mmc/host/omap_hsmmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 10/41] mmc: host: omap_hsmmc: Prepare *set_timing() to be used for iodelay setting

2017-05-19 Thread Kishon Vijay Abraham I
though the same UHSMC value has to be written to the AC12 register. This is in preparation for setting iodelay values. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/mmc/host/omap_hsmmc.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/mmc/host

[PATCH 11/41] mmc: host: omap_hsmmc: Add new compatible string to support dra7

2017-05-19 Thread Kishon Vijay Abraham I
Add a new compatible string "ti,dra7-hsmmc" to support dra7 and dra72 controllers. Also create a new controller flag "OMAP_HSMMC_REQUIRE_IODELAY" to specify all controllers that use "ti,dra7-hsmmc" require iodealy configuration to be set. Signed-off-by: Kishon

[PATCH 21/41] ARM: dts: dra72-evm-common: Correct vmmc-supply for mmc2

2017-05-19 Thread Kishon Vijay Abraham I
t for dra72-evm rev C (SR2.0)") Signed-off-by: Ravikumar Kattekola Signed-off-by: Sekhar Nori Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra71-evm.dts | 14 ++ arch/arm/boot/dts/dra72-evm-common.dtsi | 2 -- arch/arm/boot/dts/dra72-evm-revc.d

[PATCH 25/41] ARM: dts: dra7-evm: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra74x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra74 SoC and use it in the pinctrl properties of MMC devicetree nodes present in dra7-evm. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7-evm.dts | 18

[PATCH 16/41] mmc: omap_hsmmc: Support non-1.8V IO controllers

2017-05-19 Thread Kishon Vijay Abraham I
by: Sekhar Nori Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c| 15 --- include/linux/platform_data/hsmmc-omap.h | 5 + 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsm

[PATCH 22/41] ARM: dts: Add dra7 iodelay configuration

2017-05-19 Thread Kishon Vijay Abraham I
From: Tony Lindgren Add dra7 iodelay configuration. Signed-off-by: Tony Lindgren Signed-off-by: Nishanth Menon --- arch/arm/boot/dts/dra7.dtsi | 8 include/dt-bindings/pinctrl/dra.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/

[PATCH 29/41] ARM: dts: am572x-idk: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra74x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra74x SoC and use it in the pinctrl properties of MMC devicetree nodes present in am572x-idk.dts. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am572x-idk.dts | 19

[PATCH 28/41] ARM: dts: am571x-idk: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra72x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra72 SoC and use it in the pinctrl properties of MMC devicetree nodes present in am571x-idk.dts. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am571x-idk.dts | 19

[PATCH 13/41] mmc: host: omap_hsmmc: Add support to set IODELAY values

2017-05-19 Thread Kishon Vijay Abraham I
The data manual of J6/J6 Eco recommends to set different IODELAY values depending on the mode in which the MMC/SD is enumerated in order to ensure IO timings are met. Add support to set the IODELAY values depending on the various MMC modes using the pinctrl APIs. Signed-off-by: Kishon Vijay

[PATCH 14/41] mmc: host: omap_hsmmc: Remove *use_dma* member

2017-05-19 Thread Kishon Vijay Abraham I
omap_hsmmc doesn't support polled I/O. So remove *use_dma* which is always set to '1'. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/mmc/host/omap_hsmmc.c | 37 - 1 file changed, 16 insertions(+), 21 deletions(-

[PATCH 15/41] mmc: host: omap_hsmmc: Enable ADMA2

2017-05-19 Thread Kishon Vijay Abraham I
omap hsmmc host controller has ADMA2 feature. Enable it here for better read and write throughput. Signed-off-by: Kishon Vijay Abraham I [misael.lo...@ti.com: handle ADMA errors] Signed-off-by: Misael Lopez Cruz [nsek...@ti.com: restore adma settings after context loss] Signed-off-by: Sekhar

[PATCH 31/41] ARM: dts: dra72-evm-revc: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra72x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra72 SoC and use it in the pinctrl properties of MMC devicetree nodes present in dra72-evm-revc.dts. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72-evm-revc.dts

[PATCH 35/41] ARM: dts: dra7: Add supported MMC/SD modes in MMC dt nodes

2017-05-19 Thread Kishon Vijay Abraham I
m57xx-evm reva3, beagle-x15 and am57xx idk has 3.3v line connected to IO lines, HS200 cannot be supported in these boards). MMC3 controller supports SDR12, SDR25 and SDR50 modes. MMC4 controller supports SDR12 and SDR25 modes. Add these supported modes in device-tree file. Signed-off-by: Kishon

[PATCH 37/41] ARM: dts: am57xx-beagle-x15-common: Set MMC2 IO voltage to 3.3V

2017-05-19 Thread Kishon Vijay Abraham I
board. Signed-off-by: Sekhar Nori Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi index 064755e

[PATCH 38/41] ARM: OMAP2+: Add pdata-quirks for MMC/SD on DRA74x EVM

2017-05-19 Thread Kishon Vijay Abraham I
1.1 silicon. PG 1.1 silicon has limitations w.r.t frequencies at which MMC1/2/3 can operate as well as different IOdelay numbers. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- arch/arm/mach-omap2/pdata-quirks.c | 31 +++ 1 file changed, 31

[PATCH 17/41] ARM: dts: dra72-evm: Add vmmc_aux supply to mmc1

2017-05-19 Thread Kishon Vijay Abraham I
Add vmmc_aux-supply property to mmc1 dt node and populate it with ldo1_reg to reflect ldo1_out is connected to mmc1 IO lines. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72-evm.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/dra72-evm.dts b/arch

[PATCH 39/41] ARM: omap2plus_defconfig: Enable PINCTRL_TI_IODELAY

2017-05-19 Thread Kishon Vijay Abraham I
Enable PINCTRL_TI_IODELAY since it is required for MMC module in DRA7 family of processors to configure "IODelay" values depending on the enumerated MMC modes. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/configs/omap2plus_defconfig | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH 40/41] ARM: multi_v7_defconfig: Enable PINCTRL_TI_IODELAY

2017-05-19 Thread Kishon Vijay Abraham I
Enable PINCTRL_TI_IODELAY since it is required for MMC module in DRA7 family of processors to configure "IODelay" values depending on the enumerated MMC modes. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH 33/41] ARM: dts: dra7: Add "max-frequency" property to MMC dt nodes

2017-05-19 Thread Kishon Vijay Abraham I
ned-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/dra7.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index 5a262e1a0313..38fb1828e26a 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/ar

[PATCH 23/41] ARM: dts: dra72x: Create a common file with MMC/SD IOdelay data

2017-05-19 Thread Kishon Vijay Abraham I
, Revised January 2017 * AM571x Silicon Revision 1.0: SPRS919M, Revised November 2017 * DRA71x : SPRS960B, Revised February 2017 Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72x-mmc-iodelay.dtsi | 350 ++ 1 file changed, 350 insertions(+) create mode

[PATCH 20/41] ARM: dts: dra7-evm: Correct the vmmc-supply for mmc2

2017-05-19 Thread Kishon Vijay Abraham I
From: Ravikumar Kattekola On DRA75x EVM, MMC2 vdd/ios are connected to a common supply fixed at 1.8V not 3.3V Fixes: 6cf02dbb4b71 ("ARM: dts: dra7-evm: Add mmc2 node for eMMC support") Signed-off-by: Ravikumar Kattekola Signed-off-by: Sekhar Nori Signed-off-by: Kishon Vijay

[PATCH 30/41] ARM: dts: dra72-evm: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra72x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra72 SoC and use it in the pinctrl properties of MMC devicetree nodes present in dra72-evm.dts. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72-evm.dts | 14

[PATCH 36/41] ARM: dts: am57xx-idk: Set MMC2 IO voltage to 3.3V

2017-05-19 Thread Kishon Vijay Abraham I
ue to the board. Signed-off-by: Sekhar Nori Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am57xx-idk-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/am57xx-idk-common.dtsi b/arch/arm/boot/dts/am57xx-idk-common.dtsi index 5d6965ab7339..a8c9e5f

[PATCH 41/41] Documentation: ARM: Document new dependencies for MMC on DRA7

2017-05-19 Thread Kishon Vijay Abraham I
MMC on DRA7 SoCs require different IO Delay values to be configured depending on the MMC mode. In order to confgiure these IO Delay values CONFIG_PINCTRL_TI_IODELAY must be enabled. Document this dependency here so that it can be added by anyone using custom .config. Signed-off-by: Kishon Vijay

[PATCH 34/41] ARM: dts: dra7: Use new dra7-specific compatible string

2017-05-19 Thread Kishon Vijay Abraham I
Use the new compatible string "ti,dra7-hsmmc" that was specifically added for dra7 and dra72. This is required since for dra7 and dra72 processors iodelay values has to be set unlike other processors. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- arch/arm/boo

[PATCH 24/41] ARM: dts: dra74x: Create a common file with MMC/SD IOdelay data

2017-05-19 Thread Kishon Vijay Abraham I
November 2016 * AM572x Silicon Revision 1.1: SPRS915R, Revised November 2016 Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra74x-mmc-iodelay.dtsi | 648 ++ 1 file changed, 648 insertions(+) create mode 100644 arch/arm/boot/dts/dra74x-mmc-iodelay.dtsi

[PATCH 27/41] ARM: dts: am57xx-idk: Move common MMC/SD properties to common file

2017-05-19 Thread Kishon Vijay Abraham I
EVMs. Signed-off-by: Sekhar Nori Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am571x-idk.dts | 7 --- arch/arm/boot/dts/am572x-idk.dts | 8 arch/arm/boot/dts/am57xx-idk-common.dtsi | 8 3 files changed, 8 insertions(+), 15 deletions(-) diff

[PATCH 32/41] ARM: dts: dra71-evm: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra72x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra72 SoC and use it in the pinctrl properties of MMC devicetree nodes present in dra71-evm.dts. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra71-evm.dts | 14

[PATCH 06/41] mmc: host: omap_hsmmc: Add tuning support

2017-05-19 Thread Kishon Vijay Abraham I
Ravikumar Kattekola Signed-off-by: Viswanath Puttagunta Signed-off-by: Sourav Poddar [kis...@ti.com : cleanup the tuning sequence] Signed-off-by: Kishon Vijay Abraham I [nsek...@ti.com: add comment for tuning timeout] Signed-off-by: Sekhar Nori --- drivers/mmc/host/omap_hsm

[PATCH 19/41] ARM: dts: am57xx-beagle-x15-revb1: Fix supply name used for MMC1 IO lines

2017-05-19 Thread Kishon Vijay Abraham I
7xx-beagle-x15: Add support for rev B1") Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts b/arch/arm/boot/dts/am57xx-beagle-x15-revb1.dts

[PATCH 26/41] ARM: dts: am57xx-beagle-x15: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra74x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra74 SoC and use it in the pinctrl properties of MMC devicetree nodes present in am57xx-beagle-x15/am57xx-beagle-x15-revb1. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot

[PATCH 18/41] ARM: dts: dra72-evm-revc: Add vmmc_aux supply to mmc1

2017-05-19 Thread Kishon Vijay Abraham I
Add vmmc_aux-supply property to mmc1 dt node and populate it with ldo1_reg to reflect ldo1_out is connected to mmc1 IO lines. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72-evm-revc.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/dra72-evm

Re: [GIT PULL] PCI: Support for configurable PCI endpoint

2017-04-11 Thread Kishon Vijay Abraham I
Hi Bjorn, On Wednesday 12 April 2017 01:04 AM, Bjorn Helgaas wrote: > On Mon, Apr 10, 2017 at 10:43:28AM -0500, Bjorn Helgaas wrote: >> On Wed, Apr 05, 2017 at 02:22:20PM +0530, Kishon Vijay Abraham I wrote: >>> Hi Bjorn, >>> >>> Please find the pull request

[PATCH v7 01/23] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-04-10 Thread Kishon Vijay Abraham I
specific to an endpoint function. Signed-off-by: Kishon Vijay Abraham I Acked-by: Joao Pinto Signed-off-by: Bjorn Helgaas --- Changes from v6: *) Avoid NULL pointer dereferencing errors in pci-epf-core.c *) Fixed few cleanups missing in the error handling path drivers/Makefile

Re: [PATCH v6 01/23] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-04-05 Thread Kishon Vijay Abraham I
Hi Bjorn, On Wednesday 05 April 2017 10:22 PM, Bjorn Helgaas wrote: > On Wed, Apr 05, 2017 at 02:22:21PM +0530, Kishon Vijay Abraham I wrote: >> Introduce a new EP core layer in order to support endpoint functions in >> linux kernel. This comprises the EPC library (Endpoint Con

Re: [GIT PULL] PCI: Support for configurable PCI endpoint

2017-04-05 Thread Kishon Vijay Abraham I
Hi Bjorn, On Wednesday 05 April 2017 02:06 AM, Bjorn Helgaas wrote: > On Mon, Mar 27, 2017 at 03:14:56PM +0530, Kishon Vijay Abraham I wrote: >> Hi Bjorn, >> >> Please find the pull request for PCI endpoint support below. I've >> also included all the history here.

[GIT PULL] PCI: Support for configurable PCI endpoint

2017-04-05 Thread Kishon Vijay Abraham I
- pci: endpoint: for 4.12 *) Add PCI endpoint core layer *) Modify designware and dra7xx driver to be configured in EP mode *) Add a PCI endpoint *test* function driver and corresponding host

[PATCH v6 01/23] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-04-05 Thread Kishon Vijay Abraham I
specific to an endpoint function. Signed-off-by: Kishon Vijay Abraham I Acked-By: Joao Pinto Signed-off-by: Bjorn Helgaas --- drivers/Makefile| 2 + drivers/pci/Kconfig | 1 + drivers/pci/endpoint/Kconfig| 20 ++ drivers/pci/endpoint/Makefile

[PATCH v6 07/23] PCI: endpoint: functions: Add an EP function to test PCI

2017-04-05 Thread Kishon Vijay Abraham I
Adds a new endpoint function driver (to program the virtual test device) making use of the EP-core library. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Bjorn Helgaas --- drivers/pci/endpoint/Kconfig | 2 + drivers/pci/endpoint/Makefile | 2

  1   2   3   4   >