[PATCH v5 19/20] doc: board: Move j721e document to doc/board/ti/ directory

2021-07-21 Thread Kishon Vijay Abraham I
Move j721e document from board/ti/j721e/README to doc/board/ti/j721e_evm.rst after converting it to RST format. Signed-off-by: Kishon Vijay Abraham I --- board/ti/j721e/README | 277 doc/board/index.rst| 1 + doc/board/ti/j721e_evm.rst | 316

[PATCH v5 20/20] doc: board: j721e_evm: Add documentation for firmware loading

2021-07-21 Thread Kishon Vijay Abraham I
Add documentation for loading firmwares to be used by remote cores in the system including the environment variables that has to be set to load the firmwares. Signed-off-by: Kishon Vijay Abraham I --- doc/board/ti/j721e_evm.rst | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PATCH v5 16/20] configs: j7200_evm_a72_defconfig: Add config for torrent serdes and common clock framework

2021-07-21 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add config for torrent serdes and common clock framework. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- configs/j7200_evm_a72_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/j7200_evm_a72_defconfig b/configs

[PATCH v5 18/20] configs: j7200_evm_a72: Add CONFIG_PREBOOT to configure ethernet PHY

2021-07-21 Thread Kishon Vijay Abraham I
Add CONFIG_PREBOOT to provide an automatic and easier way to configure ethernet PHY before loading the firmware. Signed-off-by: Kishon Vijay Abraham I --- configs/j7200_evm_a72_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/j7200_evm_a72_defconfig b/configs

[PATCH v5 17/20] env: ti: j721e-evm: Add env variable to power on & reset QSGMII PHY in J7200 EVM

2021-07-21 Thread Kishon Vijay Abraham I
PIN: 18. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Suman Anna --- include/configs/j721e_evm.h | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index b707fc4e89..00d0a18a68 100644 --- a/include

[PATCH v5 15/20] configs: j721e_evm_a72_defconfig: Enable the drivers required for the USB3 support

2021-07-21 Thread Kishon Vijay Abraham I
From: Jean-Jacques Hiblot Enable the mmio mux driver, the J721E-wiz PHy driver and the cadence sierra phy driver. All of them are required for USB3 support Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I --- configs

[PATCH v5 08/20] phy: cadence: Add driver for Torrent SERDES

2021-07-21 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add driver for Torrent SERDES. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/Kconfig |6 + drivers/phy/cadence/Makefile |1 + drivers/phy/cadence/phy-cadence-torrent.c | 2463

[PATCH v5 14/20] arm: dts: k3-j7200-common-proc-board-u-boot: Add u-boot tags for torrent serdes

2021-07-21 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add u-boot tags for torrent serdes. This has properties specific to u-boot on top of DT in v5.13 Linux Kernel. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi | 12 1 file

[PATCH v5 13/20] arm: dts: k3-j7200-common-proc-board: Enable SERDES DT

2021-07-21 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add default lane function for torrent serdes. This is in sync with v5.13 Linux Kernel. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-common-proc-board.dts | 23 + 1 file changed, 23 insertions

[PATCH v5 12/20] arm: dts: k3-j7200-main: Add DT node for torrent serdes

2021-07-21 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add DT node for torrent serdes. This is in sync with v5.13 Linux Kernel. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-main.dtsi | 63 + 1 file changed, 63 insertions(+) diff --git

[PATCH v5 11/20] ARM: dts: k3-j721e: Add support for USB3 in USB0 instance

2021-07-21 Thread Kishon Vijay Abraham I
ues Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I --- .../k3-j721e-common-proc-board-u-boot.dtsi| 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi b/arch/arm/dts/k3-j7

[PATCH v5 09/20] phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC

2021-07-21 Thread Kishon Vijay Abraham I
resets for each of the lanes. This is an adaptation of the linux driver. Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/Kconfig|1 + drivers/phy/Makefile |1 + drivers/phy/ti/Kconfig

[PATCH v5 10/20] board: ti: j721e: Add support for probing and configuring Torrent serdes on J7200

2021-07-21 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add support for probing and configuring Torrent serdes on J7200. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- board/ti/j721e/evm.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git

[PATCH v5 07/20] phy: cadence: Add driver for Sierra PHY

2021-07-21 Thread Kishon Vijay Abraham I
reset after it is powered-on. This is because role switching is not supported in u-boot and the cable orientation is handled by the PHY reset. Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Alan Douglas Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Vignesh Raghavendra --- drivers/phy

[PATCH v5 06/20] dt-bindings: ti-serdes-mux: Add defines for AM64 SoC

2021-07-21 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 | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v5 04/20] dt-bindings: phy: Add defines for AM64 SERDES Wrapper

2021-07-21 Thread Kishon Vijay Abraham I
Add defines for AM64 SERDES Wrapper. Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy-ti.h | 21 + 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/phy/phy-ti.h diff --git a/include/dt-bindings/phy/phy-ti.h b/include/dt-bindings

[PATCH v5 05/20] dt-bindings: phy: cadence-torrent: Add defines for refclk driver

2021-07-21 Thread Kishon Vijay Abraham I
Add defines for refclk driver used to route the refclk out of torrent SERDES. Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy-cadence.h | 20 1 file changed, 20 insertions(+) create mode 100644 include/dt-bindings/phy/phy-cadence.h diff --git

[PATCH v5 03/20] dt-bindings: phy: Add definitions for additional phy types

2021-07-21 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add definitions for additional phy types that's used specifically for Torrent SERDES. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/phy

[PATCH v5 01/20] dm: core: Add helper to compare node names

2021-07-21 Thread Kishon Vijay Abraham I
Add helper to compare node names. Signed-off-by: Kishon Vijay Abraham I --- drivers/core/ofnode.c | 13 + include/dm/ofnode.h | 10 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index eeeccfb446..e83d3141b2 100644

[PATCH v5 02/20] dm: test: Add test case to check node name ignoring unit address

2021-07-21 Thread Kishon Vijay Abraham I
Add test to check node name ignoring unit address. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Simon Glass --- test/dm/core.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/test/dm/core.c b/test/dm/core.c index 2210345dd1..e83f71f767 100644 --- a/test/dm/core.c

[PATCH v5 00/20] TI/Cadence: Add Sierra/Torrent SERDES driver

2021-07-21 Thread Kishon Vijay Abraham I
torrent serdes configs: j7200_evm_a72_defconfig: Add config for torrent serdes and common clock framework Jean-Jacques Hiblot (2): phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC configs: j721e_evm_a72_defconfig: Enable the drivers required for the USB3 support Ki

Re: [PATCH v4 01/21] drivers: reset: Add devm_to_reset() to return dummy "struct reset_ctl"

2021-07-21 Thread Kishon Vijay Abraham I
Hi Simon, On 21/07/21 12:02 am, Simon Glass wrote: > Hi Kishon, > > On Mon, 12 Jul 2021 at 00:20, Kishon Vijay Abraham I wrote: >> >> Add devm_to_reset() to return dummy "struct reset_ctl", useful for >> invoking reset APIs which doesn't have a vali

Re: [PATCH v4 20/21] doc: board: Move j721e document to doc/board/ti/ directory

2021-07-14 Thread Kishon Vijay Abraham I
On 14/07/21 12:48 am, Tom Rini wrote: > On Mon, Jul 12, 2021 at 11:50:24AM +0530, Kishon V;ijay Abraham I wrote: > >> Move j721e document from board/ti/j721e/README to >> doc/board/ti/j721e_evm.rst after converting it to RST format. >> >> Signed-off-by: Kishon Vij

[PATCH v4 21/21] doc: board: j721e_evm: Add documentation for firmware loading

2021-07-12 Thread Kishon Vijay Abraham I
Add documentation for loading firmwares to be used by remote cores in the system including the environment variables that has to be set to load the firmwares. Signed-off-by: Kishon Vijay Abraham I --- doc/board/ti/j721e_evm.rst | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PATCH v4 20/21] doc: board: Move j721e document to doc/board/ti/ directory

2021-07-12 Thread Kishon Vijay Abraham I
Move j721e document from board/ti/j721e/README to doc/board/ti/j721e_evm.rst after converting it to RST format. Signed-off-by: Kishon Vijay Abraham I --- board/ti/j721e/README | 277 doc/board/index.rst| 1 + doc/board/ti/j721e_evm.rst | 316

[PATCH v4 18/21] env: ti: j721e-evm: Add env variable to power on & reset QSGMII PHY in J7200 EVM

2021-07-12 Thread Kishon Vijay Abraham I
PIN: 18. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Suman Anna --- include/configs/j721e_evm.h | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index b707fc4e89..00d0a18a68 100644 --- a/include

[PATCH v4 19/21] configs: j7200_evm_a72: Add CONFIG_PREBOOT to configure ethernet PHY

2021-07-12 Thread Kishon Vijay Abraham I
Add CONFIG_PREBOOT to provide an automatic and easier way to configure ethernet PHY before loading the firmware. Signed-off-by: Kishon Vijay Abraham I --- configs/j7200_evm_a72_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/j7200_evm_a72_defconfig b/configs

[PATCH v4 17/21] configs: j7200_evm_a72_defconfig: Add config for torrent serdes and common clock framework

2021-07-12 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add config for torrent serdes and common clock framework. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- configs/j7200_evm_a72_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/j7200_evm_a72_defconfig b/configs

[PATCH v4 16/21] configs: j721e_evm_a72: Enable the drivers required for the USB3 support

2021-07-12 Thread Kishon Vijay Abraham I
From: Jean-Jacques Hiblot Enable the mmio mux driver, the J721E-wiz PHy driver and the cadence sierra phy driver. All of them are required for USB3 support Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I --- configs

[PATCH v4 15/21] arm: dts: k3-j7200-common-proc-board-u-boot: Add u-boot tags for torrent serdes

2021-07-12 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add u-boot tags for torrent serdes. This has properties specific to u-boot on top of DT in v5.13 Linux Kernel. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi | 12 1 file

[PATCH v4 14/21] arm: dts: k3-j7200-common-proc-board: Enable SERDES DT

2021-07-12 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add default lane function for torrent serdes. This is in sync with v5.13 Linux Kernel. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-common-proc-board.dts | 23 + 1 file changed, 23 insertions

[PATCH v4 13/21] arm: dts: k3-j7200-main: Add DT node for torrent serdes

2021-07-12 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add DT node for torrent serdes. This is in sync with v5.13 Linux Kernel. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-main.dtsi | 63 + 1 file changed, 63 insertions(+) diff --git

[PATCH v4 12/21] ARM: dts: k3-j721e: Add support for USB3 in USB0 instance

2021-07-12 Thread Kishon Vijay Abraham I
ues Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I --- .../k3-j721e-common-proc-board-u-boot.dtsi| 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi b/arch/arm/dts/k3-j7

[PATCH v4 09/21] phy: cadence: Add driver for Torrent SERDES

2021-07-12 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add driver for Torrent SERDES. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/Kconfig |6 + drivers/phy/cadence/Makefile |1 + drivers/phy/cadence/phy-cadence-torrent.c | 2477

[PATCH v4 11/21] board: ti: j721e: Add support for probing and configuring Torrent serdes on J7200

2021-07-12 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add support for probing and configuring Torrent serdes on J7200. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- board/ti/j721e/evm.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git

[PATCH v4 10/21] phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC

2021-07-12 Thread Kishon Vijay Abraham I
resets for each of the lanes. This is an adaptation of the linux driver. Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/Kconfig|1 + drivers/phy/Makefile |1 + drivers/phy/ti/Kconfig

[PATCH v4 08/21] phy: cadence: Add driver for Sierra PHY

2021-07-12 Thread Kishon Vijay Abraham I
reset after it is powered-on. This is because role switching is not supported in u-boot and the cable orientation is handled by the PHY reset. Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Alan Douglas Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Vignesh Raghavendra --- drivers/phy

[PATCH v4 07/21] dt-bindings: ti-serdes-mux: Add defines for AM64 SoC

2021-07-12 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 | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v4 06/21] dt-bindings: phy: cadence-torrent: Add defines for refclk driver

2021-07-12 Thread Kishon Vijay Abraham I
Add defines for refclk driver used to route the refclk out of torrent SERDES. Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy-cadence.h | 20 1 file changed, 20 insertions(+) create mode 100644 include/dt-bindings/phy/phy-cadence.h diff --git

[PATCH v4 05/21] dt-bindings: phy: Add defines for AM64 SERDES Wrapper

2021-07-12 Thread Kishon Vijay Abraham I
Add defines for AM64 SERDES Wrapper. Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy-ti.h | 21 + 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/phy/phy-ti.h diff --git a/include/dt-bindings/phy/phy-ti.h b/include/dt-bindings

[PATCH v4 04/21] dt-bindings: phy: Add definitions for additional phy types

2021-07-12 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add definitions for additional phy types that's used specifically for Torrent SERDES. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/phy

[PATCH v4 03/21] dm: test: Add test case to check node name ignoring unit address

2021-07-12 Thread Kishon Vijay Abraham I
Add test to check node name ignoring unit address. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Simon Glass --- test/dm/core.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/test/dm/core.c b/test/dm/core.c index 2210345dd1..e83f71f767 100644 --- a/test/dm/core.c

[PATCH v4 02/21] dm: core: Add helper to compare node names

2021-07-12 Thread Kishon Vijay Abraham I
Add helper to compare node names. Signed-off-by: Kishon Vijay Abraham I --- drivers/core/ofnode.c | 13 + include/dm/ofnode.h | 10 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index eeeccfb446..e83d3141b2 100644

[PATCH v4 01/21] drivers: reset: Add devm_to_reset() to return dummy "struct reset_ctl"

2021-07-12 Thread Kishon Vijay Abraham I
Add devm_to_reset() to return dummy "struct reset_ctl", useful for invoking reset APIs which doesn't have a valid "struct reset_ctl". Suggested-by: Simon Glass Signed-off-by: Kishon Vijay Abraham I --- drivers/reset/reset-uclass.c | 16 drivers/reset/

[PATCH v4 00/21] TI/Cadence: Add Sierra/Torrent SERDES driver

2021-07-12 Thread Kishon Vijay Abraham I
j7200_evm_a72_defconfig: Add config for torrent serdes and common clock framework Jean-Jacques Hiblot (2): phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC configs: j721e_evm_a72: Enable the drivers required for the USB3 support Kishon Vijay Abraham I (11): driv

Re: [PATCH v3 19/20] env: ti: j721e-evm: Add env variable to power on & reset QSGMII PHY in J7200 EVM

2021-07-09 Thread Kishon Vijay Abraham I
Hi Tom, On 11/05/21 8:03 pm, Tom Rini wrote: > On Tue, May 11, 2021 at 07:28:10PM +0530, Kishon Vijay Abraham I wrote: >> Hi Tom, >> >> On 07/05/21 10:44 pm, Tom Rini wrote: >>> On Tue, May 04, 2021 at 04:11:54PM +0530, Kishon Vijay Abraham I wrote: >&g

Re: [PATCH v3 13/20] ARM: dts: k3-j721e: Add the entries required for USB3 support on USB0

2021-07-09 Thread Kishon Vijay Abraham I
Hi Tom, On 07/05/21 10:44 pm, Tom Rini wrote: > On Tue, May 04, 2021 at 04:11:48PM +0530, Kishon Vijay Abraham I wrote: > >> Partially sync with Linux's dts to add the entries required for USB3 >> support on USB0. >> Note that the default mode is still "

Re: [PATCH 1/2] reset: Do not return NULL on error for devm_reset_control_get_optional()

2021-05-13 Thread Kishon Vijay Abraham I
Hi Simon, On 14/05/21 5:26 am, Simon Glass wrote: > Hi Kishon, > > On Thu, 13 May 2021 at 00:15, Kishon Vijay Abraham I wrote: >> >> Hi Simon, >> >> On 11/05/21 10:09 pm, Simon Glass wrote: >>> Hi Kishon, >>> >>> On Tue, 11 May 2021

Re: [PATCH 2/2] reset: Let reset API's handle gracefully if reset_ctl is -ENODATA

2021-05-13 Thread Kishon Vijay Abraham I
Hi Simon, On 07/05/21 10:04 pm, Simon Glass wrote: > Hi Kishon, > > On Fri, 7 May 2021 at 05:02, Kishon Vijay Abraham I wrote: >> >> Let reset API's (like reset_assert(), reset_deassert(), ..) handle >> gracefully if the argument reset_ctl is -ENODATA. This is for se

Re: [PATCH 1/2] reset: Do not return NULL on error for devm_reset_control_get_optional()

2021-05-13 Thread Kishon Vijay Abraham I
Hi Simon, On 11/05/21 10:09 pm, Simon Glass wrote: > Hi Kishon, > > On Tue, 11 May 2021 at 00:26, Kishon Vijay Abraham I wrote: >> >> Hi Simon, >> >> On 07/05/21 10:04 pm, Simon Glass wrote: >>> Hi Kishon, >>> >>> On Fri, 7 May 2021

Re: [PATCH v3 19/20] env: ti: j721e-evm: Add env variable to power on & reset QSGMII PHY in J7200 EVM

2021-05-11 Thread Kishon Vijay Abraham I
Hi Tom, On 07/05/21 10:44 pm, Tom Rini wrote: > On Tue, May 04, 2021 at 04:11:54PM +0530, Kishon Vijay Abraham I wrote: > >> MAIN CPSW0 requires the PHY to be powered on and reset for QSGMII >> operation. Add a env variable to configure driving "0" on ENET_EXP

Re: [PATCH 1/2] reset: Do not return NULL on error for devm_reset_control_get_optional()

2021-05-11 Thread Kishon Vijay Abraham I
Hi Simon, On 07/05/21 10:04 pm, Simon Glass wrote: > Hi Kishon, > > On Fri, 7 May 2021 at 05:02, Kishon Vijay Abraham I wrote: >> >> In order for client to know whether it was able to successfully get a >> reset controller or not,

[PATCH 2/2] reset: Let reset API's handle gracefully if reset_ctl is -ENODATA

2021-05-07 Thread Kishon Vijay Abraham I
Let reset API's (like reset_assert(), reset_deassert(), ..) handle gracefully if the argument reset_ctl is -ENODATA. This is for seamlessly handling client drivers which get optional reset controller using devm_reset_control_get_optional(). Signed-off-by: Kishon Vijay Abraham I --- drivers

[PATCH 1/2] reset: Do not return NULL on error for devm_reset_control_get_optional()

2021-05-07 Thread Kishon Vijay Abraham I
In order for client to know whether it was able to successfully get a reset controller or not, do not return NULL on error for devm_reset_control_get_optional() and devm_reset_bulk_get_optional_by_node(). Signed-off-by: Kishon Vijay Abraham I --- drivers/reset/reset-uclass.c | 16

[PATCH 0/2] reset: Fix the behavior of optional reset

2021-05-07 Thread Kishon Vijay Abraham I
and handle gracefully if it's passed -ENODATA. [1] -> https://patchwork.ozlabs.org/project/uboot/patch/20210504104155.19222-4-kis...@ti.com/ Kishon Vijay Abraham I (2): reset: Do not return NULL on error for devm_reset_control_get_optional() reset: Let reset API's handle gracefu

Re: [PATCH v3 03/20] drivers: reset: Handle gracefully NULL pointers

2021-05-06 Thread Kishon Vijay Abraham I
Hi Simon, On 06/05/21 5:07 am, Simon Glass wrote: > Hi Kishon, > > On Tue, 4 May 2021 at 21:25, Kishon Vijay Abraham I wrote: >> >> Hi Simon, >> >> On 04/05/21 10:28 pm, Simon Glass wrote: >>> Hi Kishon, >>> >>> On Tue, 4 May 2021

Re: [PATCH v3 03/20] drivers: reset: Handle gracefully NULL pointers

2021-05-04 Thread Kishon Vijay Abraham I
Hi Simon, On 04/05/21 10:28 pm, Simon Glass wrote: > Hi Kishon, > > On Tue, 4 May 2021 at 04:42, Kishon Vijay Abraham I wrote: >> >> The reset framework provides devm_reset_control_get_optional() >> which can return NULL (not an error case). So all the other rese

[PATCH v3 20/20] configs: j7200_evm_a72: Enhance bootcmd to configure ethernet PHY

2021-05-04 Thread Kishon Vijay Abraham I
Update the default BOOTCOMMAND to provide an automatic and easier way to configure ethernet PHY before loading the firmware. Signed-off-by: Kishon Vijay Abraham I --- configs/j7200_evm_a72_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs

[PATCH v3 19/20] env: ti: j721e-evm: Add env variable to power on & reset QSGMII PHY in J7200 EVM

2021-05-04 Thread Kishon Vijay Abraham I
PIN: 18. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Suman Anna --- include/configs/j721e_evm.h | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index b707fc4e89..00d0a18a68 100644 --- a/include

[PATCH v3 18/20] configs: j7200_evm_a72_defconfig: Add config for torrent serdes and common clock framework

2021-05-04 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add config for torrent serdes and common clock framework. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- configs/j7200_evm_a72_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/j7200_evm_a72_defconfig b/configs

[PATCH v3 17/20] configs: j721e_evm_a72: Enable the drivers required for the USB3 support

2021-05-04 Thread Kishon Vijay Abraham I
From: Jean-Jacques Hiblot Enable the mmio mux driver, the J721E-wiz PHy driver and the cadence sierra phy driver. All of them are required for USB3 support Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I --- configs

[PATCH v3 16/20] arm: dts: k3-j7200-common-proc-board-u-boot: Add u-boot tags for torrent serdes

2021-05-04 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add u-boot tags for torrent serdes. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/k3-j7200-common-proc-board

[PATCH v3 15/20] arm: dts: k3-j7200-common-proc-board: Enable SERDES DT

2021-05-04 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add default lane function for torrent serdes. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-common-proc-board.dts | 23 + 1 file changed, 23 insertions(+) diff --git a/arch/arm/dts/k3-j7200-common

[PATCH v3 14/20] arm: dts: k3-j7200-main: Add DT node for torrent serdes

2021-05-04 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add DT node for torrent serdes. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-main.dtsi | 63 + 1 file changed, 63 insertions(+) diff --git a/arch/arm/dts/k3-j7200-main.dtsi b/arch/arm

[PATCH v3 13/20] ARM: dts: k3-j721e: Add the entries required for USB3 support on USB0

2021-05-04 Thread Kishon Vijay Abraham I
Partially sync with Linux's dts to add the entries required for USB3 support on USB0. Note that the default mode is still "peripheral" not "host". USB3 is supported only for the host mode. Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by:

[PATCH v3 12/20] board: ti: j721e: Add support for probing and configuring Torrent serdes on J7200

2021-05-04 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add support for probing and configuring Torrent serdes on J7200. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- board/ti/j721e/evm.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git

[PATCH v3 10/20] phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC

2021-05-04 Thread Kishon Vijay Abraham I
resets for each of the lanes. This is an adaptation of the linux driver. Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/Kconfig|1 + drivers/phy/Makefile |1 + drivers/phy/ti/Kconfig

[PATCH v3 11/20] usb: cdns3: cdns3-ti: Fix clk_get_by_name() to get the correct name

2021-05-04 Thread Kishon Vijay Abraham I
Upstream device tree got updated to use clock name as "ref" instead of "usb2_refclk". Fix cdns3-ti.c to use the correct name. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/cdns3/cdns3-ti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/us

[PATCH v3 09/20] phy: cadence: Add driver for Torrent SERDES

2021-05-04 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add driver for Torrent SERDES. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/Kconfig |6 + drivers/phy/cadence/Makefile |1 + drivers/phy/cadence/phy-cadence-torrent.c | 2468

[PATCH v3 08/20] phy: cadence: Add driver for Sierra PHY

2021-05-04 Thread Kishon Vijay Abraham I
reset after it is powered-on. This is because role switching is not supported in u-boot and the cable orientation is handled by the PHY reset. Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Alan Douglas Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Vignesh Raghavendra --- drivers/phy

[PATCH v3 07/20] dt-bindings: ti-serdes-mux: Add defines for AM64 SoC

2021-05-04 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 | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v3 06/20] dt-bindings: phy: cadence-torrent: Add defines for refclk driver

2021-05-04 Thread Kishon Vijay Abraham I
Add defines for refclk driver used to route the refclk out of torrent SERDES. Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy-cadence.h | 20 1 file changed, 20 insertions(+) create mode 100644 include/dt-bindings/phy/phy-cadence.h diff --git

[PATCH v3 05/20] dt-bindings: phy: Add defines for AM64 SERDES Wrapper

2021-05-04 Thread Kishon Vijay Abraham I
Add defines for AM64 SERDES Wrapper. Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy-ti.h | 21 + 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/phy/phy-ti.h diff --git a/include/dt-bindings/phy/phy-ti.h b/include/dt-bindings

[PATCH v3 04/20] dt-bindings: phy: Add definitions for additional phy types

2021-05-04 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add definitions for additional phy types that's used specifically for Torrent SERDES. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/phy

[PATCH v3 03/20] drivers: reset: Handle gracefully NULL pointers

2021-05-04 Thread Kishon Vijay Abraham I
Signed-off-by: Kishon Vijay Abraham I --- drivers/reset/reset-uclass.c | 35 ++- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/drivers/reset/reset-uclass.c b/drivers/reset/reset-uclass.c index ac89eaf098..18dfe06d1c 100644 --- a/drivers/reset/reset

[PATCH v3 00/20] TI/Cadence: Add Sierra/Torrent SERDES driver

2021-05-04 Thread Kishon Vijay Abraham I
config: Add config for torrent serdes and common clock framework Jean-Jacques Hiblot (2): phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC configs: j721e_evm_a72: Enable the drivers required for the USB3 support Kishon Vijay Abraham I (10): dm: core: Add helper to

[PATCH v3 02/20] dm: test: Add test case to check node name ignoring unit address

2021-05-04 Thread Kishon Vijay Abraham I
Add test to check node name ignoring unit address. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Simon Glass --- test/dm/core.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/test/dm/core.c b/test/dm/core.c index 2210345dd1..e83f71f767 100644 --- a/test/dm/core.c

[PATCH v3 01/20] dm: core: Add helper to compare node names

2021-05-04 Thread Kishon Vijay Abraham I
Add helper to compare node names. Signed-off-by: Kishon Vijay Abraham I --- drivers/core/ofnode.c | 13 + include/dm/ofnode.h | 10 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index d5058e..2a5b12040c 100644

Re: [PATCH v2 03/17] drivers: reset: Handle gracefully NULL pointers

2021-05-04 Thread Kishon Vijay Abraham I
Hi Simon, On 15/04/21 1:08 am, Simon Glass wrote: > Hi Kishon, > > On Mon, 5 Apr 2021 at 11:28, Kishon Vijay Abraham I wrote: >> >> From: Jean-Jacques Hiblot >> >> The reset framework provides devm_reset_control_get_optional() >> which can return NUL

[PATCH v2 17/17] configs: j7200_evm_a72: Enhance bootcmd to configure ethernet PHY

2021-04-05 Thread Kishon Vijay Abraham I
Update the default BOOTCOMMAND to provide an automatic and easier way to configure ethernet PHY before loading the firmware. Signed-off-by: Kishon Vijay Abraham I --- configs/j7200_evm_a72_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs

[PATCH v2 16/17] env: ti: j721e-evm: Add env variable to power on & reset QSGMII PHY in J7200 EVM

2021-04-05 Thread Kishon Vijay Abraham I
PIN: 18. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Suman Anna --- include/configs/j721e_evm.h | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index b707fc4e89..00d0a18a68 100644 --- a/include

[PATCH v2 15/17] configs: j7200_evm_a72_defconfig: Add config for torrent serdes and common clock framework

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add config for torrent serdes and common clock framework. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- configs/j7200_evm_a72_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/j7200_evm_a72_defconfig b/configs

[PATCH v2 14/17] configs: j721e_evm_a72: Enable the drivers required for the USB3 support

2021-04-05 Thread Kishon Vijay Abraham I
From: Jean-Jacques Hiblot Enable the mmio mux driver, the J721E-wiz PHy driver and the cadence sierra phy driver. All of them are required for USB3 support Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I --- configs

[PATCH v2 13/17] arm: dts: k3-j7200-common-proc-board-u-boot: Add u-boot tags for torrent serdes

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add u-boot tags for torrent serdes. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/k3-j7200-common-proc-board

[PATCH v2 12/17] arm: dts: k3-j7200-common-proc-board: Enable SERDES DT

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add default lane function for torrent serdes. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-common-proc-board.dts | 23 + 1 file changed, 23 insertions(+) diff --git a/arch/arm/dts/k3-j7200-common

[PATCH v2 11/17] arm: dts: k3-j7200-main: Add DT node for torrent serdes

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add DT node for torrent serdes. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- arch/arm/dts/k3-j7200-main.dtsi | 63 + 1 file changed, 63 insertions(+) diff --git a/arch/arm/dts/k3-j7200-main.dtsi b/arch/arm

[PATCH v2 10/17] ARM: dts: k3-j721e: Add the entries required for USB3 support on USB0

2021-04-05 Thread Kishon Vijay Abraham I
Partially sync with Linux's dts to add the entries required for USB3 support on USB0. Note that the default mode is still "peripheral" not "host". USB3 is supported only for the host mode. Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by:

[PATCH v2 09/17] board: ti: j721e: Add support for probing and configuring Torrent serdes on J7200

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add support for probing and configuring Torrent serdes on J7200. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- board/ti/j721e/evm.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git

[PATCH v2 06/17] phy: cadence: Add driver for Torrent SERDES

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add driver for Torrent SERDES. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/Kconfig |6 + drivers/phy/cadence/Makefile |1 + drivers/phy/cadence/phy-cadence-torrent.c | 2456

[PATCH v2 07/17] phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC

2021-04-05 Thread Kishon Vijay Abraham I
resets for each of the lanes. This is an adaptation of the linux driver. Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/Kconfig| 1 + drivers/phy/Makefile | 1 + drivers/phy/ti/Kconfig

[PATCH v2 08/17] usb: cdns3: cdns3-ti: Fix clk_get_by_name() to get the correct name

2021-04-05 Thread Kishon Vijay Abraham I
Upstream device tree got updated to use clock name as "ref" instead of "usb2_refclk". Fix cdns3-ti.c to use the correct name. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/cdns3/cdns3-ti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/us

[PATCH v2 05/17] phy: cadence: Add driver for Sierra PHY

2021-04-05 Thread Kishon Vijay Abraham I
reset after it is powered-on. This is because role switching is not supported in u-boot and the cable orientation is handled by the PHY reset. Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Alan Douglas Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Vignesh Raghavendra --- drivers/phy

[PATCH v2 04/17] dt-bindings: phy: Add definitions for additional phy types

2021-04-05 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add definitions for additional phy types that's used specifically for Torrent SERDES. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/phy

[PATCH v2 03/17] drivers: reset: Handle gracefully NULL pointers

2021-04-05 Thread Kishon Vijay Abraham I
-off-by: Jean-Jacques Hiblot Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I --- drivers/reset/reset-uclass.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/drivers/reset/reset-uclass.c b/drivers/reset/reset-uclass.c

[PATCH v2 02/17] dm: test: Add test case to check node name ignoring unit address

2021-04-05 Thread Kishon Vijay Abraham I
Add test to check node name ignoring unit address. Signed-off-by: Kishon Vijay Abraham I --- test/dm/core.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/test/dm/core.c b/test/dm/core.c index 35ca689d64..b88b1966fd 100644 --- a/test/dm/core.c +++ b/test/dm/core.c @@ -178,6

[PATCH v2 00/17] TI/Cadence: Add Sierra/Torrent SERDES driver

2021-04-05 Thread Kishon Vijay Abraham I
J721E SoC configs: j721e_evm_a72: Enable the drivers required for the USB3 support Kishon Vijay Abraham I (6): dm: core: Add helper to compare node names dm: test: Add test case to check node name ignoring unit address usb: cdns3: cdns3-ti: Fix clk_get_by_name() to get the correct name ARM

[PATCH v2 01/17] dm: core: Add helper to compare node names

2021-04-05 Thread Kishon Vijay Abraham I
Add helper to compare node names. Signed-off-by: Kishon Vijay Abraham I --- drivers/core/ofnode.c | 13 + include/dm/ofnode.h | 10 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index fa0bd2a9c4..adc96fcaf3 100644

Re: [PATCH 02/16] drivers: reset: Handle gracefully NULL pointers

2021-03-23 Thread Kishon Vijay Abraham I
Hi Simon, On 23/03/21 6:26 am, Simon Glass wrote: > Hi Kishon, > > On Mon, 22 Mar 2021 at 18:11, Kishon Vijay Abraham I wrote: >> >> Hi Simon, >> >> On 12/03/21 10:15 am, Simon Glass wrote: >>> Hi Kishon, >>> >>> On Tue, 9 Mar 2021 a

Re: [PATCH 02/16] drivers: reset: Handle gracefully NULL pointers

2021-03-21 Thread Kishon Vijay Abraham I
Hi Simon, On 12/03/21 10:15 am, Simon Glass wrote: > Hi Kishon, > > On Tue, 9 Mar 2021 at 05:27, Kishon Vijay Abraham I wrote: >> >> From: Jean-Jacques Hiblot >> >> Prepare the way for a managed reset API by handling NULL pointers without >> crashing

Re: [PATCH 01/16] dm: core: Add helper to compare node names

2021-03-21 Thread Kishon Vijay Abraham I
Hi Simon, On 12/03/21 10:15 am, Simon Glass wrote: > Hi Kishon, > > On Tue, 9 Mar 2021 at 05:27, Kishon Vijay Abraham I wrote: >> >> Add helper to compare node names. >> >> Signed-off-by: Kishon Vijay Abraham I >> --- >> drivers/core/ofnode.c | 13

  1   2   3   4   >