18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/input/google,cros-ec-keyb.yaml# 68c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_cititle: ChromeOS EC Keyboard 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_cimaintainers: 118c2ecf20Sopenharmony_ci - Simon Glass <sjg@chromium.org> 128c2ecf20Sopenharmony_ci - Benson Leung <bleung@chromium.org> 138c2ecf20Sopenharmony_ci - Enric Balletbo i Serra <enric.balletbo@collabora.com> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_cidescription: | 168c2ecf20Sopenharmony_ci Google's ChromeOS EC Keyboard is a simple matrix keyboard 178c2ecf20Sopenharmony_ci implemented on a separate EC (Embedded Controller) device. It provides 188c2ecf20Sopenharmony_ci a message for reading key scans from the EC. These are then converted 198c2ecf20Sopenharmony_ci into keycodes for processing by the kernel. 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciallOf: 228c2ecf20Sopenharmony_ci - $ref: "/schemas/input/matrix-keymap.yaml#" 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciproperties: 258c2ecf20Sopenharmony_ci compatible: 268c2ecf20Sopenharmony_ci const: google,cros-ec-keyb 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci google,needs-ghost-filter: 298c2ecf20Sopenharmony_ci description: 308c2ecf20Sopenharmony_ci Enable a ghost filter for the matrix keyboard. This is recommended 318c2ecf20Sopenharmony_ci if the EC does not have its own logic or hardware for this. 328c2ecf20Sopenharmony_ci type: boolean 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_cirequired: 358c2ecf20Sopenharmony_ci - compatible 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ciunevaluatedProperties: false 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ciexamples: 408c2ecf20Sopenharmony_ci - | 418c2ecf20Sopenharmony_ci cros-ec-keyb { 428c2ecf20Sopenharmony_ci compatible = "google,cros-ec-keyb"; 438c2ecf20Sopenharmony_ci keypad,num-rows = <8>; 448c2ecf20Sopenharmony_ci keypad,num-columns = <13>; 458c2ecf20Sopenharmony_ci google,needs-ghost-filter; 468c2ecf20Sopenharmony_ci /* 478c2ecf20Sopenharmony_ci * Keymap entries take the form of 0xRRCCKKKK where 488c2ecf20Sopenharmony_ci * RR=Row CC=Column KKKK=Key Code 498c2ecf20Sopenharmony_ci * The values below are for a US keyboard layout and 508c2ecf20Sopenharmony_ci * are taken from the Linux driver. Note that the 518c2ecf20Sopenharmony_ci * 102ND key is not used for US keyboards. 528c2ecf20Sopenharmony_ci */ 538c2ecf20Sopenharmony_ci linux,keymap = < 548c2ecf20Sopenharmony_ci /* CAPSLCK F1 B F10 */ 558c2ecf20Sopenharmony_ci 0x0001003a 0x0002003b 0x00030030 0x00040044 568c2ecf20Sopenharmony_ci /* N = R_ALT ESC */ 578c2ecf20Sopenharmony_ci 0x00060031 0x0008000d 0x000a0064 0x01010001 588c2ecf20Sopenharmony_ci /* F4 G F7 H */ 598c2ecf20Sopenharmony_ci 0x0102003e 0x01030022 0x01040041 0x01060023 608c2ecf20Sopenharmony_ci /* ' F9 BKSPACE L_CTRL */ 618c2ecf20Sopenharmony_ci 0x01080028 0x01090043 0x010b000e 0x0200001d 628c2ecf20Sopenharmony_ci /* TAB F3 T F6 */ 638c2ecf20Sopenharmony_ci 0x0201000f 0x0202003d 0x02030014 0x02040040 648c2ecf20Sopenharmony_ci /* ] Y 102ND [ */ 658c2ecf20Sopenharmony_ci 0x0205001b 0x02060015 0x02070056 0x0208001a 668c2ecf20Sopenharmony_ci /* F8 GRAVE F2 5 */ 678c2ecf20Sopenharmony_ci 0x02090042 0x03010029 0x0302003c 0x03030006 688c2ecf20Sopenharmony_ci /* F5 6 - \ */ 698c2ecf20Sopenharmony_ci 0x0304003f 0x03060007 0x0308000c 0x030b002b 708c2ecf20Sopenharmony_ci /* R_CTRL A D F */ 718c2ecf20Sopenharmony_ci 0x04000061 0x0401001e 0x04020020 0x04030021 728c2ecf20Sopenharmony_ci /* S K J ; */ 738c2ecf20Sopenharmony_ci 0x0404001f 0x04050025 0x04060024 0x04080027 748c2ecf20Sopenharmony_ci /* L ENTER Z C */ 758c2ecf20Sopenharmony_ci 0x04090026 0x040b001c 0x0501002c 0x0502002e 768c2ecf20Sopenharmony_ci /* V X , M */ 778c2ecf20Sopenharmony_ci 0x0503002f 0x0504002d 0x05050033 0x05060032 788c2ecf20Sopenharmony_ci /* L_SHIFT / . SPACE */ 798c2ecf20Sopenharmony_ci 0x0507002a 0x05080035 0x05090034 0x050B0039 808c2ecf20Sopenharmony_ci /* 1 3 4 2 */ 818c2ecf20Sopenharmony_ci 0x06010002 0x06020004 0x06030005 0x06040003 828c2ecf20Sopenharmony_ci /* 8 7 0 9 */ 838c2ecf20Sopenharmony_ci 0x06050009 0x06060008 0x0608000b 0x0609000a 848c2ecf20Sopenharmony_ci /* L_ALT DOWN RIGHT Q */ 858c2ecf20Sopenharmony_ci 0x060a0038 0x060b006c 0x060c006a 0x07010010 868c2ecf20Sopenharmony_ci /* E R W I */ 878c2ecf20Sopenharmony_ci 0x07020012 0x07030013 0x07040011 0x07050017 888c2ecf20Sopenharmony_ci /* U R_SHIFT P O */ 898c2ecf20Sopenharmony_ci 0x07060016 0x07070036 0x07080019 0x07090018 908c2ecf20Sopenharmony_ci /* UP LEFT */ 918c2ecf20Sopenharmony_ci 0x070b0067 0x070c0069>; 928c2ecf20Sopenharmony_ci }; 93