summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml
blob: 393cb1be7819070069aa397179dad6a0e00a6bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

description: >
  Common properties for temperature sensors
  Zero values in degrees K(-273 in degrees C)in thermal thresholds will
  be ignored

compatible: cros-ec,temp-sensor

properties:
    label:
      required: true
      type: string
      description:
        Human-readable string describing the device (used as
        device_get_binding() argument)

    enum-name:
      type: string
      required: true
      description:
        Enum values used in the source code to refer to the temperature sensors
      enum:
      - TEMP_SENSOR_1
      - TEMP_SENSOR_2
      - TEMP_SENSOR_3
      - TEMP_SENSOR_4
      - TEMP_SENSOR_AMB
      - TEMP_SENSOR_CHARGER
      - TEMP_SENSOR_CPU
      - TEMP_SENSOR_DDR_SOC
      - TEMP_SENSOR_FAN
      - TEMP_SENSOR_MEMORY
      - TEMP_SENSOR_PP3300_REGULATOR
      - TEMP_SENSOR_SOC
      - TEMP_SENSOR_1_DDR_SOC
      - TEMP_SENSOR_2_AMBIENT
      - TEMP_SENSOR_3_CHARGER
      - TEMP_SENSOR_4_WWAN

    power-good-pin:
      type: phandle
      description:
        If this sensor will be unpowered some of the time, provide an input GPIO
        which can be referenced to detect whether the sensor is powered before
        reading.

    temp_fan_off:
      type: int
      description:
        Temperature threshold in degrees C when no active cooling
        is needed

    temp_fan_max:
      type: int
      description:
        Temperature threshold in degrees C when max active cooling
        is needed

    temp_host_warn:
      type: int
      description:
        Temperature threshold in degrees C of thermal warn.
        Temperatures above the thermal warn threshold generate a
        request to the AP to throttle itself.

    temp_host_high:
      type: int
      description:
        Temperature threshold in degrees C of thermal high.
        Temperatures above the thermal high threshold cause the EC to
        assert a signal (usually PROCHOT) to the AP and force the AP to
        throttle.

    temp_host_halt:
      type: int
      description:
        Temperature threshold in degrees C that forces AP to shutdown
        due to thermal reason

    temp_host_release_warn:
      type: int
      description:
        Temperature release threshold in degrees C of thermal warn

    temp_host_release_high:
      type: int
      description:
        Temperature release threshold in degrees C of thermal high

    temp_host_release_halt:
      type: int
      description:
        Temperature release threshold in degrees C of thermal shutdown