[PATCH v3] arm64: defconfig: Enable GPIO and I2C configs for TI's J721e platform

2020-11-03 Thread Faiz Abbas
31618625 1e27641 vmlinux After: text data bssdec hex filename 20228755 10880422 524628 31633805 1e2b18d vmlinux delta: 15180 (dec) Acked-by: Tero Kristo Signed-off-by: Faiz Abbas --- Changes in v3: Added changes to vmlinux size in commit message Changes

[PATCH 1/3] arm64: dts: ti: k3-j7200-main: Add gpio nodes in main domain

2020-11-02 Thread Faiz Abbas
the corresponding pin by selecting it in the pad mux configuration registers. This group pins out 69 lines (5 banks). Add DT modes for each module instance in the main domain. Signed-off-by: Faiz Abbas --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 68 +++ 1 file changed, 68 insertions

[PATCH 0/3] Add gpio support for TI's J7200 platform

2020-11-02 Thread Faiz Abbas
-kernel/20201001190541.6364-1-faiz_ab...@ti.com/ Series adding configs to arm64 defconfig is here: https://lore.kernel.org/linux-arm-kernel/20201102183005.14174-1-faiz_ab...@ti.com/ Faiz Abbas (3): arm64: dts: ti: k3-j7200-main: Add gpio nodes in main domain arm64: dts: ti: k3-j7200: Add gpio

[PATCH 2/3] arm64: dts: ti: k3-j7200: Add gpio nodes in wakeup domain

2020-11-02 Thread Faiz Abbas
Similar to the gpio groups in main domain, there is one gpio group in wakeup domain with 2 mdoules instances in it. The gpio group pins out 73 pins (5 banks). Add DT nodes for these 2 gpio module instances. Signed-off-by: Faiz Abbas --- .../boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 32

[PATCH 3/3] arm64: dts: ti: k3-j7200-common-proc-board: Disable unused gpio modules

2020-11-02 Thread Faiz Abbas
and disable the rest of the nodes. Signed-off-by: Faiz Abbas --- .../boot/dts/ti/k3-j7200-common-proc-board.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts index

[PATCH v2] arm64: defconfig: Enable GPIO and I2C configs for TI's J721e platform

2020-11-02 Thread Faiz Abbas
Add configs to help enable regulators that supply power to the SD card on TI's J721e platform. These regulators are controlled by either SoC gpios or gpios over i2c expander. Acked-by: Tero Kristo Signed-off-by: Faiz Abbas --- Changes in v2: Squashed changes into a single patch v1: https

[PATCH] mmc: sdhci_am654: Fix module autoload

2020-10-08 Thread Faiz Abbas
Add a MODULE_DEVICE_TABLE() entry so that the driver is autoloaded when built as a module. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c index 2bce962bf7e4

Re: [PATCH 0/2] Enable GPIO and I2C configs for TI's J721e platform

2020-10-08 Thread Faiz Abbas
Tero, On 08/10/20 2:49 pm, Tero Kristo wrote: > On 08/10/2020 11:59, Faiz Abbas wrote: >> Tero, >> >> On 06/10/20 6:40 pm, Tero Kristo wrote: >>> On 06/10/2020 16:03, Faiz Abbas wrote: >>>> Hi Tero, >>>> >>>> On 06/10/20 5:21

Re: [PATCH 0/2] Enable GPIO and I2C configs for TI's J721e platform

2020-10-08 Thread Faiz Abbas
Tero, On 06/10/20 6:40 pm, Tero Kristo wrote: > On 06/10/2020 16:03, Faiz Abbas wrote: >> Hi Tero, >> >> On 06/10/20 5:21 pm, Tero Kristo wrote: >>> On 02/10/2020 19:45, Faiz Abbas wrote: >>>> The following patches enable configs in the arm64 defconfig to

Re: [PATCH 0/2] Enable GPIO and I2C configs for TI's J721e platform

2020-10-06 Thread Faiz Abbas
Hi Tero, On 06/10/20 5:21 pm, Tero Kristo wrote: > On 02/10/2020 19:45, Faiz Abbas wrote: >> The following patches enable configs in the arm64 defconfig to support >> GPIO and I2C support on TI's J721e platform. >> >> Faiz Abbas (2): >>    arm64: defconfig: E

Re: [PATCH 0/2] Enable GPIO and I2C configs for TI's J721e platform

2020-10-06 Thread Faiz Abbas
Nishanth, On 02/10/20 10:32 pm, Nishanth Menon wrote: > On 22:15-20201002, Faiz Abbas wrote: >> The following patches enable configs in the arm64 defconfig to support >> GPIO and I2C support on TI's J721e platform. >> >> Faiz Abbas (2): >> arm64: defconfig:

[PATCH 0/2] Enable GPIO and I2C configs for TI's J721e platform

2020-10-02 Thread Faiz Abbas
The following patches enable configs in the arm64 defconfig to support GPIO and I2C support on TI's J721e platform. Faiz Abbas (2): arm64: defconfig: Enable OMAP I2C driver arm64: defconfig: Enable DAVINCI_GPIO driver arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions

[PATCH 2/2] arm64: defconfig: Enable DAVINCI_GPIO driver

2020-10-02 Thread Faiz Abbas
Enable support for devices compatible with TI's davinci gpio controllers. Signed-off-by: Faiz Abbas --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 0d5b81264fa1..c4b657644e33 100644 --- a/arch

[PATCH 1/2] arm64: defconfig: Enable OMAP I2C driver

2020-10-02 Thread Faiz Abbas
Enable support for devices compatible with TI's OMAP I2C controllers. Signed-off-by: Faiz Abbas --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 55f9c35568bf..0d5b81264fa1 100644 --- a/arch

Re: [PATCH 0/8] Add support for UHS modes in TI's J721e and J7200 boards

2020-10-02 Thread Faiz Abbas
Hi Nishanth, On 02/10/20 6:19 pm, Nishanth Menon wrote: > On 10:14-20201002, Faiz Abbas wrote: >> Hi Nishanth, >> >> On 02/10/20 12:43 am, Nishanth Menon wrote: >>> On 00:35-20201002, Faiz Abbas wrote: >>>> The following patches add support for UHS

Re: [PATCH 0/8] Add support for UHS modes in TI's J721e and J7200 boards

2020-10-01 Thread Faiz Abbas
Hi Nishanth, On 02/10/20 12:43 am, Nishanth Menon wrote: > On 00:35-20201002, Faiz Abbas wrote: >> The following patches add support for UHS modes for TI's j721e and j7200 >> boards. >> >> Patches 1-3 add support for gpios to j7200-evm >> >> Patches

[PATCH 0/8] Add support for UHS modes in TI's J721e and J7200 boards

2020-10-01 Thread Faiz Abbas
to the arm64 defconfig. This series depends on driver patches adding tuning support here: https://lore.kernel.org/linux-arm-kernel/20200923105206.7988-1-faiz_ab...@ti.com/ Faiz Abbas (8): arm64: dts: ti: k3-j7200-main: Add gpio nodes in main domain arm64: dts: ti: k3-j7200: Add gpio nodes

[PATCH 5/8] arm64: dts: ti: k3-j721e-common-proc-board: Add support SD card UHS modes

2020-10-01 Thread Faiz Abbas
Add support for UHS modes for the SD card connected at sdhci1. This involves adding regulators for voltage switching and power cycling the SD card and removing the no-1-8-v property. Signed-off-by: Faiz Abbas --- .../dts/ti/k3-j721e-common-proc-board.dts | 35 ++- arch/arm64

[PATCH 4/8] arm64: dts: ti: k3-j721e-main: Add output tap delay values

2020-10-01 Thread Faiz Abbas
Add output tap delay values as given in the latest Data Manual[1]. [1] https://www.ti.com/lit/gpn/tda4vm Signed-off-by: Faiz Abbas --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3

[PATCH 6/8] arm64: dts: ti: k3-j7200-common-proc-board: Add support SD card UHS modes

2020-10-01 Thread Faiz Abbas
Add support for UHS modes for the SD card connected at sdhci1. This involves adding regulators for voltage switching and power cycling the SD card and removing the no-1-8-v property. Signed-off-by: Faiz Abbas --- .../dts/ti/k3-j7200-common-proc-board.dts | 32 +++ arch/arm64

[PATCH 1/8] arm64: dts: ti: k3-j7200-main: Add gpio nodes in main domain

2020-10-01 Thread Faiz Abbas
the corresponding pin by selecting it in the pad mux configuration registers. This group pins out 69 lines (5 banks). Add DT modes for each module instance in the main domain. Signed-off-by: Faiz Abbas --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 68 +++ 1 file changed, 68 insertions

[PATCH 2/8] arm64: dts: ti: k3-j7200: Add gpio nodes in wakeup domain

2020-10-01 Thread Faiz Abbas
Similar to the gpio groups in main domain, there is one gpio group in wakeup domain with 2 mdoules instances in it. The gpio group pins out 73 pins (5 banks). Add DT nodes for these 2 gpio module instances. Signed-off-by: Faiz Abbas --- .../boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 32

[PATCH 3/8] arm64: dts: ti: k3-j7200-common-proc-board: Disable unused gpio modules

2020-10-01 Thread Faiz Abbas
and disable the rest of the nodes. Signed-off-by: Faiz Abbas --- .../boot/dts/ti/k3-j7200-common-proc-board.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts index

[PATCH v2 1/2] arm64: dts: ti: k3-j7200-main: Add support for MMC/SD controller nodes

2020-09-24 Thread Faiz Abbas
Add support for MMC/SD controller nodes present on TI's j7200 SoCs. There are two nodes: 1. sdhci0 (8 bit bus width, 200 MHz, HS200, 200 MBps) 2. sdhci1 (4 bit bus width, 50 MHz, HS, 25 MBps) Signed-off-by: Faiz Abbas --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 37

[PATCH v2 2/2] arm64: dts: ti: k3-j7200-common-proc-board: Add support for eMMC and SD card

2020-09-24 Thread Faiz Abbas
Add support for the eMMC and SD card connected on the common processor board sdhci0 is connected to an eMMC while sdhci1 is connected to the micro SD slot. Signed-off-by: Faiz Abbas --- .../dts/ti/k3-j7200-common-proc-board.dts | 28 +++ 1 file changed, 28 insertions

[PATCH v2 0/2] Add support for MMC/SD on j7200-evm

2020-09-24 Thread Faiz Abbas
The following patches add dt support for MMC/SD on TI's j7200-evm. Currently, eMMC support upto HS200 speed and SD card supports upto high speed speed mode. v2: Fixed node names to use mmc@* format Fixed reg address format to align with others in the file Faiz Abbas (2): arm64: dts: ti: k3

Re: [PATCH v2 0/2] J7200: Add I2C support

2020-09-24 Thread Faiz Abbas
n-proc-board: Add I2C IO expanders > > .../dts/ti/k3-j7200-common-proc-board.dts | 49 > arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 77 +++ > .../boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 33 > 3 files changed, 159 insertions(+) > Reviewed-by: Faiz Abbas Thanks, Faiz

[PATCH 6/6] mmc: sdhci_am654: Enable tuning for SDR50

2020-09-23 Thread Faiz Abbas
According to the SW tuning App note[1], tuning is required for all UHS speed modes. Tuning for SDR50 is not enabled in Capabilities by default so enable it from the CTL_CFG registers. [1] https://www.ti.com/lit/pdf/spract9 Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 6

[PATCH 5/6] mmc: sdhci_am654: Add support for software tuning

2020-09-23 Thread Faiz Abbas
for each of the values. Typically, the range will have a small contiguous failing window. Considering the tuning range as a circular buffer, the algorithm then sets a final tuned value directly opposite to the failing window. [1] https://www.ti.com/lit/pdf/spract9 Signed-off-by: Faiz Abbas

[PATCH 3/6] mmc: sdhci_am654: Fix hard coded otap delay array size

2020-09-23 Thread Faiz Abbas
Change hard coded array size value to depend on struct timing_data array size. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host

[PATCH 0/6] Add UHS mode support for TI's AM65x, J721e, J7200 boards

2020-09-23 Thread Faiz Abbas
-common-proc-board - DDR50, HS200 j7200-common-proc-board - DDR50, HS200 These patches mainly add support for the software tuning algorithm[1] needed for higher speed modes [1] [1] https://www.ti.com/lit/pdf/spract9 Faiz Abbas (6): dt-bindings: mmc: sdhci-am654: Convert sdhci-am654 controller

[PATCH 1/6] dt-bindings: mmc: sdhci-am654: Convert sdhci-am654 controller documentation to json schema

2020-09-23 Thread Faiz Abbas
Convert sdhci-am654 documentation to yaml format. The new file sdhci-am654.yaml will inherit from mmc-controller.yaml. Signed-off-by: Faiz Abbas --- .../devicetree/bindings/mmc/sdhci-am654.txt | 65 --- .../devicetree/bindings/mmc/sdhci-am654.yaml | 175 ++ 2 files

[PATCH 4/6] mmc: sdhci_am654: Add support for input tap delay

2020-09-23 Thread Faiz Abbas
mode. With this addition, make sure that DLL is always switched off at the beginning of the set_clock() call to simplify configuration. This also removes the need for the dll_on member in struct sdhci_am654_data. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 114

[PATCH 2/6] dt-bindings: mmc: sdhci-am654: Add documentation for input tap delay

2020-09-23 Thread Faiz Abbas
Add documentation for input tap delay bindings. Signed-off-by: Faiz Abbas --- .../devicetree/bindings/mmc/sdhci-am654.yaml | 43 +++ 1 file changed, 43 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-am654.yaml b/Documentation/devicetree/bindings/mmc

[PATCH 0/2] Add support for MMC/SD on j7200-evm

2020-09-07 Thread Faiz Abbas
://lore.kernel.org/patchwork/cover/1282152/ Vignesh's Hyperflash series https://lore.kernel.org/patchwork/cover/1285326/ Faiz Abbas (2): arm64: dts: ti: k3-j7200-main: Add support for MMC/SD controller nodes arm64: dts: ti: k3-j7200-common-proc-board: Add support for eMMC and SD card .../dts

[PATCH 1/2] arm64: dts: ti: k3-j7200-main: Add support for MMC/SD controller nodes

2020-09-07 Thread Faiz Abbas
Add support for MMC/SD controller nodes present on TI's j7200 SoCs. There are two nodes: 1. sdhci0 (8 bit bus width, 200 MHz, HS200, 200 MBps) 2. sdhci1 (4 bit bus width, 50 MHz, HS, 25 MBps) Signed-off-by: Faiz Abbas --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 37

[PATCH 2/2] arm64: dts: ti: k3-j7200-common-proc-board: Add support for eMMC and SD card

2020-09-07 Thread Faiz Abbas
Add support for the eMMC and SD card connected on the common processor board sdhci0 is connected to an eMMC while sdhci1 is connected to the micro SD slot. Signed-off-by: Faiz Abbas --- .../dts/ti/k3-j7200-common-proc-board.dts | 28 +++ 1 file changed, 28 insertions

[PATCH v2] mmc: sdhci_am654: Add workaround for card detect debounce timer

2020-08-25 Thread Faiz Abbas
to be about 1 second in am654x and j721e. Write-and-read-back in a loop on SDHCI_POWER_ON for a maximum of 1.5 seconds to make sure that the controller actually powers on. Signed-off-by: Faiz Abbas --- v2: Use read_poll_timeout() standard macro drivers/mmc/host/sdhci_am654.c | 24

[PATCH v2] can: m_can: Set device to software init mode before closing

2020-08-24 Thread Faiz Abbas
. Signed-off-by: Faiz Abbas --- changes since v1: Rebased to latest mainline drivers/net/can/m_can/m_can.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index 02c5795b7393..d0c458f7f6e1 100644 --- a/drivers/net/can/m_can

Re: [PATCH] dt-bindings: mmc: sdhci-am654: Document bindings for the host controllers on TI's J7200 devices

2020-08-20 Thread Faiz Abbas
Hi Ulf, On 18/08/20 2:47 am, Rob Herring wrote: > On Sun, 02 Aug 2020 12:31:14 +0530, Faiz Abbas wrote: >> Add binding documentation for mmc host controllers present on >> TI's J7200 SOC >> >> Signed-off-by: Faiz Abbas >> --- >> Documentation/devi

Re: [PATCH] mmc: sdhci_am654: Add workaround for card detect debounce timer

2020-08-05 Thread Faiz Abbas

Re: [PATCH] mmc: sdhci_am654: Add workaround for card detect debounce timer

2020-08-05 Thread Faiz Abbas
Hi Adrian, On 05/08/20 1:44 pm, Adrian Hunter wrote: > On 30/07/20 2:41 am, Faiz Abbas wrote: >> There is a one time delay because of a card detect debounce timer in the >> controller IP. This timer runs as soon as power is applied to the module >> regardless of whet

[PATCH] dt-bindings: mmc: sdhci-am654: Document bindings for the host controllers on TI's J7200 devices

2020-08-02 Thread Faiz Abbas
Add binding documentation for mmc host controllers present on TI's J7200 SOC Signed-off-by: Faiz Abbas --- Documentation/devicetree/bindings/mmc/sdhci-am654.txt | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-am654.txt b

[PATCH] mmc: sdhci_am654: Add workaround for card detect debounce timer

2020-07-29 Thread Faiz Abbas
to be about 1 second in am654x and j721e. Write-and-read-back in a loop on SDHCI_POWER_ON for a maximum of 1.5 seconds to make sure that the controller actually powers on. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 21 + 1 file changed, 21 insertions(+) diff

Re: [PATCH] can: m_can: Set device to software init mode before closing

2020-07-28 Thread Faiz Abbas
Hi, On 16/07/20 9:53 am, Faiz Abbas wrote: > There might be some requests pending in the buffer when the > interface close sequence occurs. In some devices, these > pending requests might lead to the module not shutting down > properly when m_can_clk_stop() is called. > &g

Re: [PATCH 7/7] arm64: defconfig: Enable AM654x SDHCI controller

2020-07-17 Thread Faiz Abbas
Tero, On 17/07/20 6:39 pm, Arnd Bergmann wrote: > On Fri, Jul 17, 2020 at 1:20 PM Tero Kristo wrote: >> On 17/07/2020 11:38, Faiz Abbas wrote: >>> On 16/07/20 11:58 pm, Arnd Bergmann wrote: >>>> On Thu, Jul 16, 2020 at 3:25 PM Sekhar Nori wrote: >>&g

Re: [PATCH 7/7] arm64: defconfig: Enable AM654x SDHCI controller

2020-07-17 Thread Faiz Abbas
Hi, On 16/07/20 11:58 pm, Arnd Bergmann wrote: > On Thu, Jul 16, 2020 at 3:25 PM Sekhar Nori wrote: >> >> On 7/16/20 5:49 PM, Faiz Abbas wrote: >>> Hi, >>> >>> On 19/06/20 6:28 pm, Faiz Abbas wrote: >>>> Enable CONFIG_SDHCI_AM654 to Support

Re: [PATCH 7/7] arm64: defconfig: Enable AM654x SDHCI controller

2020-07-16 Thread Faiz Abbas
Hi, On 19/06/20 6:28 pm, Faiz Abbas wrote: > Enable CONFIG_SDHCI_AM654 to Support AM65x sdhci controller. > > Signed-off-by: Faiz Abbas > --- > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/configs/defconfig b/arch

[PATCH] can: m_can: Set device to software init mode before closing

2020-07-15 Thread Faiz Abbas
. Signed-off-by: Faiz Abbas --- drivers/net/can/m_can/m_can.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index 02c5795b7393..d0c458f7f6e1 100644 --- a/drivers/net/can/m_can/m_can.c +++ b/drivers/net/can/m_can/m_can.c

[PATCH 2/2] arm64: dts: ti: k3-am654-base-board: Add support for SD card

2020-07-10 Thread Faiz Abbas
Signed-off-by: Faiz Abbas --- .../arm64/boot/dts/ti/k3-am654-base-board.dts | 24 +++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts index 9fc7898a6a3b..84aeb4761ac0 100644 --- a/arch

[PATCH 1/2] arm64: dts: ti: k3-am65-main: Add support for sdhci1

2020-07-10 Thread Faiz Abbas
Add support for the 2nd SDHCI controller on TI's AM654x SoCs. Although it supports upto SDR104 (100 MBps @ 200 MHz) speed mode, only enable support upto High Speed (25 MBps @ 50 MHz) for now. Signed-off-by: Faiz Abbas --- arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 24 1

[PATCH 0/2] Add support for SD card on on AM65x-evm

2020-07-10 Thread Faiz Abbas
depend on kernel patches for supporting silicon revision 2.0 posted here: https://patchwork.kernel.org/project/linux-mmc/list/?series=305565 The dependencies have been picked up and are in linux-next Faiz Abbas (2): arm64: dts: ti: k3-am65-main: Add support for sdhci1 arm64: dts: ti: k3-am654

Re: [PATCH 0/7] Add support for SD card in AM654x-evm

2020-07-03 Thread Faiz Abbas
Hi, On 19/06/20 6:27 pm, Faiz Abbas wrote: > The following patches add driver support for SD card on the > am654x-evm. It only enables high speed mode with UHS mode > support coming in a future series. > > DTS support will be added in another series as well. > > Faiz Abbas

[PATCH 1/7] dt-bindings: mmc: sdhci-am654: Add ti,clkbuf-sel binding

2020-06-19 Thread Faiz Abbas
Add documentation for the clock buffer select phy property in the am654x and j721e 4 bit IP Signed-off-by: Faiz Abbas --- Documentation/devicetree/bindings/mmc/sdhci-am654.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-am654.txt b

[PATCH 6/7] mmc: sdhci_am654: Add support for clkbuf_sel property

2020-06-19 Thread Faiz Abbas
Add support for writing new clkbuf_sel property for the J721e 4 bit IP. Signed-off-by: Faiz Abbas Signed-off-by: Sekhar Nori --- drivers/mmc/host/sdhci_am654.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c index

[PATCH 4/7] mmc: sdhci_am654: Fix conditions for enabling dll

2020-06-19 Thread Faiz Abbas
The clock > CLOCK_TOO_SLOW_HZ condition gating phy configuration is only required because dll should not be enabled at too low a clock frequency or too low timing. Make sure that this condition only gates dll enablement. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c |

[PATCH 2/7] mmc: sdhci_am654: Add flag for PHY calibration

2020-06-19 Thread Faiz Abbas
Not all controllers need calibration for the PHY DLL. Add a DLL_CALIB flag to indicate the same. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654

[PATCH 0/7] Add support for SD card in AM654x-evm

2020-06-19 Thread Faiz Abbas
The following patches add driver support for SD card on the am654x-evm. It only enables high speed mode with UHS mode support coming in a future series. DTS support will be added in another series as well. Faiz Abbas (7): dt-bindings: mmc: sdhci-am654: Add ti,clkbuf-sel binding mmc

[PATCH 5/7] mmc: sdhci_am654: Update delay chain configuration

2020-06-19 Thread Faiz Abbas
For speed modes where DLL is not enabled write to TXDLYCLK to enable transmitter delay chain mode. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host

[PATCH 3/7] mmc: sdhci_am654: Add Support for SR2.0

2020-06-19 Thread Faiz Abbas
Add Support for AM65x PG2.0. Use the SoC bus framework to fixup the driver data and skip do DLL calibration if the revision is 1.0 Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/mmc

[PATCH 7/7] arm64: defconfig: Enable AM654x SDHCI controller

2020-06-19 Thread Faiz Abbas
Enable CONFIG_SDHCI_AM654 to Support AM65x sdhci controller. Signed-off-by: Faiz Abbas --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 883e8bace3ed..40dd13e0adc5 100644 --- a/arch/arm64

Re: [PATCH v3] arm64: dts: ti: k3-am654-main: Update otap-del-sel values

2020-06-01 Thread Faiz Abbas
Hi, On 19/05/20 1:50 pm, Faiz Abbas wrote: > According to the latest AM65x Data Manual[1], a different output tap > delay value is optimum for a given speed mode. Update these values. > > [1] http://www.ti.com/lit/gpn/am6526 > > Signed-off-by: Faiz Abbas > --- &g

Re: [PATCH v2] arm: dts: Move am33xx and am43xx mmc nodes to sdhci-omap driver

2020-05-19 Thread Faiz Abbas
Tony, On 15/05/20 3:04 pm, Faiz Abbas wrote: > Hi Tony, > > On 13/05/20 9:53 pm, Tony Lindgren wrote: >> * Faiz Abbas [200512 13:39]: >>> Move mmc nodes to be compatible with the sdhci-omap driver. The following >>> modifications are required for omap_hsmmc sp

[PATCH v3] arm64: dts: ti: k3-am654-main: Update otap-del-sel values

2020-05-19 Thread Faiz Abbas
According to the latest AM65x Data Manual[1], a different output tap delay value is optimum for a given speed mode. Update these values. [1] http://www.ti.com/lit/gpn/am6526 Signed-off-by: Faiz Abbas --- v3: Updated values to the latest data manual revision v2: Updated to the latest mainline

Re: [PATCH v2] arm64: dts: ti: k3-am654-main: Update otap-del-sel values

2020-05-19 Thread Faiz Abbas
Hi Tero, On 15/05/20 3:44 pm, Tero Kristo wrote: > On 07/05/2020 21:15, Faiz Abbas wrote: >> According to the latest AM65x Data Manual[1], a different output tap >> delay value is optimum for a given speed mode. Update these values. >> >> [1] http://www.ti.com/lit/

Re: [PATCH v2] arm64: dts: ti: k3-am654-main: Update otap-del-sel values

2020-05-15 Thread Faiz Abbas
Tero, On 07/05/20 11:45 pm, Faiz Abbas wrote: > According to the latest AM65x Data Manual[1], a different output tap > delay value is optimum for a given speed mode. Update these values. > > [1] http://www.ti.com/lit/gpn/am6526 > > Signed-off-by: Faiz Abbas > --- > v

Re: [PATCH v2] arm: dts: Move am33xx and am43xx mmc nodes to sdhci-omap driver

2020-05-15 Thread Faiz Abbas
Hi Tony, On 13/05/20 9:53 pm, Tony Lindgren wrote: > * Faiz Abbas [200512 13:39]: >> Move mmc nodes to be compatible with the sdhci-omap driver. The following >> modifications are required for omap_hsmmc specific properties: >> >> ti,non-removable: convert to the gene

[PATCH v2] arm: dts: Move am33xx and am43xx mmc nodes to sdhci-omap driver

2020-05-12 Thread Faiz Abbas
not used in am335x or am43xx ti,needs-special-hs-handling: removed. Legacy property not used in am335x or am43xx Also since the sdhci-omap driver does not support runtime PM, explicitly disable the mmc3 instance in the dtsi. Signed-off-by: Faiz Abbas --- v2: Rebased to latest mainline where all

[PATCH v2] arm64: dts: ti: k3-am654-main: Update otap-del-sel values

2020-05-07 Thread Faiz Abbas
According to the latest AM65x Data Manual[1], a different output tap delay value is optimum for a given speed mode. Update these values. [1] http://www.ti.com/lit/gpn/am6526 Signed-off-by: Faiz Abbas --- v2: Rebased to the latest mainline kernel arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 12

Re: [RFC] mmc: cqhci: commit descriptors before setting the doorbell

2019-10-18 Thread Faiz Abbas
Hi Uffe, On 18/10/19 4:28 PM, Ulf Hansson wrote: > On Mon, 14 Oct 2019 at 20:37, Faiz Abbas wrote: >> >> Add a write memory barrier to make sure that descriptors are actually >> written to memory before ringing the doorbell. >> >> Signed-off-by: Faiz Abbas >

Re: [RFC] mmc: cqhci: commit descriptors before setting the doorbell

2019-10-18 Thread Faiz Abbas
Adrian, On 16/10/19 5:46 PM, Faiz Abbas wrote: > Adrian, > > On 15/10/19 7:15 PM, Adrian Hunter wrote: >> On 15/10/19 10:55 AM, Faiz Abbas wrote: >>> Hi, >>> >>> On 15/10/19 12:08 AM, Faiz Abbas wrote: >>>> Add a write memory barrier t

Re: [RFC] mmc: cqhci: commit descriptors before setting the doorbell

2019-10-16 Thread Faiz Abbas
Adrian, On 15/10/19 7:15 PM, Adrian Hunter wrote: > On 15/10/19 10:55 AM, Faiz Abbas wrote: >> Hi, >> >> On 15/10/19 12:08 AM, Faiz Abbas wrote: >>> Add a write memory barrier to make sure that descriptors are actually >>> written to memory before ringing th

Re: [RFC] mmc: cqhci: commit descriptors before setting the doorbell

2019-10-15 Thread Faiz Abbas
Hi, On 15/10/19 12:08 AM, Faiz Abbas wrote: > Add a write memory barrier to make sure that descriptors are actually > written to memory before ringing the doorbell. > > Signed-off-by: Faiz Abbas > --- > > This patch fixes a very infrequent ADMA error (1 out of 100 time

[RFC] mmc: cqhci: commit descriptors before setting the doorbell

2019-10-14 Thread Faiz Abbas
Add a write memory barrier to make sure that descriptors are actually written to memory before ringing the doorbell. Signed-off-by: Faiz Abbas --- This patch fixes a very infrequent ADMA error (1 out of 100 times) that I have been seeing after enabling command queuing for J721e. Also looking

[PATCH] mmc: sdhci-omap: Fix Tuning procedure for temperatures < -20C

2019-10-10 Thread Faiz Abbas
Fix this implementation. [1] http://www.ti.com/lit/an/spraca9b/spraca9b.pdf Fixes: 961de0a856e3 ("mmc: sdhci-omap: Workaround errata regarding SDR104/HS200 tuning failures (i929)") Cc: sta...@vger.kernel.org Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci-omap.c | 2 +- 1 file changed, 1 in

Re: [PATCH 0/2] Add Support for MMC/SD for J721e-base-board

2019-10-09 Thread Faiz Abbas
Hi, On 19/09/19 9:02 PM, Faiz Abbas wrote: > The following are dts patches to add MMC/SD Support on TI's J721e base > board. > > Patches depend on Lokesh's gpio patches[1] and device exclusivity patches[2]. > > [1] https://patchwork.kernel.org/cover/11085643/ > [2] https:/

[PATCH] arm64: dts: ti: k3-am654-base-board: Add disable-wp for mmc0

2019-10-03 Thread Faiz Abbas
MMC0_SDWP is not connected to the card. Indicate this by adding a disable-wp flag. Signed-off-by: Faiz Abbas --- arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654

[PATCH 2/2] arm64: dts: ti: j721e-common-proc-board: Add Support for eMMC and SD card

2019-09-19 Thread Faiz Abbas
sdhci0 is connected to an eMMC and sdhci1 is connected to an SD card slot. Add support for these nodes. Signed-off-by: Faiz Abbas --- .../dts/ti/k3-j721e-common-proc-board.dts | 34 +++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common

[PATCH 1/2] arm64: dts: ti: j721e-main: Add SDHCI nodes

2019-09-19 Thread Faiz Abbas
-by: Faiz Abbas --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 50 +++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi index 199bc9a00b20..1650bbd10932 100644 --- a/arch/arm64/boot/dts/ti/k3

[PATCH 0/2] Add Support for MMC/SD for J721e-base-board

2019-09-19 Thread Faiz Abbas
The following are dts patches to add MMC/SD Support on TI's J721e base board. Patches depend on Lokesh's gpio patches[1] and device exclusivity patches[2]. [1] https://patchwork.kernel.org/cover/11085643/ [2] https://patchwork.kernel.org/cover/11051559/ Faiz Abbas (2): arm64: dts: ti: j721e

[PATCH] ARM: dts: dra74x: Fix iodelay configuration for mmc3

2019-08-07 Thread Faiz Abbas
/am5728.pdf [2] http://www.ti.com/lit/ds/symlink/dra746.pdf Signed-off-by: Faiz Abbas --- arch/arm/boot/dts/dra74x-mmc-iodelay.dtsi | 50 +++ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/arch/arm/boot/dts/dra74x-mmc-iodelay.dtsi b/arch/arm/boot/dts/dra74x-mmc

Re: [PATCH v12 5/5] can: m_can: Fix checkpatch issues on existing code

2019-06-25 Thread Faiz Abbas
!= > CAN_STATE_ERROR_PASSIVE' > if ((psr & PSR_EP) && > (cdev->can.state != CAN_STATE_ERROR_PASSIVE)) { > > CHECK: Unnecessary parentheses around 'cdev->can.state != CAN_STATE_BUS_OFF' > if ((psr & PSR_BO) && > (cdev->can.state != CAN_STATE_BUS_OFF)) { > > Signed-off-by: Dan Murphy Acked-by: Faiz Abbas Thanks, Faiz

Re: [PATCH v12 2/5] can: m_can: Rename m_can_priv to m_can_classdev

2019-06-25 Thread Faiz Abbas
Hi, On 09/05/19 9:41 PM, Dan Murphy wrote: > Rename the common m_can_priv class structure to > m_can_classdev as this is more descriptive. > > Acked-by: Wolfgang Grandegger > Signed-off-by: Dan Murphy Acked-by: Faiz Abbas Thanks, Faiz

Re: [PATCH v12 1/5] can: m_can: Create a m_can platform framework

2019-06-25 Thread Faiz Abbas
gger > Signed-off-by: Dan Murphy Acked-by: Faiz Abbas Thanks, Faiz

[PATCH] ARM: dts: am57xx: Disable voltage switching for SD card

2019-06-19 Thread Faiz Abbas
of this is that the maximum supported speed mode is now high speed(50 MHz) down from SDR104(200 MHz). commit 88a748419b84 ("ARM: dts: am57xx-idk: Remove support for voltage switching for SD card") did this only for idk boards. Do it for all affected boards. Signed-off-by: Faiz Abbas --- arch/ar

Re: [PATCH v3 1/3] mmc: sdhci_am654: Fix SLOTTYPE write

2019-06-04 Thread Faiz Abbas
Hi Sasha, On 04/06/19 6:20 PM, Sasha Levin wrote: > Hi, > > [This is an automated email] > > This commit has been processed because it contains a -stable tag. > The stable tag indicates that it's relevant for the following trees: all > > The bot has tested the following trees: v5.1.6, v5.0.20,

[PATCH v3 0/3] Fix issues with phy configurations in am65x MMC driver

2019-05-28 Thread Faiz Abbas
The following patches fix issues with phy configurations for sdhci_am654 driver. v3: Changed order of patches so that the first one can be applied easily to stable tree. v2: 1. Split patch 1 into 2 separate patches. 2. Improved patch descriptions. Faiz Abbas (3): mmc: sdhci_am654: Fix

[PATCH v3 2/3] mmc: sdhci_am654: Improve whitespace utilisation with regmap_*() calls

2019-05-28 Thread Faiz Abbas
Line wrapping with the regmap_*() functions is way more conservative than required by the 80 character rule. Expand the function calls out to use less number of lines. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 34 +- 1 file changed, 13

[PATCH v3 1/3] mmc: sdhci_am654: Fix SLOTTYPE write

2019-05-28 Thread Faiz Abbas
In the call to regmap_update_bits() for SLOTTYPE, the mask and value fields are exchanged. Fix this. Signed-off-by: Faiz Abbas Cc: stable --- drivers/mmc/host/sdhci_am654.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host

[PATCH v3 3/3] mmc: sdhci_am654: Print error message if the DLL fails to lock

2019-05-28 Thread Faiz Abbas
Print an error message and return if DLL fails to lock. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c index 3c32d9fb6e1e..d0b20780dd0f 100644 --- a/drivers/mmc

Re: [PATCH v2 3/3] mmc: sdhci_am654: Fix SLOTTYPE write

2019-05-28 Thread Faiz Abbas
Hi Adrian, On 10/05/19 11:28 AM, Adrian Hunter wrote: > On 10/05/19 6:42 AM, Faiz Abbas wrote: >> In the call to regmap_update_bits() for SLOTTYPE, the mask and value >> fields are exchanged. Fix this. This didn't have any affect on the >> driver because this was a

[PATCH v2 2/3] mmc: sdhci_am654: Print error message if the DLL fails to lock

2019-05-09 Thread Faiz Abbas
Print an error message and return if DLL fails to lock. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c index 337c24b8f4a8..3ff949925127 100644 --- a/drivers/mmc

[PATCH v2 0/3] Fix issues with phy configurations in am65x MMC driver

2019-05-09 Thread Faiz Abbas
The following patches fix issues with phy configurations for sdhci_am654 driver. v2: 1. Split patch 1 into 2 separate patches. 2. Improved patch descriptions. Faiz Abbas (3): mmc: sdhci_am654: Improve line wrapping with regmap_*() calls mmc: sdhci_am654: Print error message if the DLL fails

[PATCH v2 3/3] mmc: sdhci_am654: Fix SLOTTYPE write

2019-05-09 Thread Faiz Abbas
In the call to regmap_update_bits() for SLOTTYPE, the mask and value fields are exchanged. Fix this. This didn't have any affect on the driver because this was a NOP and it was taking the correct value from the bootloader. Cc: stable Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c

[PATCH v2 1/3] mmc: sdhci_am654: Improve line wrapping with regmap_*() calls

2019-05-09 Thread Faiz Abbas
Line wrapping with the regmap_*() functions is way more conservative than required by the 80 character rule. Expand the function calls out to use less number of lines. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci_am654.c | 34 +- 1 file changed, 13

Re: [PATCH 1/2] mmc: sdhci_am654: Fix minor phy configurations

2019-05-07 Thread Faiz Abbas
Hi Adrian, On 26/04/19 11:20 AM, Adrian Hunter wrote: > On 25/04/19 6:57 PM, Faiz Abbas wrote: >> Fix the following minor things: >> >> 1. Line wrapping with the regmap_*() functions is way more conservative >> than required by the 80 character rule. Expand the functi

Re: [PATCH 2/2] mmc: sdhci_am654: Fix SLOTTYPE write

2019-05-07 Thread Faiz Abbas
Hi Adrian, On 26/04/19 11:30 AM, Adrian Hunter wrote: > On 25/04/19 6:57 PM, Faiz Abbas wrote: >> In the call to regmap_update_bits() for SLOTTYPE, the mask and value >> fields are exchanged. Fix this. > > Could you also comment on whether this has any known effect on the

Re: [PATCH] ARM: dts: am57xx-idk: Remove support for voltage switching for SD card

2019-05-02 Thread Faiz Abbas
Hi Tony, On 02/05/19 7:50 PM, Tony Lindgren wrote: > * Faiz Abbas [190502 01:48]: >> If UHS speed modes are enabled, a compatible SD card switches down to >> 1.8V during enumeration. If after this a software reboot/crash takes >> place and on-chip ROM tries to

[PATCH] ARM: dts: am57xx-idk: Remove support for voltage switching for SD card

2019-05-02 Thread Faiz Abbas
mode is now high speed(50 MHz) down from SDR104(200 MHz). Signed-off-by: Faiz Abbas --- arch/arm/boot/dts/am57xx-idk-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/am57xx-idk-common.dtsi b/arch/arm/boot/dts/am57xx-idk-common.dtsi index f7bd26458915..42e433da79ec

Re: [PATCH] ARM: dts: dra76x: Update MMC2_HS200_MANUAL1 iodelay values

2019-05-02 Thread Faiz Abbas
Hi Tony, On 30/04/19 9:24 PM, Tony Lindgren wrote: > Hi, > > * Faiz Abbas [190429 23:09]: >> 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

  1   2   3   4   5   6   >