From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?TWljaGFsIFZva8OhxI0=?= Subject: Re: [RFC PATCH 1/4] dt-bindings: input: Add support for the MPR121 without interrupt line Date: Mon, 6 May 2019 14:18:04 +0200 Message-ID: <8dd2efa1-0fc9-d99a-d015-323350e1abdc@ysoft.com> References: <1556267420-93219-1-git-send-email-michal.vokac@ysoft.com> <1556267420-93219-2-git-send-email-michal.vokac@ysoft.com> <20190502004849.GA8232@bogus> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20190502004849.GA8232@bogus> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org 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 List-Id: devicetree@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 >>