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

dt-bindings: clock: ti: Convert interface.txt to json-schema

Convert the OMAP interface clock device tree binding to json-schema.
Specify the creator of the original binding as a maintainer.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20241018085347.95071-2-andreas@kemnade.info
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Andreas Kemnade and committed by
Stephen Boyd
beec5847 9852d85e

+71 -55
-55
Documentation/devicetree/bindings/clock/ti/interface.txt
··· 1 - Binding for Texas Instruments interface clock. 2 - 3 - This binding uses the common clock binding[1]. This clock is 4 - quite much similar to the basic gate-clock [2], however, 5 - it supports a number of additional features, including 6 - companion clock finding (match corresponding functional gate 7 - clock) and hardware autoidle enable / disable. 8 - 9 - [1] Documentation/devicetree/bindings/clock/clock-bindings.txt 10 - [2] Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml 11 - 12 - Required properties: 13 - - compatible : shall be one of: 14 - "ti,omap3-interface-clock" - basic OMAP3 interface clock 15 - "ti,omap3-no-wait-interface-clock" - interface clock which has no hardware 16 - capability for waiting clock to be ready 17 - "ti,omap3-hsotgusb-interface-clock" - interface clock with USB specific HW 18 - handling 19 - "ti,omap3-dss-interface-clock" - interface clock with DSS specific HW handling 20 - "ti,omap3-ssi-interface-clock" - interface clock with SSI specific HW handling 21 - "ti,am35xx-interface-clock" - interface clock with AM35xx specific HW handling 22 - "ti,omap2430-interface-clock" - interface clock with OMAP2430 specific HW 23 - handling 24 - - #clock-cells : from common clock binding; shall be set to 0 25 - - clocks : link to phandle of parent clock 26 - - reg : base address for the control register 27 - 28 - Optional properties: 29 - - clock-output-names : from common clock binding. 30 - - ti,bit-shift : bit shift for the bit enabling/disabling the clock (default 0) 31 - 32 - Examples: 33 - aes1_ick: aes1_ick@48004a14 { 34 - #clock-cells = <0>; 35 - compatible = "ti,omap3-interface-clock"; 36 - clocks = <&security_l4_ick2>; 37 - reg = <0x48004a14 0x4>; 38 - ti,bit-shift = <3>; 39 - }; 40 - 41 - cam_ick: cam_ick@48004f10 { 42 - #clock-cells = <0>; 43 - compatible = "ti,omap3-no-wait-interface-clock"; 44 - clocks = <&l4_ick>; 45 - reg = <0x48004f10 0x4>; 46 - ti,bit-shift = <0>; 47 - }; 48 - 49 - ssi_ick_3430es2: ssi_ick_3430es2@48004a10 { 50 - #clock-cells = <0>; 51 - compatible = "ti,omap3-ssi-interface-clock"; 52 - clocks = <&ssi_l4_ick>; 53 - reg = <0x48004a10 0x4>; 54 - ti,bit-shift = <0>; 55 - };
+71
Documentation/devicetree/bindings/clock/ti/ti,interface-clock.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/ti/ti,interface-clock.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Texas Instruments interface clock. 8 + 9 + maintainers: 10 + - Tero Kristo <kristo@kernel.org> 11 + 12 + description: | 13 + This clock is quite much similar to the basic gate-clock[1], however, 14 + it supports a number of additional features, including 15 + companion clock finding (match corresponding functional gate 16 + clock) and hardware autoidle enable / disable. 17 + 18 + [1] Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml 19 + 20 + properties: 21 + compatible: 22 + enum: 23 + - ti,omap3-interface-clock # basic OMAP3 interface clock 24 + - ti,omap3-no-wait-interface-clock # interface clock which has no hardware 25 + # capability for waiting clock to be ready 26 + - ti,omap3-hsotgusb-interface-clock # interface clock with USB specific HW handling 27 + - ti,omap3-dss-interface-clock # interface clock with DSS specific HW handling 28 + - ti,omap3-ssi-interface-clock # interface clock with SSI specific HW handling 29 + - ti,am35xx-interface-clock # interface clock with AM35xx specific HW handling 30 + - ti,omap2430-interface-clock # interface clock with OMAP2430 specific HW handling 31 + 32 + "#clock-cells": 33 + const: 0 34 + 35 + clocks: 36 + maxItems: 1 37 + 38 + clock-output-names: 39 + maxItems: 1 40 + 41 + reg: 42 + maxItems: 1 43 + 44 + ti,bit-shift: 45 + description: 46 + bit shift for the bit enabling/disabling the clock 47 + $ref: /schemas/types.yaml#/definitions/uint32 48 + default: 0 49 + maximum: 31 50 + 51 + required: 52 + - compatible 53 + - clocks 54 + - '#clock-cells' 55 + - reg 56 + 57 + additionalProperties: false 58 + 59 + examples: 60 + - | 61 + bus { 62 + #address-cells = <1>; 63 + #size-cells = <0>; 64 + 65 + aes1_ick: clock-controller@3 { 66 + #clock-cells = <0>; 67 + compatible = "ti,omap3-interface-clock"; 68 + clocks = <&security_l4_ick2>; 69 + reg = <3>; 70 + }; 71 + };