1*8cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*8cc087a1SEmmanuel Vadot%YAML 1.2 3*8cc087a1SEmmanuel Vadot--- 4*8cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/input/cypress-sf.yaml# 5*8cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8cc087a1SEmmanuel Vadot 7*8cc087a1SEmmanuel Vadottitle: Cypress StreetFighter touchkey controller 8*8cc087a1SEmmanuel Vadot 9*8cc087a1SEmmanuel Vadotmaintainers: 10*8cc087a1SEmmanuel Vadot - Yassine Oudjana <y.oudjana@protonmail.com> 11*8cc087a1SEmmanuel Vadot 12*8cc087a1SEmmanuel VadotallOf: 13*8cc087a1SEmmanuel Vadot - $ref: input.yaml# 14*8cc087a1SEmmanuel Vadot 15*8cc087a1SEmmanuel Vadotproperties: 16*8cc087a1SEmmanuel Vadot compatible: 17*8cc087a1SEmmanuel Vadot const: cypress,sf3155 18*8cc087a1SEmmanuel Vadot 19*8cc087a1SEmmanuel Vadot reg: 20*8cc087a1SEmmanuel Vadot maxItems: 1 21*8cc087a1SEmmanuel Vadot 22*8cc087a1SEmmanuel Vadot interrupts: 23*8cc087a1SEmmanuel Vadot maxItems: 1 24*8cc087a1SEmmanuel Vadot 25*8cc087a1SEmmanuel Vadot avdd-supply: 26*8cc087a1SEmmanuel Vadot description: Regulator for AVDD analog voltage 27*8cc087a1SEmmanuel Vadot 28*8cc087a1SEmmanuel Vadot vdd-supply: 29*8cc087a1SEmmanuel Vadot description: Regulator for VDD digital voltage 30*8cc087a1SEmmanuel Vadot 31*8cc087a1SEmmanuel Vadot linux,keycodes: 32*8cc087a1SEmmanuel Vadot minItems: 1 33*8cc087a1SEmmanuel Vadot maxItems: 8 34*8cc087a1SEmmanuel Vadot 35*8cc087a1SEmmanuel Vadotrequired: 36*8cc087a1SEmmanuel Vadot - compatible 37*8cc087a1SEmmanuel Vadot - reg 38*8cc087a1SEmmanuel Vadot - interrupts 39*8cc087a1SEmmanuel Vadot - avdd-supply 40*8cc087a1SEmmanuel Vadot - vdd-supply 41*8cc087a1SEmmanuel Vadot 42*8cc087a1SEmmanuel VadotadditionalProperties: false 43*8cc087a1SEmmanuel Vadot 44*8cc087a1SEmmanuel Vadotexamples: 45*8cc087a1SEmmanuel Vadot - | 46*8cc087a1SEmmanuel Vadot #include <dt-bindings/input/input.h> 47*8cc087a1SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 48*8cc087a1SEmmanuel Vadot i2c { 49*8cc087a1SEmmanuel Vadot #address-cells = <1>; 50*8cc087a1SEmmanuel Vadot #size-cells = <0>; 51*8cc087a1SEmmanuel Vadot 52*8cc087a1SEmmanuel Vadot touchkey@28 { 53*8cc087a1SEmmanuel Vadot compatible = "cypress,sf3155"; 54*8cc087a1SEmmanuel Vadot reg = <0x28>; 55*8cc087a1SEmmanuel Vadot interrupt-parent = <&msmgpio>; 56*8cc087a1SEmmanuel Vadot interrupts = <77 IRQ_TYPE_EDGE_FALLING>; 57*8cc087a1SEmmanuel Vadot avdd-supply = <&vreg_l6a_1p8>; 58*8cc087a1SEmmanuel Vadot vdd-supply = <&vdd_3v2_tp>; 59*8cc087a1SEmmanuel Vadot linux,keycodes = <KEY_BACK KEY_MENU>; 60*8cc087a1SEmmanuel Vadot }; 61*8cc087a1SEmmanuel Vadot }; 62