11-25-2019, 05:12 PM
Ooooooook,
So I have found what I need to put in the DTS file for the GPIO to control the mouse here: https://github.com/torvalds/linux/blob/m...-mouse.txt
And have written the following DTS file:
Then I use the following command to compile a binary DTB file:
But I get the following error message:
It seems the compiler doesn't like the "#include" line
Any suggestions where to go from here???
So I have found what I need to put in the DTS file for the GPIO to control the mouse here: https://github.com/torvalds/linux/blob/m...-mouse.txt
And have written the following DTS file:
Code:
#include <dt-bindings/gpio/gpio.h>
gpio-mouse {
compatible = "gpio-mouse";
scan-interval-ms = <50>;
up-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
down-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
left-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
right-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
button-left-gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
button-right-gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
};
Code:
dtc -I dts -O dtb -o /boot/overlays/FPZgpiomouse.dtbo FPZgpiomouse.dts
Code:
Error: FPZgpiomouse.dts:1.1-2 syntax error
FATAL ERROR: Unable to parse input tree
Any suggestions where to go from here???