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

dt-bindings: clock: actions,owl-cmu: convert to YAML

Convert the Actions Semi Owl CMU bindings to DT schema.

Changes during conversion:
- Since all Actions Semi Owl SoCs utilize the internal low frequency
oscillator as a parent for some clocks, require it.

Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20241114072601.265011-1-ivo.ivanov.ivanov1@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Ivaylo Ivanov and committed by
Stephen Boyd
0c193c24 5fbe6f51

+61 -53
-52
Documentation/devicetree/bindings/clock/actions,owl-cmu.txt
··· 1 - * Actions Semi Owl Clock Management Unit (CMU) 2 - 3 - The Actions Semi Owl Clock Management Unit generates and supplies clock 4 - to various controllers within the SoC. The clock binding described here is 5 - applicable to S900, S700 and S500 SoC's. 6 - 7 - Required Properties: 8 - 9 - - compatible: should be one of the following, 10 - "actions,s900-cmu" 11 - "actions,s700-cmu" 12 - "actions,s500-cmu" 13 - - reg: physical base address of the controller and length of memory mapped 14 - region. 15 - - clocks: Reference to the parent clocks ("hosc", "losc") 16 - - #clock-cells: should be 1. 17 - - #reset-cells: should be 1. 18 - 19 - Each clock is assigned an identifier, and client nodes can use this identifier 20 - to specify the clock which they consume. 21 - 22 - All available clocks are defined as preprocessor macros in corresponding 23 - dt-bindings/clock/actions,s900-cmu.h or actions,s700-cmu.h or 24 - actions,s500-cmu.h header and can be used in device tree sources. 25 - 26 - External clocks: 27 - 28 - The hosc clock used as input for the plls is generated outside the SoC. It is 29 - expected that it is defined using standard clock bindings as "hosc". 30 - 31 - Actions Semi S900 CMU also requires one more clock: 32 - - "losc" - internal low frequency oscillator 33 - 34 - Example: Clock Management Unit node: 35 - 36 - cmu: clock-controller@e0160000 { 37 - compatible = "actions,s900-cmu"; 38 - reg = <0x0 0xe0160000 0x0 0x1000>; 39 - clocks = <&hosc>, <&losc>; 40 - #clock-cells = <1>; 41 - #reset-cells = <1>; 42 - }; 43 - 44 - Example: UART controller node that consumes clock generated by the clock 45 - management unit: 46 - 47 - uart: serial@e012a000 { 48 - compatible = "actions,s900-uart", "actions,owl-uart"; 49 - reg = <0x0 0xe012a000 0x0 0x2000>; 50 - interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; 51 - clocks = <&cmu CLK_UART5>; 52 - };
+60
Documentation/devicetree/bindings/clock/actions,owl-cmu.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/actions,owl-cmu.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Actions Semi Owl Clock Management Unit (CMU) 8 + 9 + maintainers: 10 + - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> 11 + 12 + description: | 13 + The Actions Semi Owl Clock Management Unit generates and supplies clock 14 + to various controllers within the SoC. 15 + 16 + See also: 17 + include/dt-bindings/clock/actions,s500-cmu.h 18 + include/dt-bindings/clock/actions,s700-cmu.h 19 + include/dt-bindings/clock/actions,s900-cmu.h 20 + 21 + properties: 22 + compatible: 23 + enum: 24 + - actions,s500-cmu 25 + - actions,s700-cmu 26 + - actions,s900-cmu 27 + 28 + reg: 29 + maxItems: 1 30 + 31 + clocks: 32 + items: 33 + - description: Host oscillator source 34 + - description: Internal low frequency oscillator source 35 + 36 + "#clock-cells": 37 + const: 1 38 + 39 + "#reset-cells": 40 + const: 1 41 + 42 + required: 43 + - compatible 44 + - reg 45 + - clocks 46 + - "#clock-cells" 47 + - "#reset-cells" 48 + 49 + additionalProperties: false 50 + 51 + examples: 52 + - | 53 + clock-controller@e0160000 { 54 + compatible = "actions,s900-cmu"; 55 + reg = <0xe0160000 0x1000>; 56 + clocks = <&hosc>, <&losc>; 57 + #clock-cells = <1>; 58 + #reset-cells = <1>; 59 + }; 60 + ...
+1 -1
MAINTAINERS
··· 1996 1996 L: linux-actions@lists.infradead.org (moderated for non-subscribers) 1997 1997 S: Maintained 1998 1998 F: Documentation/devicetree/bindings/arm/actions.yaml 1999 - F: Documentation/devicetree/bindings/clock/actions,owl-cmu.txt 1999 + F: Documentation/devicetree/bindings/clock/actions,owl-cmu.yaml 2000 2000 F: Documentation/devicetree/bindings/dma/owl-dma.yaml 2001 2001 F: Documentation/devicetree/bindings/i2c/i2c-owl.yaml 2002 2002 F: Documentation/devicetree/bindings/interrupt-controller/actions,owl-sirq.yaml