Configure D-Pad
#15
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:
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>;
};
Then I use the following command to compile a binary DTB file:

Code:
dtc -I dts -O dtb -o /boot/overlays/FPZgpiomouse.dtbo FPZgpiomouse.dts
But I get the following error message:
Code:
Error: FPZgpiomouse.dts:1.1-2 syntax error
FATAL ERROR: Unable to parse input tree
It seems the compiler doesn't like the "#include" line
Any suggestions where to go from here???
Reply


Messages In This Thread
Configure D-Pad - by billsuncle - 11-06-2019, 07:11 PM
RE: Configure D-Pad - by Porcinus - 11-06-2019, 08:21 PM
RE: Configure D-Pad - by Porcinus - 11-06-2019, 08:24 PM
RE: Configure D-Pad - by billsuncle - 11-06-2019, 11:00 PM
RE: Configure D-Pad - by Porcinus - 11-07-2019, 03:59 AM
RE: Configure D-Pad - by Flavor - 11-07-2019, 04:05 AM
RE: Configure D-Pad - by Porcinus - 11-08-2019, 03:03 AM
RE: Configure D-Pad - by Flavor - 11-08-2019, 03:32 AM
RE: Configure D-Pad - by Porcinus - 11-09-2019, 12:37 AM
RE: Configure D-Pad - by Flavor - 11-09-2019, 01:26 AM
RE: Configure D-Pad - by billsuncle - 11-10-2019, 09:36 PM
RE: Configure D-Pad - by Porcinus - 11-12-2019, 05:34 PM
RE: Configure D-Pad - by billsuncle - 11-22-2019, 11:16 AM
RE: Configure D-Pad - by billsuncle - 11-22-2019, 01:42 PM
RE: Configure D-Pad - by billsuncle - 11-25-2019, 05:12 PM
RE: Configure D-Pad - by Porcinus - 11-25-2019, 05:39 PM
RE: Configure D-Pad - by billsuncle - 11-25-2019, 07:40 PM
RE: Configure D-Pad - by Porcinus - 11-25-2019, 07:49 PM
RE: Configure D-Pad - by billsuncle - 11-25-2019, 11:54 PM
RE: Configure D-Pad - by Porcinus - 11-26-2019, 01:07 AM
RE: Configure D-Pad - by billsuncle - 11-26-2019, 01:16 AM
RE: Configure D-Pad - by Porcinus - 11-26-2019, 01:20 AM
RE: Configure D-Pad - by billsuncle - 11-26-2019, 01:32 AM
RE: Configure D-Pad - by Porcinus - 11-26-2019, 01:36 AM
RE: Configure D-Pad - by billsuncle - 11-26-2019, 01:48 AM
RE: Configure D-Pad - by Porcinus - 11-26-2019, 06:14 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)