The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/hwmon/gpio-fan.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 Bindings for fan connected to GPIO lines
    2 
    3 Required properties:
    4 - compatible : "gpio-fan"
    5 
    6 Optional properties:
    7 - gpios: Specifies the pins that map to bits in the control value,
    8   ordered MSB-->LSB.
    9 - gpio-fan,speed-map: A mapping of possible fan RPM speeds and the
   10   control value that should be set to achieve them. This array
   11   must have the RPM values in ascending order.
   12 - alarm-gpios: This pin going active indicates something is wrong with
   13   the fan, and a udev event will be fired.
   14 - #cooling-cells: If used as a cooling device, must be <2>
   15   Also see:
   16   Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml
   17   min and max states are derived from the speed-map of the fan.
   18 
   19 Note: At least one the "gpios" or "alarm-gpios" properties must be set.
   20 
   21 Examples:
   22 
   23         gpio_fan {
   24                 compatible = "gpio-fan";
   25                 gpios = <&gpio1 14 1
   26                          &gpio1 13 1>;
   27                 gpio-fan,speed-map = <0    0
   28                                       3000 1
   29                                       6000 2>;
   30                 alarm-gpios = <&gpio1 15 1>;
   31         };
   32         gpio_fan_cool: gpio_fan {
   33                 compatible = "gpio-fan";
   34                 gpios = <&gpio2 14 1
   35                          &gpio2 13 1>;
   36                 gpio-fan,speed-map =    <0    0>,
   37                                         <3000 1>,
   38                                         <6000 2>;
   39                 alarm-gpios = <&gpio2 15 1>;
   40                 #cooling-cells = <2>; /* min followed by max */
   41         };

Cache object: 390f6e286ae1155ac2b2416910144805


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.