From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752126AbcLEJKt (ORCPT ); Mon, 5 Dec 2016 04:10:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38788 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbcLEJKQ (ORCPT ); Mon, 5 Dec 2016 04:10:16 -0500 Date: Mon, 5 Dec 2016 10:08:13 +0100 From: Benjamin Tissoires To: Brian Norris Cc: Jiri Kosina , Caesar Wang , linux-rockchip@lists.infradead.org, Rob Herring , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , Mark Rutland , Doug Anderson Subject: Re: [PATCH 1/2] devicetree: i2c-hid: Add regulator support Message-ID: <20161205090813.GL1280@mail.corp.redhat.com> References: <1480717140-14558-1-git-send-email-briannorris@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1480717140-14558-1-git-send-email-briannorris@chromium.org> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 05 Dec 2016 09:08:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Dec 02 2016 or thereabouts, Brian Norris wrote: > From: Caesar Wang > > Document a "vdd-supply" and an initialization delay. Can be used for > powering on/off a HID. > > Signed-off-by: Caesar Wang > Cc: Rob Herring > Cc: Jiri Kosina > Cc: linux-input@vger.kernel.org > Signed-off-by: Brian Norris > --- > v2: > * add compatible property for wacom, per Rob's request > * name the regulator property specifically (VDD) > > v3: > * remove wacom property, per Benjamin's request > * add delay property > > v4: no change > --- > Documentation/devicetree/bindings/input/hid-over-i2c.txt | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/input/hid-over-i2c.txt b/Documentation/devicetree/bindings/input/hid-over-i2c.txt > index 488edcb264c4..1ea290167652 100644 > --- a/Documentation/devicetree/bindings/input/hid-over-i2c.txt > +++ b/Documentation/devicetree/bindings/input/hid-over-i2c.txt > @@ -17,6 +17,11 @@ Required properties: > - interrupt-parent: the phandle for the interrupt controller > - interrupts: interrupt line > > +Optional properties: > +- vdd-supply: phandle of the regulator that provides the supply voltage. > +- init-delay-ms: time required by the device after power-on before it is ready > + for communication. Nitpick: maybe we should say that the power-on applies to the vdd-supply parameter, not the SET_POWER HID command. I am just worried people will misuse this parameter. Otherwise, Acked-by: Benjamin Tissoires > + > Example: > > i2c-hid-dev@2c { > -- > 2.8.0.rc3.226.g39d4020 >