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

dt-bindings: clocks: at91sam9x5-sckc: convert to yaml

Convert Atmel slow clock controller documentation to yaml.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230517094119.2894220-6-claudiu.beznea@microchip.com

+70 -30
-30
Documentation/devicetree/bindings/clock/at91-clock.txt
··· 1 - Device Tree Clock bindings for arch-at91 2 - 3 - This binding uses the common clock binding[1]. 4 - 5 - [1] Documentation/devicetree/bindings/clock/clock-bindings.txt 6 - 7 - Slow Clock controller: 8 - 9 - Required properties: 10 - - compatible : shall be one of the following: 11 - "atmel,at91sam9x5-sckc", 12 - "atmel,sama5d3-sckc", 13 - "atmel,sama5d4-sckc" or 14 - "microchip,sam9x60-sckc": 15 - at91 SCKC (Slow Clock Controller) 16 - - #clock-cells : shall be 1 for "microchip,sam9x60-sckc" otherwise shall be 0. 17 - - clocks : shall be the input parent clock phandle for the clock. 18 - 19 - Optional properties: 20 - - atmel,osc-bypass : boolean property. Set this when a clock signal is directly 21 - provided on XIN. 22 - 23 - For example: 24 - sckc@fffffe50 { 25 - compatible = "atmel,at91sam9x5-sckc"; 26 - reg = <0xfffffe50 0x4>; 27 - clocks = <&slow_xtal>; 28 - #clock-cells = <0>; 29 - }; 30 -
+70
Documentation/devicetree/bindings/clock/atmel,at91sam9x5-sckc.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/atmel,at91sam9x5-sckc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Atmel Slow Clock Controller (SCKC) 8 + 9 + maintainers: 10 + - Claudiu Beznea <claudiu.beznea@microchip.com> 11 + 12 + properties: 13 + compatible: 14 + oneOf: 15 + - enum: 16 + - atmel,at91sam9x5-sckc 17 + - atmel,sama5d3-sckc 18 + - atmel,sama5d4-sckc 19 + - microchip,sam9x60-sckc 20 + - items: 21 + - const: microchip,sama7g5-sckc 22 + - const: microchip,sam9x60-sckc 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + clocks: 28 + maxItems: 1 29 + 30 + "#clock-cells": 31 + enum: [0, 1] 32 + 33 + atmel,osc-bypass: 34 + type: boolean 35 + description: set when a clock signal is directly provided on XIN 36 + 37 + required: 38 + - compatible 39 + - reg 40 + - clocks 41 + - "#clock-cells" 42 + 43 + allOf: 44 + - if: 45 + properties: 46 + compatible: 47 + contains: 48 + enum: 49 + - microchip,sam9x60-sckc 50 + then: 51 + properties: 52 + "#clock-cells": 53 + const: 1 54 + else: 55 + properties: 56 + "#clock-cells": 57 + const: 0 58 + 59 + additionalProperties: false 60 + 61 + examples: 62 + - | 63 + clk32k: clock-controller@fffffe50 { 64 + compatible = "microchip,sam9x60-sckc"; 65 + reg = <0xfffffe50 0x4>; 66 + clocks = <&slow_xtal>; 67 + #clock-cells = <1>; 68 + }; 69 + 70 + ...