* [PATCH v5 0/3] Add SD/MMC support for Renesas RZ/V2H(P) SoC
@ 2024-07-24 18:21 Prabhakar
2024-07-24 18:21 ` [PATCH v5 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support Prabhakar
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Prabhakar @ 2024-07-24 18:21 UTC (permalink / raw)
To: Geert Uytterhoeven, Ulf Hansson, Wolfram Sang, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Magnus Damm
Cc: linux-mmc, devicetree, linux-kernel, linux-renesas-soc, Prabhakar,
Biju Das, Fabrizio Castro, Lad Prabhakar
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(-)
--
2.34.1
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v5 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support
2024-07-24 18:21 [PATCH v5 0/3] Add SD/MMC support for Renesas RZ/V2H(P) SoC Prabhakar
@ 2024-07-24 18:21 ` Prabhakar
2024-07-25 13:48 ` Rob Herring (Arm)
2024-08-02 9:10 ` Geert Uytterhoeven
2024-07-24 18:21 ` [PATCH v5 2/3] mmc: tmio: Use MMC core APIs to control the vqmmc regulator Prabhakar
` (2 subsequent siblings)
3 siblings, 2 replies; 11+ messages in thread
From: Prabhakar @ 2024-07-24 18:21 UTC (permalink / raw)
To: Geert Uytterhoeven, Ulf Hansson, Wolfram Sang, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Magnus Damm
Cc: linux-mmc, devicetree, linux-kernel, linux-renesas-soc, Prabhakar,
Biju Das, Fabrizio Castro, Lad Prabhakar
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.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
v4->v5
- Dropped regulator node.
v3->v4
- Dropped 'renesas,sdhi-use-internal-regulator' property
- Moved 'vqmmc-regulator' to the top level
v2->v3
- Renamed vqmmc-r9a09g057-regulator object to vqmmc-regulator
- Added regulator-compatible property for vqmmc-regulator
- Added 'renesas,sdhi-use-internal-regulator' property
v1->v2
- Moved vqmmc object in the if block
- Updated commit message
---
Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml b/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml
index 3d0e61e59856..1155b1d79df5 100644
--- a/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml
+++ b/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml
@@ -18,6 +18,7 @@ properties:
- renesas,sdhi-r7s9210 # SH-Mobile AG5
- renesas,sdhi-r8a73a4 # R-Mobile APE6
- renesas,sdhi-r8a7740 # R-Mobile A1
+ - renesas,sdhi-r9a09g057 # RZ/V2H(P)
- renesas,sdhi-sh73a0 # R-Mobile APE6
- items:
- enum:
@@ -66,6 +67,7 @@ properties:
- renesas,sdhi-r9a07g054 # RZ/V2L
- renesas,sdhi-r9a08g045 # RZ/G3S
- renesas,sdhi-r9a09g011 # RZ/V2M
+ - renesas,sdhi-r9a09g057 # RZ/V2H(P)
- const: renesas,rzg2l-sdhi
reg:
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v5 2/3] mmc: tmio: Use MMC core APIs to control the vqmmc regulator
2024-07-24 18:21 [PATCH v5 0/3] Add SD/MMC support for Renesas RZ/V2H(P) SoC Prabhakar
2024-07-24 18:21 ` [PATCH v5 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support Prabhakar
@ 2024-07-24 18:21 ` Prabhakar
2024-07-24 18:21 ` [PATCH v5 3/3] mmc: renesas_sdhi: Add RZ/V2H(P) compatible string Prabhakar
2024-08-01 11:01 ` [PATCH v5 0/3] Add SD/MMC support for Renesas RZ/V2H(P) SoC Ulf Hansson
3 siblings, 0 replies; 11+ messages in thread
From: Prabhakar @ 2024-07-24 18:21 UTC (permalink / raw)
To: Geert Uytterhoeven, Ulf Hansson, Wolfram Sang, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Magnus Damm
Cc: linux-mmc, devicetree, linux-kernel, linux-renesas-soc, Prabhakar,
Biju Das, Fabrizio Castro, Lad Prabhakar, Claudiu Beznea
From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Use the mmc_regulator_enable_vqmmc() and mmc_regulator_disable_vqmmc() APIs
to enable/disable the vqmmc regulator.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> # on RZ/G3S
---
v4->v5
- No change
v3->v4
- Collected tested by tag from Claudiu
v2->v3
- Included RB tags
v1->v2
- New patch
---
drivers/mmc/host/tmio_mmc_core.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c
index 93e912afd3ae..2ec1a74c85bc 100644
--- a/drivers/mmc/host/tmio_mmc_core.c
+++ b/drivers/mmc/host/tmio_mmc_core.c
@@ -897,8 +897,8 @@ static void tmio_mmc_power_on(struct tmio_mmc_host *host, unsigned short vdd)
* It seems, VccQ should be switched on after Vcc, this is also what the
* omap_hsmmc.c driver does.
*/
- if (!IS_ERR(mmc->supply.vqmmc) && !ret) {
- ret = regulator_enable(mmc->supply.vqmmc);
+ if (!ret) {
+ ret = mmc_regulator_enable_vqmmc(mmc);
usleep_range(200, 300);
}
@@ -911,8 +911,7 @@ static void tmio_mmc_power_off(struct tmio_mmc_host *host)
{
struct mmc_host *mmc = host->mmc;
- if (!IS_ERR(mmc->supply.vqmmc))
- regulator_disable(mmc->supply.vqmmc);
+ mmc_regulator_disable_vqmmc(mmc);
if (!IS_ERR(mmc->supply.vmmc))
mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v5 3/3] mmc: renesas_sdhi: Add RZ/V2H(P) compatible string
2024-07-24 18:21 [PATCH v5 0/3] Add SD/MMC support for Renesas RZ/V2H(P) SoC Prabhakar
2024-07-24 18:21 ` [PATCH v5 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support Prabhakar
2024-07-24 18:21 ` [PATCH v5 2/3] mmc: tmio: Use MMC core APIs to control the vqmmc regulator Prabhakar
@ 2024-07-24 18:21 ` Prabhakar
2024-08-05 14:10 ` Wolfram Sang
2024-08-01 11:01 ` [PATCH v5 0/3] Add SD/MMC support for Renesas RZ/V2H(P) SoC Ulf Hansson
3 siblings, 1 reply; 11+ messages in thread
From: Prabhakar @ 2024-07-24 18:21 UTC (permalink / raw)
To: Geert Uytterhoeven, Ulf Hansson, Wolfram Sang, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Magnus Damm
Cc: linux-mmc, devicetree, linux-kernel, linux-renesas-soc, Prabhakar,
Biju Das, Fabrizio Castro, Lad Prabhakar
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.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
v4->v5
- Dropped handling of regulator
v3->v4
- Dropped using 'renesas,sdhi-use-internal-regulator' property
- Now using of_device_is_available() to check if regulator is available and enabled
- Dropped extra spaces during operations
- Included tested by tag 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
- 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
- Now controlling PWEN bit get/set_voltage
---
drivers/mmc/host/renesas_sdhi_internal_dmac.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mmc/host/renesas_sdhi_internal_dmac.c b/drivers/mmc/host/renesas_sdhi_internal_dmac.c
index 422fa63a2e99..6b858393f19f 100644
--- a/drivers/mmc/host/renesas_sdhi_internal_dmac.c
+++ b/drivers/mmc/host/renesas_sdhi_internal_dmac.c
@@ -284,6 +284,7 @@ static const struct of_device_id renesas_sdhi_internal_dmac_of_match[] = {
{ .compatible = "renesas,sdhi-r8a77990", .data = &of_r8a77990_compatible, },
{ .compatible = "renesas,sdhi-r8a77995", .data = &of_rcar_gen3_nohs400_compatible, },
{ .compatible = "renesas,sdhi-r9a09g011", .data = &of_rzg2l_compatible, },
+ { .compatible = "renesas,sdhi-r9a09g057", .data = &of_rzg2l_compatible, },
{ .compatible = "renesas,rzg2l-sdhi", .data = &of_rzg2l_compatible, },
{ .compatible = "renesas,rcar-gen3-sdhi", .data = &of_rcar_gen3_compatible, },
{ .compatible = "renesas,rcar-gen4-sdhi", .data = &of_rcar_gen3_compatible, },
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v5 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support
2024-07-24 18:21 ` [PATCH v5 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support Prabhakar
@ 2024-07-25 13:48 ` Rob Herring (Arm)
2024-08-02 9:10 ` Geert Uytterhoeven
1 sibling, 0 replies; 11+ messages in thread
From: Rob Herring (Arm) @ 2024-07-25 13:48 UTC (permalink / raw)
To: Prabhakar
Cc: linux-kernel, Wolfram Sang, Ulf Hansson, devicetree, linux-mmc,
linux-renesas-soc, Lad Prabhakar, Magnus Damm, Fabrizio Castro,
Krzysztof Kozlowski, Biju Das, Conor Dooley, Geert Uytterhoeven
On Wed, 24 Jul 2024 19:21:17 +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.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> ---
> v4->v5
> - Dropped regulator node.
>
> v3->v4
> - Dropped 'renesas,sdhi-use-internal-regulator' property
> - Moved 'vqmmc-regulator' to the top level
>
> v2->v3
> - Renamed vqmmc-r9a09g057-regulator object to vqmmc-regulator
> - Added regulator-compatible property for vqmmc-regulator
> - Added 'renesas,sdhi-use-internal-regulator' property
>
> v1->v2
> - Moved vqmmc object in the if block
> - Updated commit message
> ---
> Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v5 0/3] Add SD/MMC support for Renesas RZ/V2H(P) SoC
2024-07-24 18:21 [PATCH v5 0/3] Add SD/MMC support for Renesas RZ/V2H(P) SoC Prabhakar
` (2 preceding siblings ...)
2024-07-24 18:21 ` [PATCH v5 3/3] mmc: renesas_sdhi: Add RZ/V2H(P) compatible string Prabhakar
@ 2024-08-01 11:01 ` Ulf Hansson
3 siblings, 0 replies; 11+ messages in thread
From: Ulf Hansson @ 2024-08-01 11:01 UTC (permalink / raw)
To: Prabhakar
Cc: Geert Uytterhoeven, Wolfram Sang, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Magnus Damm, linux-mmc,
devicetree, linux-kernel, linux-renesas-soc, Biju Das,
Fabrizio Castro, Lad Prabhakar
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v5 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support
2024-07-24 18:21 ` [PATCH v5 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support Prabhakar
2024-07-25 13:48 ` Rob Herring (Arm)
@ 2024-08-02 9:10 ` Geert Uytterhoeven
2024-08-02 9:30 ` Lad, Prabhakar
1 sibling, 1 reply; 11+ messages in thread
From: Geert Uytterhoeven @ 2024-08-02 9:10 UTC (permalink / raw)
To: Prabhakar
Cc: Ulf Hansson, Wolfram Sang, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Magnus Damm, linux-mmc, devicetree, linux-kernel,
linux-renesas-soc, Biju Das, Fabrizio Castro, Lad Prabhakar
Hi Prabhakar,
On Wed, Jul 24, 2024 at 8:22 PM Prabhakar <prabhakar.csengg@gmail.com> 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.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> ---
> v4->v5
> - Dropped regulator node.
Thanks for your patch, which is now commit 32842af74abc8ff9
("dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support") in
mmc/next.
> --- a/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml
> +++ b/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml
> @@ -18,6 +18,7 @@ properties:
> - renesas,sdhi-r7s9210 # SH-Mobile AG5
> - renesas,sdhi-r8a73a4 # R-Mobile APE6
> - renesas,sdhi-r8a7740 # R-Mobile A1
> + - renesas,sdhi-r9a09g057 # RZ/V2H(P)
> - renesas,sdhi-sh73a0 # R-Mobile APE6
> - items:
> - enum:
> @@ -66,6 +67,7 @@ properties:
> - renesas,sdhi-r9a07g054 # RZ/V2L
> - renesas,sdhi-r9a08g045 # RZ/G3S
> - renesas,sdhi-r9a09g011 # RZ/V2M
> + - renesas,sdhi-r9a09g057 # RZ/V2H(P)
This looks wrong to me.
Did you want to add it to the clocks constraint, like the third hunk
in v4[1], and was it mangled in a rebase?
> - const: renesas,rzg2l-sdhi
>
> reg:
[1] https://lore.kernel.org/all/20240626132341.342963-2-prabhakar.mahadev-lad.rj@bp.renesas.com/
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v5 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support
2024-08-02 9:10 ` Geert Uytterhoeven
@ 2024-08-02 9:30 ` Lad, Prabhakar
2024-08-05 10:09 ` Ulf Hansson
0 siblings, 1 reply; 11+ messages in thread
From: Lad, Prabhakar @ 2024-08-02 9:30 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Ulf Hansson, Wolfram Sang, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Magnus Damm, linux-mmc, devicetree, linux-kernel,
linux-renesas-soc, Biju Das, Fabrizio Castro, Lad Prabhakar
Hi Geert,
On Fri, Aug 2, 2024 at 10:11 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> Hi Prabhakar,
>
> On Wed, Jul 24, 2024 at 8:22 PM Prabhakar <prabhakar.csengg@gmail.com> 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.
> >
> > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> > ---
> > v4->v5
> > - Dropped regulator node.
>
> Thanks for your patch, which is now commit 32842af74abc8ff9
> ("dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support") in
> mmc/next.
>
> > --- a/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml
> > +++ b/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml
> > @@ -18,6 +18,7 @@ properties:
> > - renesas,sdhi-r7s9210 # SH-Mobile AG5
> > - renesas,sdhi-r8a73a4 # R-Mobile APE6
> > - renesas,sdhi-r8a7740 # R-Mobile A1
> > + - renesas,sdhi-r9a09g057 # RZ/V2H(P)
> > - renesas,sdhi-sh73a0 # R-Mobile APE6
> > - items:
> > - enum:
> > @@ -66,6 +67,7 @@ properties:
> > - renesas,sdhi-r9a07g054 # RZ/V2L
> > - renesas,sdhi-r9a08g045 # RZ/G3S
> > - renesas,sdhi-r9a09g011 # RZ/V2M
> > + - renesas,sdhi-r9a09g057 # RZ/V2H(P)
>
> This looks wrong to me.
> Did you want to add it to the clocks constraint, like the third hunk
> in v4[1], and was it mangled in a rebase?
>
Oouch, yes you are correct, this had to go in the clock constraint.
Cheers,
Prabhakar
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v5 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support
2024-08-02 9:30 ` Lad, Prabhakar
@ 2024-08-05 10:09 ` Ulf Hansson
2024-08-05 10:11 ` Lad, Prabhakar
0 siblings, 1 reply; 11+ messages in thread
From: Ulf Hansson @ 2024-08-05 10:09 UTC (permalink / raw)
To: Lad, Prabhakar
Cc: Geert Uytterhoeven, Wolfram Sang, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Magnus Damm, linux-mmc,
devicetree, linux-kernel, linux-renesas-soc, Biju Das,
Fabrizio Castro, Lad Prabhakar
On Fri, 2 Aug 2024 at 11:32, Lad, Prabhakar <prabhakar.csengg@gmail.com> wrote:
>
> Hi Geert,
>
> On Fri, Aug 2, 2024 at 10:11 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> >
> > Hi Prabhakar,
> >
> > On Wed, Jul 24, 2024 at 8:22 PM Prabhakar <prabhakar.csengg@gmail.com> 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.
> > >
> > > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> > > ---
> > > v4->v5
> > > - Dropped regulator node.
> >
> > Thanks for your patch, which is now commit 32842af74abc8ff9
> > ("dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support") in
> > mmc/next.
> >
> > > --- a/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml
> > > +++ b/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml
> > > @@ -18,6 +18,7 @@ properties:
> > > - renesas,sdhi-r7s9210 # SH-Mobile AG5
> > > - renesas,sdhi-r8a73a4 # R-Mobile APE6
> > > - renesas,sdhi-r8a7740 # R-Mobile A1
> > > + - renesas,sdhi-r9a09g057 # RZ/V2H(P)
> > > - renesas,sdhi-sh73a0 # R-Mobile APE6
> > > - items:
> > > - enum:
> > > @@ -66,6 +67,7 @@ properties:
> > > - renesas,sdhi-r9a07g054 # RZ/V2L
> > > - renesas,sdhi-r9a08g045 # RZ/G3S
> > > - renesas,sdhi-r9a09g011 # RZ/V2M
> > > + - renesas,sdhi-r9a09g057 # RZ/V2H(P)
> >
> > This looks wrong to me.
> > Did you want to add it to the clocks constraint, like the third hunk
> > in v4[1], and was it mangled in a rebase?
> >
> Oouch, yes you are correct, this had to go in the clock constraint.
I am happy to apply a fix on top for that.
Kind regards
Uffe
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v5 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support
2024-08-05 10:09 ` Ulf Hansson
@ 2024-08-05 10:11 ` Lad, Prabhakar
0 siblings, 0 replies; 11+ messages in thread
From: Lad, Prabhakar @ 2024-08-05 10:11 UTC (permalink / raw)
To: Ulf Hansson
Cc: Geert Uytterhoeven, Wolfram Sang, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Magnus Damm, linux-mmc,
devicetree, linux-kernel, linux-renesas-soc, Biju Das,
Fabrizio Castro, Lad Prabhakar
Hi Ulf,
On Mon, Aug 5, 2024 at 11:09 AM Ulf Hansson <ulf.hansson@linaro.org> wrote:
>
> On Fri, 2 Aug 2024 at 11:32, Lad, Prabhakar <prabhakar.csengg@gmail.com> wrote:
> >
> > Hi Geert,
> >
> > On Fri, Aug 2, 2024 at 10:11 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > >
> > > Hi Prabhakar,
> > >
> > > On Wed, Jul 24, 2024 at 8:22 PM Prabhakar <prabhakar.csengg@gmail.com> 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.
> > > >
> > > > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> > > > ---
> > > > v4->v5
> > > > - Dropped regulator node.
> > >
> > > Thanks for your patch, which is now commit 32842af74abc8ff9
> > > ("dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support") in
> > > mmc/next.
> > >
> > > > --- a/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml
> > > > +++ b/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml
> > > > @@ -18,6 +18,7 @@ properties:
> > > > - renesas,sdhi-r7s9210 # SH-Mobile AG5
> > > > - renesas,sdhi-r8a73a4 # R-Mobile APE6
> > > > - renesas,sdhi-r8a7740 # R-Mobile A1
> > > > + - renesas,sdhi-r9a09g057 # RZ/V2H(P)
> > > > - renesas,sdhi-sh73a0 # R-Mobile APE6
> > > > - items:
> > > > - enum:
> > > > @@ -66,6 +67,7 @@ properties:
> > > > - renesas,sdhi-r9a07g054 # RZ/V2L
> > > > - renesas,sdhi-r9a08g045 # RZ/G3S
> > > > - renesas,sdhi-r9a09g011 # RZ/V2M
> > > > + - renesas,sdhi-r9a09g057 # RZ/V2H(P)
> > >
> > > This looks wrong to me.
> > > Did you want to add it to the clocks constraint, like the third hunk
> > > in v4[1], and was it mangled in a rebase?
> > >
> > Oouch, yes you are correct, this had to go in the clock constraint.
>
> I am happy to apply a fix on top for that.
>
Thanks, I'll send out a fix today.
Cheers,
Prabhakar
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v5 3/3] mmc: renesas_sdhi: Add RZ/V2H(P) compatible string
2024-07-24 18:21 ` [PATCH v5 3/3] mmc: renesas_sdhi: Add RZ/V2H(P) compatible string Prabhakar
@ 2024-08-05 14:10 ` Wolfram Sang
0 siblings, 0 replies; 11+ messages in thread
From: Wolfram Sang @ 2024-08-05 14:10 UTC (permalink / raw)
To: Prabhakar
Cc: Geert Uytterhoeven, Ulf Hansson, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Magnus Damm, linux-mmc, devicetree, linux-kernel,
linux-renesas-soc, Biju Das, Fabrizio Castro, Lad Prabhakar
[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]
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>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-08-05 14:10 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-24 18:21 [PATCH v5 0/3] Add SD/MMC support for Renesas RZ/V2H(P) SoC Prabhakar
2024-07-24 18:21 ` [PATCH v5 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support Prabhakar
2024-07-25 13:48 ` Rob Herring (Arm)
2024-08-02 9:10 ` Geert Uytterhoeven
2024-08-02 9:30 ` Lad, Prabhakar
2024-08-05 10:09 ` Ulf Hansson
2024-08-05 10:11 ` Lad, Prabhakar
2024-07-24 18:21 ` [PATCH v5 2/3] mmc: tmio: Use MMC core APIs to control the vqmmc regulator Prabhakar
2024-07-24 18:21 ` [PATCH v5 3/3] mmc: renesas_sdhi: Add RZ/V2H(P) compatible string Prabhakar
2024-08-05 14:10 ` Wolfram Sang
2024-08-01 11:01 ` [PATCH v5 0/3] Add SD/MMC support for Renesas RZ/V2H(P) SoC Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).