From patchwork Tue May 6 22:13:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Warren X-Patchwork-Id: 4124381 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AC6F79F1E1 for ; Tue, 6 May 2014 22:13:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC227201B4 for ; Tue, 6 May 2014 22:13:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E6760201D5 for ; Tue, 6 May 2014 22:13:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752358AbaEFWN2 (ORCPT ); Tue, 6 May 2014 18:13:28 -0400 Received: from avon.wwwdotorg.org ([70.85.31.133]:34579 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751752AbaEFWN1 (ORCPT ); Tue, 6 May 2014 18:13:27 -0400 Received: from severn.wwwdotorg.org (unknown [192.168.65.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by avon.wwwdotorg.org (Postfix) with ESMTPS id 622FE6358; Tue, 6 May 2014 16:13:27 -0600 (MDT) Received: from swarren-lx1.nvidia.com (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by severn.wwwdotorg.org (Postfix) with ESMTPSA id 81FC3E4637; Tue, 6 May 2014 16:13:25 -0600 (MDT) From: Stephen Warren To: Dmitry Torokhov Cc: Benson Leung , Yufeng Shen , Daniel Kurtz , linux-input@vger.kernel.org, Stephen Warren , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org Subject: [PATCH 3/4] Input: atmel_mxt_ts: define a device tree binding Date: Tue, 6 May 2014 16:13:11 -0600 Message-Id: <1399414392-32572-4-git-send-email-swarren@wwwdotorg.org> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1399414392-32572-1-git-send-email-swarren@wwwdotorg.org> References: <1399414392-32572-1-git-send-email-swarren@wwwdotorg.org> X-NVConfidentiality: public X-Virus-Scanned: clamav-milter 0.97.8 at avon.wwwdotorg.org X-Virus-Status: Clean Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Stephen Warren This document describes how to represent an Atmel MXT touchpad in device tree. The device may show up in bootloader mode if reset by SW, or if configuration/firmware is missing. Or, it may present itself as the final touchpad device. These modes have different I2C addresses, and hence different I2C nodes with different compatible values representing their feature-set. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: devicetree@vger.kernel.org Signed-off-by: Stephen Warren --- .../devicetree/bindings/input/atmel,mxt-tp.txt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/atmel,mxt-tp.txt diff --git a/Documentation/devicetree/bindings/input/atmel,mxt-tp.txt b/Documentation/devicetree/bindings/input/atmel,mxt-tp.txt new file mode 100644 index 000000000000..c62798ef3a82 --- /dev/null +++ b/Documentation/devicetree/bindings/input/atmel,mxt-tp.txt @@ -0,0 +1,26 @@ +Atmel MXT touchpad + +Required properties: +- compatible: One of: + atmel,mxt-tp (for the main touchpad I2C address) + atmel,mxt-tp-bootloader (for the bootloader I2C address) + +- reg: The I2C address of the device + +- interrupts: The sink for the touchpad's IRQ output + See ../interrupt-controller/interrupts.txt + +Optional properties for main touchpad device: + +- linux,gpio-keymap: An array of up to 4 entries indicating the Linux + keycode generated by each GPIO. Linux keycodes are defined in + . + +Example: + + trackpad@4b { + compatible = "atmel,mxt-tp"; + reg = <0x4b>; + interrupt-parent = <&gpio>; + interrupts = ; + };