Skip to content

Commit 450c787

Browse files
ConchuODbebarino
authored andcommitted
dt-bindings: clock: gpio-gate-clock: Convert to json-schema
Convert the simple GPIO clock gate Device Tree binding to json-schema and fix-up references to this file in other text format bindings. Jyri Sarha is the file's only editor/author so they have been added as maintainer of the new yaml binding. Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20220727131015.2073100-1-conor.dooley@microchip.com Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent ba6165b commit 450c787

File tree

4 files changed

+44
-23
lines changed

4 files changed

+44
-23
lines changed

Documentation/devicetree/bindings/clock/gpio-gate-clock.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/gpio-gate-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Simple GPIO clock gate
8+
9+
maintainers:
10+
- Jyri Sarha <jsarha@ti.com>
11+
12+
properties:
13+
compatible:
14+
const: gpio-gate-clock
15+
16+
clocks:
17+
maxItems: 1
18+
19+
'#clock-cells':
20+
const: 0
21+
22+
enable-gpios:
23+
description: GPIO reference for enabling and disabling the clock.
24+
maxItems: 1
25+
26+
required:
27+
- compatible
28+
- '#clock-cells'
29+
- enable-gpios
30+
31+
additionalProperties: false
32+
33+
examples:
34+
- |
35+
#include <dt-bindings/gpio/gpio.h>
36+
37+
clock {
38+
compatible = "gpio-gate-clock";
39+
clocks = <&parentclk>;
40+
#clock-cells = <0>;
41+
enable-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
42+
};

Documentation/devicetree/bindings/clock/ti/gate.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ will be controlled instead and the corresponding hw-ops for
1010
that is used.
1111

1212
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
13-
[2] Documentation/devicetree/bindings/clock/gpio-gate-clock.txt
13+
[2] Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml
1414
[3] Documentation/devicetree/bindings/clock/ti/clockdomain.txt
1515

1616
Required properties:

Documentation/devicetree/bindings/clock/ti/interface.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ companion clock finding (match corresponding functional gate
99
clock) and hardware autoidle enable / disable.
1010

1111
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
12-
[2] Documentation/devicetree/bindings/clock/gpio-gate-clock.txt
12+
[2] Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml
1313

1414
Required properties:
1515
- compatible : shall be one of:

0 commit comments

Comments
 (0)