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

dt-bindings: clock: Convert axis,artpec6-clkctrl to DT schema

Convert the Axis ARTPEC-6 clock controller to DT schema format. It's a
straight forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250521004647.1792464-1-robh@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Rob Herring (Arm) and committed by
Stephen Boyd
bd6ada56 4a7d79c8

+55 -41
-41
Documentation/devicetree/bindings/clock/artpec6.txt
··· 1 - * Clock bindings for Axis ARTPEC-6 chip 2 - 3 - The bindings are based on the clock provider binding in 4 - Documentation/devicetree/bindings/clock/clock-bindings.txt 5 - 6 - External clocks: 7 - ---------------- 8 - 9 - There are two external inputs to the main clock controller which should be 10 - provided using the common clock bindings. 11 - - "sys_refclk": External 50 Mhz oscillator (required) 12 - - "i2s_refclk": Alternate audio reference clock (optional). 13 - 14 - Main clock controller 15 - --------------------- 16 - 17 - Required properties: 18 - - #clock-cells: Should be <1> 19 - See dt-bindings/clock/axis,artpec6-clkctrl.h for the list of valid identifiers. 20 - - compatible: Should be "axis,artpec6-clkctrl" 21 - - reg: Must contain the base address and length of the system controller 22 - - clocks: Must contain a phandle entry for each clock in clock-names 23 - - clock-names: Must include the external oscillator ("sys_refclk"). Optional 24 - ones are the audio reference clock ("i2s_refclk") and the audio fractional 25 - dividers ("frac_clk0" and "frac_clk1"). 26 - 27 - Examples: 28 - 29 - ext_clk: ext_clk { 30 - #clock-cells = <0>; 31 - compatible = "fixed-clock"; 32 - clock-frequency = <50000000>; 33 - }; 34 - 35 - clkctrl: clkctrl@f8000000 { 36 - #clock-cells = <1>; 37 - compatible = "axis,artpec6-clkctrl"; 38 - reg = <0xf8000000 0x48>; 39 - clocks = <&ext_clk>; 40 - clock-names = "sys_refclk"; 41 - };
+55
Documentation/devicetree/bindings/clock/axis,artpec6-clkctrl.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/axis,artpec6-clkctrl.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Axis ARTPEC-6 clock controller 8 + 9 + maintainers: 10 + - Lars Persson <lars.persson@axis.com> 11 + 12 + properties: 13 + compatible: 14 + const: axis,artpec6-clkctrl 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + "#clock-cells": 20 + const: 1 21 + 22 + clocks: 23 + minItems: 1 24 + items: 25 + - description: external 50 MHz oscillator. 26 + - description: optional audio reference clock. 27 + - description: fractional audio clock divider 0. 28 + - description: fractional audio clock divider 1. 29 + 30 + clock-names: 31 + minItems: 1 32 + items: 33 + - const: sys_refclk 34 + - const: i2s_refclk 35 + - const: frac_clk0 36 + - const: frac_clk1 37 + 38 + required: 39 + - compatible 40 + - reg 41 + - "#clock-cells" 42 + - clocks 43 + - clock-names 44 + 45 + additionalProperties: false 46 + 47 + examples: 48 + - | 49 + clock-controller@f8000000 { 50 + compatible = "axis,artpec6-clkctrl"; 51 + reg = <0xf8000000 0x48>; 52 + #clock-cells = <1>; 53 + clocks = <&ext_clk>; 54 + clock-names = "sys_refclk"; 55 + };