From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752995AbcILQRA (ORCPT ); Mon, 12 Sep 2016 12:17:00 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:34006 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751676AbcILQQ5 (ORCPT ); Mon, 12 Sep 2016 12:16:57 -0400 Date: Mon, 12 Sep 2016 11:16:55 -0500 From: Rob Herring To: Caesar Wang Cc: Jiri Kosina , linux-rockchip@lists.infradead.org, dbasehore@chromium.org, Douglas Anderson , Heiko Stuebner , Brian Norris , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , Mark Rutland Subject: Re: [PATCH 1/2] dt-bindings: add the regulator optional properties Message-ID: <20160912161655.GA12672@rob-hp-laptop> References: <1473027116-13892-1-git-send-email-wxt@rock-chips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1473027116-13892-1-git-send-email-wxt@rock-chips.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 05, 2016 at 06:11:55AM +0800, Caesar Wang wrote: > Add the regulator properties that will be used to power on/off > the regulator. > > Signed-off-by: Caesar Wang > Cc: Rob Herring > Cc: Jiri Kosina > Cc: linux-input@vger.kernel.org > --- > > Documentation/devicetree/bindings/input/hid-over-i2c.txt | 3 +++ > 1 file changed, 3 insertions(+) I find this binding a bit questionable. The compatible should describe the actual device, not just the protocol it uses. > diff --git a/Documentation/devicetree/bindings/input/hid-over-i2c.txt b/Documentation/devicetree/bindings/input/hid-over-i2c.txt > index 488edcb..e648e44 100644 > --- a/Documentation/devicetree/bindings/input/hid-over-i2c.txt > +++ b/Documentation/devicetree/bindings/input/hid-over-i2c.txt > @@ -17,6 +17,9 @@ Required properties: > - interrupt-parent: the phandle for the interrupt controller > - interrupts: interrupt line > > +Optional properties: > +- power-supply: phandle of the regulator that provides the supply voltage. This needs to be actual supplies for devices. What if a device has 2 supplies? Add a device compatible string and make this property specific to that device, then it's fine. Rob