Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1023624ybi; Sat, 27 Jul 2019 01:07:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwg1l4nOeRsQ0G6fJE7yfEqzV7S6Lx52LmlYeeoUD8uScNDzKhT8ClUTpTQEBgtSU2sfeQk X-Received: by 2002:a62:7641:: with SMTP id r62mr26256385pfc.35.1564214835794; Sat, 27 Jul 2019 01:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564214835; cv=none; d=google.com; s=arc-20160816; b=lzY5cNzLmMNdNYPRHwpumBWM2V8zein6u/5tsh6z40Gov6UI3KEtbAn1E5Ka+2d1bq F80msH/sCbTO4GVHPNUFU6Qtlu59eYXWAgt+eunXWajLGebrF9tyWKwFbOE7kc1oB6yt p6GuUrikMme0JVwm5z378zR4l7W4Fe6zWryr2d4eT2L0jOEtLGJxgLUogO3iByrgukSB 1dhAn7RfGxAJJynIRyXGl+mx1y/iI2nSur7KhKYnHt8sskxb97tY2OqagqwdJy/EWexx pJlLffi89Ca8YNzi60do77KHvhx85zNd/3BSgTwoneYrjuFZKKwYnufSDBIOVmWnIcz+ 4DdQ== 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:dkim-signature; bh=DZuSQOs3k+A8iZ0Th3QCScF8T/FNqRHuvkaRAFfzCjQ=; b=oxRZERwKRSC5ee3DPuOTiEBry1Q2Q2q5WuP8CBdSUkff1kxfF0A1znpKGYlC3/dIib 25qx3ieIlpaBXjUJbqzfbTgdUfgW4W+jmKY4OfAM9reJqsJCpX6mvIx09UMJFY3QfNZ6 4qDmcLB91tL9Fh6Ga81iDQ0SaZgPCcuib5pDzdPi8LD/MPg8eGb0A2KixNyd50PkmjS9 xODVc7PVmNAud/pfKLqIR/cIhsFPXRJMVhwnT+YjF4SxmeFfUeQhom28xvzgrqlmtN0w KMEZ5WKLC7O+7FDjk7mkpm1qX6RgUF8u9Dh+cnykhVE5Epf2bnP9VzOFP3gyZV64MPED Zrvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J4WwLXz0; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si28630400pfq.70.2019.07.27.01.06.48; Sat, 27 Jul 2019 01:07: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 header.i=@gmail.com header.s=20161025 header.b=J4WwLXz0; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728273AbfG0ICA (ORCPT + 99 others); Sat, 27 Jul 2019 04:02:00 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:45390 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbfG0IB7 (ORCPT ); Sat, 27 Jul 2019 04:01:59 -0400 Received: by mail-lj1-f194.google.com with SMTP id m23so53586640lje.12; Sat, 27 Jul 2019 01:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=DZuSQOs3k+A8iZ0Th3QCScF8T/FNqRHuvkaRAFfzCjQ=; b=J4WwLXz0LZtHeNNm+zdpdsx6I7sBZ0PdZJay9gcTUXbWdMbrfOIm41Ys3osdjg2Gvq sNTFALR2bnvakIlmyTK3ItLx1juacv4j/4QOeFfLATguhE85FcpSq5SzWHoVu12oTz1U vC2C3+MSujfaazA8qdzMTBN/oKxVRb2KA/AEufzKAKP5iv4lLg/dnRepVogMPt6kGk57 ChMs2auDA7APL80KJH20d01FkQhaXcFnZFSk5BTZhq4/EPW2CT3X+Br1TJ0+/Uhh3l1l gTOQ3ou1VDzR3eNct5N4bxlUp56L/zdQym6QDCTqyVrR9tRipvC9QymP/O3S/5oUAiYR Db2Q== 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=DZuSQOs3k+A8iZ0Th3QCScF8T/FNqRHuvkaRAFfzCjQ=; b=HJjNVFaYShyXd0fZ5iBTiGb4Z/kpdLEJw/5DqT5tBbSuCTXU2fE7NssnFNJtsPyO/Z JlqRSrvUnNFFH8X4g9Z19cYMcm/mRPelU3zgCVgeUdSIV7DLG8Pzk/y4B8saVg944Tvl jm4hiWDYNfH8IwAuZcf8wjoN92HaA3Mr3FZirEL9IY65YRipsQdyXdN55jwAYhQpdDY2 KpDhnEvaZleFIp07LM2CDNhf/Ju+rl3pOK2pLDUUaw6mujl9FdfXrxmF4Car3FsIR7sH 0kfDniLl5aKYyifb6GfrH+2U46W93N0FiN5CKuIUOGABMSFQ13Y+iZqcFRavURg7nDIn IXlA== X-Gm-Message-State: APjAAAXgsWh8Xb3I3xbU5DbFouoJPIdKssyK9LaqHU5Oo5gp5BmYlj1l fPfQqBSnNTfmU3V3dAVzuAZVhGSRzoA= X-Received: by 2002:a05:651c:1105:: with SMTP id d5mr8223817ljo.161.1564214516765; Sat, 27 Jul 2019 01:01:56 -0700 (PDT) Received: from localhost ([188.170.223.67]) by smtp.gmail.com with ESMTPSA id n1sm9092825lfk.19.2019.07.27.01.01.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 27 Jul 2019 01:01:55 -0700 (PDT) Date: Sat, 27 Jul 2019 11:01:54 +0300 From: Dmitry Torokhov To: Rob Herring Cc: Michal =?utf-8?B?Vm9rw6HEjQ==?= , 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 v2 1/4] dt-bindings: input: Add support for the MPR121 without interrupt line Message-ID: <20190727080154.GB795@penguin> References: <1558098773-47416-1-git-send-email-michal.vokac@ysoft.com> <1558098773-47416-2-git-send-email-michal.vokac@ysoft.com> <20190613223945.GA938@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190613223945.GA938@bogus> 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 Thu, Jun 13, 2019 at 04:39:45PM -0600, Rob Herring wrote: > On Fri, May 17, 2019 at 03:12:50PM +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. > > 'separate' from what? > > > > > Signed-off-by: Michal Vokáč > > --- > > Changes since v1: > > - Document the polled binding in the original file, do not create a new one. > > (Rob) > > > > Documentation/devicetree/bindings/input/mpr121-touchkey.txt | 9 +++++++-- > > 1 file changed, 7 insertions(+), 2 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/input/mpr121-touchkey.txt b/Documentation/devicetree/bindings/input/mpr121-touchkey.txt > > index b7c61ee5841b..97f55273d473 100644 > > --- a/Documentation/devicetree/bindings/input/mpr121-touchkey.txt > > +++ b/Documentation/devicetree/bindings/input/mpr121-touchkey.txt > > @@ -1,9 +1,14 @@ > > -* Freescale MPR121 Controllor > > +* Freescale MPR121 Controller > > > > Required Properties: > > -- compatible: Should be "fsl,mpr121-touchkey" > > +- compatible: Should be one of: > > + - "fsl,mpr121-touchkey" - MPR121 with interrupt line > > + - "fsl,mpr121-touchkey-polled" - MPR121 with polling > > - reg: The I2C slave address of the device. > > - interrupts: The interrupt number to the cpu. > > + In case of "fsl,mpr121-touchkey-polled" the interrupt > > + line is not used and hence the interrupts property is > > + not required. > > Absence of the interrupts property is enough to determine polled mode > and you don't need a separate compatible string. I would prefer if we could distinguish between chip working in polled mode intentionally vs DT writer simply forgetting to specify interrupt property. Should we key the polling mode off "linux,poll-interval" property? We probably going to need it anyway as not everyone needs the same polling frequency. Thanks. -- Dmitry