Documentation/devicetree/bindings/pwm/thead,th1520-pwm.yaml

Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/pwm/thead,th1520-pwm.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/devicetree/bindings/pwm/thead,th1520-pwm.yaml
Extension
.yaml
Size
884 bytes
Lines
49
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-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/pwm/thead,th1520-pwm.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: T-HEAD TH1520 PWM controller

maintainers:
  - Michal Wilczynski <m.wilczynski@samsung.com>

allOf:
  - $ref: pwm.yaml#

properties:
  compatible:
    const: thead,th1520-pwm

  reg:
    maxItems: 1

  clocks:
    items:
      - description: SoC PWM clock

  "#pwm-cells":
    const: 3

required:
  - compatible
  - reg
  - clocks

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/thead,th1520-clk-ap.h>
    soc {
      #address-cells = <2>;
      #size-cells = <2>;
      pwm@ffec01c000 {
          compatible = "thead,th1520-pwm";
          reg = <0xff 0xec01c000 0x0 0x4000>;
          clocks = <&clk CLK_PWM>;
          #pwm-cells = <3>;
      };
    };

Annotation

Implementation Notes