Home
last modified time | relevance | path

Searched +full:needs +full:- +full:ghost +full:- +full:filter (Results 1 – 10 of 10) sorted by relevance

/openbmc/u-boot/doc/device-tree-bindings/input/
H A Dcros-ec-keyb.txt8 This binding is based on matrix-keymap.txt and extends/modifies it as follows:
11 - compatible: "google,cros-ec-keyb"
14 - google,needs-ghost-filter: True to enable a ghost filter for the matrix
21 cros-ec-keyb {
22 compatible = "google,cros-ec-keyb";
23 keypad,num-rows = <8>;
24 keypad,num-columns = <13>;
25 google,needs-ghost-filter;
48 /* F5 6 - \ */
/openbmc/linux/Documentation/devicetree/bindings/input/
H A Dgoogle,cros-ec-keyb.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $id: http://devicetree.org/schemas/input/google,cros-ec-keyb.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Simon Glass <sjg@chromium.org>
12 - Benson Leung <bleung@chromium.org>
24 - description: ChromeOS EC with only buttons/switches
25 const: google,cros-ec-keyb-switches
26 - description: ChromeOS EC with keyboard and possibly buttons/switches
27 const: google,cros-ec-keyb
[all …]
/openbmc/linux/arch/arm/boot/dts/
H A Dcros-ec-keyboard.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Keyboard dts fragment for devices that use cros-ec-keyboard
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/input/cros-ec-keyboard.h>
12 keyboard_controller: keyboard-controller {
13 compatible = "google,cros-ec-keyb";
14 keypad,num-rows = <8>;
15 keypad,num-columns = <13>;
16 google,needs-ghost-filter;
/openbmc/u-boot/drivers/input/
H A Dcros_ec_keyb.c1 // SPDX-License-Identifier: GPL-2.0+
28 int ghost_filter; /* 1 to enable ghost filter, else 0 */
40 * @return number of pressed keys, 0 for none, -EIO on error
53 if (cros_ec_scan_keyboard(dev->parent, &scan)) { in check_for_keys()
55 return -EIO; in check_for_keys()
68 for (col = num_keys = bit = 0; col < priv->matrix.num_cols; in check_for_keys()
70 for (row = 0; row < priv->matrix.num_rows; row++) { in check_for_keys()
76 key->row = row; in check_for_keys()
77 key->col = col; in check_for_keys()
78 key->valid = 1; in check_for_keys()
[all …]
/openbmc/u-boot/arch/arm/dts/
H A Dcros-ec-keyboard.dtsi2 * Keyboard dts fragment for devices that use cros-ec-keyboard
11 #include <dt-bindings/input/input.h>
14 keyboard-controller {
15 compatible = "google,cros-ec-keyb";
16 keypad,num-rows = <8>;
17 keypad,num-columns = <13>;
18 google,needs-ghost-filter;
/openbmc/u-boot/arch/sandbox/dts/
H A Dcros-ec-keyboard.dtsi2 * Keyboard dts fragment for devices that use cros-ec-keyboard
11 #include <dt-bindings/input/input.h>
14 keyboard-controller {
15 compatible = "google,cros-ec-keyb";
16 keypad,num-rows = <8>;
17 keypad,num-columns = <13>;
18 google,needs-ghost-filter;
/openbmc/linux/drivers/input/keyboard/
H A Dcros_ec_keyb.c1 // SPDX-License-Identifier: GPL-2.0
6 // This driver uses the ChromeOS EC byte-level message-based protocol for
19 #include <linux/input/vivaldi-fmap.h>
33 * struct cros_ec_keyb - Structure representing EC keyboard device
39 * @ghost_filter: true to enable the matrix key-ghosting filter
45 * @bs_idev: The input device for non-matrix buttons and switches (or NULL).
69 * struct cros_ec_bs_map - Mapping between Linux keycodes and EC button/switch
85 /* cros_ec_keyb_bs - Map EC button/switch #defines into kernel ones */
140 struct device *dev = ckdev->dev; in cros_ec_keyb_has_ghosting()
141 uint8_t *valid_keys = ckdev->valid_keys; in cros_ec_keyb_has_ghosting()
[all …]
H A Dtegra-kbc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (c) 2009-2011, NVIDIA Corporation.
156 val = readl(kbc->mmio + KBC_KP_ENT0_0 + i); in tegra_kbc_report_keys()
165 keycodes[num_down] = kbc->keycode[scancode]; in tegra_kbc_report_keys()
167 if ((keycodes[num_down] == KEY_FN) && kbc->use_fn_map) in tegra_kbc_report_keys()
178 * Ghosting occurs if there are 3 keys such that - in tegra_kbc_report_keys()
182 if (kbc->use_ghost_filter && num_down >= 3) { in tegra_kbc_report_keys()
190 * and the other is in the same column as the i-th key. in tegra_kbc_report_keys()
210 scancodes[i] += kbc->max_keys; in tegra_kbc_report_keys()
211 keycodes[i] = kbc->keycode[scancodes[i]]; in tegra_kbc_report_keys()
[all …]
/openbmc/linux/arch/arm64/boot/dts/nvidia/
H A Dtegra132-norrin.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/input.h>
18 stdout-path = "serial0:115200n8";
30 vdd-supply = <&vdd_3v3_hdmi>;
31 pll-supply = <&vdd_hdmi_pll>;
32 hdmi-supply = <&vdd_5v0_hdmi>;
34 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
35 nvidia,hpd-gpio =
42 avdd-io-hdmi-dp-supply = <&vdd_3v3_hdmi>;
[all …]
/openbmc/linux/drivers/pci/
H A Dquirks.c1 // SPDX-License-Identifier: GPL-2.0
3 * This file contains work-arounds for many known PCI hardware bugs.
5 * should be handled in arch-specific code.
20 #include <linux/isa-dma.h> /* isa_dma_bridge_buggy */
91 int ret = -ENOTTY; in pcie_failed_link_retrain()
94 !pcie_cap_has_lnkctl2(dev) || !dev->link_active_reporting) in pcie_failed_link_retrain()
103 pci_info(dev, "broken device, retraining non-functional downstream link at 2.5GT/s\n"); in pcie_failed_link_retrain()
170 if ((f->class == (u32) (dev->class >> f->class_shift) || in pci_do_fixups()
171 f->class == (u32) PCI_ANY_ID) && in pci_do_fixups()
172 (f->vendor == dev->vendor || in pci_do_fixups()
[all …]