Documentation/devicetree/bindings/thermal/spacemit,k1-tsensor.yaml

Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/thermal/spacemit,k1-tsensor.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/devicetree/bindings/thermal/spacemit,k1-tsensor.yaml
Extension
.yaml
Size
1584 bytes
Lines
77
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/thermal/spacemit,k1-tsensor.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: SpacemiT K1 Thermal Sensor

description:
  The SpacemiT K1 Thermal Sensor monitors the temperature of the SoC
  using multiple internal sensors (e.g., soc, package, gpu, clusters).

maintainers:
  - Shuwei Wu <shuwei.wu@mailbox.org>

$ref: thermal-sensor.yaml#

properties:
  compatible:
    const: spacemit,k1-tsensor

  reg:
    maxItems: 1

  clocks:
    items:
      - description: Core clock for thermal sensor
      - description: Bus clock for thermal sensor

  clock-names:
    items:
      - const: core
      - const: bus

  interrupts:
    maxItems: 1

  resets:
    items:
      - description: Reset for the thermal sensor

  "#thermal-sensor-cells":
    const: 1
    description:
      The first cell indicates the sensor ID.
      0 = soc
      1 = package
      2 = gpu
      3 = cluster0
      4 = cluster1

required:
  - compatible
  - reg
  - clocks
  - clock-names
  - interrupts
  - resets
  - "#thermal-sensor-cells"

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/spacemit,k1-syscon.h>

    thermal@d4018000 {
        compatible = "spacemit,k1-tsensor";
        reg = <0xd4018000 0x100>;
        clocks = <&syscon_apbc CLK_TSEN>,

Annotation

Implementation Notes