Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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