Hi Wolfram, > Subject: Re: [PATCH v3] dt-bindings: mmc: renesas,sdhi: add optional SDnH > clock > > > > Please let me know, if you want me to do this changes as separate > > patch(binding + dtsi) or Will you take care this? Both are ok to me. > > This patch is then good as-is with Biju sending the incremental patches? > Or did I miss something from this discussion? Just a question, Can we make max clocks to 4 for generic compatible? Then the patch will be like this. diff --git a/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml b/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml index 43fc6ac56038..6a9d58b33ef5 100644 --- a/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml +++ b/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml @@ -103,6 +103,39 @@ properties: allOf: - $ref: "mmc-controller.yaml" + - if: + properties: + compatible: + contains: + enum: + - renesas,rcar-gen2-sdhi + - renesas,rcar-gen3-sdhi + then: + properties: + clocks: + minItems: 1 + maxItems: 4 + clock-names: + minItems: 1 + maxItems: 4 + uniqueItems: true + items: + - const: core + - enum: [ clkh, cd ] + - const: cd + - const: aclk + else: + properties: + clocks: + minItems: 1 + maxItems: 2 + clock-names: + minItems: 1 + maxItems: 2 + items: + - const: core + - const: cd + - if: properties: compatible: @@ -113,53 +146,21 @@ allOf: clocks: items: - description: IMCLK, SDHI channel main clock1. + - description: CLK_HS, SDHI channel High speed clock which operates + 4 times that of SDHI channel main clock1. - description: IMCLK2, SDHI channel main clock2. When this clock is turned off, external SD card detection cannot be detected. - - description: CLK_HS, SDHI channel High speed clock which operates - 4 times that of SDHI channel main clock1. - description: ACLK, SDHI channel bus clock. clock-names: items: - - const: imclk - - const: imclk2 - - const: clk_hs + - const: core + - const: clkh + - const: cd - const: aclk required: - clock-names - resets - else: - if: - properties: - compatible: - contains: - enum: - - renesas,rcar-gen2-sdhi - - renesas,rcar-gen3-sdhi - then: - properties: - clocks: - minItems: 1 - maxItems: 3 - clock-names: - minItems: 1 - maxItems: 3 - uniqueItems: true - items: - - const: core - - enum: [ clkh, cd ] - - const: cd - else: - properties: - clocks: - minItems: 1 - maxItems: 2 - clock-names: - minItems: 1 - maxItems: 2 - items: - - const: core - - const: cd