mbox series

[0/7] treewide: scsi: ufs: Add support for Renesas R-Car UFS controller

Message ID 20220412073647.3808493-1-yoshihiro.shimoda.uh@renesas.com (mailing list archive)
Headers show
Series treewide: scsi: ufs: Add support for Renesas R-Car UFS controller | expand

Message

Yoshihiro Shimoda April 12, 2022, 7:36 a.m. UTC
This patch series adds support Renesas R-Car S4-8 UFS controller.
This controller has some restrictions so adds some quirks for it.
Before using this driver, we have to initialize a clock generator
on the environment board (named "Spider") by using the commands of
U-Boot like below:
 => i2c dev 0
 => i2c mw 0x6c 0x26 0x05
 => i2c olen 0x6c 2
 => i2c mw 0x6c 0x26c 0x2e

To use the UFS controller, we need the following patch too:
https://lore.kernel.org/all/20220411124932.3765571-1-yoshihiro.shimoda.uh@renesas.com/

Yoshihiro Shimoda (7):
  dt-bindings: ufs: Document Renesas R-Car UFS host controller
  ufs: add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS
  ufs: add UFSHCD_QUIRK_HIBERN_FASTAUTO
  scsi: ufs-renesas: Add support for Renesas R-Car UFS controller
  scsi: MAINTAINERS: Add maintainer for Renesas UFS driver
  arm64: dts: renesas: r8a779f0: Add UFS node
  arm64: dts: renesas: r8a779f0: spider-cpu: Enable UFS device

 .../devicetree/bindings/ufs/renesas,ufs.yaml  |  63 +++
 MAINTAINERS                                   |   7 +
 .../boot/dts/renesas/r8a779f0-spider-cpu.dtsi |   8 +
 arch/arm64/boot/dts/renesas/r8a779f0.dtsi     |  19 +
 drivers/scsi/ufs/Kconfig                      |  12 +
 drivers/scsi/ufs/Makefile                     |   1 +
 drivers/scsi/ufs/ufs-renesas.c                | 418 ++++++++++++++++++
 drivers/scsi/ufs/ufshcd.c                     |  12 +-
 drivers/scsi/ufs/ufshcd.h                     |  12 +
 9 files changed, 549 insertions(+), 3 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/ufs/renesas,ufs.yaml
 create mode 100644 drivers/scsi/ufs/ufs-renesas.c

Comments

Krzysztof Kozlowski April 12, 2022, 9:19 a.m. UTC | #1
On 12/04/2022 09:36, Yoshihiro Shimoda wrote:
> This patch series adds support Renesas R-Car S4-8 UFS controller.
> This controller has some restrictions so adds some quirks for it.
> Before using this driver, we have to initialize a clock generator
> on the environment board (named "Spider") by using the commands of
> U-Boot like below:
>  => i2c dev 0
>  => i2c mw 0x6c 0x26 0x05
>  => i2c olen 0x6c 2
>  => i2c mw 0x6c 0x26c 0x2e
> 
> To use the UFS controller, we need the following patch too:
> https://lore.kernel.org/all/20220411124932.3765571-1-yoshihiro.shimoda.uh@renesas.com/
> 

Thanks for the patches. Somehow I did not got entire set (bindings
missing) and I cannot find any of them on lore.kernel.org. Did you have
some bounces or sending troubles?

Best regards,
Krzysztof
Randy Dunlap April 12, 2022, 3:52 p.m. UTC | #2
On 4/12/22 02:19, Krzysztof Kozlowski wrote:
> On 12/04/2022 09:36, Yoshihiro Shimoda wrote:
>> This patch series adds support Renesas R-Car S4-8 UFS controller.
>> This controller has some restrictions so adds some quirks for it.
>> Before using this driver, we have to initialize a clock generator
>> on the environment board (named "Spider") by using the commands of
>> U-Boot like below:
>>  => i2c dev 0
>>  => i2c mw 0x6c 0x26 0x05
>>  => i2c olen 0x6c 2
>>  => i2c mw 0x6c 0x26c 0x2e
>>
>> To use the UFS controller, we need the following patch too:
>> https://lore.kernel.org/all/20220411124932.3765571-1-yoshihiro.shimoda.uh@renesas.com/
>>
> 
> Thanks for the patches. Somehow I did not got entire set (bindings
> missing) and I cannot find any of them on lore.kernel.org. Did you have
> some bounces or sending troubles?

Hi,

They are all here:
  https://lore.kernel.org/linux-scsi/23baab5b-722e-bdcd-be2c-62e38b2ff6a5@linaro.org/T/#t