From patchwork Sat May 20 16:57:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 9738689 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 AE0406034C for ; Sat, 20 May 2017 16:57:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C4D428332 for ; Sat, 20 May 2017 16:57:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C6AB2834A; Sat, 20 May 2017 16:57:56 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 1650428332 for ; Sat, 20 May 2017 16:57:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755900AbdETQ5z (ORCPT ); Sat, 20 May 2017 12:57:55 -0400 Received: from mail-lf0-f51.google.com ([209.85.215.51]:34695 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753488AbdETQ5y (ORCPT ); Sat, 20 May 2017 12:57:54 -0400 Received: by mail-lf0-f51.google.com with SMTP id 99so13740476lfu.1 for ; Sat, 20 May 2017 09:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=gQsWM6uGR6E4KXrr8rL4yx2i8dBtphMH8NdevI+8634=; b=eM7CtcOULoWAKvJHQomFk1lfY3HfYdYhGUszt1/BAJlmgWrmxRv0wV5Ho1XV+86wr6 Ys1EBJdU5+nvWLxsJXbteI6OTFSxK/cPKyUwZkH3xefz0eBuBCkjnWJX2c0tPzEBnMjg zwQDZi5EZKuHApTyXCjM6jedoIl0WF1Etz6Ko= 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=gQsWM6uGR6E4KXrr8rL4yx2i8dBtphMH8NdevI+8634=; b=rR5ZGwQW4VA0smIu0R5HAhwzhk2mWbJpUJcafydXES6Vr+mFETwRKTBSUVt+n0yPyt la8e/XeSCgcSTa3X260drVyEK9mGk4UJuwy3vMDv8t/U3VgVLskTg77uz36Tndj36QMF 1bdCUe6qizi3jdWaeLn6XBbe0Nqsd47B+tc0yjFaI4Xd7DWqMOLqu8NTnRtcKsh5z17o kuRZpcAAcigPNprDIJoPakRTtXF7NJejot33ses8/z4GM5JrnmDXs3TDRpikRJuMbBAN h7G8un/9ev78DDbwVp3I8ngqvfih9CsUUPu96keX/qsSj0JWacc4KOeHUdXv1uKmSlYE evIA== X-Gm-Message-State: AODbwcBF+Dp350dAyE4OC8Av+tAFASA8J+0NtIrPyCLALNn20Q8LF4TD DAXPtr5BMbnudZLsmU5LTA== X-Received: by 10.46.20.76 with SMTP id 12mr3891602lju.11.1495299472926; Sat, 20 May 2017 09:57:52 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-787571d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.117.120]) by smtp.gmail.com with ESMTPSA id u24sm2140807ljd.34.2017.05.20.09.57.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 May 2017 09:57:51 -0700 (PDT) From: Linus Walleij To: Dmitry Torokhov , linux-input@vger.kernel.org Cc: Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/2 v2] input: keyboard: DT bindings for the D-Link DIR-685 touchkeys Date: Sat, 20 May 2017 18:57:45 +0200 Message-Id: <20170520165746.13356-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.4 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 This adds device tree bindings for the D-Link DIR-685 touchkeys. It's a simple homebrewn touchkey controller (by D-Link referred to as "touchpad") on I2C. Cc: devicetree@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Rename from "touchpad" to touchkeys" consistently. - Add Rob's ACK. --- .../bindings/input/dlink,dir685-touchkeys.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/dlink,dir685-touchkeys.txt diff --git a/Documentation/devicetree/bindings/input/dlink,dir685-touchkeys.txt b/Documentation/devicetree/bindings/input/dlink,dir685-touchkeys.txt new file mode 100644 index 000000000000..10dec1c57abf --- /dev/null +++ b/Documentation/devicetree/bindings/input/dlink,dir685-touchkeys.txt @@ -0,0 +1,21 @@ +* D-Link DIR-685 Touchkeys + +This is a I2C one-off touchkey controller based on the Cypress Semiconductor +CY8C214 MCU with some firmware in its internal 8KB flash. The circuit +board inside the router is named E119921. + +The touchkey device node should be placed inside an I2C bus node. + +Required properties: +- compatible: must be "dlink,dir685-touchkeys" +- reg: the I2C address of the touchkeys +- interrupts: reference to the interrupt number + +Example: + +touchkeys@26 { + compatible = "dlink,dir685-touchkeys"; + reg = <0x26>; + interrupt-parent = <&gpio0>; + interrupts = <17 IRQ_TYPE_EDGE_FALLING>; +};