Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Conor Dooley and committed by
Stephen Boyd
450c787c ba6165bc

+44 -23
-21
Documentation/devicetree/bindings/clock/gpio-gate-clock.txt
··· 1 - Binding for simple gpio gated clock. 2 - 3 - This binding uses the common clock binding[1]. 4 - 5 - [1] Documentation/devicetree/bindings/clock/clock-bindings.txt 6 - 7 - Required properties: 8 - - compatible : shall be "gpio-gate-clock". 9 - - #clock-cells : from common clock binding; shall be set to 0. 10 - - enable-gpios : GPIO reference for enabling and disabling the clock. 11 - 12 - Optional properties: 13 - - clocks: Maximum of one parent clock is supported. 14 - 15 - Example: 16 - clock { 17 - compatible = "gpio-gate-clock"; 18 - clocks = <&parentclk>; 19 - #clock-cells = <0>; 20 - enable-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; 21 - };
+42
Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml
··· 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 + };
+1 -1
Documentation/devicetree/bindings/clock/ti/gate.txt
··· 10 10 that is used. 11 11 12 12 [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 14 14 [3] Documentation/devicetree/bindings/clock/ti/clockdomain.txt 15 15 16 16 Required properties:
+1 -1
Documentation/devicetree/bindings/clock/ti/interface.txt
··· 9 9 clock) and hardware autoidle enable / disable. 10 10 11 11 [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 13 13 14 14 Required properties: 15 15 - compatible : shall be one of: