Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6676731yba; Wed, 1 May 2019 17:52:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaJcbsJmvSYO1+UoD9CYttpdE2JlecfuP/6fCFbI5w1uorlBMPKmeHIf0HTRgxeakiJJRF X-Received: by 2002:a63:d84a:: with SMTP id k10mr906544pgj.441.1556758327667; Wed, 01 May 2019 17:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556758327; cv=none; d=google.com; s=arc-20160816; b=hA0CC9ytB96pm2tae4w8t2eebDaYZH0Nd3nsAh48bsSso3SjlAIJwmpJjVIP3YqKXR HbDF2pnnZj2vPrM61gSWqfTG6i6aqLbQS6a2z79RFzSn7+8R5C0qP3JM3ac00lTs06yA AaOGjNH2ZnLg62lBzlm0rEfvQMZ7A6DEHD+wnsg3WmXq3rEM7tf9vXiaINrhDXrB6mK6 kelyZdaOs/31DTol9kBAcYkEFzYXumHZwokZZCUqo8rki+uV838pHof8QA2hXrn3Nw+d kWwfiDNJZHprtASuAFaB433wKayzcL4Ozu5OyOF7V+X6RgFnJx4m8a866BUkAvY6t8ZI bPFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/DJSVXUD6ihdDGPu0GZjl5uPL7+MwkMGdNWZHLgSEZ0=; b=Bbd4ANmhRJHr4nuqYdQXMF2gf6JC1RFzoylAWlxkCxE1a5x0S23VjukyTKxIv599RO hN+jJGMp1Aef5HHaWMxDmrjS2zoOE0hjaWROZMLXFggRovnYzQeNpUaHy2tngZvif/YQ Y7NwaIG7xCdgWwGfJrff+bYhbPyr8J50iOfdBPE1M60dMPZJu3uNB5gb+rJaoRJ7OtEF hV2WxsIPxNcg4EKGzczgQdbz8M/4p7LWfp23S2hFv9exDlMMIFyZ6ZNX8WchUVFjfPK1 eijKRra/Uo3TauZjyRUQZwP8BkCDHsImUAQoYR4hJGXizsA619o5x4V7OuYd+GBSBqcd DXOw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s71si40116396pgs.561.2019.05.01.17.51.51; Wed, 01 May 2019 17:52:07 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726351AbfEBAsw (ORCPT + 99 others); Wed, 1 May 2019 20:48:52 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:34225 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbfEBAsw (ORCPT ); Wed, 1 May 2019 20:48:52 -0400 Received: by mail-oi1-f196.google.com with SMTP id v10so427778oib.1; Wed, 01 May 2019 17:48:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=/DJSVXUD6ihdDGPu0GZjl5uPL7+MwkMGdNWZHLgSEZ0=; b=FV2f99ZGRYMYUthNqY65zhIZx0jdIuRg49qo49W6Okp+Ncmymi6C/PPiSJ7LwIq2wH V/py9IEexclqxm2NJG1q3HlskOh8TkhjMlGjpLHgZPjyFOyDmrLsOdW3aWco9eEsLpKL E/2vpKbQIB3FXtBhuNOQQZixzrLEuPH33X6X+8X8f3tw2ZNkZkwABGdnoLdMEuLg0OKC ItlbqqR9Lv4//rv7D7C6tRW2x+9w0p29Cv3uRFeSBl7TCfCb924j/aw9CkkS22tMTFJC S7ECsCXxP516Jzbh3DYcdheHRj560mqUOKlMDm13+LkZmMzgx9qRUYDgVGTdDpkIr/NN yWOg== X-Gm-Message-State: APjAAAWHHjf9qpesIAoEfSrH7Gwta7svu4ZleaP60nGxk6O/91KFpMNP As9zbrEJLyqZ9sD1xFlMGb4AhSY= X-Received: by 2002:aca:3306:: with SMTP id z6mr748777oiz.25.1556758131022; Wed, 01 May 2019 17:48:51 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id i11sm16269124otl.27.2019.05.01.17.48.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 May 2019 17:48:50 -0700 (PDT) Date: Wed, 1 May 2019 19:48:49 -0500 From: Rob Herring To: Michal =?utf-8?B?Vm9rw6HEjQ==?= 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 Subject: Re: [RFC PATCH 1/4] dt-bindings: input: Add support for the MPR121 without interrupt line Message-ID: <20190502004849.GA8232@bogus> References: <1556267420-93219-1-git-send-email-michal.vokac@ysoft.com> <1556267420-93219-2-git-send-email-michal.vokac@ysoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1556267420-93219-2-git-send-email-michal.vokac@ysoft.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > 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 >