xref: /linux/Documentation/devicetree/bindings/hwmon/eswin,eic7700-pvt.yaml (revision 7acf90feab8b009fde7def08ff2c622d0f10e99f)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/hwmon/eswin,eic7700-pvt.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ESWIN EIC7700 PVT Sensor
8
9maintainers:
10  - Yulin Lu <luyulin@eswincomputing.com>
11  - Huan He <hehuan1@eswincomputing.com>
12
13description:
14  ESWIN EIC7700 SoC integrates embedded voltage and temperature sensors to
15  monitor the internal SoC environment. The system includes two PVT sensor
16  instances. The PVT0 monitors the main SoC power domain. The PVT1 sensor
17  monitors the DDR core power domain.
18
19allOf:
20  - $ref: /schemas/hwmon/hwmon-common.yaml#
21
22properties:
23  compatible:
24    const: eswin,eic7700-pvt
25
26  reg:
27    maxItems: 1
28
29  clocks:
30    items:
31      - description: PVT enable clock
32      - description: APB bus clock
33
34  clock-names:
35    items:
36      - const: enable
37      - const: apb
38
39  interrupts:
40    maxItems: 1
41
42  resets:
43    maxItems: 1
44
45  '#thermal-sensor-cells':
46    const: 0
47
48required:
49  - compatible
50  - reg
51  - clocks
52  - clock-names
53  - interrupts
54  - resets
55  - '#thermal-sensor-cells'
56
57unevaluatedProperties: false
58
59examples:
60  - |
61    sensor@50b00000 {
62      compatible = "eswin,eic7700-pvt";
63      reg = <0x50b00000 0x10000>;
64      clocks = <&clocks 244>, <&clocks 234>;
65      clock-names = "enable", "apb";
66      interrupts = <349>;
67      interrupt-parent = <&plic>;
68      label = "pvt0";
69      resets = <&reset 111>;
70      #thermal-sensor-cells = <0>;
71    };
72...
73