Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp382556yba; Fri, 26 Apr 2019 01:33:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0QOJfgtrMVSV7tPKZTdDXPjc5hQH6iFTbvTwIu3blWVENQSkK0um5z3I/KVTJBpKCis/Q X-Received: by 2002:a62:1d83:: with SMTP id d125mr9208793pfd.74.1556267606355; Fri, 26 Apr 2019 01:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556267606; cv=none; d=google.com; s=arc-20160816; b=Q9goAJOuGRIio0OH1ERlIj0NuNjphUJQoST7sod38VAmSP/X1xl2hSQca2fUvmdBuf yvCy7D79t86/aEV2jBOICQXDlTzjc4TAxtkWdRvUGjXs5oxh6mGO/59vxq02UOR/y75y 8YgN8lK6u/dm+ivPJxLbIx/b2Nj+OQ3J8JV5lN450OBYpGOaS1C7iqGE5bIEffBvEzu5 I9/9js+OjjGTFds14VwPw0MSnDdVoJGnpCiLWCXETJ8BQMCsg31ALb+Xxx6NKoqMqbjj OV5pslIJ6oRaJM40gNI9rJcXRV0NSPPfF/y1qixkqdzq1Ip94/3wvvGXtlWwlb/iTFXI Aw6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Is9qQ6K+sh46hK3N5KZM07kXt89OjVvh92tHpZRwnN4=; b=Na0YsS6XNVqPEKczlD16UF/N5TKMJZQuSx1nT2hpb/cncVIZKxDwDcCO/Qny2RASPW eSQyduXXlasUcELeocb9+0vptA5t74Kk5GXXS9WMW/7Z/FDrYq/d30mZabWcdc09Gf7B IPQPuhb3qrYbqktLlzoCvNkVtVe6PVWbW9prodxxzdsM3rsqoHp5WkMpAREVXA9ndBVN 0YnbtgISw/3Tr7tm5stCzsFwreOGS6/HBfb1wYVVore8FeCDJkz7LeaWeZkkXORS/y7y 3e2BYazCxVlfG2k2/ojdcQxevLY65Q6YBaMWm1Nz/isqODcBT5ddSI+MaJRVWlRD53gU YyRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ysoft.com header.s=20160406-ysoft-com header.b=SWEyh+e2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ysoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q12si24259016pgh.594.2019.04.26.01.33.11; Fri, 26 Apr 2019 01:33:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ysoft.com header.s=20160406-ysoft-com header.b=SWEyh+e2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ysoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726155AbfDZIbn (ORCPT + 99 others); Fri, 26 Apr 2019 04:31:43 -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?q?Michal=20Vok=C3=A1=C4=8D?= 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?q?Michal=20Vok=C3=A1=C4=8D?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = , , , , + , , , + , , , ; + }; -- 2.1.4