[U-Boot] [PATCH 3/4] ARM: dts: am57xx: Disable voltage switching for SD card

2019-06-20 Thread Faiz Abbas
is is that the maximum supported speed mode is now high speed(50 MHz) down from SDR104(200 MHz). Signed-off-by: Faiz Abbas --- arch/arm/dts/am571x-idk.dts| 7 +-- arch/arm/dts/am572x-idk.dts| 7 +-- arch/arm/dts/am57xx-beagle-x15-common.dtsi | 1 + arch/ar

[U-Boot] [PATCH 0/4] MMC Fixes for dra7xx and am57xx boards

2019-06-20 Thread Faiz Abbas
These patches implement some MMC related fixes for dra7xx and am57xx boards. Faiz Abbas (4): ARM: dts: dra7-mmc-iodelay: Add a new pinctrl group for clk line without pullup ARM: dts: am574x-idk: Add pinmuxes for mmc1 and mmc2 ARM: dts: am57xx: Disable voltage switching for SD card ARM

[U-Boot] [PATCH 4/4] ARM: dts: dra76x: Update MMC2_HS200_MANUAL1 iodelay values

2019-06-20 Thread Faiz Abbas
Update the MMC2_HS200_MANUAL1 iodelay values to match with the latest dra76x data manual[1]. Also this particular pinctrl-array is using spaces instead of tabs for spacing between the values and the comments. Fix this as well. [1] http://www.ti.com/lit/ds/symlink/dra76p.pdf Signed-off-by: Faiz

[U-Boot] [PATCH 2/4] ARM: dts: am574x-idk: Add pinmuxes for mmc1 and mmc2

2019-06-20 Thread Faiz Abbas
Sync with kernel dts by adding pinmuxes for mmc1 and mmc2. This fixes an issue where mmc2 (eMMC) was coming up in HS52 mode instead of the highest DDR52 mode. Signed-off-by: Faiz Abbas --- arch/arm/dts/am574x-idk.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm

Re: [U-Boot] [PATCH v3 05/13] regmap: Add support for polling on a register

2019-04-14 Thread Faiz Abbas
Hi Tom, On 13/02/19 1:25 PM, Faiz Abbas wrote: > Hi Tom, > > On 12/02/19 2:28 PM, Faiz Abbas wrote: >> Add an API to continuously read a register until a condition is >> satisfied or a timeout occurs. >> >> Signed-off-by: Faiz Abbas >> Reviewed-by: Tom

[U-Boot] [PATCH 0/2] Add Support for ADMA2 in SDHCI

2019-04-16 Thread Faiz Abbas
The following patches add support for ADMA2 in SDHCI. Tested with Am65x_evm with some out of tree patches unrelated to MMC. Faiz Abbas (2): mmc: sdhci: Move DMA handling to prepare_dma() function mmc: sdhci: Add Support for ADMA2 drivers/mmc/Kconfig | 14 drivers/mmc/sdhci.c | 188

[U-Boot] [PATCH 1/2] mmc: sdhci: Move DMA handling to prepare_dma() function

2019-04-16 Thread Faiz Abbas
In preparation for addition of ADMA2 support, cleanup SDMA handling by moving it to a new sdhci_prepare_dma() function. Also add a flags field in sdhci_host to indicate if DMA is enabled. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 92

[U-Boot] [PATCH 2/2] mmc: sdhci: Add Support for ADMA2

2019-04-16 Thread Faiz Abbas
. Signed-off-by: Faiz Abbas --- drivers/mmc/Kconfig | 14 + drivers/mmc/sdhci.c | 138 include/sdhci.h | 41 + 3 files changed, 170 insertions(+), 23 deletions(-) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 04adc36554

Re: [U-Boot] [PATCH] mmc: Downgrade SD/MMC from UHS/HS200/HS400 modes before boot

2019-05-02 Thread Faiz Abbas
Hi, On 14/02/19 6:56 PM, Marek Vasut wrote: > Older kernel versions or systems which do not connect eMMC reset line > properly may not be able to handle situations where either the eMMC > is left in HS200/HS400 mode or SD card in UHS modes by the bootloader > and may misbehave. Downgrade the eMMC

Re: [U-Boot] [PATCH] mmc: Downgrade SD/MMC from UHS/HS200/HS400 modes before boot

2019-05-02 Thread Faiz Abbas
Hi Marek, On 02/05/19 3:39 PM, Marek Vasut wrote: > On 5/2/19 9:57 AM, Faiz Abbas wrote: >> Hi, > > Hi, > >> On 14/02/19 6:56 PM, Marek Vasut wrote: >>> Older kernel versions or systems which do not connect eMMC reset line >>> properly may not be able

Re: [U-Boot] [PATCH v2 0/4] Add Support for NAND in dra71x-evm

2019-03-13 Thread Faiz Abbas
Hi, On 27/02/19 1:29 PM, Faiz Abbas wrote: > The following patches add support for NAND and booting from > NAND in dra71x-evm. > > v2: > Patch4: Moved NANDARGS to its own file in include/environment/ti > > Faiz Abbas (2): > configs: dra71x-evm: Add Supp

[U-Boot] [PATCH] Revert "fs: fat: support write with non-zero offset"

2019-03-14 Thread Faiz Abbas
ed-off-by: Faiz Abbas --- fs/fat/fat_write.c | 290 +++-- 1 file changed, 16 insertions(+), 274 deletions(-) diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index 852f874e58..477f68a2cc 100644 --- a/fs/fat/fat_write.c +++ b/fs/fat/fat_write.c @@ -457,1

[U-Boot] [PATCH] configs: am335x_evm: Add CONFIG_BLK

2019-03-14 Thread Faiz Abbas
With DM_MMC and DM_USB enabled, enable CONFIG_BLK. Signed-off-by: Faiz Abbas --- configs/am335x_evm_defconfig | 1 - configs/am335x_hs_evm_defconfig | 1 - configs/am335x_hs_evm_uart_defconfig | 1 - 3 files changed, 3 deletions(-) diff --git a/configs/am335x_evm_defconfig b

[U-Boot] [PATCH 00/11] Fix Ethernet boot in am335x

2019-03-18 Thread Faiz Abbas
and enable ETH_SUPPORT in SPL. Patch 11 removes non-DM_ETH code from the am335x board file. Tested ethernet boot and tftp in am335x-evm. Regression tested on dra71x-evm. Faiz Abbas (11): net: Add priv_pdata to eth_pdata net: ti: cpsw: Move cpsw_phy_sel() to _probe() net: ti: cpsw: Convert

[U-Boot] [PATCH 01/11] net: Add priv_pdata to eth_pdata

2019-03-18 Thread Faiz Abbas
Add a priv member for eth_pdata for platform specific platform data. Signed-off-by: Faiz Abbas --- include/net.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/net.h b/include/net.h index dd52ed3f47..44b32385c4 100644 --- a/include/net.h +++ b/include/net.h @@ -92,12 +92,14

[U-Boot] [PATCH 02/11] net: ti: cpsw: Move cpsw_phy_sel() to _probe()

2019-03-18 Thread Faiz Abbas
cpsw_phy_sel() is a configuration step that should not be in ofdata_to_platdata(). Add phy_sel_compat to the cpsw_platform_data structure so that it is accessible in _probe. Then move the call of cpsw_phy_sel() to _probe. Signed-off-by: Faiz Abbas --- drivers/net/ti/cpsw.c | 33

[U-Boot] [PATCH 07/11] board: ti: am335x: Add platdata for cpsw in SPL

2019-03-18 Thread Faiz Abbas
The SPL image overflows when cpsw dt nodes are added and SPL_OF_CONTROL is enabled. Use static platdata instead to save space. Signed-off-by: Faiz Abbas --- board/ti/am335x/board.c | 49 + drivers/net/ti/cpsw.c | 18 --- include/cpsw.h

[U-Boot] [PATCH 05/11] net: ti: cpsw: Block off ofdata_to_platdata with OF_CONTROL

2019-03-18 Thread Faiz Abbas
The ofdata_to_platdata function should not be called if OF_CONTROL is not enabled because fdtdec_* calls will fail. Block the function with OF_CONTROL Signed-off-by: Faiz Abbas --- drivers/net/ti/cpsw.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a

[U-Boot] [PATCH 03/11] net: ti: cpsw: Convert cpsw_platform_data to a pointer in cpsw_priv

2019-03-18 Thread Faiz Abbas
Convert cpsw_platform_data to a pointer in cpsw_priv. Allocate it dynamically and assign it as a part of eth_pdata. This helps in isolating platform data handling and implementing platdata for SPL in a board file. Signed-off-by: Faiz Abbas --- drivers/net/ti/cpsw.c | 136

[U-Boot] [PATCH 06/11] net: ti: cpsw: Enable DM_FLAG_PRE_RELOC

2019-03-18 Thread Faiz Abbas
Add DM_FLAG_PRE_RELOC to make the driver probe in SPL. Signed-off-by: Faiz Abbas --- drivers/net/ti/cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c index 403c9b98dd..e16c270985 100644 --- a/drivers/net/ti/cpsw.c +++ b

[U-Boot] [PATCH 11/11] board: ti: am335x: Remove non DM_ETH code

2019-03-18 Thread Faiz Abbas
With DM_ETH enabled in am335x devices, remove all the unused non-DM code. Signed-off-by: Faiz Abbas --- board/ti/am335x/board.c | 151 1 file changed, 151 deletions(-) diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index b811fb088b

[U-Boot] [PATCH 08/11] configs: am335x_evm: Reduce size of SPL

2019-03-18 Thread Faiz Abbas
Make some room in SPL by getting rid of unnecessary configs. Signed-off-by: Faiz Abbas --- configs/am335x_evm_defconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig index 6c791be374..16b78f9d7e 100644 --- a

[U-Boot] [PATCH 09/11] configs: am335x_evm: Add Support for SPL_ETH

2019-03-18 Thread Faiz Abbas
Add Support for booting from Ethernet. Signed-off-by: Faiz Abbas --- configs/am335x_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig index 16b78f9d7e..36d8858851 100644 --- a/configs/am335x_evm_defconfig +++ b/configs

[U-Boot] [PATCH 04/11] net: ti: cpsw-common: Isolate getting syscon address from assigning macid

2019-03-18 Thread Faiz Abbas
platdata can be assigned statically in a board file when OF_CONTROL is not enabled. Also add a macid_sel_compat in private data to get information about the macid byte placement. Signed-off-by: Faiz Abbas --- drivers/net/ti/cpsw-common.c | 127 +++ drivers/net/ti

[U-Boot] [PATCH 10/11] configs: am335x_evm: Update VCI String

2019-03-18 Thread Faiz Abbas
Update VCI string to keep it compatible with legacy test setups. Signed-off-by: Faiz Abbas --- configs/am335x_evm_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig index 36d8858851..e516179255 100644 --- a

Re: [U-Boot] [PATCH 00/11] Fix Ethernet boot in am335x

2019-03-19 Thread Faiz Abbas
Hi Tom, On 18/03/19 7:40 PM, Tom Rini wrote: > On Mon, Mar 18, 2019 at 01:54:30PM +0530, Faiz Abbas wrote: > >> The following patches fix ethernet boot in am335x. >> >> Enabling OF_CONTROL in SPL makes it overflow the sram size. To avoid >> this, I am using stati

Re: [U-Boot] [PATCH 07/11] board: ti: am335x: Add platdata for cpsw in SPL

2019-03-19 Thread Faiz Abbas
Hi Tom, On 18/03/19 7:40 PM, Tom Rini wrote: > On Mon, Mar 18, 2019 at 01:54:37PM +0530, Faiz Abbas wrote: > >> The SPL image overflows when cpsw dt nodes are added and SPL_OF_CONTROL >> is enabled. Use static platdata instead to save space. >> >> Signed-off-by:

Re: [U-Boot] [PATCH] ti: am335x_evm: Enable CONFIG_SPL_OF_CONTROL

2019-03-19 Thread Faiz Abbas
things such as > SPL_USE_ARCH_MEMCPY/SET for space. Increase our malloc len. > - Drop, for now at least, USB SPL support as it's causing a hang. > > Cc: Faiz Abbas > Cc: Lokesh Vutla > Signed-off-by: Tom Rini > --- > arch/arm/dts/am335x-evm-u-boot.dtsi | 45 >

Re: [U-Boot] [BUG] cb8af8af5ba0 "fs: fat: support write with non-zero offset" fatwrite followed by fatload and then cmp fails

2019-03-20 Thread Faiz Abbas
;>>> >>>> On Tue, Mar 12, 2019 at 02:11:08PM +0530, Faiz Abbas wrote: >>>>> Hi Akashi, >>>>> >>>>> On 11/09/18 12:29 PM, Akashi, Takahiro wrote: >>>>>> From: AKASHI Takahiro >>>>>> >>>>&

Re: [U-Boot] [PATCH] ti: am335x_evm: Enable CONFIG_SPL_OF_CONTROL

2019-03-21 Thread Faiz Abbas
gt;> - Add u-boot,dm-pre-reloc to a number of nodes >>> - Drop static platdata in the board file. >>> - A lot of tweaks to the defconfig. We remove some things such as >>> SPL_USE_ARCH_MEMCPY/SET for space. Increase our malloc len. >>> - Drop, for now at l

Re: [U-Boot] [BUG] cb8af8af5ba0 "fs: fat: support write with non-zero offset" fatwrite followed by fatload and then cmp fails

2019-03-22 Thread Faiz Abbas
Hi, On 21/03/19 12:20 PM, Faiz Abbas wrote: > Tom, Akashi, > > On 18/03/19 7:29 AM, Tom Rini wrote: >> On Mon, Mar 18, 2019 at 10:57:37AM +0900, Akashi, Takahiro wrote: >>> On Sun, Mar 17, 2019 at 09:44:20PM -0400, Tom Rini wrote: >>>> On Mon, Mar 18, 2019 a

[U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT

2019-03-28 Thread Faiz Abbas
With U-boot supporting environment in multiple places, enable only ENV_IS_IN_EMMC. Signed-off-by: Faiz Abbas --- configs/am57xx_evm_defconfig| 1 + configs/am57xx_hs_evm_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/am57xx_evm_defconfig b/configs

[U-Boot] [PATCH 1/2] ARM: dts: dra7: Change pbias voltage to 3.3V

2019-03-28 Thread Faiz Abbas
As per recent TRM[1], PBIAS cell on dra7 devices supports 3.3v and not 3.0v as documented earlier. Update PBIAS regulator max voltage and the voltage written in the driver to reflect this. [1] http://www.ti.com/lit/pdf/sprui30 Signed-off-by: Faiz Abbas --- arch/arm/dts/dra7.dtsi

[U-Boot] [PATCH 0/2] Update pbias and IO voltage in dra7 and am57 devices

2019-03-28 Thread Faiz Abbas
The following patches update pbias and IO voltages in TI's dra7 and am57 devices. Tested on: dra71x-evm, dra72x-evm, dra7xx-evm, dra76x-evm, am57xx-evm, am571-idk, am572-idk, am574-idk, am335x-evm. Faiz Abbas (2): ARM: dts: dra7: Change pbias voltage to 3.3V mmc: omap_hsmmc: Set 3.3V f

[U-Boot] [PATCH 2/2] mmc: omap_hsmmc: Set 3.3V for IO voltage

2019-03-28 Thread Faiz Abbas
Pbias voltage should match the IO voltage set for the SD card. With the latest pbias change to 3.3V, update the capabilities and IO voltages settings to 3.3V. Signed-off-by: Faiz Abbas --- drivers/mmc/omap_hsmmc.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions

Re: [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT

2019-03-29 Thread Faiz Abbas
Tom, On 28/03/19 6:33 PM, Tom Rini wrote: > On Thu, Mar 28, 2019 at 02:21:03PM +0530, Faiz Abbas wrote: > >> With U-boot supporting environment in multiple places, enable only >> ENV_IS_IN_EMMC. >> >> Signed-off-by: Faiz Abbas >> --- >> configs

Re: [U-Boot] [PATCH 0/2] Update pbias and IO voltage in dra7 and am57 devices

2019-03-29 Thread Faiz Abbas
Hi, On 28/03/19 2:47 PM, Faiz Abbas wrote: > The following patches update pbias and IO voltages in TI's dra7 and am57 > devices. > > Tested on: dra71x-evm, One more patch is required for dra71-evm. Will send as part of v2. dra72x-evm, dra7xx-evm, dra76x-evm, am57xx-evm, >

Re: [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT

2019-04-03 Thread Faiz Abbas
Hi Sam, On 29/03/19 8:37 PM, Sam Protsenko wrote: > Hi Faiz, > > On Fri, Mar 29, 2019 at 3:24 PM Lokesh Vutla wrote: >> >> + Praneeth >> >> On 29/03/19 4:45 PM, Tom Rini wrote: >>> On Fri, Mar 29, 2019 at 01:09:25PM +0530, Faiz Abbas wrote: >>

[U-Boot] [PATCH v2 0/3] Update pbias and IO voltage in dra7 and am57 devices

2019-04-05 Thread Faiz Abbas
The following patches update pbias and IO voltages in TI's dra7 and am57 devices. Tested on: dra71x-evm, dra72x-evm, dra7xx-evm, dra76x-evm, am57xx-evm, am571-idk, am572-idk, am574-idk, am335x-evm. v2: Added patch for fixing voltage in dra71-evm. Faiz Abbas (3): ARM: dts: dra7: Change

[U-Boot] [PATCH v2 2/3] ARM: dts: dra71-evm: Correct evm_sd regulator max voltage

2019-04-05 Thread Faiz Abbas
Correct vpo_sd_1v8_3v3 regulator max voltage to 3.3V Signed-off-by: Faiz Abbas --- arch/arm/dts/dra71-evm.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/dra71-evm.dts b/arch/arm/dts/dra71-evm.dts index 41c9132eb5..64363f75c0 100644 --- a/arch/arm/dts

[U-Boot] [PATCH v2 1/3] ARM: dts: dra7: Change pbias voltage to 3.3V

2019-04-05 Thread Faiz Abbas
As per recent TRM[1], PBIAS cell on dra7 devices supports 3.3v and not 3.0v as documented earlier. Update PBIAS regulator max voltage and the voltage written in the driver to reflect this. [1] http://www.ti.com/lit/pdf/sprui30 Signed-off-by: Faiz Abbas --- arch/arm/dts/dra7.dtsi

[U-Boot] [PATCH v2 3/3] mmc: omap_hsmmc: Set 3.3V for IO voltage

2019-04-05 Thread Faiz Abbas
Pbias voltage should match the IO voltage set for the SD card. With the latest pbias change to 3.3V, update the capabilities and IO voltages settings to 3.3V. Signed-off-by: Faiz Abbas --- drivers/mmc/omap_hsmmc.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions

Re: [U-Boot] [PATCH] test: dm: regmap: Fix the long test delay

2019-04-09 Thread Faiz Abbas
Hi Simon, On 10/12/18 5:41 AM, Simon Glass wrote: > At present one of the regmap tests takes 5 seconds to run since it waits > for a timeout. This should be handled using sandbox_timer_add_offset() > which advances time for test purposes. > > This requires a little change to make the regmap_read_

Re: [U-Boot] [PATCH] mmc: Downgrade SD/MMC from UHS/HS200/HS400 modes before boot

2019-05-07 Thread Faiz Abbas
Hi Marek, On 02/05/19 4:54 PM, Marek Vasut wrote: > On 5/2/19 12:24 PM, Faiz Abbas wrote: >> Hi Marek, >> >> On 02/05/19 3:39 PM, Marek Vasut wrote: >>> On 5/2/19 9:57 AM, Faiz Abbas wrote: >>>> Hi, >>> >>> Hi, >>> >&g

[U-Boot] [PATCH v4 00/15] Add Support for eMMC in AM65x-evm

2019-05-23 Thread Faiz Abbas
a NULL pointer exception in patch 8. 3. Rebased on top of latest master 4. Added extra patches to support GPT partitions in user partition 5. Added Support for environment in eMMC by default Changes in v3: Patch 9: Got rid of variable ret Changes in v2: Patch 9: Fixed return value Patch 12: Fixed spac

[U-Boot] [PATCH v4 01/15] arm64: dts: k3: Sync sdhci0 node from kernel and change driver name

2019-05-23 Thread Faiz Abbas
kernel. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- arch/arm/dts/k3-am65-main.dtsi| 22 arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 27 ++ arch/arm/dts/k3-am654-base-board.dts | 28 +++ arch/arm/dts/k3-am654-r5-base

[U-Boot] [PATCH v4 10/15] mmc: am654_sdhci: Use f_max in mmc_config

2019-05-23 Thread Faiz Abbas
Use f_max provided in mmc_config and remove it from the platform specific data. Signed-off-by: Faiz Abbas --- drivers/mmc/am654_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index ede8a02b9b..2f8ecc383d 100644

[U-Boot] [PATCH v4 02/15] mmc: am654_sdhci: Remove quirks

2019-05-23 Thread Faiz Abbas
The host controller works perfectly well without having to add any quirks. Remove them. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/am654_sdhci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index 3afdb58293

[U-Boot] [PATCH v4 03/15] regmap: Add API regmap_init_mem_index()

2019-05-23 Thread Faiz Abbas
In device nodes with more than one entry in the reg property, it is sometimes useful to regmap only of the entries. Add an API regmap_init_mem_index() to facilitate this. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/core/regmap.c | 42

[U-Boot] [PATCH v4 08/15] mmc: am654_sdhci: Add Support for PHY

2019-05-23 Thread Faiz Abbas
Add support in the driver for handling phy specific registers. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/Kconfig | 1 + drivers/mmc/am654_sdhci.c | 229 +- 2 files changed, 224 insertions(+), 6 deletions(-) diff --git a/drivers

[U-Boot] [PATCH v4 07/15] mmc: sdhci: Make set_ios_post() return int

2019-05-23 Thread Faiz Abbas
Make set_ios_post() return int to faciliate error handling in platform drivers. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 2 +- drivers/mmc/xenon_sdhci.c | 4 +++- include/sdhci.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/mmc

[U-Boot] [PATCH v4 06/15] arm: dts: k3: Add phy specific properties to SD card node

2019-05-23 Thread Faiz Abbas
With changes in the driver requiring phy related properties, add the same for the SD card node to prevent breaking boot with the driver update. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 3 +++ arch/arm/dts/k3-am654-r5-base-board.dts

[U-Boot] [PATCH v4 12/15] mmc: am654_sdhci: Add a platform specific set_control_reg() callback

2019-05-23 Thread Faiz Abbas
From: Faiz Abbas Add a platform specific set_control_reg() callback to help switch to UHS speed modes. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/am654_sdhci.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/mmc

[U-Boot] [PATCH v4 05/15] mmc: sdhci: Make sdhci_set_clock() non static

2019-05-23 Thread Faiz Abbas
The am654_sdhci driver needs to switch the clock off before disabling its phy dll and needs to re-enable the clock before enabling the phy again. Therefore, make the sdhci_set_clock() function accessible in the am654_sdhci driver. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers

[U-Boot] [PATCH v4 04/15] mmc: sdhci: Add support for sdhci-caps-mask

2019-05-23 Thread Faiz Abbas
Add Support for masking some bits in the capabilities register of a host controller. Also remove the redundant readl() into caps1. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/sdhci.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a

[U-Boot] [PATCH v4 14/15] am65x_evm: Add Support for creating a filesystem GPT partition in eMMC

2019-05-23 Thread Faiz Abbas
Add Support for creating a GPT partition for the filesystem in eMMC. The filesystem is created in the user partition (partition 0). Signed-off-by: Faiz Abbas --- include/configs/am65x_evm.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/configs/am65x_evm.h

[U-Boot] [PATCH v4 09/15] configs: am65x_evm: Enable CONFIG_REGMAP

2019-05-23 Thread Faiz Abbas
Add Support for CONFIG_REGMAP. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- configs/am65x_evm_a53_defconfig | 2 ++ configs/am65x_evm_r5_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index ff41d66e4d

[U-Boot] [PATCH v4 13/15] configs: am65x: Add configs to support environment in eMMC

2019-05-23 Thread Faiz Abbas
Add configs such that U-boot environment is in eMMC by default. Signed-off-by: Faiz Abbas --- configs/am65x_evm_a53_defconfig | 5 ++--- include/configs/am65x_evm.h | 10 ++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/configs/am65x_evm_a53_defconfig b/configs

[U-Boot] [PATCH v4 15/15] configs: am65x_evm_a53: Add Support for creating GPT partitions

2019-05-23 Thread Faiz Abbas
Add Support for creating GPT partitions in U-boot. Signed-off-by: Faiz Abbas --- configs/am65x_evm_a53_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 5fd9aacd68..43d2ccc5ed 100644 --- a

[U-Boot] [PATCH v4 11/15] mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings

2019-05-23 Thread Faiz Abbas
From: Faiz Abbas The HOST_CONTROL2 register is a part of SDHC v3.00 and not just specific to arasan/zynq controllers. Add the same to sdhci.h. Also create a common API to set UHS timings in HOST_CONTROL2. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/sdhci.c | 28

[U-Boot] [PATCH v5 00/15] Add Support for eMMC in Am65x-evm

2019-05-29 Thread Faiz Abbas
Patch 12: Fixed spacing [1] https://www.mail-archive.com/u-boot@lists.denx.de/msg325811.html Faiz Abbas (15): arm64: dts: k3: Sync sdhci0 node from kernel and change driver name mmc: am654_sdhci: Remove quirks regmap: Add API regmap_init_mem_index() mmc: sdhci: Add support for sdhci-caps-ma

[U-Boot] [PATCH v5 04/15] mmc: sdhci: Add support for sdhci-caps-mask

2019-05-29 Thread Faiz Abbas
Add Support for masking some bits in the capabilities register of a host controller. Also remove the redundant readl() into caps1. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/sdhci.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a

[U-Boot] [PATCH v5 01/15] arm64: dts: k3: Sync sdhci0 node from kernel and change driver name

2019-05-29 Thread Faiz Abbas
kernel. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- arch/arm/dts/k3-am65-main.dtsi| 22 arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 27 ++ arch/arm/dts/k3-am654-base-board.dts | 28 +++ arch/arm/dts/k3-am654-r5-base

[U-Boot] [PATCH v5 09/15] configs: am65x_evm: Enable CONFIG_REGMAP

2019-05-29 Thread Faiz Abbas
Add Support for CONFIG_REGMAP. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- configs/am65x_evm_a53_defconfig | 2 ++ configs/am65x_evm_r5_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index ff41d66e4d

[U-Boot] [PATCH v5 02/15] mmc: am654_sdhci: Remove quirks

2019-05-29 Thread Faiz Abbas
The host controller works perfectly well without having to add any quirks. Remove them. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/am654_sdhci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index 2d08fe3347

[U-Boot] [PATCH v5 03/15] regmap: Add API regmap_init_mem_index()

2019-05-29 Thread Faiz Abbas
In device nodes with more than one entry in the reg property, it is sometimes useful to regmap only of the entries. Add an API regmap_init_mem_index() to facilitate this. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/core/regmap.c | 42

[U-Boot] [PATCH v5 15/15] configs: am65x_evm_a53: Add Support for creating GPT partitions

2019-05-29 Thread Faiz Abbas
Add Support for creating GPT partitions in U-boot. Signed-off-by: Faiz Abbas --- configs/am65x_evm_a53_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 5fd9aacd68..43d2ccc5ed 100644 --- a

[U-Boot] [PATCH v5 11/15] mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings

2019-05-29 Thread Faiz Abbas
The HOST_CONTROL2 register is a part of SDHC v3.00 and not just specific to arasan/zynq controllers. Add the same to sdhci.h. Also create a common API to set UHS timings in HOST_CONTROL2. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/sdhci.c | 28

[U-Boot] [PATCH v5 08/15] mmc: am654_sdhci: Add Support for PHY

2019-05-29 Thread Faiz Abbas
Add support in the driver for handling phy specific registers. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/Kconfig | 1 + drivers/mmc/am654_sdhci.c | 229 +- 2 files changed, 224 insertions(+), 6 deletions(-) diff --git a/drivers

[U-Boot] [PATCH v5 13/15] configs: am65x: Add configs to support environment in eMMC

2019-05-29 Thread Faiz Abbas
Add configs such that U-boot environment is in eMMC by default. Signed-off-by: Faiz Abbas --- configs/am65x_evm_a53_defconfig | 5 ++--- include/configs/am65x_evm.h | 10 ++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/configs/am65x_evm_a53_defconfig b/configs

[U-Boot] [PATCH v5 07/15] mmc: sdhci: Make set_ios_post() return int

2019-05-29 Thread Faiz Abbas
Make set_ios_post() return int to faciliate error handling in platform drivers. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 2 +- drivers/mmc/xenon_sdhci.c | 4 +++- include/sdhci.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/mmc

[U-Boot] [PATCH v5 10/15] mmc: am654_sdhci: Use f_max in mmc_config

2019-05-29 Thread Faiz Abbas
Use f_max provided in mmc_config and remove it from the platform specific data. Signed-off-by: Faiz Abbas --- drivers/mmc/am654_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index 5639e1818b..8e07baa74f 100644

[U-Boot] [PATCH v5 14/15] am65x_evm: Add Support for creating a filesystem GPT partition in eMMC

2019-05-29 Thread Faiz Abbas
Add Support for creating a GPT partition for the filesystem in eMMC. The filesystem is created in the user partition (partition 0). Signed-off-by: Faiz Abbas --- include/configs/am65x_evm.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/configs/am65x_evm.h

[U-Boot] [PATCH v5 06/15] arm: dts: k3: Add phy specific properties to SD card node

2019-05-29 Thread Faiz Abbas
With changes in the driver requiring phy related properties, add the same for the SD card node to prevent breaking boot with the driver update. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 3 +++ arch/arm/dts/k3-am654-r5-base-board.dts

[U-Boot] [PATCH v5 12/15] mmc: am654_sdhci: Add a platform specific set_control_reg() callback

2019-05-29 Thread Faiz Abbas
Add a platform specific set_control_reg() callback to help switch to UHS speed modes. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/am654_sdhci.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc

[U-Boot] [PATCH v5 05/15] mmc: sdhci: Make sdhci_set_clock() non static

2019-05-29 Thread Faiz Abbas
The am654_sdhci driver needs to switch the clock off before disabling its phy dll and needs to re-enable the clock before enabling the phy again. Therefore, make the sdhci_set_clock() function accessible in the am654_sdhci driver. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers

Re: [U-Boot] [PATCH v4 06/15] arm: dts: k3: Add phy specific properties to SD card node

2019-05-29 Thread Faiz Abbas
Hi Andreas, On 24/05/19 12:27 AM, Andreas Dannenberg wrote: > Hi Faiz, > > On Thu, May 23, 2019 at 12:37:43PM -0500, Faiz Abbas wrote: >> With changes in the driver requiring phy related properties, >> add the same for the SD card node to prevent breaking boot with

Re: [U-Boot] [PATCH] mmd: sdhci: fix non GPIO card detect

2019-07-23 Thread Faiz Abbas
Hi, On 23/07/19 1:30 PM, Peng Fan wrote: > + Faiz > >> Subject: [PATCH] mmd: sdhci: fix non GPIO card detect >> >> Some SD cards do not assert the SDHCI_CARD_PRESENT bit. Only the >> SDHCI_CARD_DETECT_PIN_LEVEL is enabled. Consider that enough for card >> detect indication. >> >> This fixes SD ca

Re: [U-Boot] [PATCH] mmd: sdhci: fix non GPIO card detect

2019-07-23 Thread Faiz Abbas
Hi Baruch, On 23/07/19 2:39 PM, Baruch Siach wrote: > Hi Faiz, > > On Tue, Jul 23, 2019 at 02:27:28PM +0530, Faiz Abbas wrote: >> On 23/07/19 1:30 PM, Peng Fan wrote: >>> + Faiz >>> >>>> Subject: [PATCH] mmd: sdhci: fix non GPIO card det

Re: [U-Boot] [PATCH] mmd: sdhci: fix non GPIO card detect

2019-07-23 Thread Faiz Abbas
Hi Baruch, On 23/07/19 4:16 PM, Baruch Siach wrote: > Hi Faiz, > > On Tue, Jul 23, 2019 at 03:35:31PM +0530, Faiz Abbas wrote: >> On 23/07/19 2:39 PM, Baruch Siach wrote: >>> On Tue, Jul 23, 2019 at 02:27:28PM +0530, Faiz Abbas wrote: >>>> On 23/07/19 1

Re: [U-Boot] [BISECTED] [BUG]: MMC initialization hang at Zynq Z-turn board

2019-07-31 Thread Faiz Abbas
Hi, On 01/08/19 7:51 AM, Peng Fan wrote: >> Subject: [BISECTED] [BUG]: MMC initialization hang at Zynq Z-turn board >> >> Hello, >> >> I am running Zynq Z-turn board and I face the following issue with MMC >> initialization in SPL. >> With u-boot master, I see the message similar to the following:

Re: [U-Boot] [BISECTED] [BUG]: MMC initialization hang at Zynq Z-turn board

2019-08-01 Thread Faiz Abbas
Hi Matwey, On 01/08/19 1:03 PM, Matwey V. Kornilov wrote: > Hi all, > > чт, 1 авг. 2019 г. в 09:48, Faiz Abbas : >> >> Hi, >> >> On 01/08/19 7:51 AM, Peng Fan wrote: >>>> Subject: [BISECTED] [BUG]: MMC initialization hang at Zynq Z-turn board >&g

[U-Boot] [PATCH] mmc: Select SPL_HS200_SUPPORT if SPL_HS400_SUPPORT is selected

2019-08-01 Thread Faiz Abbas
Select SPL_HS200_SUPPORT if SPL_HS400_SUPPORT is selected as is being done for the U-boot case. Signed-off-by: Faiz Abbas --- drivers/mmc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 4cdae41b59..66097ce0e7 100644 --- a/drivers/mmc

Re: [U-Boot] [PATCH v3 05/13] regmap: Add support for polling on a register

2019-02-12 Thread Faiz Abbas
Hi Tom, On 12/02/19 2:28 PM, Faiz Abbas wrote: > Add an API to continuously read a register until a condition is > satisfied or a timeout occurs. > > Signed-off-by: Faiz Abbas > Reviewed-by: Tom Rini > --- > include/regmap.h | 34 ++

[U-Boot] [PATCH] configs: dra7xx_evm: Remove ENV_IS_IN_FAT and SPL_ENV_*

2019-02-19 Thread Faiz Abbas
With U-boot supporting environment in multiple places, enable only ENV_IS_IN_EMMC in U-boot. Signed-off-by: Faiz Abbas --- configs/dra7xx_evm_defconfig| 2 ++ configs/dra7xx_hs_evm_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/dra7xx_evm_defconfig b/configs

Re: [U-Boot] [PATCH] configs: dra7xx_evm: Remove ENV_IS_IN_FAT and SPL_ENV_*

2019-02-20 Thread Faiz Abbas
Hi Tom, On 19/02/19 8:45 PM, Tom Rini wrote: > On Tue, Feb 19, 2019 at 08:25:29PM +0530, Faiz Abbas wrote: > >> With U-boot supporting environment in multiple places, enable only >> ENV_IS_IN_EMMC in U-boot. >> >> Signed-off-by: Faiz Abbas > > Since we had

[U-Boot] [PATCH 1/4] board: ti: dra71: Add pinmux settings for NAND on DRA71x EVM

2019-02-20 Thread Faiz Abbas
should be on and pin 1 should be off. Any other combination will assume NAND shouldn't be enabled. Signed-off-by: Franklin S Cooper Jr Signed-off-by: Faiz Abbas --- board/ti/dra7xx/mux_data.h | 60 -- 1 file changed, 44 insertions(+), 16 deletions(-) diff

[U-Boot] [PATCH 0/4] Add Support for NAND in dra71x-evm

2019-02-20 Thread Faiz Abbas
THe following patches add support for NAND and booting from NAND in dra71x-evm. Faiz Abbas (2): configs: dra71x-evm: Add Support for NAND configs: ti_omap5_common: Add NAND environment settings Franklin S Cooper Jr (2): board: ti: dra71: Add pinmux settings for NAND on DRA71x EVM arm

[U-Boot] [PATCH 2/4] arm: dra7: Allow NAND to be enabled on DRA71x EVM.

2019-02-20 Thread Faiz Abbas
From: Franklin S Cooper Jr If SW 8 pins 0 and 1 indicate that NAND should be enabled then the pins pinmux must be reconfigured for NAND mode. Therefore, enable NAND by reconfiguring the pinmux. Signed-off-by: Franklin S Cooper Jr Signed-off-by: Faiz Abbas --- board/ti/dra7xx/evm.c | 56

[U-Boot] [PATCH 3/4] configs: dra71x-evm: Add Support for NAND

2019-02-20 Thread Faiz Abbas
Add NAND support to dra71x-evm defconfig Signed-off-by: Faiz Abbas --- configs/dra7xx_evm_defconfig| 3 +++ configs/dra7xx_hs_evm_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig index 07a7973ea2..7b8517a06d 100644

[U-Boot] [PATCH 4/4] configs: ti_omap5_common: Add NAND environment settings

2019-02-20 Thread Faiz Abbas
Now that NAND is supported on DRA71x include various NAND environment settings Signed-off-by: Faiz Abbas --- configs/dra7xx_evm_defconfig | 4 +++- configs/dra7xx_hs_evm_defconfig | 4 +++- include/configs/dra7xx_evm.h | 2 +- include/configs/ti_omap5_common.h | 20

Re: [U-Boot] [PATCH] configs: dra7xx_evm: Remove ENV_IS_IN_FAT and SPL_ENV_*

2019-02-22 Thread Faiz Abbas
Tom, On 22/02/19 5:00 AM, Tom Rini wrote: > On Wed, Feb 20, 2019 at 01:33:50PM +0530, Faiz Abbas wrote: >> Hi Tom, >> >> On 19/02/19 8:45 PM, Tom Rini wrote: >>> On Tue, Feb 19, 2019 at 08:25:29PM +0530, Faiz Abbas wrote: >>> >>>> With U-boot sup

Re: [U-Boot] [PATCH] configs: dra7xx_evm: Remove ENV_IS_IN_FAT and SPL_ENV_*

2019-02-22 Thread Faiz Abbas
Lokesh, On 22/02/19 5:33 PM, Lokesh Vutla wrote: > > > On 22/02/19 5:21 PM, Faiz Abbas wrote: >> Tom, >> >> On 22/02/19 5:00 AM, Tom Rini wrote: >>> On Wed, Feb 20, 2019 at 01:33:50PM +0530, Faiz Abbas wrote: >>>> Hi Tom, >>>> >>

Re: [U-Boot] [PATCH] configs: dra7xx_evm: Remove ENV_IS_IN_FAT and SPL_ENV_*

2019-02-25 Thread Faiz Abbas
Hi Lokesh, On 22/02/19 6:01 PM, Lokesh Vutla wrote: > > > On 22/02/19 5:46 PM, Faiz Abbas wrote: >> Lokesh, >> >> On 22/02/19 5:33 PM, Lokesh Vutla wrote: >>> >>> >>> On 22/02/19 5:21 PM, Faiz Abbas wrote: >>>> Tom, >>>&

[U-Boot] [PATCH v2] configs: dra7xx_evm: Remove ENV_IS_IN_FAT

2019-02-26 Thread Faiz Abbas
With U-boot supporting environment in multiple places, enable only ENV_IS_IN_EMMC Signed-off-by: Faiz Abbas --- configs/dra7xx_evm_defconfig| 1 + configs/dra7xx_hs_evm_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/dra7xx_evm_defconfig b/configs

Re: [U-Boot] [PATCH 4/4] configs: ti_omap5_common: Add NAND environment settings

2019-02-26 Thread Faiz Abbas
Hi Tom, On 22/02/19 4:52 AM, Tom Rini wrote: > On Wed, Feb 20, 2019 at 03:34:53PM +0530, Faiz Abbas wrote: > >> Now that NAND is supported on DRA71x include various NAND environment >> settings >> >> Signed-off-by: Faiz Abbas > [snip] >> +

[U-Boot] [PATCH v2 0/4] Add Support for NAND in dra71x-evm

2019-02-26 Thread Faiz Abbas
The following patches add support for NAND and booting from NAND in dra71x-evm. v2: Patch4: Moved NANDARGS to its own file in include/environment/ti Faiz Abbas (2): configs: dra71x-evm: Add Support for NAND configs: ti_omap5_common: Add NAND environment settings Franklin S Cooper Jr (2

[U-Boot] [PATCH v2 1/4] board: ti: dra71: Add pinmux settings for NAND on DRA71x EVM

2019-02-26 Thread Faiz Abbas
should be on and pin 1 should be off. Any other combination will assume NAND shouldn't be enabled. Signed-off-by: Franklin S Cooper Jr Signed-off-by: Faiz Abbas --- board/ti/dra7xx/mux_data.h | 60 -- 1 file changed, 44 insertions(+), 16 deletions(-) diff

[U-Boot] [PATCH v2 2/4] arm: dra7: Allow NAND to be enabled on DRA71x EVM.

2019-02-26 Thread Faiz Abbas
From: Franklin S Cooper Jr If SW 8 pins 0 and 1 indicate that NAND should be enabled then the pins pinmux must be reconfigured for NAND mode. Therefore, enable NAND by reconfiguring the pinmux. Signed-off-by: Franklin S Cooper Jr Signed-off-by: Faiz Abbas --- board/ti/dra7xx/evm.c | 56

[U-Boot] [PATCH v2 3/4] configs: dra71x-evm: Add Support for NAND

2019-02-26 Thread Faiz Abbas
Add NAND support to dra71x-evm defconfig Signed-off-by: Faiz Abbas --- configs/dra7xx_evm_defconfig| 3 +++ configs/dra7xx_hs_evm_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig index 3f25a2ec28..d71d989c4c 100644

<    1   2   3   4   5   6   >