linux/Documentation/devicetree/bindings/clock/sophgo,sg2042-rpgate.yaml

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

title: Sophgo SG2042 Gate Clock Generator for RP(riscv processors) subsystem

maintainers:
  - Chen Wang <[email protected]>

properties:
  compatible:
    const: sophgo,sg2042-rpgate

  reg:
    maxItems: 1

  clocks:
    items:
      - description: Gate clock for RP subsystem

  clock-names:
    items:
      - const: rpgate

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

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

additionalProperties: false

examples:
  - |
    clock-controller@20000000 {
      compatible = "sophgo,sg2042-rpgate";
      reg = <0x20000000 0x10000>;
      clocks = <&clkgen 85>;
      clock-names = "rpgate";
      #clock-cells = <1>;
    };