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/bindings/hwmon/adi,axi-fan-control.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Analog Devices AXI FAN Control Device Tree Bindings
9
10maintainers:
11  - Nuno Sá <nuno.sa@analog.com>
12
13description: |+
14  Bindings for the Analog Devices AXI FAN Control driver. Spefications 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    allOf:
38      - $ref: /schemas/types.yaml#/definitions/uint32
39    enum: [1, 2, 4]
40
41required:
42  - compatible
43  - reg
44  - clocks
45  - interrupts
46  - pulses-per-revolution
47
48examples:
49  - |
50    fpga_axi: fpga-axi@0 {
51            #address-cells = <0x2>;
52            #size-cells = <0x1>;
53
54            axi_fan_control: axi-fan-control@80000000 {
55                    compatible = "adi,axi-fan-control-1.00.a";
56                    reg = <0x0 0x80000000 0x10000>;
57                    clocks = <&clk 71>;
58                    interrupts = <0 110 0>;
59                    pulses-per-revolution = <2>;
60            };
61    };
62...
63