From patchwork Fri Feb 10 02:03:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 9565885 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 8E80660216 for ; Fri, 10 Feb 2017 02:04:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E80E2853B for ; Fri, 10 Feb 2017 02:04:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 72A3E2854E; Fri, 10 Feb 2017 02:04:08 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 B05F52853B for ; Fri, 10 Feb 2017 02:04:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751027AbdBJCEE (ORCPT ); Thu, 9 Feb 2017 21:04:04 -0500 Received: from mail-pf0-f175.google.com ([209.85.192.175]:33257 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751074AbdBJCEC (ORCPT ); Thu, 9 Feb 2017 21:04:02 -0500 Received: by mail-pf0-f175.google.com with SMTP id c73so1607818pfb.0 for ; Thu, 09 Feb 2017 18:04:02 -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=MwCVs50zU+GHAZnQWIF2TAGNkzcg3Bd3l8mqPR21Wak=; b=HLrxUon2RXuQ6Eiy5aq55zb7dIaWnhQXfHSw+z/Y6l1HzyFSCdQ3dftEjh1caRiIrx 65jDThTnm7lVsRjJqkNq/Vn/NRL1sC+eVv0IU+Zra74F+RYKAbuX4onQjtmz+39anxOJ mNpRH585FdRMEIMmW6CCAsOh5a+4f9n7UAAr4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=MwCVs50zU+GHAZnQWIF2TAGNkzcg3Bd3l8mqPR21Wak=; b=eeJdBp1sA9UVIg6XC0s7Geb+1E0t5IeYfPB0RPeYJZ9GBjDbAoZLrKJsDOLuL9f3fl 6+mEwBSJMcA0Ndm5N+u/6tENgLk6+Hv0CLHOximVW7xJCyxX9LsPY3YsNs8f/vtU7i/6 8h8KfHcGtXpKyb3+rSt9NjxDgGqi8murTWpGAVpTHCii2bOAo4Qg64eqDN7c8noDOpgu ZphAx2desfOTYrqwJ+xm59WD/wzkuPsnQ+1/IwaPL+yJ7LmomPRFqGWrfcbXAJ+EQaWC 5MNuP7F4H4f4PlFrqv/s2gbbvEWg8oLJPPyFnGQNPnT9/+n/L4KN03BdD6yF6B4lZzpN 7MTg== X-Gm-Message-State: AMke39kDC9wM6soTq9OF/N9J4JBNJXHASC6oEs5tV3dWaljHU5iowUJjR4pObvM9XH1xWCql X-Received: by 10.99.170.5 with SMTP id e5mr7713793pgf.89.1486692241885; Thu, 09 Feb 2017 18:04:01 -0800 (PST) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id w16sm247966pgc.15.2017.02.09.18.04.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Feb 2017 18:04:01 -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 v5 1/2] devicetree: i2c-hid: Add regulator support Date: Thu, 9 Feb 2017 18:03:56 -0800 Message-Id: <20170210020357.10679-1-briannorris@chromium.org> X-Mailer: git-send-email 2.11.0.483.g087da7b7c-goog 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 Acked-by: Rob Herring --- Sorry for the delay on resending this. I *think* I've addressed all the concerns from last time though? 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 v5: * change name to "post-power-on-delay-ms" * reword to describe how the power sequencing properties require a specific 'compatible' property --- Documentation/devicetree/bindings/input/hid-over-i2c.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/input/hid-over-i2c.txt b/Documentation/devicetree/bindings/input/hid-over-i2c.txt index 488edcb264c4..28e8bd8b7d64 100644 --- a/Documentation/devicetree/bindings/input/hid-over-i2c.txt +++ b/Documentation/devicetree/bindings/input/hid-over-i2c.txt @@ -17,6 +17,22 @@ Required properties: - interrupt-parent: the phandle for the interrupt controller - interrupts: interrupt line +Additional optional properties: + +Some devices may support additional optional properties to help with, e.g., +power sequencing. The following properties can be supported by one or more +device-specific compatible properties, which should be used in addition to the +"hid-over-i2c" string. + +- compatible: + * "wacom,w9013" (Wacom W9013 digitizer). Supports: + - vdd-supply + - post-power-on-delay-ms + +- vdd-supply: phandle of the regulator that provides the supply voltage. +- post-power-on-delay-ms: time required by the device after enabling its regulators + before it is ready for communication. Must be used with 'vdd-supply'. + Example: i2c-hid-dev@2c {