xref: /freebsd/sys/contrib/device-tree/Bindings/hwmon/adi,axi-fan-control.yaml (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright 2019 Analog Devices Inc.
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/hwmon/adi,axi-fan-control.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Analog Devices AXI FAN Control
9
10maintainers:
11  - Nuno Sá <nuno.sa@analog.com>
12
13description: |+
14  Bindings for the Analog Devices AXI FAN Control driver. Specifications of the
15  core can be found in:
16
17  https://wiki.analog.com/resources/fpga/docs/axi_fan_control
18
19properties:
20  compatible:
21    enum:
22      - adi,axi-fan-control-1.00.a
23
24  reg:
25    maxItems: 1
26
27  clocks:
28    maxItems: 1
29
30  interrupts:
31    maxItems: 1
32
33  pulses-per-revolution:
34    description:
35      Value specifying the number of pulses per revolution of the controlled
36      FAN.
37    $ref: /schemas/types.yaml#/definitions/uint32
38    enum: [1, 2, 4]
39
40required:
41  - compatible
42  - reg
43  - clocks
44  - interrupts
45  - pulses-per-revolution
46
47additionalProperties: false
48
49examples:
50  - |
51    fpga_axi: fpga-axi {
52        #address-cells = <0x2>;
53        #size-cells = <0x1>;
54
55        axi_fan_control: axi-fan-control@80000000 {
56            compatible = "adi,axi-fan-control-1.00.a";
57            reg = <0x0 0x80000000 0x10000>;
58            clocks = <&clk 71>;
59            interrupts = <0 110 0>;
60            pulses-per-revolution = <2>;
61        };
62    };
63...
64