diff mbox series

[RFC,v3,4/4] dt-binding: mmc: histb-dw-mshc: Add Hi3798MV200 compatible string

Message ID 20230415-mmc-hi3798mv200-v3-4-00e2368c0709@outlook.com (mailing list archive)
State New, archived
Headers show
Series mmc: add support for the dw-mmc controller on Hi3798MV200 | expand

Commit Message

Yang Xiwen via B4 Relay April 16, 2023, 8:46 a.m. UTC
From: Yang Xiwen <forbidden405@outlook.com>

Add Hi3798MV200 compatible string and an extra clock for it.

Signed-off-by: Yang Xiwen <forbidden405@outlook.com>
---
 Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Comments

Krzysztof Kozlowski April 16, 2023, 8:55 a.m. UTC | #1
On 16/04/2023 10:46, Yang Xiwen via B4 Relay wrote:
> From: Yang Xiwen <forbidden405@outlook.com>
> 
> Add Hi3798MV200 compatible string and an extra clock for it.
> 
> Signed-off-by: Yang Xiwen <forbidden405@outlook.com>
> ---
>  Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml b/Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml
> index 4711ad293b9e8..bcc8ea393981f 100644
> --- a/Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml
> +++ b/Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml
> @@ -19,6 +19,7 @@ properties:
>    compatible:
>      enum:
>        - hisilicon,hi3798cv200-dw-mshc
> +      - hisilicon,hi3798mv200-dw-mshc
>  
>    reg:
>      maxItems: 1
> @@ -28,13 +29,16 @@ properties:
>  
>    clocks:
>      minItems: 4
> +    maxItems: 5
>  
>    clock-names:
> +    minItems: 4
>      items:
>        - const: ciu
>        - const: biu
>        - const: ciu-sample
>        - const: ciu-drive
> +      - const: sap-dll-mode
>  
>  unevaluatedProperties: false
>  
> @@ -47,6 +51,18 @@ required:
>  
>  allOf:
>    - $ref: synopsys-dw-mshc-common.yaml#
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: hisilicon,hi3798mv200-dw-mshc
> +    then:
> +      properties:
> +        clocks:
> +          minItems: 5
> +
> +        clock-names:
> +          minItems: 5

else - maxItems: 4 for both


Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml b/Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml
index 4711ad293b9e8..bcc8ea393981f 100644
--- a/Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml
+++ b/Documentation/devicetree/bindings/mmc/histb-dw-mshc.yaml
@@ -19,6 +19,7 @@  properties:
   compatible:
     enum:
       - hisilicon,hi3798cv200-dw-mshc
+      - hisilicon,hi3798mv200-dw-mshc
 
   reg:
     maxItems: 1
@@ -28,13 +29,16 @@  properties:
 
   clocks:
     minItems: 4
+    maxItems: 5
 
   clock-names:
+    minItems: 4
     items:
       - const: ciu
       - const: biu
       - const: ciu-sample
       - const: ciu-drive
+      - const: sap-dll-mode
 
 unevaluatedProperties: false
 
@@ -47,6 +51,18 @@  required:
 
 allOf:
   - $ref: synopsys-dw-mshc-common.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: hisilicon,hi3798mv200-dw-mshc
+    then:
+      properties:
+        clocks:
+          minItems: 5
+
+        clock-names:
+          minItems: 5
 
 examples:
   - |