From patchwork Fri Apr 26 08:30:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGFsIFZva8OhxI0=?= X-Patchwork-Id: 10918877 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED8711575 for ; Fri, 26 Apr 2019 08:31:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD6D228B0A for ; Fri, 26 Apr 2019 08:31:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D14D928CA4; Fri, 26 Apr 2019 08:31:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB72F28B1E for ; Fri, 26 Apr 2019 08:31:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726036AbfDZIbm (ORCPT ); Fri, 26 Apr 2019 04:31:42 -0400 Received: from uho.ysoft.cz ([81.19.3.130]:56107 "EHLO uho.ysoft.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbfDZIbm (ORCPT ); Fri, 26 Apr 2019 04:31:42 -0400 Received: from iota-build.ysoft.local (unknown [10.1.5.151]) by uho.ysoft.cz (Postfix) with ESMTP id 3C7E5A6C69; Fri, 26 Apr 2019 10:31:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=20160406-ysoft-com; t=1556267499; bh=Is9qQ6K+sh46hK3N5KZM07kXt89OjVvh92tHpZRwnN4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SWEyh+e25VNPstPk8VUyeWrxZGZv4VyqsJ1KdHWwRmkJDJSOO52wOvIR+8TBvU/St mgOo7Etf8TZNHE681DUjFCpAmaWlAezIaxgneWRRcRnoD2VYPH5Izp3DzmlSehwm08 0/cfw+Ue3F1ZduP8ilbQIjYubjrfG/8j6knJhwwg= From: =?utf-8?b?TWljaGFsIFZva8OhxI0=?= To: Dmitry Torokhov , Rob Herring Cc: Mark Rutland , Shawn Guo , Sascha Hauer , Fabio Estevam , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Pengutronix Kernel Team , =?utf-8?b?TWljaGFsIFZva8Oh?= =?utf-8?b?xI0=?= Subject: [RFC PATCH 1/4] dt-bindings: input: Add support for the MPR121 without interrupt line Date: Fri, 26 Apr 2019 10:30:17 +0200 Message-Id: <1556267420-93219-2-git-send-email-michal.vokac@ysoft.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1556267420-93219-1-git-send-email-michal.vokac@ysoft.com> References: <1556267420-93219-1-git-send-email-michal.vokac@ysoft.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Normally, the MPR121 controller uses separate interrupt line to notify the I2C host that a key was touched/released. To support platforms that can not use the interrupt line, polling of the MPR121 registers can be used. Signed-off-by: Michal Vokáč --- .../bindings/input/mpr121-touchkey-polled.txt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/mpr121-touchkey-polled.txt diff --git a/Documentation/devicetree/bindings/input/mpr121-touchkey-polled.txt b/Documentation/devicetree/bindings/input/mpr121-touchkey-polled.txt new file mode 100644 index 000000000000..6bb1d312614c --- /dev/null +++ b/Documentation/devicetree/bindings/input/mpr121-touchkey-polled.txt @@ -0,0 +1,26 @@ +* Freescale MPR121 Controller without interrupt line + +Required Properties: +- compatible: Should be "fsl,mpr121-touchkey-polled" +- reg: The I2C slave address of the device. +- vdd-supply: Phandle to the Vdd power supply. +- linux,keycodes: Specifies an array of numeric keycode values to + be used for reporting button presses. The array can + contain up to 12 entries. + +Optional Properties: +- autorepeat: Enable autorepeat feature. + +Example: + +#include "dt-bindings/input/input.h" + + touchkeys: keys@5a { + compatible = "fsl,mpr121-touchkey-polled"; + reg = <0x5a>; + autorepeat; + vdd-supply = <&ldo4_reg>; + linux,keycodes = , , , , + , , , + , , , ; + };