Commit 2227e738 authored by Neil Armstrong's avatar Neil Armstrong
Browse files

dt-bindings: soc: amlogic: convert clk-measure.txt to dt-schema

parent fe15c26e
Loading
Loading
Loading
Loading
+40 −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/soc/amlogic/amlogic,meson-gx-clk-measure.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Amlogic Internal Clock Measurer

description:
  The Amlogic SoCs contains an IP to measure the internal clocks.
  The precision is multiple of MHz, useful to debug the clock states.

maintainers:
  - Neil Armstrong <neil.armstrong@linaro.org>

properties:
  compatible:
    enum:
      - amlogic,meson-gx-clk-measure
      - amlogic,meson8-clk-measure
      - amlogic,meson8b-clk-measure
      - amlogic,meson-axg-clk-measure
      - amlogic,meson-g12a-clk-measure
      - amlogic,meson-sm1-clk-measure

  reg:
    maxItems: 1

required:
  - compatible
  - reg

unevaluatedProperties: false

examples:
  - |
    clock-measure@8758 {
        compatible = "amlogic,meson-gx-clk-measure";
        reg = <0x8758 0x10>;
    };
+0 −21
Original line number Diff line number Diff line
Amlogic Internal Clock Measurer
===============================

The Amlogic SoCs contains an IP to measure the internal clocks.
The precision is multiple of MHz, useful to debug the clock states.

Required properties:
- compatible: Shall contain one of the following :
			"amlogic,meson-gx-clk-measure" for GX SoCs
			"amlogic,meson8-clk-measure" for Meson8 SoCs
			"amlogic,meson8b-clk-measure" for Meson8b SoCs
			"amlogic,meson-axg-clk-measure" for AXG SoCs
			"amlogic,meson-g12a-clk-measure" for G12a SoCs
			"amlogic,meson-sm1-clk-measure" for SM1 SoCs
- reg: base address and size of the Clock Measurer register space.

Example:
	clock-measure@8758 {
		compatible = "amlogic,meson-gx-clk-measure";
		reg = <0x0 0x8758 0x0 0x10>;
	};