Add ENTER and ESC key
authorAntonio Ospite <ao2@ao2.it>
Fri, 13 Jul 2018 11:41:18 +0000 (11:41 +0000)
committerAntonio Ospite <ao2@ao2.it>
Fri, 13 Jul 2018 11:41:18 +0000 (11:41 +0000)
bbb-gpio-keypad-00A0.dts

index 1f5ad38..d09b012 100644 (file)
@@ -17,7 +17,9 @@
       "P8.07",
       "P8.08",
       "P8.09",
       "P8.07",
       "P8.08",
       "P8.09",
-      "P8.10";
+      "P8.10",
+      "P8.26",
+      "P9.15";
 
     fragment@0 {
         target = <&am33xx_pinmux>;
 
     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_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)
                 >;
             };
         };
                 >;
             };
         };
                     gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                     debounce_interval = <50>;
                 };
                     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>;
+                };
             };
         };
     };
             };
         };
     };