diff options
| author | Rob Herring (Arm) <robh@kernel.org> | 2025-05-22 00:08:37 +0300 | 
|---|---|---|
| committer | Stephen Boyd <sboyd@kernel.org> | 2025-06-19 04:41:02 +0300 | 
| commit | 75cc48275fbb90e9b51e8c56339f985a689b9485 (patch) | |
| tree | 455d55a0de6f8410e5cb34bc9e41d124fba5ab9a | |
| parent | e3fcba910a05350fc292d1ba209cb4d5f1f0be87 (diff) | |
| download | linux-75cc48275fbb90e9b51e8c56339f985a689b9485.tar.xz | |
dt-bindings: clock: Convert marvell,berlin2-clk to DT schema
Convert the Marvell Berlin2 clock binding 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/20250521210839.62409-1-robh@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
| -rw-r--r-- | Documentation/devicetree/bindings/clock/marvell,berlin.txt | 31 | ||||
| -rw-r--r-- | Documentation/devicetree/bindings/clock/marvell,berlin2-clk.yaml | 51 | 
2 files changed, 51 insertions, 31 deletions
| diff --git a/Documentation/devicetree/bindings/clock/marvell,berlin.txt b/Documentation/devicetree/bindings/clock/marvell,berlin.txt deleted file mode 100644 index c611c495f3ff..000000000000 --- a/Documentation/devicetree/bindings/clock/marvell,berlin.txt +++ /dev/null @@ -1,31 +0,0 @@ -Device Tree Clock bindings for Marvell Berlin - -This binding uses the common clock binding[1]. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt - -Clock related registers are spread among the chip control registers. Berlin -clock node should be a sub-node of the chip controller node. Marvell Berlin2 -(BG2, BG2CD, BG2Q) SoCs share the same IP for PLLs and clocks, with some -minor differences in features and register layout. - -Required properties: -- compatible: must be "marvell,berlin2-clk" or "marvell,berlin2q-clk" -- #clock-cells: must be 1 -- clocks: must be the input parent clock phandle -- clock-names: name of the input parent clock -	Allowed clock-names for the reference clocks are -	"refclk" for the SoCs oscillator input on all SoCs, -	and SoC-specific input clocks for -	BG2/BG2CD: "video_ext0" for the external video clock input - - -Example: - -chip_clk: clock { -	compatible = "marvell,berlin2q-clk"; - -	#clock-cells = <1>; -	clocks = <&refclk>; -	clock-names = "refclk"; -}; diff --git a/Documentation/devicetree/bindings/clock/marvell,berlin2-clk.yaml b/Documentation/devicetree/bindings/clock/marvell,berlin2-clk.yaml new file mode 100644 index 000000000000..8d48a2c7e381 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/marvell,berlin2-clk.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/marvell,berlin2-clk.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell Berlin Clock Controller + +maintainers: +  - Jisheng Zhang <jszhang@kernel.org> + +description: +  Clock related registers are spread among the chip control registers. Berlin +  clock node should be a sub-node of the chip controller node. Marvell Berlin2 +  (BG2, BG2CD, BG2Q) SoCs share the same IP for PLLs and clocks, with some minor +  differences in features and register layout. + +properties: +  compatible: +    enum: +      - marvell,berlin2-clk +      - marvell,berlin2q-clk + +  '#clock-cells': +    const: 1 + +  clocks: +    maxItems: 1 + +  clock-names: +    items: +      - enum: +          - refclk +          - video_ext0 + +required: +  - compatible +  - '#clock-cells' +  - clocks +  - clock-names + +additionalProperties: false + +examples: +  - | +    clock-controller { +        compatible = "marvell,berlin2q-clk"; +        #clock-cells = <1>; +        clocks = <&refclk>; +        clock-names = "refclk"; +    }; | 
