Replies: 1 comment 3 replies
-
dts compiler should report the line that contains syntax error? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to use Linux GPIO matrix keypad driver with my custom NUC980 board.
CONFIG_KEYBOARD_MATRIX has been enabled.
But I don't know how to configure row & column GPIOs.
I followed this document: https://www.kernel.org/doc/Documentation/devicetree/bindings/input/gpio-matrix-keypad.txt
Here is my device tree:
matrix_keypad: matrix-keypad@0 { compatible = "gpio-matrix-keypad"; col-gpios = < &gpio 0x46 GPIO_ACTIVE_LOW /* PC6~PC10 as output */ &gpio 0x47 GPIO_ACTIVE_LOW &gpio 0x48 GPIO_ACTIVE_LOW &gpio 0x49 GPIO_ACTIVE_LOW &gpio 0x4A GPIO_ACTIVE_LOW >; row-gpios = < &gpio 0xA0 GPIO_ACTIVE_LOW /* PF0~PF3 as input */ &gpio 0xA1 GPIO_ACTIVE_LOW &gpio 0xA2 GPIO_ACTIVE_LOW &gpio 0xA3 GPIO_ACTIVE_LOW >;
But I got an error when compile DTS file:
syntax error FATAL ERROR: Unable to parse input tree
How do I reference NUC980 GPIOs in device tree?
Thanks,
-Engin
Beta Was this translation helpful? Give feedback.
All reactions