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

dt-bindings: clock: nxp,lpc3220-clk: Convert bindings to DT schema

Convert the NXP LPC32xx Clock Controller bindings to yaml format.

Cc: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
Link: https://lore.kernel.org/r/20240731065137.156935-1-animeshagarwal28@gmail.com
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Animesh Agarwal and committed by
Stephen Boyd
b33037a0 8400291e

+51 -30
-30
Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt
··· 1 - NXP LPC32xx Clock Controller 2 - 3 - Required properties: 4 - - compatible: should be "nxp,lpc3220-clk" 5 - - reg: should contain clock controller registers location and length 6 - - #clock-cells: must be 1, the cell holds id of a clock provided by the 7 - clock controller 8 - - clocks: phandles of external oscillators, the list must contain one 9 - 32768 Hz oscillator and may have one optional high frequency oscillator 10 - - clock-names: list of external oscillator clock names, must contain 11 - "xtal_32k" and may have optional "xtal" 12 - 13 - Examples: 14 - 15 - /* System Control Block */ 16 - scb { 17 - compatible = "simple-bus"; 18 - ranges = <0x0 0x040004000 0x00001000>; 19 - #address-cells = <1>; 20 - #size-cells = <1>; 21 - 22 - clk: clock-controller@0 { 23 - compatible = "nxp,lpc3220-clk"; 24 - reg = <0x00 0x114>; 25 - #clock-cells = <1>; 26 - 27 - clocks = <&xtal_32k>, <&xtal>; 28 - clock-names = "xtal_32k", "xtal"; 29 - }; 30 - };
+51
Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.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/nxp,lpc3220-clk.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP LPC32xx Clock Controller 8 + 9 + maintainers: 10 + - Animesh Agarwal <animeshagarwal28@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: nxp,lpc3220-clk 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + '#clock-cells': 20 + const: 1 21 + 22 + clocks: 23 + minItems: 1 24 + items: 25 + - description: External 32768 Hz oscillator. 26 + - description: Optional high frequency oscillator. 27 + 28 + clock-names: 29 + minItems: 1 30 + items: 31 + - const: xtal_32k 32 + - const: xtal 33 + 34 + required: 35 + - compatible 36 + - reg 37 + - '#clock-cells' 38 + - clocks 39 + - clock-names 40 + 41 + additionalProperties: false 42 + 43 + examples: 44 + - | 45 + clock-controller@0 { 46 + compatible = "nxp,lpc3220-clk"; 47 + reg = <0x00 0x114>; 48 + #clock-cells = <1>; 49 + clocks = <&xtal_32k>, <&xtal>; 50 + clock-names = "xtal_32k", "xtal"; 51 + };