* [PATCH] dt-bindings: clock: gpio-mux-clock: Convert to json-schema
@ 2021-06-11 12:30 Geert Uytterhoeven
2021-06-16 17:57 ` Rob Herring
2021-06-25 22:42 ` Stephen Boyd
0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2021-06-11 12:30 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Rob Herring, Sergej Sawazki
Cc: linux-clk, devicetree, Geert Uytterhoeven
Convert the simple GPIO clock multiplexer Device Tree binding
documentation to json-schema.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
.../bindings/clock/gpio-mux-clock.txt | 19 --------
.../bindings/clock/gpio-mux-clock.yaml | 45 +++++++++++++++++++
2 files changed, 45 insertions(+), 19 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/clock/gpio-mux-clock.txt
create mode 100644 Documentation/devicetree/bindings/clock/gpio-mux-clock.yaml
diff --git a/Documentation/devicetree/bindings/clock/gpio-mux-clock.txt b/Documentation/devicetree/bindings/clock/gpio-mux-clock.txt
deleted file mode 100644
index 2be1e038ca62907a..0000000000000000
--- a/Documentation/devicetree/bindings/clock/gpio-mux-clock.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-Binding for simple gpio clock multiplexer.
-
-This binding uses the common clock binding[1].
-
-[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
-
-Required properties:
-- compatible : shall be "gpio-mux-clock".
-- clocks: list of two references to parent clocks.
-- #clock-cells : from common clock binding; shall be set to 0.
-- select-gpios : GPIO reference for selecting the parent clock.
-
-Example:
- clock {
- compatible = "gpio-mux-clock";
- clocks = <&parentclk1>, <&parentclk2>;
- #clock-cells = <0>;
- select-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
- };
diff --git a/Documentation/devicetree/bindings/clock/gpio-mux-clock.yaml b/Documentation/devicetree/bindings/clock/gpio-mux-clock.yaml
new file mode 100644
index 0000000000000000..1e21f8b3a4ff42dc
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/gpio-mux-clock.yaml
@@ -0,0 +1,45 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/gpio-mux-clock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Simple GPIO clock multiplexer
+
+maintainers:
+ - Sergej Sawazki <ce3a@gmx.de>
+
+properties:
+ compatible:
+ const: gpio-mux-clock
+
+ clocks:
+ items:
+ - description: First parent clock
+ - description: Second parent clock
+
+ '#clock-cells':
+ const: 0
+
+ select-gpios:
+ description: GPIO reference for selecting the parent clock.
+ maxItems: 1
+
+required:
+ - compatible
+ - clocks
+ - '#clock-cells'
+ - select-gpios
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ clock {
+ compatible = "gpio-mux-clock";
+ clocks = <&parentclk1>, <&parentclk2>;
+ #clock-cells = <0>;
+ select-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
+ };
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: clock: gpio-mux-clock: Convert to json-schema
2021-06-11 12:30 [PATCH] dt-bindings: clock: gpio-mux-clock: Convert to json-schema Geert Uytterhoeven
@ 2021-06-16 17:57 ` Rob Herring
2021-06-25 22:42 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2021-06-16 17:57 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: linux-clk, Sergej Sawazki, Michael Turquette, Stephen Boyd,
devicetree, Rob Herring
On Fri, 11 Jun 2021 14:30:47 +0200, Geert Uytterhoeven wrote:
> Convert the simple GPIO clock multiplexer Device Tree binding
> documentation to json-schema.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> .../bindings/clock/gpio-mux-clock.txt | 19 --------
> .../bindings/clock/gpio-mux-clock.yaml | 45 +++++++++++++++++++
> 2 files changed, 45 insertions(+), 19 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/clock/gpio-mux-clock.txt
> create mode 100644 Documentation/devicetree/bindings/clock/gpio-mux-clock.yaml
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: clock: gpio-mux-clock: Convert to json-schema
2021-06-11 12:30 [PATCH] dt-bindings: clock: gpio-mux-clock: Convert to json-schema Geert Uytterhoeven
2021-06-16 17:57 ` Rob Herring
@ 2021-06-25 22:42 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2021-06-25 22:42 UTC (permalink / raw)
To: Geert Uytterhoeven, Michael Turquette, Rob Herring, Sergej Sawazki
Cc: linux-clk, devicetree, Geert Uytterhoeven
Quoting Geert Uytterhoeven (2021-06-11 05:30:47)
> Convert the simple GPIO clock multiplexer Device Tree binding
> documentation to json-schema.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-25 22:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11 12:30 [PATCH] dt-bindings: clock: gpio-mux-clock: Convert to json-schema Geert Uytterhoeven
2021-06-16 17:57 ` Rob Herring
2021-06-25 22:42 ` Stephen Boyd
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.