From patchwork Thu Dec 1 01:21:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 9455245 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 26AFD6071E for ; Thu, 1 Dec 2016 01:22:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 195CB27F9F for ; Thu, 1 Dec 2016 01:22:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DC8727FA8; Thu, 1 Dec 2016 01:22:28 +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 6A31B282DC for ; Thu, 1 Dec 2016 01:22:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932200AbcLABWZ (ORCPT ); Wed, 30 Nov 2016 20:22:25 -0500 Received: from mail-pf0-f173.google.com ([209.85.192.173]:36303 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150AbcLABWY (ORCPT ); Wed, 30 Nov 2016 20:22:24 -0500 Received: by mail-pf0-f173.google.com with SMTP id 189so42337704pfz.3 for ; Wed, 30 Nov 2016 17:22:24 -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=ACe9ZTgjX3pn0WP32yl/oJCIrbfcQW7KljLRbv7gU9A=; b=QwuaephhNIp5DGY/Mi2fT3Nk+Y3nMAEzyCYlZ1U6BiS0vwlYFU/LoAjkuf0v61f7c0 bfo21O184Hx5pvekON2K58FtROYU8uaNef2HnspI4swWOhJAbQy/T20HpxklaeMZIk4Q R7LfjVyLaVhbW3ZOYtUnzj3Tz5wrc9Y2k+a8c= 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=ACe9ZTgjX3pn0WP32yl/oJCIrbfcQW7KljLRbv7gU9A=; b=H38HQI5KqwfhTYbMp9xiN8ZCeGhJDaqshKF3nqFk5pAtXVGp3CGiF0Msj8x/9YkPaz JFCgJIJrw1TRDOMeZNLloO02HKcSDhg0rFmZdLXR2grmn6JNn1c9uykHhtAUNHLo0MZi 1wOoI6QfzsfwDtuJSB5kQeooEpUcWz4qWxO/cKj3UA5Bbeds7lOE19rXerpmwRkYuTve 3gxaPCfEElkfytgu6E+jh7UbV4H7HXyrk1QgmUSEtAM7PsUcAnXpVQ4GNg41p4Az8HX3 VNBREBX7sOYxU1UwI23HgTDQQcTbsy/HwF7Yx7NI6NPrjeAyE4H0stOpkdJMc+bDoVkB GAMg== X-Gm-Message-State: AKaTC00bzjVD/QZxhJLWGaU4cJEe5zZQo560JjMhReY4Nen1L1aae+LBPXWTEZXsl7a057cu X-Received: by 10.98.60.7 with SMTP id j7mr36683332pfa.129.1480555344096; Wed, 30 Nov 2016 17:22:24 -0800 (PST) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id n24sm105549205pfb.0.2016.11.30.17.22.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Nov 2016 17:22:23 -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 v2 1/2] devicetree: i2c-hid: Add Wacom digitizer + regulator support Date: Wed, 30 Nov 2016 17:21:27 -0800 Message-Id: <1480555288-142791-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 Add a compatible string and regulator property for Wacom W9103 digitizer. Its VDD supply may need to be enabled before using it. 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 --- v1 was a few months back. I finally got around to rewriting it based on DT binding feedback. v2: * add compatible property for wacom * name the regulator property specifically (VDD) Documentation/devicetree/bindings/input/hid-over-i2c.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/input/hid-over-i2c.txt b/Documentation/devicetree/bindings/input/hid-over-i2c.txt index 488edcb264c4..eb98054e60c9 100644 --- a/Documentation/devicetree/bindings/input/hid-over-i2c.txt +++ b/Documentation/devicetree/bindings/input/hid-over-i2c.txt @@ -11,12 +11,16 @@ If this binding is used, the kernel module i2c-hid will handle the communication with the device and the generic hid core layer will handle the protocol. Required properties: -- compatible: must be "hid-over-i2c" +- compatible: must be "hid-over-i2c", or a device-specific string like: + * "wacom,w9013" - reg: i2c slave address - hid-descr-addr: HID descriptor address - interrupt-parent: the phandle for the interrupt controller - interrupts: interrupt line +Optional properties: +- vdd-supply: phandle of the regulator that provides the supply voltage. + Example: i2c-hid-dev@2c {