Documentation/devicetree/bindings/clock/sophgo,sg2042-pll.yaml

Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/clock/sophgo,sg2042-pll.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/devicetree/bindings/clock/sophgo,sg2042-pll.yaml
Extension
.yaml
Size
1217 bytes
Lines
54
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/sophgo,sg2042-pll.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Sophgo SG2042 PLL Clock Generator

maintainers:
  - Chen Wang <unicorn_wang@outlook.com>

properties:
  compatible:
    const: sophgo,sg2042-pll

  reg:
    maxItems: 1

  clocks:
    items:
      - description: Oscillator(Clock Generation IC) for Main/Fixed PLL (25 MHz)
      - description: Oscillator(Clock Generation IC) for DDR PLL 0 (25 MHz)
      - description: Oscillator(Clock Generation IC) for DDR PLL 1 (25 MHz)

  clock-names:
    items:
      - const: cgi_main
      - const: cgi_dpll0
      - const: cgi_dpll1

  '#clock-cells':
    const: 1
    description:
      See <dt-bindings/clock/sophgo,sg2042-pll.h> for valid indices.

required:
  - compatible
  - reg
  - clocks
  - clock-names
  - '#clock-cells'

additionalProperties: false

examples:
  - |
    clock-controller@10000000 {
      compatible = "sophgo,sg2042-pll";
      reg = <0x10000000 0x10000>;
      clocks = <&cgi_main>, <&cgi_dpll0>, <&cgi_dpll1>;
      clock-names = "cgi_main", "cgi_dpll0", "cgi_dpll1";
      #clock-cells = <1>;
    };

Annotation

Implementation Notes