Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3896336pxy; Tue, 4 May 2021 12:23:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMVz2OHq4PNVwF0WcLgbEu1Pr4zJWum+Znnp+TsnMethenoxijBNw5WuiShk8wiWaWJouS X-Received: by 2002:a17:907:75f6:: with SMTP id jz22mr23142861ejc.504.1620156231198; Tue, 04 May 2021 12:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620156231; cv=none; d=google.com; s=arc-20160816; b=wOLFdw3d5Ghk0uMsgBQ49x8nx4akMuzDnzio8x8MVbHYnyxlwS/gJIENMmjnIUKnf3 87llV7yOCG+1C0u88/uIFwi3XWTcvKWqMBlt9vh5FziVeH2yI9drY9VG0OURZkcAJyLK 2ZybDLxw24p0MvMRZihYI8e+CACv8cCrhANd9K8ACfqtPdMYproMvHu28LxOZXmATwmR a66cBEUzYR1rCjdgAsScl6HL0SwLwRQs7H4Wog+W086omftLjX6zoIQ/qztaKZnuvS9n IiylNoRshIyjK/7gfO8pKNLHBD5yLpxss0EA/zJgYoEKZhSxL/m4Nfor69I9SVm5BSzH YuvA== 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=myymaIjj5ngJ2xpB8YfOd3Uo+ydeVz+wGUuzLWk88bg=; b=rq7f+Ow+YggyvAs8sCjf+13KfgggTOJxYvnw5omr2jInfpXdDw3Gl6vfkUDyBoc58w 8vZlPSya5/sbPblzf9PdvdF6KvHtxwNRpbuquCaPdcDQfZAXgndnlIey5SBjI6SvV6TZ NtC1xQsKnkwJsWUSx5hjipYy6355b3N6J85JddLFfyHQiHkHGN4zk2xYASxxL2pn+rRQ +7RdIgYLq82awbHQoOQkMwvIcARVuJ805VsLRG7hCUslcKiQSgYN/7qoDt5mMr24iHaE xe8chRItII5vYtuxr0nkCU7LOmaTuJPwVrWN+G65T5e2xu7c5MmE9hdWYkhIBoGORdEG C9fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=nZzpYnNw; 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 r8si3286571ejr.135.2021.05.04.12.23.27; Tue, 04 May 2021 12:23:51 -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=nZzpYnNw; 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 S232469AbhEDTVO (ORCPT + 99 others); Tue, 4 May 2021 15:21:14 -0400 Received: from mail-40135.protonmail.ch ([185.70.40.135]:43078 "EHLO mail-40135.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232292AbhEDTVN (ORCPT ); Tue, 4 May 2021 15:21:13 -0400 X-Greylist: delayed 38059 seconds by postgrey-1.27 at vger.kernel.org; Tue, 04 May 2021 15:21:12 EDT Date: Tue, 04 May 2021 19:20:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1620156014; bh=myymaIjj5ngJ2xpB8YfOd3Uo+ydeVz+wGUuzLWk88bg=; h=Date:To:From:Cc:Reply-To:Subject:From; b=nZzpYnNw1Xmk44lT5y0HopPGEYDiTMO4fZy4ABRp7Y6GSdPhNmn2QXfXG29+6smUo 9BomWONngShFDiWRFlmwWS/4W12q503Ex4YXN/qZ4BROOWTdg4P6xRm6Oy+kRHIZgB mPAOWyMqHXj/3Dgzo9x3ChOv9/SKJsxCGsuJhidc= 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 0/2] Input: cypress-sf - Add support for Cypress Streetfighter touchkeys Message-ID: <235fu6MnvzCoMBgP3Wkhz2ZmKOIG2ZYDBzYNBEJlbk@cp4-web-036.plabs.ch> 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 This patchset adds support for the Cypress StreetFighter touchkey device. This driver is based on the driver from the vendor kernel for the Xiaomi Mi Note 2[1][2], which is also the device where this was tested. [1] https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/scorpio-m-oss/d= rivers/input/touchscreen/cyttsp_button.c [2] https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/scorpio-m-oss/a= rch/arm/boot/dts/qcom/scorpio-msm8996-mtp.dtsi#L300-L322 Changes in v2: - Changed version variables in probe to int to allow storing error codes. - Fixed some issues in dt binding. Yassine Oudjana (2): Input: cypress-sf - Add Cypress StreetFighter touchkey driver dt-bindings: input: Add binding for cypress-sf .../devicetree/bindings/input/cypress-sf.yaml | 61 +++++ drivers/input/keyboard/Kconfig | 10 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/cypress-sf.c | 219 ++++++++++++++++++ 4 files changed, 291 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/cypress-sf.yaml create mode 100644 drivers/input/keyboard/cypress-sf.c --=20 2.31.1