From patchwork Wed Mar 15 15:51:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9626017 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 759CA604CC for ; Wed, 15 Mar 2017 15:55:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67F5221E5A for ; Wed, 15 Mar 2017 15:55:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B50728652; Wed, 15 Mar 2017 15:55:26 +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=ham 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 0B2E821E5A for ; Wed, 15 Mar 2017 15:55:26 +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:References: In-Reply-To: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:List-Owner; bh=cYJhvXWBYEXdW0Dmzlpf4cvKG0Oen/es7QQaidNVn4s=; b=Rg5Q27Q8R+RjNPOEZ9Zlc7t8cy hYF7rj2dSb0hrvfQc4swYuafO+k0yKec/3PdHs+0XKtzGBSZ5kiU/TVRcWo2gqPPM+CQ7WudzRSjh omembjuET1i6ignDZtM/YMzkTyBZna/mat7XeGWHYHkX6e3rt/pBArQbpUK0TR//qhd9z/1CeBQxo I2BrXoiqVAGJw1untxBLq6+L0THDfMnxr4XTHJrpqXmZ2HN2+gJxDroxv3BM6mCrKNrOZmDey8NUi SA53ItmpJ1ssCsbXDREoATFweMCGY7fuOXPmvY1UJBU1kvDTNe9o3XRvvYLgvzu49cwXQEa7R7XwY 5IPnhzww==; 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 1coBGn-0003hQ-PP; Wed, 15 Mar 2017 15:55:25 +0000 Received: from forward9h.cmail.yandex.net ([87.250.230.220]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1coBGk-0002SK-Pm for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2017 15:55:24 +0000 Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [77.88.29.86]) by forward9h.cmail.yandex.net (Yandex) with ESMTP id 74F1522EB5; Wed, 15 Mar 2017 18:54:58 +0300 (MSK) Received: from smtp3p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3p.mail.yandex.net (Yandex) with ESMTP id 6C2F9132032E; Wed, 15 Mar 2017 18:54:51 +0300 (MSK) Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id M1YbWrNaAL-skfupNhH; Wed, 15 Mar 2017 18:54:50 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.xyz; s=mail; t=1489593291; bh=d3aphxPTP9AT3kMFc4V4/zlNOfn4wxEyG9VEL0i8Qsc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=bonSxCfJ590jppvtCLVEOOuNUOZo1hZbc9X10tkT2mDj0L6i472Xjf4CaC+AD3bm3 Y7uDduVG4ieHM91HB7BiOZdAZbaT/Rk7gXVLISpe40oyWXfBHjCei+giVXIMLf6HMA 6caf2J6wv7viaErB599m9gpg6E9QhG3/q1Ro13P4= Authentication-Results: smtp3p.mail.yandex.net; dkim=pass header.i=@aosc.xyz X-Yandex-ForeignMX: US X-Yandex-Suid-Status: 1 0,1 0,1 0,1 0,1 0,1 0,1 0,1 1130000036118848 From: Icenowy Zheng To: Dmitry Torokhov , Rob Herring , Maxime Ripard Subject: [PATCH 2/4] dt-bindings: add binding for Nsiway NS2009 touchscreen controller Date: Wed, 15 Mar 2017 23:51:38 +0800 Message-Id: <20170315155140.54518-3-icenowy@aosc.xyz> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170315155140.54518-1-icenowy@aosc.xyz> References: <20170315155140.54518-1-icenowy@aosc.xyz> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170315_085523_071838_7CDB6B4A X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Icenowy Zheng , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Nsiway NS2009 is a resistive touchscreen controller, with I2C interface and optional interrupt pin. Add binding document for it. Signed-off-by: Icenowy Zheng --- .../bindings/input/touchscreen/ns2009.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ns2009.txt diff --git a/Documentation/devicetree/bindings/input/touchscreen/ns2009.txt b/Documentation/devicetree/bindings/input/touchscreen/ns2009.txt new file mode 100644 index 000000000000..0e9090ba978c --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/ns2009.txt @@ -0,0 +1,23 @@ +* Nsiway NS2009 Resistive Touchscreen Controller + +Required properties: +- compatible : "nsiway,ns2009" +- reg : I2C slave address of the chip (0x48 or 0x49, depends on + the hardware) + +Optional properties: +- interrupt-parent : a phandle pointing to the interrupt controller + serving the interrupt for this chip +- interrupts : interrupt specification for the ns2009 pen interrupt +- properties defined in touchscreen.txt + +Example: + +i2c@00000000 { + ns2009: touchscreen@48 { + compatible = "nsiway,ns2009"; + reg = <0x48>; + touchscreen-fuzz-x = <8>; + touchscreen-fuzz-y = <8>; + }; +};