Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/input/cypress-sf.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Cypress StreetFighter touchkey controller
0008 
0009 maintainers:
0010   - Yassine Oudjana <y.oudjana@protonmail.com>
0011 
0012 allOf:
0013   - $ref: input.yaml#
0014 
0015 properties:
0016   compatible:
0017     const: cypress,sf3155
0018 
0019   reg:
0020     maxItems: 1
0021 
0022   interrupts:
0023     maxItems: 1
0024 
0025   avdd-supply:
0026     description: Regulator for AVDD analog voltage
0027 
0028   vdd-supply:
0029     description: Regulator for VDD digital voltage
0030 
0031   linux,keycodes:
0032     minItems: 1
0033     maxItems: 8
0034 
0035 required:
0036   - compatible
0037   - reg
0038   - interrupts
0039   - avdd-supply
0040   - vdd-supply
0041 
0042 additionalProperties: false
0043 
0044 examples:
0045   - |
0046     #include <dt-bindings/input/input.h>
0047     #include <dt-bindings/interrupt-controller/irq.h>
0048     i2c {
0049         #address-cells = <1>;
0050         #size-cells = <0>;
0051 
0052         touchkey@28 {
0053                 compatible = "cypress,sf3155";
0054                 reg = <0x28>;
0055                 interrupt-parent = <&msmgpio>;
0056                 interrupts = <77 IRQ_TYPE_EDGE_FALLING>;
0057                 avdd-supply = <&vreg_l6a_1p8>;
0058                 vdd-supply = <&vdd_3v2_tp>;
0059                 linux,keycodes = <KEY_BACK KEY_MENU>;
0060         };
0061     };