* [PATCH v5 0/3] Add dw_mmc support for rk3576
@ 2024-08-28 15:24 Detlev Casanova
2024-08-29 11:43 ` Heiko Stübner
2024-09-03 12:37 ` Ulf Hansson
0 siblings, 2 replies; 3+ messages in thread
From: Detlev Casanova @ 2024-08-28 15:24 UTC (permalink / raw)
To: linux-kernel
Cc: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Heiko Stuebner, Jaehoon Chung, linux-mmc, devicetree,
linux-arm-kernel, linux-rockchip, kernel, Detlev Casanova
The SD card controller on the rk3576 SoC stores the phase settings into
the dw_mmc controller, so the code has to be adapted to implement that.
Although the feature can be detected through the USRID register value, the
decision to use it is based on the compatible.
The compatible for rk3576 is added in its own group of compatible to mark
that all devices compatible with rk3576 have internal phase settings and
don't have the ciu-drive and ciu-sample clocks.
Changes since v4:
- Drop commit that ignores phase above 270 degrees
- Use a bool instead of int for internal_phase field
- Fix pahse typo
Changes since v3:
- Remove internal phase auto detection
- Set compatible in own block, with own dt_parse function
- Add internal_phase variable
- Use function to set clock parameters based on internal_phase variable
instead of multiple ifs
- Use different commit for skipping phases higher than 270
Changes since v2:
- Drop rockchip,v2-tuning and use compatible-based detection
- Fix coding style
Changes since v1:
- Renamed use-v2-tuning to v2-tuning
- Rewrite v2-tuning description as the hardware feature
Detlev.
Detlev Casanova (2):
dt-bindings: mmc: Add support for rk3576 dw-mshc
mmc: dw_mmc-rockchip: Add support for rk3576 SoCs
Shawn Lin (1):
mmc: dw_mmc-rockchip: Add internal phase support
.../bindings/mmc/rockchip-dw-mshc.yaml | 2 +
drivers/mmc/host/dw_mmc-rockchip.c | 217 ++++++++++++++++--
2 files changed, 204 insertions(+), 15 deletions(-)
--
2.46.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v5 0/3] Add dw_mmc support for rk3576
2024-08-28 15:24 [PATCH v5 0/3] Add dw_mmc support for rk3576 Detlev Casanova
@ 2024-08-29 11:43 ` Heiko Stübner
2024-09-03 12:37 ` Ulf Hansson
1 sibling, 0 replies; 3+ messages in thread
From: Heiko Stübner @ 2024-08-29 11:43 UTC (permalink / raw)
To: linux-kernel, Detlev Casanova
Cc: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jaehoon Chung, linux-mmc, devicetree, linux-arm-kernel,
linux-rockchip, kernel, Detlev Casanova
Am Mittwoch, 28. August 2024, 17:24:51 CEST schrieb Detlev Casanova:
> The SD card controller on the rk3576 SoC stores the phase settings into
> the dw_mmc controller, so the code has to be adapted to implement that.
>
> Although the feature can be detected through the USRID register value, the
> decision to use it is based on the compatible.
>
> The compatible for rk3576 is added in its own group of compatible to mark
> that all devices compatible with rk3576 have internal phase settings and
> don't have the ciu-drive and ciu-sample clocks.
>
> Changes since v4:
> - Drop commit that ignores phase above 270 degrees
> - Use a bool instead of int for internal_phase field
> - Fix pahse typo
Sending through some Amazon thing broke your message-ids in this series
too.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v5 0/3] Add dw_mmc support for rk3576
2024-08-28 15:24 [PATCH v5 0/3] Add dw_mmc support for rk3576 Detlev Casanova
2024-08-29 11:43 ` Heiko Stübner
@ 2024-09-03 12:37 ` Ulf Hansson
1 sibling, 0 replies; 3+ messages in thread
From: Ulf Hansson @ 2024-09-03 12:37 UTC (permalink / raw)
To: Detlev Casanova
Cc: linux-kernel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Heiko Stuebner, Jaehoon Chung, linux-mmc, devicetree,
linux-arm-kernel, linux-rockchip, kernel
On Wed, 28 Aug 2024 at 17:24, Detlev Casanova
<detlev.casanova@collabora.com> wrote:
>
> The SD card controller on the rk3576 SoC stores the phase settings into
> the dw_mmc controller, so the code has to be adapted to implement that.
>
> Although the feature can be detected through the USRID register value, the
> decision to use it is based on the compatible.
>
> The compatible for rk3576 is added in its own group of compatible to mark
> that all devices compatible with rk3576 have internal phase settings and
> don't have the ciu-drive and ciu-sample clocks.
>
> Changes since v4:
> - Drop commit that ignores phase above 270 degrees
> - Use a bool instead of int for internal_phase field
> - Fix pahse typo
>
> Changes since v3:
> - Remove internal phase auto detection
> - Set compatible in own block, with own dt_parse function
> - Add internal_phase variable
> - Use function to set clock parameters based on internal_phase variable
> instead of multiple ifs
> - Use different commit for skipping phases higher than 270
>
> Changes since v2:
> - Drop rockchip,v2-tuning and use compatible-based detection
> - Fix coding style
>
> Changes since v1:
> - Renamed use-v2-tuning to v2-tuning
> - Rewrite v2-tuning description as the hardware feature
>
> Detlev.
>
> Detlev Casanova (2):
> dt-bindings: mmc: Add support for rk3576 dw-mshc
> mmc: dw_mmc-rockchip: Add support for rk3576 SoCs
>
> Shawn Lin (1):
> mmc: dw_mmc-rockchip: Add internal phase support
>
> .../bindings/mmc/rockchip-dw-mshc.yaml | 2 +
> drivers/mmc/host/dw_mmc-rockchip.c | 217 ++++++++++++++++--
> 2 files changed, 204 insertions(+), 15 deletions(-)
>
The series applied for next, thanks!
Kind regards
Uffe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-03 12:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-28 15:24 [PATCH v5 0/3] Add dw_mmc support for rk3576 Detlev Casanova
2024-08-29 11:43 ` Heiko Stübner
2024-09-03 12:37 ` 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).