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: 9565895 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 AF36560573 for ; Fri, 10 Feb 2017 02:04:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FE252853B for ; Fri, 10 Feb 2017 02:04:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94AD028548; Fri, 10 Feb 2017 02:04:29 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4D73B28545 for ; Fri, 10 Feb 2017 02:04:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=wiGM2twMKpPV4rqnv0gYNvLbn/H69qYQXY2MEYGJEcc=; b=CcL IsWoO8XQMHObAbNb3j1pYOZpDrwot06C4EdDcNZH10Giq/9BM5wzFp9rbkGQIvIV3vytLvCoZg0J5 LffHzXfo1YDVjY0T5tz+w990aLzl3WAyuVxR8Q+mUYkYPTQjj7ionqb6UNWZ0L7yjQYl9PAkfOKSC c2B8EZqoZaqGwuBLypvoOInI4ujQUbW3dqCWTUcXF+a6ryZZFrzEgnBrhDKkkQ5Iei2G201Y7wVQB eIwlfOw5e4Q4leUwvV7feORNGLt0eL85kH6P0xOiyKFumP2+jS8FRVOyMX03DURNuWviV6tiQPtOS R1VDKyWdtEAeFssTw1rNEuSQhw5xBug==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cc0ZY-0005HY-5Z; Fri, 10 Feb 2017 02:04:28 +0000 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cc0ZS-0005G8-Qd for linux-rockchip@lists.infradead.org; Fri, 10 Feb 2017 02:04:26 +0000 Received: by mail-pf0-x231.google.com with SMTP id 189so5002519pfu.3 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=cGy30Km6+9TvzIrjhk+dVzKY9aJuTQrDkt57VYKd22zTUKIiOF/8n+R5gwF0fu18D3 EvzT4ARR4v5LiA4q3PfZt/XncZidpZZWLvf7Z0QCiv16k25gujc/abiBMvqQpw3oC0kA hFYrNS8+iSQ3yMa5gFJxUhr0mEuw9sigKf2VDkZi5zQxneMAg01XESWE7M+xab8MnkTG QVlPT1Pzn8JAnxqirf69YAXDql8+MVHMnS9/4CMUSddp7YNLJMfQUk8iDvdbw9T9GG/Q d+wdfWqdGSykT0zHhVQPFHYaekAUUAtdPxaN2KnzLMWQzj0yLc8TlRcy3AZZ9tR6uU9a ezhg== X-Gm-Message-State: AMke39kMqTjM/7y8E8S2oFhh/0EHhzx+A52pXrdX0grsL2LIrChVdruRZ6uycfIX/IFM4Bl7 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170209_180422_898520_6A44F331 X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Brian Norris , Dmitry Torokhov , linux-kernel@vger.kernel.org, Doug Anderson , linux-rockchip@lists.infradead.org, Rob Herring , linux-input@vger.kernel.org, Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.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 {