From: Antonio Ospite Date: Fri, 13 Jul 2018 11:41:18 +0000 (+0000) Subject: Add ENTER and ESC key X-Git-Url: https://git.ao2.it/experiments/bbb-gpio-keypad.git/commitdiff_plain/24ddc3c3d3ae49b3e29321b42151cc4011ae494e?ds=inline Add ENTER and ESC key --- diff --git a/bbb-gpio-keypad-00A0.dts b/bbb-gpio-keypad-00A0.dts index 1f5ad38..d09b012 100644 --- a/bbb-gpio-keypad-00A0.dts +++ b/bbb-gpio-keypad-00A0.dts @@ -17,7 +17,9 @@ "P8.07", "P8.08", "P8.09", - "P8.10"; + "P8.10", + "P8.26", + "P9.15"; fragment@0 { target = <&am33xx_pinmux>; @@ -28,6 +30,8 @@ BONE_P8_08 (PIN_INPUT_PULLUP | MUX_MODE7) BONE_P8_09 (PIN_INPUT_PULLUP | MUX_MODE7) BONE_P8_10 (PIN_INPUT_PULLUP | MUX_MODE7) + BONE_P8_26 (PIN_INPUT_PULLUP | MUX_MODE7) + BONE_P9_15 (PIN_INPUT_PULLUP | MUX_MODE7) >; }; }; @@ -66,6 +70,18 @@ gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; debounce_interval = <50>; }; + enter { + label = "GPIO Key ENTER"; + linux,code = <28>; + gpios = <&gpio1 29 GPIO_ACTIVE_LOW>; + debounce_interval = <50>; + }; + esc { + label = "GPIO Key ESC"; + linux,code = <1>; + gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; + debounce_interval = <50>; + }; }; }; };