xref: /freebsd/sys/contrib/device-tree/Bindings/thermal/hisilicon,tsensor.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*0e8011faSEmmanuel Vadot%YAML 1.2
3*0e8011faSEmmanuel Vadot---
4*0e8011faSEmmanuel Vadot$id: http://devicetree.org/schemas/thermal/hisilicon,tsensor.yaml#
5*0e8011faSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*0e8011faSEmmanuel Vadot
7*0e8011faSEmmanuel Vadottitle: Temperature Sensor on HiSilicon SoCs
8*0e8011faSEmmanuel Vadot
9*0e8011faSEmmanuel Vadotmaintainers:
10*0e8011faSEmmanuel Vadot  - Abdulrasaq Lawani <abdulrasaqolawani@gmail.com>
11*0e8011faSEmmanuel Vadot
12*0e8011faSEmmanuel VadotallOf:
13*0e8011faSEmmanuel Vadot  - $ref: thermal-sensor.yaml
14*0e8011faSEmmanuel Vadot
15*0e8011faSEmmanuel Vadotproperties:
16*0e8011faSEmmanuel Vadot  compatible:
17*0e8011faSEmmanuel Vadot    enum:
18*0e8011faSEmmanuel Vadot      - hisilicon,tsensor
19*0e8011faSEmmanuel Vadot      - hisilicon,hi3660-tsensor
20*0e8011faSEmmanuel Vadot
21*0e8011faSEmmanuel Vadot  reg:
22*0e8011faSEmmanuel Vadot    maxItems: 1
23*0e8011faSEmmanuel Vadot
24*0e8011faSEmmanuel Vadot  clocks:
25*0e8011faSEmmanuel Vadot    maxItems: 1
26*0e8011faSEmmanuel Vadot
27*0e8011faSEmmanuel Vadot  clock-names:
28*0e8011faSEmmanuel Vadot    items:
29*0e8011faSEmmanuel Vadot      - const: thermal_clk
30*0e8011faSEmmanuel Vadot
31*0e8011faSEmmanuel Vadot  interrupts:
32*0e8011faSEmmanuel Vadot    maxItems: 1
33*0e8011faSEmmanuel Vadot
34*0e8011faSEmmanuel Vadot  '#thermal-sensor-cells':
35*0e8011faSEmmanuel Vadot    const: 1
36*0e8011faSEmmanuel Vadot
37*0e8011faSEmmanuel Vadotrequired:
38*0e8011faSEmmanuel Vadot  - compatible
39*0e8011faSEmmanuel Vadot  - reg
40*0e8011faSEmmanuel Vadot  - interrupts
41*0e8011faSEmmanuel Vadot  - '#thermal-sensor-cells'
42*0e8011faSEmmanuel Vadot
43*0e8011faSEmmanuel VadotunevaluatedProperties: false
44*0e8011faSEmmanuel Vadot
45*0e8011faSEmmanuel Vadotexamples:
46*0e8011faSEmmanuel Vadot  - |
47*0e8011faSEmmanuel Vadot    #include <dt-bindings/clock/hi6220-clock.h>
48*0e8011faSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
49*0e8011faSEmmanuel Vadot
50*0e8011faSEmmanuel Vadot    temperature-sensor@f7030700 {
51*0e8011faSEmmanuel Vadot        compatible = "hisilicon,tsensor";
52*0e8011faSEmmanuel Vadot        reg = <0xf7030700 0x1000>;
53*0e8011faSEmmanuel Vadot        interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
54*0e8011faSEmmanuel Vadot        clocks = <&sys_ctrl HI6220_TSENSOR_CLK>;
55*0e8011faSEmmanuel Vadot        clock-names = "thermal_clk";
56*0e8011faSEmmanuel Vadot        #thermal-sensor-cells = <1>;
57*0e8011faSEmmanuel Vadot    };
58