[PATCH v6 08/20] mmc: am654_sdhci: Add support for software tuning

2021-02-04 Thread Aswath Govindraju
-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index e86ef1a8b218..9549420c6582 100644

[PATCH v6 07/20] mmc: am654_sdhci: Add support for writing to clkbuf_sel

2021-02-04 Thread Aswath Govindraju
From: Faiz Abbas Add support for writing new clock buffer select property for both the am654x and j721e 4 bit IPs Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 11 +++ 1 file changed, 11 insertions(+) diff

[PATCH v6 06/20] mmc: am654_sdhci: Add support for input tap delay

2021-02-04 Thread Aswath Govindraju
it for the appropriate speed mode. Therefore, move all dll configurations to their own functions and gate it with 50 MHz speed and a minimum mode. If both these conditions are not satisfied then configure delay chain modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon

[PATCH v6 05/20] mmc: am654_sdhci: Add support for AM65x SR2.0

2021-02-04 Thread Aswath Govindraju
From: Faiz Abbas Add Support for AM65x PG2.0. Use the SoC bus framework to fixup the platform data and do DLL calibration if the revision is 1.0 Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 30

[PATCH v6 04/20] mmc: am654_sdhci: Add flag for PHY calibration

2021-02-04 Thread Aswath Govindraju
From: Faiz Abbas Not all controllers need calibration for the PHY DLL. Add a DLL_CALIB flag to indicate the same. Also move the write of trm_icp and driver strength to the set_clock() function to match the kernel configuration flow. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju

[PATCH v6 03/20] mmc: am654_sdhci: Convert flag fields to BIT macro

2021-02-04 Thread Aswath Govindraju
From: Faiz Abbas Convert the flags field defines to use the BIT() macro. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c

[PATCH v6 02/20] mmc: am654_sdhci: Unconditionally switch off DLL in the beginning of ios_post()

2021-02-04 Thread Aswath Govindraju
is no longer required. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index baa935e0d5b0

[PATCH v6 01/20] mmc: sdhci: Add helper functions for UHS modes

2021-02-04 Thread Aswath Govindraju
From: Faiz Abbas Add a set_voltage() function which handles the switch from 3.3V to 1.8V for SD card UHS modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/sdhci.c | 95 + include/sdhci.h

[PATCH v6 00/20] Add support for MMC higher speed modes for TI's am65x, j721e and j7200 platforms

2021-02-04 Thread Aswath Govindraju
The following patches add support for higher speeds in the SD card and eMMC for TI's am65x, j721e, j7200 platforms. With these patches, the following max speeds are supported: j721e: DDR50, HS200 j7200: SDR104, HS200 am65x: SDR104*, HS200 changes since v5: 1. In patch 1 moved the 5ms delay after

Re: [PATCH v5 01/20] mmc: sdhci: Add helper functions for UHS modes

2021-02-03 Thread Aswath Govindraju
Hi Jaehoon, On 04/02/21 4:23 am, Jaehoon Chung wrote: > Hi Aswath, > > On 2/3/21 3:06 PM, Aswath Govindraju wrote: >> Hi Jaehoon, >> >> On 02/02/21 3:40 am, Jaehoon Chung wrote: >>> Hi Aswath, >>> >>> On 1/29/21 11:47 PM, Aswath

Re: [PATCH v5 01/20] mmc: sdhci: Add helper functions for UHS modes

2021-02-03 Thread Aswath Govindraju
Hi Jaehoon, On 02/02/21 3:40 am, Jaehoon Chung wrote: > Hi Aswath, > > On 1/29/21 11:47 PM, Aswath Govindraju wrote: >> From: Faiz Abbas >> >> Add a set_voltage() function which handles the switch from 3.3V to 1.8V >> for SD card UHS modes. >> >

Re: [PATCH v5 01/20] mmc: sdhci: Add helper functions for UHS modes

2021-02-02 Thread Aswath Govindraju
On 03/02/21 11:36 am, Aswath Govindraju wrote: > Hi Jaehoon, > > On 02/02/21 3:40 am, Jaehoon Chung wrote: >> Hi Aswath, >> >> On 1/29/21 11:47 PM, Aswath Govindraju wrote: >>> From: Faiz Abbas >>> >>> Add a set_voltage() function which ha

Re: [PATCH v4 00/21] Add support for MMC higher speed modes for TI's am65x, j721e and j7200 platforms

2021-01-29 Thread Aswath Govindraju
Hi, On 28/01/21 3:13 pm, Aswath Govindraju wrote: > The following patches add support for higher speeds in the SD card and > eMMC for TI's am65x, j721e, j7200 platforms. > > With these patches, the following max speeds are supported: > j721e: DDR50, HS200 > j7200: SDR104, HS4

[PATCH v5 20/20] configs: am65x_evm: Add configs for UHS modes

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Add configs for voltage switching and UHS modes for the SD card and HS200 for the eMMC. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- configs/am65x_evm_a53_defconfig | 8 configs/am65x_evm_r5_defconfig | 2 ++ 2 files changed, 10 insertions

[PATCH v5 19/20] arm: dts: k3-am654-base-board: Limit Sd card to High speed modes

2021-01-29 Thread Aswath Govindraju
-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am654-base-board.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/k3-am654-base-board.dts b/arch/arm/dts/k3-am654-base-board.dts index 33a1b9fdc4b7..830526a1e473 100644 --- a/arch/arm/dts/k3-am654-base

[PATCH v5 18/20] arm: dts: k3-am65-main: Add itapdly and clkbuf-sel values

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Add the appropriate itapdly and clkbuf-sel values required for some lower speed modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am65-main.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/k3-am65-main.dtsi b

[PATCH v5 17/20] configs: j7200_evm: Add support for UHS modes

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Add configs to support UHS modes for the SD card and HS200 for the eMMC. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- configs/j7200_evm_a72_defconfig | 8 configs/j7200_evm_r5_defconfig | 1 + 2 files changed, 9 insertions(+) diff --git a/configs

[PATCH v5 16/20] configs: j721e_evm: Add support for UHS modes

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Add configs to support UHS modes for the SD card and HS200 for the eMMC. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- configs/j721e_evm_a72_defconfig | 8 configs/j721e_evm_r5_defconfig | 1 + 2 files changed, 9 insertions(+) diff --git a/configs

[PATCH v5 15/20] arm: dts: k3-j7200-common-proc-board: Enable support for UHS modes

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Add support for UHS modes by adding the regulators to power cycle and voltage switch the card. Also add pinmuxes required for each node Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j7200-common-proc-board.dts | 49 ++- arch

[PATCH v5 14/20] arm: dts: k3-j7200-main: Add support for gpio0

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Add support for the main_gpio0 node Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j7200-main.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/k3-j7200-main.dtsi b/arch/arm/dts/k3-j7200-main.dtsi

[PATCH v5 13/20] arm: dts: k3-j721e-common-proc-board: Add support for UHS modes for SD card

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Add support for regulators to power cycle and switch IO voltage to the SD card. This enables support for UHS modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j721e-common-proc-board.dts | 32 + 1 file changed, 32

[PATCH v5 12/20] arm: dts: k3-j721e-main: Update otap-delay values

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Update otap delay values to match with the latest Data Manual[1]. [1] https://www.ti.com/lit/gpn/dra829v Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j721e-main.dtsi | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[PATCH v5 11/20] arm: dts: k3-am65: Fix mmc nodes

2021-01-29 Thread Aswath Govindraju
-board.dts instead of the u-boot.dtsi Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am65-main.dtsi | 22 +++ arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 67 +++- arch/arm/dts/k3-am654-base-board.dts | 25 arch/arm

[PATCH v5 10/20] mmc: am654_sdhci: Use sdhci_set_control_reg()

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Use the generic sdhci_set_control_reg() instead of duplicating in platform driver. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions

[PATCH v5 09/20] mmc: am654_sdhci: Fix HISPD bit configuration in some lower speed modes

2021-01-29 Thread Aswath Govindraju
and SDR25 speed modes. Use the sdhci writeb callback to implement this condition. [1] http://www.ti.com/lit/gpn/am6546 Section 5.10.5.16.1 Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/Kconfig | 1 + drivers/mmc/am654_sdhci.c | 25

[PATCH v5 08/20] mmc: am654_sdhci: Add support for software tuning

2021-01-29 Thread Aswath Govindraju
-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index e86ef1a8b218..9549420c6582 100644

[PATCH v5 06/20] mmc: am654_sdhci: Add support for input tap delay

2021-01-29 Thread Aswath Govindraju
it for the appropriate speed mode. Therefore, move all dll configurations to their own functions and gate it with 50 MHz speed and a minimum mode. If both these conditions are not satisfied then configure delay chain modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon

[PATCH v5 07/20] mmc: am654_sdhci: Add support for writing to clkbuf_sel

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Add support for writing new clock buffer select property for both the am654x and j721e 4 bit IPs Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 11 +++ 1 file changed, 11 insertions(+) diff

[PATCH v5 05/20] mmc: am654_sdhci: Add support for AM65x SR2.0

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Add Support for AM65x PG2.0. Use the SoC bus framework to fixup the platform data and do DLL calibration if the revision is 1.0 Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 30

[PATCH v5 04/20] mmc: am654_sdhci: Add flag for PHY calibration

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Not all controllers need calibration for the PHY DLL. Add a DLL_CALIB flag to indicate the same. Also move the write of trm_icp and driver strength to the set_clock() function to match the kernel configuration flow. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju

[PATCH v5 03/20] mmc: am654_sdhci: Convert flag fields to BIT macro

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Convert the flags field defines to use the BIT() macro. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c

[PATCH v5 02/20] mmc: am654_sdhci: Unconditionally switch off DLL in the beginning of ios_post()

2021-01-29 Thread Aswath Govindraju
is no longer required. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index baa935e0d5b0

[PATCH v5 01/20] mmc: sdhci: Add helper functions for UHS modes

2021-01-29 Thread Aswath Govindraju
From: Faiz Abbas Add a set_voltage() function which handles the switch from 3.3V to 1.8V for SD card UHS modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/mmc/sdhci.c | 73 + include/sdhci.h | 10 +++ 2 files

[PATCH v5 00/20] Add support for MMC higher speed modes for TI's am65x, j721e and j7200 platforms

2021-01-29 Thread Aswath Govindraju
The following patches add support for higher speeds in the SD card and eMMC for TI's am65x, j721e, j7200 platforms. With these patches, the following max speeds are supported: j721e: DDR50, HS200 j7200: SDR104, HS200 am65x: SDR104*, HS200 changes since v4: 1. removed patch(15 in v4) that adds

[PATCH v4 21/21] configs: am65x_evm: Add configs for UHS modes

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Add configs for voltage switching and UHS modes for the SD card and HS200 for the eMMC. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- configs/am65x_evm_a53_defconfig | 8 configs/am65x_evm_r5_defconfig | 2 ++ 2 files changed, 10 insertions

[PATCH v4 20/21] arm: dts: k3-am654-base-board: Limit Sd card to High speed modes

2021-01-28 Thread Aswath Govindraju
-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am654-base-board.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/k3-am654-base-board.dts b/arch/arm/dts/k3-am654-base-board.dts index 33a1b9fdc4b7..830526a1e473 100644 --- a/arch/arm/dts/k3-am654-base

[PATCH v4 18/21] configs: j7200_evm: Add support for UHS modes

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Add configs to support UHS modes for the SD card and HS400 for the eMMC[1]. [1] - section 12.3.6.1.1 MMCSD Features, in https://www.ti.com/lit/ug/spruiu1a/spruiu1a.pdf Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- configs/j7200_evm_a72_defconfig | 8

[PATCH v4 17/21] configs: j721e_evm: Add support for UHS modes

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Add configs to support UHS modes for the SD card and HS200 for the eMMC. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- configs/j721e_evm_a72_defconfig | 8 configs/j721e_evm_r5_defconfig | 1 + 2 files changed, 9 insertions(+) diff --git a/configs

[PATCH v4 16/21] arm: dts: k3-j7200-common-proc-board: Enable support for UHS modes

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Add support for UHS modes by adding the regulators to power cycle and voltage switch the card. Also add pinmuxes required for each node Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j7200-common-proc-board.dts | 49 ++- arch

[PATCH v4 19/21] arm: dts: k3-am65-main: Add itapdly and clkbuf-sel values

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Add the appropriate itapdly and clkbuf-sel values required for some lower speed modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am65-main.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/k3-am65-main.dtsi b

[PATCH v4 15/21] arm: dts: k3-j7200-main: Add support for HS400 mode in MMCSD0 subsystem

2021-01-28 Thread Aswath Govindraju
HS400 mode at 1.8 V card voltage, is now supported in MMCSD0 subsystem of J7200 SoC[1]. Set the respective tag to indicate it. [1] - section 12.3.6.1.1 MMCSD Features, in https://www.ti.com/lit/ug/spruiu1a/spruiu1a.pdf Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j7200-main.dtsi

[PATCH v4 14/21] arm: dts: k3-j7200-main: Add support for gpio0

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Add support for the main_gpio0 node Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j7200-main.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/k3-j7200-main.dtsi b/arch/arm/dts/k3-j7200-main.dtsi

[PATCH v4 13/21] arm: dts: k3-j721e-common-proc-board: Add support for UHS modes for SD card

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Add support for regulators to power cycle and switch IO voltage to the SD card. This enables support for UHS modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j721e-common-proc-board.dts | 32 + 1 file changed, 32

[PATCH v4 12/21] arm: dts: k3-j721e-main: Update otap-delay values

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Update otap delay values to match with the latest Data Manual[1]. [1] https://www.ti.com/lit/gpn/dra829v Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j721e-main.dtsi | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[PATCH v4 06/21] mmc: am654_sdhci: Add support for input tap delay

2021-01-28 Thread Aswath Govindraju
it for the appropriate speed mode. Therefore, move all dll configurations to their own functions and gate it with 50 MHz speed and a minimum mode. If both these conditions are not satisfied then configure delay chain modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon

[PATCH v4 11/21] arm: dts: k3-am65: Fix mmc nodes

2021-01-28 Thread Aswath Govindraju
-board.dts instead of the u-boot.dtsi Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am65-main.dtsi | 22 +++ arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 67 +++- arch/arm/dts/k3-am654-base-board.dts | 25 arch/arm

[PATCH v4 10/21] mmc: am654_sdhci: Use sdhci_set_control_reg()

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Use the generic sdhci_set_control_reg() instead of duplicating in platform driver. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions

[PATCH v4 09/21] mmc: am654_sdhci: Fix HISPD bit configuration in some lower speed modes

2021-01-28 Thread Aswath Govindraju
and SDR25 speed modes. Use the sdhci writeb callback to implement this condition. [1] http://www.ti.com/lit/gpn/am6546 Section 5.10.5.16.1 Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/Kconfig | 1 + drivers/mmc/am654_sdhci.c | 25

[PATCH v4 08/21] mmc: am654_sdhci: Add support for software tuning

2021-01-28 Thread Aswath Govindraju
-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index e86ef1a8b218..9549420c6582 100644

[PATCH v4 07/21] mmc: am654_sdhci: Add support for writing to clkbuf_sel

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Add support for writing new clock buffer select property for both the am654x and j721e 4 bit IPs Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 11 +++ 1 file changed, 11 insertions(+) diff

[PATCH v4 05/21] mmc: am654_sdhci: Add support for AM65x SR2.0

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Add Support for AM65x PG2.0. Use the SoC bus framework to fixup the platform data and do DLL calibration if the revision is 1.0 Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 30

[PATCH v4 04/21] mmc: am654_sdhci: Add flag for PHY calibration

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Not all controllers need calibration for the PHY DLL. Add a DLL_CALIB flag to indicate the same. Also move the write of trm_icp and driver strength to the set_clock() function to match the kernel configuration flow. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju

[PATCH v4 03/21] mmc: am654_sdhci: Convert flag fields to BIT macro

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Convert the flags field defines to use the BIT() macro. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c

[PATCH v4 02/21] mmc: am654_sdhci: Unconditionally switch off DLL in the beginning of ios_post()

2021-01-28 Thread Aswath Govindraju
is no longer required. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju Reviewed-by: Jaehoon Chung --- drivers/mmc/am654_sdhci.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index baa935e0d5b0

[PATCH v4 01/21] mmc: sdhci: Add helper functions for UHS modes

2021-01-28 Thread Aswath Govindraju
From: Faiz Abbas Add a set_voltage() function which handles the switch from 3.3V to 1.8V for SD card UHS modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/mmc/sdhci.c | 73 + include/sdhci.h | 10 +++ 2 files

[PATCH v4 00/21] Add support for MMC higher speed modes for TI's am65x, j721e and j7200 platforms

2021-01-28 Thread Aswath Govindraju
67507e4aab5b ("sandbox: Fix up building for of-platdata") Link to v1: https://patchwork.ozlabs.org/project/uboot/list/?series=206622 Aswath Govindraju (1): arm: dts: k3-j7200-main: Add support for HS400 mode in MMCSD0 subsystem Faiz Abbas (20): mmc: sdhci: Add helper functions for

Re: [PATCH v3 01/20] mmc: sdhci: Add helper functions for UHS modes

2021-01-28 Thread Aswath Govindraju
Hi Jaehoon, On 26/01/21 3:48 am, Jaehoon Chung wrote: > On 1/21/21 9:40 PM, Aswath Govindraju wrote: >> From: Faiz Abbas >> >> Add a set_voltage() function which handles the switch from 3.3V to 1.8V >> for SD card UHS modes. >> >> Signed-off-by: Faiz Abb

Re: [PATCH v3 05/20] mmc: am654_sdhci: Add support for AM65x SR2.0

2021-01-28 Thread Aswath Govindraju
Hi Jaehoon, On 26/01/21 3:49 am, Jaehoon Chung wrote: > On 1/21/21 9:40 PM, Aswath Govindraju wrote: >> From: Faiz Abbas >> >> Add Support for AM65x PG2.0. Use the SoC bus framework to fixup >> the platform data and do DLL calibration if the revision is 1.0 >

Re: [PATCH v3 01/20] mmc: sdhci: Add helper functions for UHS modes

2021-01-25 Thread Aswath Govindraju
Hi Simon, On 24/01/21 7:33 am, Simon Glass wrote: > Hi Aswath, > > On Thu, 21 Jan 2021 at 05:41, Aswath Govindraju wrote: >> >> From: Faiz Abbas >> >> Add a set_voltage() function which handles the switch from 3.3V to 1.8V >> for SD card UHS modes. >

Re: [PATCH v2 01/21] mmc: sdhci: Add helper functions for UHS modes

2021-01-21 Thread Aswath Govindraju
Hi Jaehoon, On 21/01/21 10:40 am, Jaehoon Chung wrote: > Hi Aswath, > > On 1/21/21 1:13 PM, Aswath Govindraju wrote: >> Hi Jaehoon, >> >> On 21/01/21 4:26 am, Jaehoon Chung wrote: >>> Hi Aswath, >>> >>> On 1/19/21 9:35 PM, Aswath Govindraju

[PATCH v3 20/20] configs: am65x_evm: Add configs for UHS modes

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Add configs for voltage switching and UHS modes for the SD card and HS200 for the eMMC. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- configs/am65x_evm_a53_defconfig | 8 configs/am65x_evm_r5_defconfig | 2 ++ 2 files changed, 10 insertions

[PATCH v3 19/20] arm: dts: k3-am654-base-board: Limit Sd card to High speed modes

2021-01-21 Thread Aswath Govindraju
-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am654-base-board.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/k3-am654-base-board.dts b/arch/arm/dts/k3-am654-base-board.dts index 33a1b9fdc4b7..830526a1e473 100644 --- a/arch/arm/dts/k3-am654-base

[PATCH v3 18/20] arm: dts: k3-am65-main: Add itapdly and clkbuf-sel values

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Add the appropriate itapdly and clkbuf-sel values required for some lower speed modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am65-main.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/k3-am65-main.dtsi b

[PATCH v3 17/20] configs: j7200_evm: Add support for UHS modes

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Add configs to support UHS modes for the SD card and HS200 for the eMMC. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- configs/j7200_evm_a72_defconfig | 8 configs/j7200_evm_r5_defconfig | 1 + 2 files changed, 9 insertions(+) diff --git a/configs

[PATCH v3 16/20] configs: j721e_evm: Add support for UHS modes

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Add configs to support UHS modes for the SD card and HS200 for the eMMC. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- configs/j721e_evm_a72_defconfig | 8 configs/j721e_evm_r5_defconfig | 1 + 2 files changed, 9 insertions(+) diff --git a/configs

[PATCH v3 15/20] arm: dts: k3-j7200-common-proc-board: Enable support for UHS modes

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Add support for UHS modes by adding the regulators to power cycle and voltage switch the card. Also add pinmuxes required for each node Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j7200-common-proc-board.dts | 49 ++- arch

[PATCH v3 14/20] arm: dts: k3-j7200-main: Add support for gpio0

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Add support for the main_gpio0 node Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j7200-main.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/k3-j7200-main.dtsi b/arch/arm/dts/k3-j7200-main.dtsi

[PATCH v3 13/20] arm: dts: k3-j721e-common-proc-board: Add support for UHS modes for SD card

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Add support for regulators to power cycle and switch IO voltage to the SD card. This enables support for UHS modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j721e-common-proc-board.dts | 32 + 1 file changed, 32

[PATCH v3 12/20] arm: dts: k3-j721e-main: Update otap-delay values

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Update otap delay values to match with the latest Data Manual[1]. [1] https://www.ti.com/lit/gpn/dra829v Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-j721e-main.dtsi | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[PATCH v3 11/20] arm: dts: k3-am65: Fix mmc nodes

2021-01-21 Thread Aswath Govindraju
-board.dts instead of the u-boot.dtsi Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am65-main.dtsi | 22 +++ arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 67 +++- arch/arm/dts/k3-am654-base-board.dts | 25 arch/arm

[PATCH v3 10/20] mmc: am654_sdhci: Use sdhci_set_control_reg()

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Use the generic sdhci_set_control_reg() instead of duplicating in platform driver. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/mmc/am654_sdhci.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/drivers/mmc

[PATCH v3 09/20] mmc: am654_sdhci: Fix HISPD bit configuration in some lower speed modes

2021-01-21 Thread Aswath Govindraju
and SDR25 speed modes. Use the sdhci writeb callback to implement this condition. [1] http://www.ti.com/lit/gpn/am6546 Section 5.10.5.16.1 Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/mmc/Kconfig | 1 + drivers/mmc/am654_sdhci.c | 25 +++-- 2

[PATCH v3 08/20] mmc: am654_sdhci: Add support for software tuning

2021-01-21 Thread Aswath Govindraju
-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/mmc/am654_sdhci.c | 45 +++ 1 file changed, 45 insertions(+) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index e86ef1a8b218..9549420c6582 100644 --- a/drivers/mmc/am654_sdhci.c

[PATCH v3 06/20] mmc: am654_sdhci: Add support for input tap delay

2021-01-21 Thread Aswath Govindraju
it for the appropriate speed mode. Therefore, move all dll configurations to their own functions and gate it with 50 MHz speed and a minimum mode. If both these conditions are not satisfied then configure delay chain modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/mmc

[PATCH v3 07/20] mmc: am654_sdhci: Add support for writing to clkbuf_sel

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Add support for writing new clock buffer select property for both the am654x and j721e 4 bit IPs Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/mmc/am654_sdhci.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc

[PATCH v3 05/20] mmc: am654_sdhci: Add support for AM65x SR2.0

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Add Support for AM65x PG2.0. Use the SoC bus framework to fixup the platform data and do DLL calibration if the revision is 1.0 Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/mmc/am654_sdhci.c | 30 ++ 1 file changed, 30

[PATCH v3 04/20] mmc: am654_sdhci: Add flag for PHY calibration

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Not all controllers need calibration for the PHY DLL. Add a DLL_CALIB flag to indicate the same. Also move the write of trm_icp and driver strength to the set_clock() function to match the kernel configuration flow. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju

[PATCH v3 03/20] mmc: am654_sdhci: Convert flag fields to BIT macro

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Convert the flags field defines to use the BIT() macro. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/mmc/am654_sdhci.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c

[PATCH v3 02/20] mmc: am654_sdhci: Unconditionally switch off DLL in the beginning of ios_post()

2021-01-21 Thread Aswath Govindraju
is no longer required. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/mmc/am654_sdhci.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index baa935e0d5b0..33f658fba719 100644 --- a/drivers

[PATCH v3 01/20] mmc: sdhci: Add helper functions for UHS modes

2021-01-21 Thread Aswath Govindraju
From: Faiz Abbas Add a set_voltage() function which handles the switch from 3.3V to 1.8V for SD card UHS modes. Signed-off-by: Faiz Abbas Signed-off-by: Aswath Govindraju --- drivers/mmc/sdhci.c | 80 + include/sdhci.h | 1 + 2 files changed

[PATCH v3 00/20] Add support for MMC higher speed modes for TI's am65x, j721e and j7200 platforms

2021-01-21 Thread Aswath Govindraju
The following patches add support for higher speeds in the SD card and eMMC for TI's am65x, j721e, j7200 platforms. With these patches, the following max speeds are supported: j721e: DDR50, HS200 j7200: SDR104, HS200 am65x: SDR104*, HS200 changes since v2: 1. Added print statements in case of

Re: [PATCH v2 01/21] mmc: sdhci: Add helper functions for UHS modes

2021-01-20 Thread Aswath Govindraju
Hi Jaehoon, On 21/01/21 4:26 am, Jaehoon Chung wrote: > Hi Aswath, > > On 1/19/21 9:35 PM, Aswath Govindraju wrote: >> Hi Jaehoon, >> >> On 05/11/20 4:03 am, Jaehoon Chung wrote: >>> On 11/5/20 4:05 AM, Faiz Abbas wrote: >>>> Jaehoon, >>>

Re: Re: [PATCH v2 01/21] mmc: sdhci: Add helper functions for UHS modes

2021-01-19 Thread Aswath Govindraju
Hi Jaehoon, On 05/11/20 4:03 am, Jaehoon Chung wrote: > On 11/5/20 4:05 AM, Faiz Abbas wrote: >> Jaehoon, >> >> On 21/10/20 5:08 pm, Jaehoon Chung wrote: >>> Hi Faiz, >>> >>> On 10/16/20 8:08 PM, Faiz Abbas wrote: Add a set_voltage() function which handles the switch from 3.3V to 1.8V

[PATCH] configs: am65x_evm_a53: Enable config for phandle check while getting sequence number

2021-01-12 Thread Aswath Govindraju
to distinguish the USB device tree nodes. Signed-off-by: Aswath Govindraju --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 941073ce7f19..444730a3944e 100644 --- a/configs

Re: [PATCH 2/3] dts: am654-base-board-uboot: Set USB0 dr_mode to host

2020-12-21 Thread Aswath Govindraju
On 21/12/20 8:42 pm, Lokesh Vutla wrote: > > > On 20/11/20 9:18 pm, Aswath Govindraju wrote: >> USB3SS0 controller is to be used as a host in U-boot. Fix it by changing >> the dr_mode to host. >> >> Signed-off-by: Aswath Govindraju > > Won't it break

Re: [PATCH v2] fdt: Use phandle to distinguish DT nodes with same name

2020-12-02 Thread Aswath Govindraju
Hi Simon, On 03/12/20 3:51 am, Simon Glass wrote: > Hi Aswath, > > On Wed, 2 Dec 2020 at 08:42, Aswath Govindraju wrote: >> >> While assigning the sequence number to subsystem instances by reading the >> aliases property, only DT nodes names are compared a

[PATCH v3] fdt: Use phandle to distinguish DT nodes with same name

2020-12-02 Thread Aswath Govindraju
penalty on all boards, apply this extra check only when required by using a config option. Fix it by comparing the phandles of DT nodes after the node names match, under a config option. Signed-off-by: Aswath Govindraju --- Changes since v2: - changed #ifdef to if(IS_ENABLED()) - corrected errors

[PATCH v2] fdt: Use phandle to distinguish DT nodes with same name

2020-12-02 Thread Aswath Govindraju
penalty on all boards, apply this extra check only when required by using a config option. Fix it by comparing the phandles of DT nodes after the node names match, under a config option. Signed-off-by: Aswath Govindraju --- Changes since v1: - Added a config option as fdt_path_offset() slows down

Re: [RESEND PATCH] fdt: Use phandle to distinguish DT nodes with same name

2020-11-27 Thread Aswath Govindraju
On 22/11/20 4:37 am, Simon Glass wrote: > Hi, > > On Wed, 18 Nov 2020 at 10:55, Vignesh Raghavendra wrote: >> >> >> >> On 11/18/20 8:44 PM, Aswath Govindraju wrote: >>> Hi Simon, >>> >>> On 18/11/20 8:07 pm, Simon Glass wrote: &g

[PATCH] configs: am65x_evm: Define the maximum file size for DFU

2020-11-24 Thread Aswath Govindraju
as there is not enough heap memory to be allocated for the buffer in case of R5 spl. Fix this by defining CONFIG_SYS_DFU_MAX_FILE_SIZE as the default CONFIG_SYS_DFU_DATA_BUF_SIZE value. Signed-off-by: Aswath Govindraju --- include/configs/am65x_evm.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include

[PATCH 3/3] dts: am654-base-board-uboot: Add aliases for USB subsystems

2020-11-20 Thread Aswath Govindraju
number. This makes the sequence number of USB3SS1 controller independent of USB3SS0 controller's dr_mode. Therefore, add aliases to fix the sequence number assigned to the USB subsystems. Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 2 ++ 1 file changed, 2

[PATCH 2/3] dts: am654-base-board-uboot: Set USB0 dr_mode to host

2020-11-20 Thread Aswath Govindraju
USB3SS0 controller is to be used as a host in U-boot. Fix it by changing the dr_mode to host. Signed-off-by: Aswath Govindraju --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am654-base-board-u-boot.dtsi b

[PATCH 1/3] board: ti: am65x: Set SERDES0 mux to PCIe to use USB 2.0 interface

2020-11-20 Thread Aswath Govindraju
to LANE_FUNC_SEL field in CTRLMMR_SERDES0_CTRL register. Signed-off-by: Aswath Govindraju --- board/ti/am65x/evm.c | 16 1 file changed, 16 insertions(+) diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c index 36063b11383d..4438f14e4ff1 100644 --- a/board/ti/am65x/evm.c +++ b

[PATCH 0/3] usb: am654: Add support for host mode to the USB port on overlay board

2020-11-20 Thread Aswath Govindraju
The following series of patches - adds support for host mode to USB3SS0 controller - adds aliases for USB subsystems - adds a workaround to use USB0 in USB 2.0 only mode Aswath Govindraju (3): board: ti: am65x: Set SERDES0 mux to PCIe to use USB 2.0 interface dts: am654-base-board-uboot

Re: [EXTERNAL] Re: [RESEND PATCH] fdt: Use phandle to distinguish DT nodes with same name

2020-11-18 Thread Aswath Govindraju
Hi Simon, On 18/11/20 8:07 pm, Simon Glass wrote: > Hi Aswath, > > On Mon, 16 Nov 2020 at 07:29, Aswath Govindraju wrote: >> >> While assigning the sequence number to subsystem instances by reading the >> aliases property, only DT nodes names are compared a

[Patch] fdt: Use phandle to distinguish DT nodes with same name

2020-11-11 Thread Aswath Govindraju
the node names match. Signed-off-by: Aswath Govindraju --- lib/fdtdec.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 2015907dee7d..9e1bfe0b519e 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -478,6 +478,11 @@ int fdtdec_get_alias_seq(const void *blob

<    1   2   3   4