Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 # Copyright 2019 Analog Devices Inc.
0003 %YAML 1.2
0004 ---
0005 $id: http://devicetree.org/schemas/hwmon/adi,axi-fan-control.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007 
0008 title: Analog Devices AXI FAN Control Device Tree Bindings
0009 
0010 maintainers:
0011   - Nuno Sá <nuno.sa@analog.com>
0012 
0013 description: |+
0014   Bindings for the Analog Devices AXI FAN Control driver. Spefications of the
0015   core can be found in:
0016 
0017   https://wiki.analog.com/resources/fpga/docs/axi_fan_control
0018 
0019 properties:
0020   compatible:
0021     enum:
0022       - adi,axi-fan-control-1.00.a
0023 
0024   reg:
0025     maxItems: 1
0026 
0027   clocks:
0028     maxItems: 1
0029 
0030   interrupts:
0031     maxItems: 1
0032 
0033   pulses-per-revolution:
0034     description:
0035       Value specifying the number of pulses per revolution of the controlled
0036       FAN.
0037     $ref: /schemas/types.yaml#/definitions/uint32
0038     enum: [1, 2, 4]
0039 
0040 required:
0041   - compatible
0042   - reg
0043   - clocks
0044   - interrupts
0045   - pulses-per-revolution
0046 
0047 additionalProperties: false
0048 
0049 examples:
0050   - |
0051     fpga_axi: fpga-axi {
0052             #address-cells = <0x2>;
0053             #size-cells = <0x1>;
0054 
0055             axi_fan_control: axi-fan-control@80000000 {
0056                     compatible = "adi,axi-fan-control-1.00.a";
0057                     reg = <0x0 0x80000000 0x10000>;
0058                     clocks = <&clk 71>;
0059                     interrupts = <0 110 0>;
0060                     pulses-per-revolution = <2>;
0061             };
0062     };
0063 ...