Unverified Commit f2cb67d7 authored by Rob Herring (Arm)'s avatar Rob Herring (Arm) Committed by Stephen Boyd
Browse files

dt-bindings: clock: Convert moxa,moxart-clock to DT schema

parent ce2930ae
Loading
Loading
Loading
Loading
+0 −48
Original line number Diff line number Diff line
Device Tree Clock bindings for arch-moxart

This binding uses the common clock binding[1].

[1] Documentation/devicetree/bindings/clock/clock-bindings.txt

MOXA ART SoCs allow to determine PLL output and APB frequencies
by reading registers holding multiplier and divisor information.


PLL:

Required properties:
- compatible : Must be "moxa,moxart-pll-clock"
- #clock-cells : Should be 0
- reg : Should contain registers location and length
- clocks : Should contain phandle + clock-specifier for the parent clock

Optional properties:
- clock-output-names : Should contain clock name


APB:

Required properties:
- compatible : Must be "moxa,moxart-apb-clock"
- #clock-cells : Should be 0
- reg : Should contain registers location and length
- clocks : Should contain phandle + clock-specifier for the parent clock

Optional properties:
- clock-output-names : Should contain clock name


For example:

	clk_pll: clk_pll@98100000 {
		compatible = "moxa,moxart-pll-clock";
		#clock-cells = <0>;
		reg = <0x98100000 0x34>;
	};

	clk_apb: clk_apb@98100000 {
		compatible = "moxa,moxart-apb-clock";
		#clock-cells = <0>;
		reg = <0x98100000 0x34>;
		clocks = <&clk_pll>;
	};
+38 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/moxa,moxart-clock.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: MOXA ART Clock Controllers

maintainers:
  - Krzysztof Kozlowski <krzk@kernel.org>

description:
  MOXA ART SoCs allow to determine PLL output and APB frequencies by reading
  registers holding multiplier and divisor information.

properties:
  compatible:
    enum:
      - moxa,moxart-apb-clock
      - moxa,moxart-pll-clock

  "#clock-cells":
    const: 0

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-output-names: true

additionalProperties: false

required:
  - compatible
  - "#clock-cells"
  - reg
+1 −1
Original line number Diff line number Diff line
@@ -2884,7 +2884,7 @@ M: Krzysztof Kozlowski <krzk@kernel.org>
L:	linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
S:	Odd Fixes
F:	Documentation/devicetree/bindings/arm/moxart.yaml
F:	Documentation/devicetree/bindings/clock/moxa,moxart-clock.txt
F:	Documentation/devicetree/bindings/clock/moxa,moxart-clock.yaml
F:	arch/arm/boot/dts/moxa/
F:	drivers/clk/clk-moxart.c