diff mbox series

[v2,4/4] dt-bindings: mmc: convert sdhci-dove to JSON schema

Message ID 20220419024611.1327525-5-chris.packham@alliedtelesis.co.nz (mailing list archive)
State New, archived
Headers show
Series dt-bindings: mmc: Convert orion/dove bindings to JSON schema | expand

Commit Message

Chris Packham April 19, 2022, 2:46 a.m. UTC
Convert the sdhci-dove binding to JSON schema. The optional clocks
property was not in the original binding document but has been in the
dove.dtsi since commit 5b03df9ace68 ("ARM: dove: switch to DT clock
providers").

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---

Notes:
    Changes in v2:
    - Add clocks property
    - interrupts.maxItems = 2
    - Update maintainers based on ./scripts/get_maintainer.pl -f drivers/mmc/host/sdhci-dove.c

 .../bindings/mmc/marvell,dove-sdhci.yaml      | 44 +++++++++++++++++++
 .../devicetree/bindings/mmc/sdhci-dove.txt    | 14 ------
 2 files changed, 44 insertions(+), 14 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
 delete mode 100644 Documentation/devicetree/bindings/mmc/sdhci-dove.txt

Comments

Krzysztof Kozlowski April 19, 2022, 7:39 a.m. UTC | #1
On 19/04/2022 04:46, Chris Packham wrote:
> Convert the sdhci-dove binding to JSON schema. The optional clocks
> property was not in the original binding document but has been in the
> dove.dtsi since commit 5b03df9ace68 ("ARM: dove: switch to DT clock
> providers").
> 
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof
Andrew Lunn April 19, 2022, 12:11 p.m. UTC | #2
On Tue, Apr 19, 2022 at 02:46:11PM +1200, Chris Packham wrote:
> Convert the sdhci-dove binding to JSON schema. The optional clocks
> property was not in the original binding document but has been in the
> dove.dtsi since commit 5b03df9ace68 ("ARM: dove: switch to DT clock
> providers").
> 
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Ulf Hansson April 21, 2022, 1:54 p.m. UTC | #3
On Tue, 19 Apr 2022 at 04:46, Chris Packham
<chris.packham@alliedtelesis.co.nz> wrote:
>
> Convert the sdhci-dove binding to JSON schema. The optional clocks
> property was not in the original binding document but has been in the
> dove.dtsi since commit 5b03df9ace68 ("ARM: dove: switch to DT clock
> providers").
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>

Applied for next, thanks!

Kind regards
Uffe


> ---
>
> Notes:
>     Changes in v2:
>     - Add clocks property
>     - interrupts.maxItems = 2
>     - Update maintainers based on ./scripts/get_maintainer.pl -f drivers/mmc/host/sdhci-dove.c
>
>  .../bindings/mmc/marvell,dove-sdhci.yaml      | 44 +++++++++++++++++++
>  .../devicetree/bindings/mmc/sdhci-dove.txt    | 14 ------
>  2 files changed, 44 insertions(+), 14 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
>  delete mode 100644 Documentation/devicetree/bindings/mmc/sdhci-dove.txt
>
> diff --git a/Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml b/Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
> new file mode 100644
> index 000000000000..7c9c652ad59c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
> @@ -0,0 +1,44 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mmc/marvell,dove-sdhci.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Marvell sdhci-dove controller
> +
> +maintainers:
> +  - Adrian Hunter <adrian.hunter@intel.com>
> +  - Ulf Hansson <ulf.hansson@linaro.org>
> +
> +allOf:
> +  - $ref: mmc-controller.yaml#
> +
> +properties:
> +  compatible:
> +    const: marvell,dove-sdhci
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    minItems: 1
> +    maxItems: 2
> +
> +  clocks:
> +    maxItems: 1
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    sdio0: mmc@92000 {
> +      compatible = "marvell,dove-sdhci";
> +      reg = <0x92000 0x100>;
> +      interrupts = <35>;
> +      clocks = <&gate_clk 9>;
> +    };
> diff --git a/Documentation/devicetree/bindings/mmc/sdhci-dove.txt b/Documentation/devicetree/bindings/mmc/sdhci-dove.txt
> deleted file mode 100644
> index ae9aab9abcd7..000000000000
> --- a/Documentation/devicetree/bindings/mmc/sdhci-dove.txt
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -* Marvell sdhci-dove controller
> -
> -This file documents differences between the core properties in mmc.txt
> -and the properties used by the sdhci-pxav2 and sdhci-pxav3 drivers.
> -
> -- compatible: Should be "marvell,dove-sdhci".
> -
> -Example:
> -
> -sdio0: sdio@92000 {
> -       compatible = "marvell,dove-sdhci";
> -       reg = <0x92000 0x100>;
> -       interrupts = <35>;
> -};
> --
> 2.35.1
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml b/Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
new file mode 100644
index 000000000000..7c9c652ad59c
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
@@ -0,0 +1,44 @@ 
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mmc/marvell,dove-sdhci.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell sdhci-dove controller
+
+maintainers:
+  - Adrian Hunter <adrian.hunter@intel.com>
+  - Ulf Hansson <ulf.hansson@linaro.org>
+
+allOf:
+  - $ref: mmc-controller.yaml#
+
+properties:
+  compatible:
+    const: marvell,dove-sdhci
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    minItems: 1
+    maxItems: 2
+
+  clocks:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    sdio0: mmc@92000 {
+      compatible = "marvell,dove-sdhci";
+      reg = <0x92000 0x100>;
+      interrupts = <35>;
+      clocks = <&gate_clk 9>;
+    };
diff --git a/Documentation/devicetree/bindings/mmc/sdhci-dove.txt b/Documentation/devicetree/bindings/mmc/sdhci-dove.txt
deleted file mode 100644
index ae9aab9abcd7..000000000000
--- a/Documentation/devicetree/bindings/mmc/sdhci-dove.txt
+++ /dev/null
@@ -1,14 +0,0 @@ 
-* Marvell sdhci-dove controller
-
-This file documents differences between the core properties in mmc.txt
-and the properties used by the sdhci-pxav2 and sdhci-pxav3 drivers.
-
-- compatible: Should be "marvell,dove-sdhci".
-
-Example:
-
-sdio0: sdio@92000 {
-	compatible = "marvell,dove-sdhci";
-	reg = <0x92000 0x100>;
-	interrupts = <35>;
-};