Path: blob/master/Documentation/devicetree/bindings/input/cypress-sf.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/input/cypress-sf.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Cypress StreetFighter touchkey controller78maintainers:9- Yassine Oudjana <y.oudjana@protonmail.com>1011allOf:12- $ref: input.yaml#1314properties:15compatible:16const: cypress,sf31551718reg:19maxItems: 12021interrupts:22maxItems: 12324avdd-supply:25description: Regulator for AVDD analog voltage2627vdd-supply:28description: Regulator for VDD digital voltage2930linux,keycodes:31minItems: 132maxItems: 83334required:35- compatible36- reg37- interrupts38- avdd-supply39- vdd-supply4041additionalProperties: false4243examples:44- |45#include <dt-bindings/input/input.h>46#include <dt-bindings/interrupt-controller/irq.h>47i2c {48#address-cells = <1>;49#size-cells = <0>;5051touchkey@28 {52compatible = "cypress,sf3155";53reg = <0x28>;54interrupt-parent = <&msmgpio>;55interrupts = <77 IRQ_TYPE_EDGE_FALLING>;56avdd-supply = <&vreg_l6a_1p8>;57vdd-supply = <&vdd_3v2_tp>;58linux,keycodes = <KEY_BACK KEY_MENU>;59};60};616263