Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3985560pxy; Tue, 4 May 2021 14:52:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt5ZJStCPGtn2AhWM90VN+ggQQ9/kvMmsCEZX/iJ3y8K9VaLCjq4QNxHpPIX1DNq3iE0g2 X-Received: by 2002:a17:906:1984:: with SMTP id g4mr23444492ejd.525.1620165127595; Tue, 04 May 2021 14:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620165127; cv=none; d=google.com; s=arc-20160816; b=oVTKNTtEVJ7QfQ64JOghELqzMv7Og0n8WlIzbnQwkZrKh4/GEvu4uAx/15B2OGpi/B zEsxk5KRykRjCRxPEAyfeYwy8eiAGPBA1Z/k5a4N3v8SELxHlYU3k6qTC2hKX2ehFB/b xafV+LeUc2+uP1kJEssa84fvlzf3mU+YKn/l4xx+tlvv9FD41vhu37XHQtwPGrTRT6eQ RQpvTtM56uNCoLDHl8ADZhzHep5AuREDYNI/qmJhmb7rhr2DMqWbzTNL9BDnsJYtxb2q dCR7/WA8mZm2lp2czJkh1Kv6OE4sjhaMhlZ33oSFsVw6Nc/aYp6GIVxslRTgWx2NMwHk dmnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=hPN9j0nF1AQgM6cAsZDixp19IElNYSJ0wg7fViCdyB0=; b=tMooVNYKZNjUtJSJLk+vF9viz2hiCBPLZWb4RtCVmbECthElnilvskdKsj0D8gMUx0 408V1lLNKIcGn3gc3zn3d8ul/j2PGcMhDRSq0Z8Ac1HgvlRgQm/HqE2yUpWFrbcMtOpK mHTJxsdiDQFYQOKYX/WFYIBxos5qcJrbLlI3sbRSpAtHLh7twoM4DRnlZRPSg0Q6ErU+ noGyazkyytFo2XIKhDRoFRYpEf1m9RGgQpnhvyi/j7ojNUfBYnWL8iupsB7ZMteLobtl Oz6p9TOO+7zhW8EBLeT1JpzP5ClCQJbMBbsvba10V4iSLyGXYjZy3YsNQ+beWIbQ38if PrzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=A9qhvxX2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si13586415edc.467.2021.05.04.14.51.43; Tue, 04 May 2021 14:52:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=A9qhvxX2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232514AbhEDTV6 (ORCPT + 99 others); Tue, 4 May 2021 15:21:58 -0400 Received: from mail-0301.mail-europe.com ([188.165.51.139]:59452 "EHLO mail-03.mail-europe.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232504AbhEDTV6 (ORCPT ); Tue, 4 May 2021 15:21:58 -0400 X-Greylist: delayed 37951 seconds by postgrey-1.27 at vger.kernel.org; Tue, 04 May 2021 15:21:57 EDT Date: Tue, 04 May 2021 19:20:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1620156059; bh=hPN9j0nF1AQgM6cAsZDixp19IElNYSJ0wg7fViCdyB0=; h=Date:To:From:Cc:Reply-To:Subject:From; b=A9qhvxX2TE6AkNYqZY73Rg0aM45HJH6nqpWLhbwtPjN3zEmA+EQDKQiZNOKhY6rh2 MaEvSH3naAkrtk8sgTaD4WnauKugRPywXxjfQR/zGShdgp7G4FFv8GJYYcZTdw/JK2 OiFZuz3QuJjR7H8c4D1t1jJZvPMAgu1b9aBAwu6A= To: "linux-input@vger.kernel.org" , "devicetree@vger.kernel.org" , "dmitry.torokhov@gmail.com" , "robh+dt@kernel.org" From: Yassine Oudjana Cc: Yassine Oudjana , "linux-kernel@vger.kernel.org" , "phone-devel@vger.kernel.org" , "~postmarketos/upstreaming@lists.sr.ht" <~postmarketos/upstreaming@lists.sr.ht> Reply-To: Yassine Oudjana Subject: [PATCH v2 2/2] dt-bindings: input: Add binding for cypress-sf Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a device tree binding for Cypress StreetFighter. Signed-off-by: Yassine Oudjana --- .../devicetree/bindings/input/cypress-sf.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/cypress-sf.yaml diff --git a/Documentation/devicetree/bindings/input/cypress-sf.yaml b/Docu= mentation/devicetree/bindings/input/cypress-sf.yaml new file mode 100644 index 000000000000..14689daf6567 --- /dev/null +++ b/Documentation/devicetree/bindings/input/cypress-sf.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/cypress-sf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cypress StreetFighter touchkey controller + +maintainers: + - Yassine Oudjana + +allOf: + - $ref: input.yaml# + +properties: + compatible: + const: cypress,sf3155 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + avdd-supply: + description: Regulator for AVDD analog voltage + + vdd-supply: + description: Regulator for VDD digital voltage + + linux,keycodes: + minItems: 1 + maxItems: 8 + +required: + - compatible + - reg + - interrupts + - avdd-supply + - vdd-supply + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + touchkey@28 { + compatible =3D "cypress,sf3155"; + reg =3D <0x28>; + interrupt-parent =3D <&msmgpio>; + interrupts =3D <77 IRQ_TYPE_EDGE_FALLING>; + avdd-supply =3D <&vreg_l6a_1p8>; + vdd-supply =3D <&vdd_3v2_tp>; + linux,keycodes =3D ; + }; + }; --=20 2.31.1