Re: [PATCH] PCI: endpoint: Explain NTB in PCI_EPF_NTB help text

2021-02-01 Thread Kishon Vijay Abraham I
Hi Geert, On 29/01/21 6:37 pm, Geert Uytterhoeven wrote: > The help text for the PCI_EPF_NTB config symbol uses the acronym "NTB". > However, this acronym is not explained there. > Expand the acronym to make it easier for users to decide if they need to > enable the PCI_EPF_NTB option or not. >

Re: [PATCH] PCI: endpoint: Select configfs dependency

2021-01-29 Thread Kishon Vijay Abraham I
Hi Arnd, Lorenzo, On 25/01/21 5:04 pm, Arnd Bergmann wrote: > From: Arnd Bergmann > > The newly added pci-epf-ntb driver uses configfs, which > causes a link failure when that is disabled at compile-time: > > arm-linux-gnueabi-ld: drivers/pci/endpoint/functions/pci-epf-ntb.o: in > function

Re: [PATCH v9 01/17] Documentation: PCI: Add specification for the *PCI NTB* function device

2021-01-28 Thread Kishon Vijay Abraham I
Hi Randy, On 29/01/21 6:35 am, Randy Dunlap wrote: > On 1/4/21 7:28 AM, Kishon Vijay Abraham I wrote: >> Add specification for the *PCI NTB* function device. The endpoint function >> driver and the host PCI driver should be created based on this >> specification. >> >

Re: [PATCH v2 3/3] PCI: uniphier-ep: Add EPC restart management support

2021-01-28 Thread Kishon Vijay Abraham I
Hi Kunihiko, On 24/01/21 8:39 pm, Kunihiko Hayashi wrote: > Set the polling function and call the init function to enable EPC restart > management. The polling function detects that the bus-reset signal is a > rising edge. > > Signed-off-by: Kunihiko Hayashi > --- >

Re: [PATCH v2 1/3] PCI: endpoint: Add 'started' to pci_epc to set whether the controller is started

2021-01-28 Thread Kishon Vijay Abraham I
Hi Kunihiko, On 24/01/21 8:39 pm, Kunihiko Hayashi wrote: > This adds a member 'started' as a boolean value to struct pci_epc to set > whether the controller is started, and also adds a function to get the > value. > > Signed-off-by: Kunihiko Hayashi > --- > drivers/pci/endpoint/pci-epc-core.c

Re: [PATCH v9 01/17] Documentation: PCI: Add specification for the *PCI NTB* function device

2021-01-28 Thread Kishon Vijay Abraham I
Hi Lorenzo, On 28/01/21 5:41 pm, Lorenzo Pieralisi wrote: > On Fri, Jan 22, 2021 at 07:48:52PM +0530, Kishon Vijay Abraham I wrote: >> Hi Bjorn, >> >> On 20/01/21 12:04 am, Bjorn Helgaas wrote: >>> On Mon, Jan 04, 2021 at 08:58:53PM +0530, Kishon Vijay Abraham I

Re: [PATCH v12 2/4] phy: Add ethernet serdes configuration option

2021-01-27 Thread Kishon Vijay Abraham I
Hi Steen, On 15/01/21 9:44 pm, Steen Hegelund wrote: > Hi Kishon, > > On Fri, 2021-01-15 at 21:22 +0530, Kishon Vijay Abraham I wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you >> know the content is safe >> >> Hi, >> >&

Re: [PATCH v2 00/14] PHY: Add support in Sierra to use external clock

2021-01-25 Thread Kishon Vijay Abraham I
On 22/12/20 12:35 pm, Kishon Vijay Abraham I wrote: > The previous version of the patch series can be found @ [1] > > Changes from v1: > 1) Remove the part that prevents configuration if the SERDES is already >configured and focus only on using external clock and

Re: [PATCH v9 01/17] Documentation: PCI: Add specification for the *PCI NTB* function device

2021-01-22 Thread Kishon Vijay Abraham I
Hi Bjorn, On 20/01/21 12:04 am, Bjorn Helgaas wrote: > On Mon, Jan 04, 2021 at 08:58:53PM +0530, Kishon Vijay Abraham I wrote: >> Add specification for the *PCI NTB* function device. The endpoint function >> driver and the host PCI driver should be created based on this &

Re: [PATCH v9 17/17] Documentation: PCI: Add userguide for PCI endpoint NTB function

2021-01-22 Thread Kishon Vijay Abraham I
Hi Bjorn, On 20/01/21 12:04 am, Bjorn Helgaas wrote: > On Mon, Jan 04, 2021 at 08:59:09PM +0530, Kishon Vijay Abraham I wrote: >> Add documentation to help users use pci-epf-ntb function driver and >> existing host side NTB infrastructure for NTB functionality. >> >>

Re: [PATCH] PCI: functions/pci-epf-test: fix missing destroy_workqueue() on error in pci_epf_test_init

2021-01-18 Thread Kishon Vijay Abraham I
Hi Qinglang, On 18/01/21 6:17 pm, Lorenzo Pieralisi wrote: > On Wed, Oct 28, 2020 at 05:15:49PM +0800, Qinglang Miao wrote: >> Add the missing destroy_workqueue() before return from >> pci_epf_test_init() in the error handling case. >> >> Signed-off-by: Qinglang Miao >> --- >>

Re: [PATCH v9 00/17] Implement NTB Controller using multiple PCI EP

2021-01-17 Thread Kishon Vijay Abraham I
Hi, On 04/01/21 9:16 pm, Kishon Vijay Abraham I wrote: > +MAINTAINERS for platforms supporting PCIe EP mode > > Hi All, > > I've looped you in since the platform you maintain supports PCIe EP > mode. This series builds NTB functionality on top of PCIe endpoint > framework.

Re: [PATCH v12 2/4] phy: Add ethernet serdes configuration option

2021-01-15 Thread Kishon Vijay Abraham I
Hi, On 07/01/21 2:49 pm, Steen Hegelund wrote: > Provide a new ethernet phy configuration structure, that > allow PHYs used for ethernet to be configured with > speed, media type and clock information. > > Signed-off-by: Lars Povlsen > Signed-off-by: Steen Hegelund > Reviewed-by: Andrew Lunn

Re: [PATCH v12 2/4] phy: Add ethernet serdes configuration option

2021-01-15 Thread Kishon Vijay Abraham I
Hi, On 07/01/21 2:49 pm, Steen Hegelund wrote: > Provide a new ethernet phy configuration structure, that > allow PHYs used for ethernet to be configured with > speed, media type and clock information. > > Signed-off-by: Lars Povlsen > Signed-off-by: Steen Hegelund > Reviewed-by: Andrew Lunn

Re: [PATCH v4] PCI: endpoint: Fix NULL pointer dereference for ->get_features()

2021-01-12 Thread Kishon Vijay Abraham I
t; > Fixes: 2c04c5b8eef79 ("PCI: pci-epf-test: Use pci_epc_get_features() to get > EPC features") > Reviewed-by: Pankaj Dubey > Signed-off-by: Sriram Dash > Signed-off-by: Shradha Todi Reviewed-by: Kishon Vijay Abraham I > --- > drivers/pci/endpoint/functio

Re: [PATCH v7 0/2] PCI: cadence: Retrain Link to work around Gen2

2021-01-11 Thread Kishon Vijay Abraham I
cro name. > Changes in v2: > - 16bit read in place of 8bit. Could get GEN2 card enumerated in GEN2 mode in J7ES EVM. Tested-by: Kishon Vijay Abraham I Thanks Kishon > > Nadeem Athani (2): > PCI: cadence: Shifting of a function to support new code. > PCI: cadence: Retrain Link

Re: [PATCH 0/2] dmaengine: ti: k3-udma: memcpy throughput improvement

2021-01-11 Thread Kishon Vijay Abraham I
ate: 475400 KB/s WRITE => Size: 67108864 bytes DMA: YESTime: 0.049701495 seconds Rate: 1318592 KB/s With this series READ => Size: 67108864 bytes DMA: YESTime: 0.045611175 seconds Rate: 1436840 KB/s WRITE => Size: 67108864 bytes DMA: YESTime: 0.042737440 seconds Rate: 1533456 KB/s Tested-by: Kishon Vijay Abraham I Thanks Kishon

Re: [PATCH 4/7] dt-bindings: ti-serdes-mux: Add defines for AM64 SoC

2021-01-08 Thread Kishon Vijay Abraham I
Hi Peter, On 08/01/21 4:16 pm, Peter Rosin wrote: > Hi! > > On 2020-12-24 12:42, Kishon Vijay Abraham I wrote: >> AM64 has a single lane SERDES which can be configured to be used >> with either PCIe or USB. Define the possilbe values for the SERDES >> function in AM64

Re: [PATCH 4/7] dt-bindings: ti-serdes-mux: Add defines for AM64 SoC

2021-01-08 Thread Kishon Vijay Abraham I
Hi Rob, On 08/01/21 8:33 am, Rob Herring wrote: > On Thu, Dec 24, 2020 at 05:12:47PM +0530, Kishon Vijay Abraham I wrote: >> AM64 has a single lane SERDES which can be configured to be used >> with either PCIe or USB. Define the possilbe values for the SERDES >> func

[PATCH v4 4/6] arm64: dts: ti: k3-j7200-main: Add PCIe device tree node

2021-01-05 Thread Kishon Vijay Abraham I
Add PCIe device tree node (both RC and EP) for the single PCIe instance present in j7200. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 48 +++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi b

[PATCH v4 3/6] arm64: dts: ti: k3-j7200-main: Add SERDES and WIZ device tree node

2021-01-05 Thread Kishon Vijay Abraham I
Add dt node for the single instance of WIZ (SERDES wrapper) and SERDES module shared by PCIe, CPSW (SGMII/QSGMII) and USB. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 63 +++ 1 file changed, 63 insertions(+) diff --git a/arch/arm64

[PATCH v4 6/6] arm64: dts: ti: k3-j7200-common-proc-board: Enable PCIe

2021-01-05 Thread Kishon Vijay Abraham I
x2 lane PCIe slot in the common processor board is enabled and connected to j7200 SOM. Add PCIe DT node in common processor board to reflect the same. Signed-off-by: Kishon Vijay Abraham I --- .../boot/dts/ti/k3-j7200-common-proc-board.dts| 15 +++ 1 file changed, 15 insertions

[PATCH v4 1/6] arm64: dts: ti: k3-j721e-main: Fix supported max outbound regions

2021-01-05 Thread Kishon Vijay Abraham I
value as 32, remove "cdns,max-outbound-regions" from endpoint DT node. (Since this doesn't impact existing functionality, it need not be backported to older kernels). Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 4 1 file changed, 4 deletions(-)

[PATCH v4 0/6] PCI: J7200/J721E PCIe bindings

2021-01-05 Thread Kishon Vijay Abraham I
1E DTS. [1] -> http://lore.kernel.org/r/20201102101154.13598-1-kis...@ti.com [2] -> http://lore.kernel.org/r/20201210130747.25436-1-kis...@ti.com [3] -> http://lore.kernel.org/r/20210104122232.24071-1-kis...@ti.com Kishon Vijay Abraham I (6): arm64: dts: ti: k3-j721e-main: Fix supported max outb

[PATCH v4 5/6] arm64: dts: ti: k3-j7200-common-proc-board: Enable SERDES0

2021-01-05 Thread Kishon Vijay Abraham I
Add sub-nodes to SERDES0 DT node to represent SERDES0 is connected to PCIe and QSGMII (multi-link SERDES). Signed-off-by: Kishon Vijay Abraham I --- .../dts/ti/k3-j7200-common-proc-board.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3

[PATCH v4 2/6] arm64: dts: ti: k3-j721e-main: Remove "syscon" nodes added for pcieX_ctrl

2021-01-05 Thread Kishon Vijay Abraham I
Remove "syscon" nodes added for pcieX_ctrl and have the PCIe node point to the parent with an offset argument. This change is as discussed in [1]. [1] -> http://lore.kernel.org/r/cal_jsqkiuco76bo1goepwm1tusjwoty_bry2hfsgtevmqtr...@mail.gmail.com Signed-off-by: Kishon Vijay Abraha

Re: [PATCH v9 00/17] Implement NTB Controller using multiple PCI EP

2021-01-04 Thread Kishon Vijay Abraham I
075052.8911-1-kis...@ti.com > [6] -> http://lore.kernel.org/r/20200915042110.3015-1-kis...@ti.com > [7] -> http://lore.kernel.org/r/20200918064227.1463-1-kis...@ti.com > [8] -> http://lore.kernel.org/r/20200924092519.17082-1-kis...@ti.com > [9] -> https://youtu.be/dLKKxrg5-rY

[PATCH v9 10/17] PCI: endpoint: Allow user to create sub-directory of 'EPF Device' directory

2021-01-04 Thread Kishon Vijay Abraham I
to the user. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-ep-cfs.c | 23 +++ include/linux/pci-epf.h | 3 +++ 2 files changed, 26 insertions(+) diff --git a/drivers/pci/endpoint/pci-ep-cfs.c b/drivers/pci/endpoint/pci-ep-cfs.c index

[PATCH v9 16/17] Documentation: PCI: Add configfs binding documentation for pci-ntb endpoint function

2021-01-04 Thread Kishon Vijay Abraham I
Add binding documentation for pci-ntb endpoint function that helps in adding and configuring pci-ntb endpoint function. Signed-off-by: Kishon Vijay Abraham I --- .../PCI/endpoint/function/binding/pci-ntb.rst | 38 +++ Documentation/PCI/endpoint/index.rst | 1 + 2 files

[PATCH v9 12/17] PCI: cadence: Configure LM_EP_FUNC_CFG based on epc->function_num_map

2021-01-04 Thread Kishon Vijay Abraham I
ace). Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/pcie-cadence-ep.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pci/controller/cadence/pcie-cadence-ep.c b/drivers/pci/controller/cadence/pcie-cadence-ep.c index dc88078194cb..897cdde02

[PATCH v9 17/17] Documentation: PCI: Add userguide for PCI endpoint NTB function

2021-01-04 Thread Kishon Vijay Abraham I
Add documentation to help users use pci-epf-ntb function driver and existing host side NTB infrastructure for NTB functionality. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Randy Dunlap --- Documentation/PCI/endpoint/index.rst | 1 + Documentation/PCI/endpoint/pci-ntb

[PATCH v9 08/17] PCI: endpoint: Add pci_epc_ops to map MSI irq

2021-01-04 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 | 41 + include/linux/pci-epc.h | 8 ++ 2 files changed, 49

Re: [PATCH v3 0/6] PCI: J7200/J721E PCIe bindings

2021-01-04 Thread Kishon Vijay Abraham I
Nishanth, On 04/01/21 8:21 pm, Nishanth Menon wrote: > On 18:52-20210104, Kishon Vijay Abraham I wrote: >> Nishanth, >> >> On 04/01/21 6:46 pm, Nishanth Menon wrote: >>> On 18:40-20210104, Kishon Vijay Abraham I wrote: >>>> Nishanth, >>&

[PATCH v9 15/17] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2021-01-04 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

[PATCH v9 14/17] PCI: Add TI J721E device to pci ids

2021-01-04 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 --- drivers/misc/pci_endpoint_test.c | 1 - include/linux/pci_ids.h | 1 + 2 files changed, 1 insertion(+), 1

[PATCH v9 02/17] PCI: endpoint: Make *_get_first_free_bar() take into account 64 bit BAR

2021-01-04 Thread Kishon Vijay Abraham I
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-epc-co

[PATCH v9 13/17] PCI: endpoint: Add EP function driver to provide NTB functionality

2021-01-04 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

[PATCH v9 11/17] PCI: cadence: Implement ->msi_map_irq() ops

2021-01-04 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 --- .../pci/controller/cadence/pcie-cadence-ep.c | 53 +++ 1 file changed, 53 insertions(+) diff --git a/drivers/pci/controller/cadence/p

[PATCH v9 09/17] PCI: endpoint: Add pci_epf_ops for epf drivers to expose function specific attrs

2021-01-04 Thread Kishon Vijay Abraham I
ops to be populated by the function driver if it has to expose any function specific attributes and pci_epf_type_add_cfs() to be invoked by pci-ep-cfs.c when sub-directory to main function directory is created. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epf-core.c |

[PATCH v9 05/17] PCI: endpoint: Remove unused pci_epf_match_device()

2021-01-04 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

[PATCH v9 07/17] PCI: endpoint: Add support in configfs to associate two EPCs with EPF

2021-01-04 Thread Kishon Vijay Abraham I
te a single EPC device with a EPF device will continue to work. Signed-off-by: Kishon Vijay Abraham I --- .../PCI/endpoint/pci-endpoint-cfs.rst | 10 ++ drivers/pci/endpoint/pci-ep-cfs.c | 147 ++ 2 files changed, 157 insertions(+) diff --git a/Documentat

[PATCH v9 06/17] PCI: endpoint: Add support to associate secondary EPC with EPF

2021-01-04 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 | 11 ++-- drivers/pci/endpoint/pci-ep-cfs.c | 6 +- drivers/pci/endpoint/pci-epc-core.c | 47 +++ drivers/pci

[PATCH v9 04/17] PCI: endpoint: Make *_free_bar() to return error codes on failure

2021-01-04 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/functions/pci-epf-test.c | 2 ++ drivers/pci/endpoint/pci-epc-core.c | 12

[PATCH v9 03/17] PCI: endpoint: Add helper API to get the 'next' unreserved BAR

2021-01-04 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

[PATCH v9 00/17] Implement NTB Controller using multiple PCI EP

2021-01-04 Thread Kishon Vijay Abraham I
0201111153559.19050-1-kis...@ti.com Kishon Vijay Abraham I (17): Documentation: PCI: Add specification for the *PCI NTB* function device PCI: endpoint: Make *_get_first_free_bar() take into account 64 bit BAR PCI: endpoint: Add helper API to get the 'next' unreserved BAR PCI: endpoi

[PATCH v9 01/17] Documentation: PCI: Add specification for the *PCI NTB* function device

2021-01-04 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/index.rst | 1 + .../PCI/endpoint/pci-ntb-function.rst

Re: [PATCH v3 0/6] PCI: J7200/J721E PCIe bindings

2021-01-04 Thread Kishon Vijay Abraham I
Nishanth, On 04/01/21 6:46 pm, Nishanth Menon wrote: > On 18:40-20210104, Kishon Vijay Abraham I wrote: >> Nishanth, >> >> On 04/01/21 6:29 pm, Nishanth Menon wrote: >>> On 17:52-20210104, Kishon Vijay Abraham I wrote: >>>> Patch series adds DT n

Re: [PATCH v8 11/18] PCI: cadence: Implement ->msi_map_irq() ops

2021-01-04 Thread Kishon Vijay Abraham I
Hi Rob, On 15/12/20 9:31 pm, Rob Herring wrote: > On Wed, Nov 11, 2020 at 9:37 AM Kishon Vijay Abraham I wrote: >> >> Implement ->msi_map_irq() ops in order to map physical address to >> MSI address and return MSI data. >> >> Signed-off-by: Kishon Vijay Abra

Re: [PATCH v3 0/6] PCI: J7200/J721E PCIe bindings

2021-01-04 Thread Kishon Vijay Abraham I
Nishanth, On 04/01/21 6:29 pm, Nishanth Menon wrote: > On 17:52-20210104, Kishon Vijay Abraham I wrote: >> Patch series adds DT nodes in order to get PCIe working in J7200. >> Also includes couple of fixes for J721e. >> >> v1 of the patch series can be found @ [1] &g

[PATCH v2 2/4] dt-bindings: pci: ti,j721e: Add host mode dt-bindings for TI's AM64 SoC

2021-01-04 Thread Kishon Vijay Abraham I
Add host mode dt-bindings for TI's AM64 SoC. This is the same IP used in J7200, however AM64 is a non-coherent architecture. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/ti,j721e-pci-host.yaml | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff

[PATCH v2 0/4] AM64: Add PCIe bindings and driver support

2021-01-04 Thread Kishon Vijay Abraham I
to the connector. v1 of the patch series can be found @ [1] Changes from v1: *) Fixed missing initialization of "ret" variable in the error path. [1] -> http://lore.kernel.org/r/20201224115658.2795-1-kis...@ti.com Kishon Vijay Abraham I (4): dt-bindings: PCI: ti,j721e: Add binding to rep

[PATCH v2 4/4] PCI: j721e: Add support to provide refclk to PCIe connector

2021-01-04 Thread Kishon Vijay Abraham I
Add support to provide refclk to PCIe connector. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/pci-j721e.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c

[PATCH v2 1/4] dt-bindings: PCI: ti,j721e: Add binding to represent refclk to the connector

2021-01-04 Thread Kishon Vijay Abraham I
Add binding to represent refclk to the PCIe connector. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/pci/ti,j721e-pci-host.yaml | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml b

[PATCH v2 3/4] dt-bindings: pci: ti,j721e: Add endpoint mode dt-bindings for TI's AM64 SoC

2021-01-04 Thread Kishon Vijay Abraham I
Add endpoint mode dt-bindings for TI's AM64 SoC. This is the same IP used in J7200, however AM64 is a non-coherent architecture. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/ti,j721e-pci-ep.yaml | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions

[PATCH v3 5/6] arm64: dts: ti: k3-j7200-common-proc-board: Enable SERDES0

2021-01-04 Thread Kishon Vijay Abraham I
Add sub-nodes to SERDES0 DT node to represent SERDES0 is connected to PCIe and QSGMII (multi-link SERDES). Signed-off-by: Kishon Vijay Abraham I --- .../dts/ti/k3-j7200-common-proc-board.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3

[PATCH v3 2/6] arm64: dts: ti: k3-j721e-main: Remove "syscon" nodes added for pcieX_ctrl

2021-01-04 Thread Kishon Vijay Abraham I
dts: ti: k3-j721e-main: Add PCIe device tree nodes") Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 48 --- 1 file changed, 8 insertions(+), 40 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-main.

[PATCH v3 1/6] arm64: dts: ti: k3-j721e-main: Fix supported max outbound regions

2021-01-04 Thread Kishon Vijay Abraham I
value as 32, remove "cdns,max-outbound-regions" from endpoint DT node. Fixes: 4e5833884f66 ("arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes") Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 4 1 file changed, 4 deletions(-)

[PATCH v3 6/6] arm64: dts: ti: k3-j7200-common-proc-board: Enable PCIe

2021-01-04 Thread Kishon Vijay Abraham I
x2 lane PCIe slot in the common processor board is enabled and connected to j7200 SOM. Add PCIe DT node in common processor board to reflect the same. Signed-off-by: Kishon Vijay Abraham I --- .../boot/dts/ti/k3-j7200-common-proc-board.dts| 15 +++ 1 file changed, 15 insertions

[PATCH v3 4/6] arm64: dts: ti: k3-j7200-main: Add PCIe device tree node

2021-01-04 Thread Kishon Vijay Abraham I
Add PCIe device tree node (both RC and EP) for the single PCIe instance present in j7200. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 48 +++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi b

[PATCH v3 3/6] arm64: dts: ti: k3-j7200-main: Add SERDES and WIZ device tree node

2021-01-04 Thread Kishon Vijay Abraham I
Add dt node for the single instance of WIZ (SERDES wrapper) and SERDES module shared by PCIe, CPSW (SGMII/QSGMII) and USB. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 63 +++ 1 file changed, 63 insertions(+) diff --git a/arch/arm64

[PATCH v3 0/6] PCI: J7200/J721E PCIe bindings

2021-01-04 Thread Kishon Vijay Abraham I
36-1-kis...@ti.com Kishon Vijay Abraham I (6): arm64: dts: ti: k3-j721e-main: Fix supported max outbound regions arm64: dts: ti: k3-j721e-main: Remove "syscon" nodes added for pcieX_ctrl arm64: dts: ti: k3-j7200-main: Add SERDES and WIZ device tree node arm64: dts: ti: k3-j

Re: [PATCH 4/4] PCI: j721e: Add support to provide refclk to PCIe connector

2021-01-04 Thread Kishon Vijay Abraham I
Hi, On 24/12/20 5:26 pm, Kishon Vijay Abraham I wrote: > Add support to provide refclk to PCIe connector. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/pci/controller/cadence/pci-j721e.c | 17 + > 1 file changed, 17 insertions(+) > >

[PATCH 1/4] dt-bindings: PCI: ti,j721e: Add binding to represent refclk to the connector

2020-12-24 Thread Kishon Vijay Abraham I
Add binding to represent refclk to the PCIe connector. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/pci/ti,j721e-pci-host.yaml | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml b

[PATCH 3/4] dt-bindings: pci: ti,j721e: Add endpoint mode dt-bindings for TI's AM64 SoC

2020-12-24 Thread Kishon Vijay Abraham I
Add endpoint mode dt-bindings for TI's AM64 SoC. This is the same IP used in J7200, however AM64 is a non-coherent architecture. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/ti,j721e-pci-ep.yaml | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions

[PATCH 2/4] dt-bindings: pci: ti,j721e: Add host mode dt-bindings for TI's AM64 SoC

2020-12-24 Thread Kishon Vijay Abraham I
Add host mode dt-bindings for TI's AM64 SoC. This is the same IP used in J7200, however AM64 is a non-coherent architecture. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/ti,j721e-pci-host.yaml | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff

[PATCH 4/4] PCI: j721e: Add support to provide refclk to PCIe connector

2020-12-24 Thread Kishon Vijay Abraham I
Add support to provide refclk to PCIe connector. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/cadence/pci-j721e.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c

[PATCH 0/4] AM64: Add PCIe bindings and driver support

2020-12-24 Thread Kishon Vijay Abraham I
to the connector. Kishon Vijay Abraham I (4): dt-bindings: PCI: ti,j721e: Add binding to represent refclk to the connector dt-bindings: pci: ti,j721e: Add host mode dt-bindings for TI's AM64 SoC dt-bindings: pci: ti,j721e: Add endpoint mode dt-bindings for TI's AM64 SoC PCI: j721e: Add

[PATCH 7/7] phy: cadence-torrent: Add support to drive refclk out

2020-12-24 Thread Kishon Vijay Abraham I
efclk both in local SERDES and remote device. Add support here to drive refclk out. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-torrent.c | 158 ++ 1 file changed, 158 insertions(+) diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/p

[PATCH 5/7] phy: ti: j721e-wiz: Configure full rate divider for AM64

2020-12-24 Thread Kishon Vijay Abraham I
The frequency of the txmclk between PCIe and SERDES has changed to 250MHz from 500MHz. Configure full rate divider for AM64 accordingly. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/ti/phy-j721e-wiz.c | 43 +++--- 1 file changed, 40 insertions(+), 3

[PATCH 2/7] dt-bindings: phy: ti,phy-j721e-wiz: Add binding for phy_en_refclk

2020-12-24 Thread Kishon Vijay Abraham I
Add DT binding for phy_en_refclk used to route the refclk out of the SERDES. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/phy/ti,phy-j721e-wiz.yaml | 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/ti,phy-j721e

[PATCH 0/7] AM64: Add SERDES bindings and driver support

2020-12-24 Thread Kishon Vijay Abraham I
wrapper (WIZ) bindings. Kishon Vijay Abraham I (7): dt-bindings: phy: ti,phy-j721e-wiz: Add bindings for AM64 SERDES Wrapper dt-bindings: phy: ti,phy-j721e-wiz: Add binding for phy_en_refclk dt-bindings: phy: cadence-torrent: Add binding for refclk driver dt-bindings: ti-serdes-mux: Add

[PATCH 6/7] phy: ti: j721e-wiz: Enable reference clock output in cmn_refclk_

2020-12-24 Thread Kishon Vijay Abraham I
as a clock, so that platforms like AM642 EVM can enable it. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/ti/phy-j721e-wiz.c | 115 + 1 file changed, 115 insertions(+) diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c index 08acfab1ebe6

[PATCH 3/7] dt-bindings: phy: cadence-torrent: Add binding for refclk driver

2020-12-24 Thread Kishon Vijay Abraham I
Add binding for refclk driver used to route the refclk out of the SERDES. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/phy/phy-cadence-torrent.yaml | 17 + 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/phy-cadence

[PATCH 4/7] dt-bindings: ti-serdes-mux: Add defines for AM64 SoC

2020-12-24 Thread Kishon Vijay Abraham I
AM64 has a single lane SERDES which can be configured to be used with either PCIe or USB. Define the possilbe values for the SERDES function in AM64 SoC here. Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/mux/ti-serdes.h | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 1/7] dt-bindings: phy: ti,phy-j721e-wiz: Add bindings for AM64 SERDES Wrapper

2020-12-24 Thread Kishon Vijay Abraham I
Add bindings for AM64 SERDES Wrapper. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/phy/ti,phy-j721e-wiz.yaml | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml b/Documentation

[PATCH v3 15/15] arm64: dts: ti: k3-j721e-common-proc-board: Re-name "link" name as "phy"

2020-12-24 Thread Kishon Vijay Abraham I
4: dts: ti: k3-j721e: Enable Super-Speed support for USB0") Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/a

[PATCH v3 14/15] arm64: dts: ti: k3-j721e-common-proc-board: Use external clock for SERDES

2020-12-24 Thread Kishon Vijay Abraham I
Use external clock for all the SERDES used by PCIe controller. This will make the same clock used by the local SERDES as well as the clock provided to the PCIe connector. Signed-off-by: Kishon Vijay Abraham I --- .../dts/ti/k3-j721e-common-proc-board.dts | 45 +++ 1 file

[PATCH v3 13/15] arm64: dts: ti: k3-j721e-main: Fix external refclk input to SERDES

2020-12-24 Thread Kishon Vijay Abraham I
the clock frequency. Signed-off-by: Kishon Vijay Abraham I --- .../dts/ti/k3-j721e-common-proc-board.dts | 4 ++ arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 58 ++- 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc

[PATCH v3 11/15] phy: cadence: sierra: Enable pll_cmnlc and pll_cmnlc1 clocks

2020-12-24 Thread Kishon Vijay Abraham I
Get pll_cmnlc and pll_cmnlc1 optional clocks and enable them. This will enable REFRCV/1 in case the pll_cmnlc/1 takes input from REFRCV/1 respectively. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 57 +++- 1 file changed, 55 insertions

[PATCH v3 08/15] phy: cadence: cadence-sierra: Explicitly request exclusive reset control

2020-12-24 Thread Kishon Vijay Abraham I
No functional change. Since the reset controls obtained in Sierra is exclusively used by the Sierra device, use exclusive reset control request API calls. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v3 00/15] PHY: Add support in Sierra to use external clock

2020-12-24 Thread Kishon Vijay Abraham I
DT patches in this series (I can send this separately to DT MAINTAINER once the driver patches are merged) [1] -> http://lore.kernel.org/r/20201103035556.21260-1-kis...@ti.com [2] -> http://lore.kernel.org/r/20201222070520.28132-1-kis...@ti.com Kishon Vijay Abraham I (15): phy: cadence:

[PATCH v3 01/15] phy: cadence: Sierra: Fix PHY power_on sequence

2020-12-24 Thread Kishon Vijay Abraham I
re. Fixes: 44d30d622821d ("phy: cadence: Add driver for Sierra PHY") Signed-off-by: Kishon Vijay Abraham I Cc: # v5.4+ --- drivers/phy/cadence/phy-cadence-sierra.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/dri

[PATCH v3 06/15] phy: cadence: cadence-sierra: Move all clk_get_*() to a separate function

2020-12-24 Thread Kishon Vijay Abraham I
No functional change. Group all devm_clk_get_optional() to a separate function. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 57 +++- 1 file changed, 35 insertions(+), 22 deletions(-) diff --git a/drivers/phy/cadence/phy-cadence

[PATCH v3 12/15] arm64: dts: ti: k3-j721e-main: Add DT nodes for clocks within Sierra SERDES

2020-12-24 Thread Kishon Vijay Abraham I
Add DT nodes for clocks within Sierra SERDES. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 128 -- 1 file changed, 120 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi b/arch/arm64/boot/dts/ti/k3

[PATCH v3 10/15] phy: cadence: sierra: Model PLL_CMNLC and PLL_CMNLC1 as clocks (mux clocks)

2020-12-24 Thread Kishon Vijay Abraham I
Sierra has two PLLs, PLL_CMNLC and PLL_CMNLC1 and each of these PLLs has two inputs, plllc_refclk and refrcv. Model PLL_CMNLC and PLL_CMNLC1 as clocks so that it's possible to select one of these two inputs from device tree. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy

[PATCH v3 09/15] phy: cadence: sierra: Model reference receiver as clocks (gate clocks)

2020-12-24 Thread Kishon Vijay Abraham I
to seamlessly use any of the external reference clocks. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/Kconfig | 1 + drivers/phy/cadence/phy-cadence-sierra.c | 209 ++- 2 files changed, 207 insertions(+), 3 deletions(-) diff --git a/drivers/phy/cadence

[PATCH v3 07/15] phy: cadence: cadence-sierra: Move all reset_control_get*() to a separate function

2020-12-24 Thread Kishon Vijay Abraham I
No functional change. Group devm_reset_control_get() and devm_reset_control_get_optional() to a separate function. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 36 1 file changed, 25 insertions(+), 11 deletions(-) diff --git

[PATCH v3 05/15] phy: cadence: cadence-sierra: Create PHY only for "phy" or "link" sub-nodes

2020-12-24 Thread Kishon Vijay Abraham I
d device tree) which represent the actual PHY. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index 19f32ae877b9.

[PATCH v3 04/15] phy: ti: j721e-wiz: Get PHY properties only for "phy" or "link" subnode

2020-12-24 Thread Kishon Vijay Abraham I
node's name is "phy" or "link" subnode. Ideally all PHY dt nodes should have node name as "phy", however existing devicetree used "link" as subnode. So in order to maintain old DT compatibility get PHY properties for "phy" or "link" subnod

[PATCH v3 03/15] dt-bindings: phy: cadence-sierra: Add bindings for the PLLs within SERDES

2020-12-24 Thread Kishon Vijay Abraham I
Add binding for the PLLs within SERDES. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/phy/phy-cadence-sierra.yaml | 89 ++- 1 file changed, 86 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml b/Documentation

[PATCH v3 02/15] phy: ti: j721e-wiz: Invoke wiz_init() before of_platform_device_create()

2020-12-24 Thread Kishon Vijay Abraham I
wiz_init() immediately before invoking of_platform_device_create(). Fixes: 091876cc355d ("phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC") Signed-off-by: Kishon Vijay Abraham I Cc: # v5.10 --- drivers/phy/ti/phy-j721e-wiz.c | 17 +++-- 1 file

[PATCH v2 06/14] phy: cadence: cadence-sierra: Move all clk_get_*() to a separate function

2020-12-21 Thread Kishon Vijay Abraham I
No functional change. Group all devm_clk_get_optional() to a separate function. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 57 +++- 1 file changed, 35 insertions(+), 22 deletions(-) diff --git a/drivers/phy/cadence/phy-cadence

[PATCH v2 08/14] phy: cadence: cadence-sierra: Explicitly request exclusive reset control

2020-12-21 Thread Kishon Vijay Abraham I
No functional change. Since the reset controls obtained in Sierra is exclusively used by the Sierra device, use exclusive reset control request API calls. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v2 14/14] arm64: dts: ti: k3-j721e-common-proc-board: Re-name "link" name as "phy"

2020-12-21 Thread Kishon Vijay Abraham I
4: dts: ti: k3-j721e: Enable Super-Speed support for USB0") Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/a

[PATCH v2 11/14] arm64: dts: ti: k3-j721e-main: Add DT nodes for clocks within Sierra SERDES

2020-12-21 Thread Kishon Vijay Abraham I
Add DT nodes for clocks within Sierra SERDES. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 128 -- 1 file changed, 120 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi b/arch/arm64/boot/dts/ti/k3

[PATCH v2 13/14] arm64: dts: ti: k3-j721e-common-proc-board: Use external clock for SERDES

2020-12-21 Thread Kishon Vijay Abraham I
Use external clock for all the SERDES used by PCIe controller. This will make the same clock used by the local SERDES as well as the clock provided to the PCIe connector. Signed-off-by: Kishon Vijay Abraham I --- .../dts/ti/k3-j721e-common-proc-board.dts | 45 +++ 1 file

[PATCH v2 12/14] arm64: dts: ti: k3-j721e-main: Fix external refclk input to SERDES

2020-12-21 Thread Kishon Vijay Abraham I
the clock frequency. Signed-off-by: Kishon Vijay Abraham I --- .../dts/ti/k3-j721e-common-proc-board.dts | 4 ++ arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 58 ++- 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc

[PATCH v2 01/14] phy: cadence: Sierra: Fix PHY power_on sequence

2020-12-21 Thread Kishon Vijay Abraham I
re. Fixes: 44d30d622821d ("phy: cadence: Add driver for Sierra PHY") Signed-off-by: Kishon Vijay Abraham I Cc: # v5.4+ --- drivers/phy/cadence/phy-cadence-sierra.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/dri

[PATCH v2 10/14] phy: cadence: sierra: Enable pll_cmnlc and pll_cmnlc1 clocks

2020-12-21 Thread Kishon Vijay Abraham I
Get pll_cmnlc and pll_cmnlc1 optional clocks and enable them. This will enable REFRCV/1 in case the pll_cmnlc/1 takes input from REFRCV/1 respectively. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 56 +++- 1 file changed, 54 insertions

[PATCH v2 09/14] phy: cadence: sierra: Model reference receiver as clocks (gate clocks)

2020-12-21 Thread Kishon Vijay Abraham I
to seamlessly use any of the external reference clocks. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 391 ++- 1 file changed, 388 insertions(+), 3 deletions(-) diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy

<    1   2   3   4   5   6   7   8   9   10   >