* [PATCH v4 0/1] dt-bindings: mmc: Add support for rk3576 eMMC
@ 2024-09-04 20:30 Detlev Casanova
2024-09-04 20:30 ` [PATCH v4 1/1] " Detlev Casanova
0 siblings, 1 reply; 4+ messages in thread
From: Detlev Casanova @ 2024-09-04 20:30 UTC (permalink / raw)
To: linux-kernel
Cc: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jisheng Zhang, linux-mmc, devicetree, kernel, Detlev Casanova
This patch has been extracted from the [0] patch set to be rebased on
the next branch of the mmc tree as requested in [1].
[0]: https://lore.kernel.org/all/010201919989e3de-60b56341-85e0-4869-89d1-362407c4f2ec-000000@eu-west-1.amazonses.com/
[1]: https://lore.kernel.org/all/CAPDyKFoJoqwNTKvpK93QtK1wA9vzVUTzCrP32s_HEZcrujN2Mg@mail.gmail.com/
Changes since v3:
- Rebased on mmc tree's next branch
- Improve power-domains requirements
- Removed Reviewed-by: tag
Changes since v2:
- Move the allOf: after the required: block
Detlev.
Detlev Casanova (1):
dt-bindings: mmc: Add support for rk3576 eMMC
.../bindings/mmc/snps,dwcmshc-sdhci.yaml | 37 +++++++++++++++----
1 file changed, 29 insertions(+), 8 deletions(-)
--
2.46.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v4 1/1] dt-bindings: mmc: Add support for rk3576 eMMC
2024-09-04 20:30 [PATCH v4 0/1] dt-bindings: mmc: Add support for rk3576 eMMC Detlev Casanova
@ 2024-09-04 20:30 ` Detlev Casanova
2024-09-05 6:36 ` Krzysztof Kozlowski
2024-09-05 10:18 ` Ulf Hansson
0 siblings, 2 replies; 4+ messages in thread
From: Detlev Casanova @ 2024-09-04 20:30 UTC (permalink / raw)
To: linux-kernel
Cc: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jisheng Zhang, linux-mmc, devicetree, kernel, Detlev Casanova
The device is compatible with rk3588, so add an entry for the 2
compatibles together.
The rk3576 device has a power-domain that needs to be on for the eMMC to
be used. Add it as a requirement.
Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
---
.../bindings/mmc/snps,dwcmshc-sdhci.yaml | 37 +++++++++++++++----
1 file changed, 29 insertions(+), 8 deletions(-)
diff --git a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
index 80d50178d2e3..c3d5e0230af1 100644
--- a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
+++ b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
@@ -12,14 +12,18 @@ maintainers:
properties:
compatible:
- enum:
- - rockchip,rk3568-dwcmshc
- - rockchip,rk3588-dwcmshc
- - snps,dwcmshc-sdhci
- - sophgo,cv1800b-dwcmshc
- - sophgo,sg2002-dwcmshc
- - sophgo,sg2042-dwcmshc
- - thead,th1520-dwcmshc
+ oneOf:
+ - items:
+ - const: rockchip,rk3576-dwcmshc
+ - const: rockchip,rk3588-dwcmshc
+ - enum:
+ - rockchip,rk3568-dwcmshc
+ - rockchip,rk3588-dwcmshc
+ - snps,dwcmshc-sdhci
+ - sophgo,cv1800b-dwcmshc
+ - sophgo,sg2002-dwcmshc
+ - sophgo,sg2042-dwcmshc
+ - thead,th1520-dwcmshc
reg:
maxItems: 1
@@ -35,6 +39,9 @@ properties:
minItems: 1
maxItems: 5
+ power-domains:
+ maxItems: 1
+
resets:
maxItems: 5
@@ -97,6 +104,20 @@ allOf:
- const: block
- const: timer
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: rockchip,rk3576-dwcmshc
+
+ then:
+ required:
+ - power-domains
+
+ else:
+ properties:
+ power-domains: false
+
unevaluatedProperties: false
examples:
--
2.46.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4 1/1] dt-bindings: mmc: Add support for rk3576 eMMC
2024-09-04 20:30 ` [PATCH v4 1/1] " Detlev Casanova
@ 2024-09-05 6:36 ` Krzysztof Kozlowski
2024-09-05 10:18 ` Ulf Hansson
1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-05 6:36 UTC (permalink / raw)
To: Detlev Casanova
Cc: linux-kernel, Ulf Hansson, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Jisheng Zhang, linux-mmc, devicetree, kernel
On Wed, Sep 04, 2024 at 04:30:58PM -0400, Detlev Casanova wrote:
> The device is compatible with rk3588, so add an entry for the 2
> compatibles together.
>
> The rk3576 device has a power-domain that needs to be on for the eMMC to
> be used. Add it as a requirement.
>
> Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
> ---
> .../bindings/mmc/snps,dwcmshc-sdhci.yaml | 37 +++++++++++++++----
> 1 file changed, 29 insertions(+), 8 deletions(-)
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4 1/1] dt-bindings: mmc: Add support for rk3576 eMMC
2024-09-04 20:30 ` [PATCH v4 1/1] " Detlev Casanova
2024-09-05 6:36 ` Krzysztof Kozlowski
@ 2024-09-05 10:18 ` Ulf Hansson
1 sibling, 0 replies; 4+ messages in thread
From: Ulf Hansson @ 2024-09-05 10:18 UTC (permalink / raw)
To: Detlev Casanova
Cc: linux-kernel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jisheng Zhang, linux-mmc, devicetree, kernel
On Wed, 4 Sept 2024 at 22:32, Detlev Casanova
<detlev.casanova@collabora.com> wrote:
>
> The device is compatible with rk3588, so add an entry for the 2
> compatibles together.
>
> The rk3576 device has a power-domain that needs to be on for the eMMC to
> be used. Add it as a requirement.
>
> Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
Applied for next, thanks!
Kind regards
Uffe
> ---
> .../bindings/mmc/snps,dwcmshc-sdhci.yaml | 37 +++++++++++++++----
> 1 file changed, 29 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> index 80d50178d2e3..c3d5e0230af1 100644
> --- a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> +++ b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
> @@ -12,14 +12,18 @@ maintainers:
>
> properties:
> compatible:
> - enum:
> - - rockchip,rk3568-dwcmshc
> - - rockchip,rk3588-dwcmshc
> - - snps,dwcmshc-sdhci
> - - sophgo,cv1800b-dwcmshc
> - - sophgo,sg2002-dwcmshc
> - - sophgo,sg2042-dwcmshc
> - - thead,th1520-dwcmshc
> + oneOf:
> + - items:
> + - const: rockchip,rk3576-dwcmshc
> + - const: rockchip,rk3588-dwcmshc
> + - enum:
> + - rockchip,rk3568-dwcmshc
> + - rockchip,rk3588-dwcmshc
> + - snps,dwcmshc-sdhci
> + - sophgo,cv1800b-dwcmshc
> + - sophgo,sg2002-dwcmshc
> + - sophgo,sg2042-dwcmshc
> + - thead,th1520-dwcmshc
>
> reg:
> maxItems: 1
> @@ -35,6 +39,9 @@ properties:
> minItems: 1
> maxItems: 5
>
> + power-domains:
> + maxItems: 1
> +
> resets:
> maxItems: 5
>
> @@ -97,6 +104,20 @@ allOf:
> - const: block
> - const: timer
>
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: rockchip,rk3576-dwcmshc
> +
> + then:
> + required:
> + - power-domains
> +
> + else:
> + properties:
> + power-domains: false
> +
> unevaluatedProperties: false
>
> examples:
> --
> 2.46.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-05 10:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-04 20:30 [PATCH v4 0/1] dt-bindings: mmc: Add support for rk3576 eMMC Detlev Casanova
2024-09-04 20:30 ` [PATCH v4 1/1] " Detlev Casanova
2024-09-05 6:36 ` Krzysztof Kozlowski
2024-09-05 10:18 ` Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®