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/input/gpio-mouse.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 Device-Tree bindings for GPIO attached mice
    2 
    3 This simply uses standard GPIO handles to define a simple mouse connected
    4 to 5-7 GPIO lines.
    5 
    6 Required properties:
    7         - compatible: must be "gpio-mouse"
    8         - scan-interval-ms: The scanning interval in milliseconds
    9         - up-gpios: GPIO line phandle to the line indicating "up"
   10         - down-gpios: GPIO line phandle to the line indicating "down"
   11         - left-gpios: GPIO line phandle to the line indicating "left"
   12         - right-gpios: GPIO line phandle to the line indicating "right"
   13 
   14 Optional properties:
   15         - button-left-gpios: GPIO line handle to the left mouse button
   16         - button-middle-gpios: GPIO line handle to the middle mouse button
   17         - button-right-gpios: GPIO line handle to the right mouse button
   18 Example:
   19 
   20 #include <dt-bindings/gpio/gpio.h>
   21 
   22 gpio-mouse {
   23         compatible = "gpio-mouse";
   24         scan-interval-ms = <50>;
   25         up-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
   26         down-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
   27         left-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
   28         right-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
   29         button-left-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
   30         button-middle-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
   31         button-right-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
   32 };

Cache object: 4c347d5ac51c84818dcec950dcf87fd3


[ 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.