0001 Device-Tree bindings for GPIO attached mice
0002
0003 This simply uses standard GPIO handles to define a simple mouse connected
0004 to 5-7 GPIO lines.
0005
0006 Required properties:
0007 - compatible: must be "gpio-mouse"
0008 - scan-interval-ms: The scanning interval in milliseconds
0009 - up-gpios: GPIO line phandle to the line indicating "up"
0010 - down-gpios: GPIO line phandle to the line indicating "down"
0011 - left-gpios: GPIO line phandle to the line indicating "left"
0012 - right-gpios: GPIO line phandle to the line indicating "right"
0013
0014 Optional properties:
0015 - button-left-gpios: GPIO line handle to the left mouse button
0016 - button-middle-gpios: GPIO line handle to the middle mouse button
0017 - button-right-gpios: GPIO line handle to the right mouse button
0018 Example:
0019
0020 #include <dt-bindings/gpio/gpio.h>
0021
0022 gpio-mouse {
0023 compatible = "gpio-mouse";
0024 scan-interval-ms = <50>;
0025 up-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
0026 down-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
0027 left-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
0028 right-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
0029 button-left-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
0030 button-middle-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
0031 button-right-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
0032 };