From patchwork Fri Dec 2 00:31:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 9457485 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EF7C560235 for ; Fri, 2 Dec 2016 00:31:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0CBE2852B for ; Fri, 2 Dec 2016 00:31:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D523128539; Fri, 2 Dec 2016 00:31:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD2B82852B for ; Fri, 2 Dec 2016 00:31:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754736AbcLBAbo (ORCPT ); Thu, 1 Dec 2016 19:31:44 -0500 Received: from mail-pg0-f49.google.com ([74.125.83.49]:34137 "EHLO mail-pg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757449AbcLBAbn (ORCPT ); Thu, 1 Dec 2016 19:31:43 -0500 Received: by mail-pg0-f49.google.com with SMTP id x23so100654008pgx.1 for ; Thu, 01 Dec 2016 16:31:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=XFq+Au6EtmQ7ba4hBQ/hynjhAh5zMhNvqV9uhTshlMI=; b=dJ8JOzp9BSIn30F/ebq0kNAhVBgaLP4BRPrK81/rDK2TI5XgaIfmt4qKkx7Hj+N/+w wy02m23uiwSsBE26ei/N4otLQ9/KhSUm1q56we5XnqmITQeEDxYrgQlWV6PVWUwZ8a79 zhP4bSdskZNFVUqJfcP8PNoH1kZmAaO8WIT3U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=XFq+Au6EtmQ7ba4hBQ/hynjhAh5zMhNvqV9uhTshlMI=; b=jQvNMNGOkrfcxAgN/s2bwvEt3HyQt1NyeyvX4a1b04pDhgRQ96Is1gF3KzeP5SZrTJ RTLoz84JowfY/rKHZ2hRbe0VohShn2BUGkzZmKZhmESibm11imc2ZdxsC9sL37CVLp5B 72incnIB4TrmdHq7EaZB8DHF9jcziOy1hixmqIHYho4xMIwnZ8oQjZxzabpRgLP0kNnZ Uf1CUcxJEGcflPrv81dz9CiyfM9egBVgASq/MKcBK13UGrNmc/MqOW2vgJwCo1Xct8vE r5zEndhn3WmGegTpe8vHtOfM/5tygZYGmaPekIDEjDFGyGAcFBNHefGBDG3ahbYc2qyL WtKA== X-Gm-Message-State: AKaTC00/x3J1bbX1ChfTtM8BBZXnKEhen/CGbhUfp0ykAUIIyUuA9tJbwqnbkKk7/yx2DdfN X-Received: by 10.98.10.3 with SMTP id s3mr41622229pfi.78.1480638697059; Thu, 01 Dec 2016 16:31:37 -0800 (PST) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id z28sm2649456pgc.40.2016.12.01.16.31.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Dec 2016 16:31:36 -0800 (PST) From: Brian Norris To: Jiri Kosina , Benjamin Tissoires Cc: 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 , Brian Norris Subject: [PATCH v3 1/2] devicetree: i2c-hid: Add regulator support Date: Thu, 1 Dec 2016 16:31:09 -0800 Message-Id: <1480638670-111492-1-git-send-email-briannorris@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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. + Example: i2c-hid-dev@2c {