Message ID | 20240724182119.652080-1-prabhakar.mahadev-lad.rj@bp.renesas.com |
---|---|
Headers | show |
Series | Add SD/MMC support for Renesas RZ/V2H(P) SoC | expand |
On Wed, 24 Jul 2024 at 20:22, Prabhakar <prabhakar.csengg@gmail.com> wrote: > > From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> > > Hi All, > > This patch series aims to add SD/MMC support for Renesas RZ/V2H(P) SoC. > > v4->v5 > - Since the SDxIOVS and SDxPWEN pins can always be used as GPIO pins on > the RZ/V2H(P) SoC dropped adding regulator support. > > v3->v4 > - Dropped 'renesas,sdhi-use-internal-regulator' property > - Defined vqmmc-regulator in top level > - For special handling of internal regulator now using of_device_is_available() > - Fixed comments from Claudiu > - Rebased patch on top of https://patchwork.kernel.org/project/linux-renesas-soc/patch/20240626085015.32171-2-wsa+renesas@sang-engineering.com/ > > v2->v3 > - Renamed vqmmc-r9a09g057-regulator object to vqmmc-regulator > - Added regulator-compatible property for vqmmc-regulator > - Added 'renesas,sdhi-use-internal-regulator' DT property > - Included RB tags for patch 2/3 > - Moved regulator info to renesas_sdhi_of_data instead of quirks > - Added support to configure the init state of regulator > - Added function pointers to configure regulator > - Added REGULATOR_CHANGE_VOLTAGE mask > > v1->v2 > - Dropped regulator core API changes > - Updated DT binding > - Now controlling PWEN bit via regulator api > > v1: https://patchwork.kernel.org/project/linux-renesas-soc/cover/20240605074936.578687-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ > > Cheers, > Prabhakar > > Lad Prabhakar (3): > dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support > mmc: tmio: Use MMC core APIs to control the vqmmc regulator > mmc: renesas_sdhi: Add RZ/V2H(P) compatible string > > Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml | 2 ++ > drivers/mmc/host/renesas_sdhi_internal_dmac.c | 1 + > drivers/mmc/host/tmio_mmc_core.c | 7 +++---- > 3 files changed, 6 insertions(+), 4 deletions(-) > Applied for next, thanks! Kind regards Uffe
On Wed, Jul 24, 2024 at 07:21:19PM +0100, Prabhakar wrote: > From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> > > The SD/MMC block on the RZ/V2H(P) ("R9A09G057") SoC is similar to that > of the R-Car Gen3, but it has some differences: > - HS400 is not supported. > - It has additional SD_STATUS register to control voltage, > power enable and reset. > - It supports fixed address mode. > > To accommodate these differences, a SoC-specific 'renesas,sdhi-r9a09g057' > compatible string is added. > > Note for RZ/V2H(P), we are using the `of_rzg2l_compatible` OF data as it > already handles no HS400 and fixed address mode support. Since the SDxIOVS > and SDxPWEN pins can always be used as GPIO pins on the RZ/V2H(P) SoC, no > driver changes are done to control the SD_STATUS register. Okay, so you mux the pins as GPIOs and leave SD_STATUS alone. Smart move. > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> For the record: Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Hi All, This patch series aims to add SD/MMC support for Renesas RZ/V2H(P) SoC. v4->v5 - Since the SDxIOVS and SDxPWEN pins can always be used as GPIO pins on the RZ/V2H(P) SoC dropped adding regulator support. v3->v4 - Dropped 'renesas,sdhi-use-internal-regulator' property - Defined vqmmc-regulator in top level - For special handling of internal regulator now using of_device_is_available() - Fixed comments from Claudiu - Rebased patch on top of https://patchwork.kernel.org/project/linux-renesas-soc/patch/20240626085015.32171-2-wsa+renesas@sang-engineering.com/ v2->v3 - Renamed vqmmc-r9a09g057-regulator object to vqmmc-regulator - Added regulator-compatible property for vqmmc-regulator - Added 'renesas,sdhi-use-internal-regulator' DT property - Included RB tags for patch 2/3 - Moved regulator info to renesas_sdhi_of_data instead of quirks - Added support to configure the init state of regulator - Added function pointers to configure regulator - Added REGULATOR_CHANGE_VOLTAGE mask v1->v2 - Dropped regulator core API changes - Updated DT binding - Now controlling PWEN bit via regulator api v1: https://patchwork.kernel.org/project/linux-renesas-soc/cover/20240605074936.578687-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ Cheers, Prabhakar Lad Prabhakar (3): dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support mmc: tmio: Use MMC core APIs to control the vqmmc regulator mmc: renesas_sdhi: Add RZ/V2H(P) compatible string Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml | 2 ++ drivers/mmc/host/renesas_sdhi_internal_dmac.c | 1 + drivers/mmc/host/tmio_mmc_core.c | 7 +++---- 3 files changed, 6 insertions(+), 4 deletions(-)