Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2385937yba; Mon, 6 May 2019 05:19:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTKLAUt34nUiumOqt02gru04P+P2An5ZF7b2an25VNvlaG3SHiKHXa8IJ9U/C6zeVgNPm1 X-Received: by 2002:a63:4621:: with SMTP id t33mr28809720pga.246.1557145155656; Mon, 06 May 2019 05:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557145155; cv=none; d=google.com; s=arc-20160816; b=bM1SbNAfUWD+OVKP5KlhNsCxv2ktFpP4mg2nfbjCMTKLdl/FQC10ARIyxOe3uh6b9Y AibyUdY4f4hvtmRqTKy+rX3JsjqyeL9EHtX/wH1CGlEBxiLNobfPkG6teazGg0vkGDnl 4XVbvf6wwtso7vh391wvBCmj/UdXwa0TjdeyvI9pYhELYklPXJBHN+qqbxayW4UbLdYN m2vHygeY7XZbMAf0WDC8Ta+m0CbNI6QBHdmXe9MJaoY+EuNLmKapd1y+KqsUicugrzxp 8J3y9W+RCgWdEwjpck3JcJvfrKZMT8sLALkWBdBM1cWdYhMeW3fkR1d3g960JQhhHg5l r4MQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=BG1iY/eflDP17+5L43NWdu8cKBZW9ASGCdoXdZ226OE=; b=HuVP+yYRQaaICEbOxz9S6uR3MwJyOEGbnLZxYzZ+Ra4XcU7cFzlgwrK0ZSouTlM+NH W2eij3CvHbvUt1JXNxEKhQ3ec1V7k0/awEOsiUWVGfMEEMqdpU9SEWYh9f+U3H/kC9Mm 788m/86tEVWbQ6FKygrvs0nRtoRyWQwJuvanOgvKt01MZKdADKZIPeXr7qtuTT1fY67x GuDr+uOnvEFoxJHKIU2BsMBMRnIRIupbTv2dDf6jVAanBFD8CsCtOx4p0qd+Pnnh1D9d XfT1ADt7Fqi4jbrSKvWQw+IDKhBX+StKh0sKU3hlodbsnUst9qIpKBaovoLcZXgUhAUa 2ZhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ysoft.com header.s=20160406-ysoft-com header.b=gdLvPXKH; 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 f69si9992857pff.118.2019.05.06.05.18.59; Mon, 06 May 2019 05:19:15 -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=gdLvPXKH; 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 S1726118AbfEFMSI (ORCPT + 99 others); Mon, 6 May 2019 08:18:08 -0400 Received: from uho.ysoft.cz ([81.19.3.130]:44284 "EHLO uho.ysoft.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbfEFMSI (ORCPT ); Mon, 6 May 2019 08:18:08 -0400 Received: from [10.1.8.111] (unknown [10.1.8.111]) by uho.ysoft.cz (Postfix) with ESMTP id 31414A444E; Mon, 6 May 2019 14:18:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=20160406-ysoft-com; t=1557145084; bh=BG1iY/eflDP17+5L43NWdu8cKBZW9ASGCdoXdZ226OE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=gdLvPXKHSzo9OjUH6H9WEvCzDCqirgb69yaL1IT1G76e8mCDCrvZeRdlJV3x+xZ0Y PmU+iRXyaBe01dEpVOhiqHjG14O/WqSyf9oeCQx2oQh2D8cDVBMhqgin1MIGE1V88N ddmgi4Gj1Tb3SGzL7AbAMI7bAM3K6dlfFGPRv/h4= Subject: Re: [RFC PATCH 1/4] dt-bindings: input: Add support for the MPR121 without interrupt line To: Rob Herring Cc: Dmitry Torokhov , 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 References: <1556267420-93219-1-git-send-email-michal.vokac@ysoft.com> <1556267420-93219-2-git-send-email-michal.vokac@ysoft.com> <20190502004849.GA8232@bogus> From: =?UTF-8?B?TWljaGFsIFZva8OhxI0=?= Message-ID: <8dd2efa1-0fc9-d99a-d015-323350e1abdc@ysoft.com> Date: Mon, 6 May 2019 14:18:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190502004849.GA8232@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02. 05. 19 2:48, Rob Herring wrote: > On Fri, Apr 26, 2019 at 10:30:17AM +0200, Michal Vokáč wrote: >> 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. > > Other than making the 'interrupts' property optional, that's a driver > change, not a DT change. IOW, we shouldn't need a whole new binding. > OK, I will update the existing binding instead. Thank you, Michal >> >> 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 >>