From patchwork Tue May 30 12:09:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 9754399 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 D6124602F0 for ; Tue, 30 May 2017 12:09:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C854E28455 for ; Tue, 30 May 2017 12:09:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB09727853; Tue, 30 May 2017 12:09:35 +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 4657D2624B for ; Tue, 30 May 2017 12:09:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751435AbdE3MJ3 (ORCPT ); Tue, 30 May 2017 08:09:29 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:34428 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbdE3MJ0 (ORCPT ); Tue, 30 May 2017 08:09:26 -0400 Received: by mail-lf0-f54.google.com with SMTP id 99so47886411lfu.1 for ; Tue, 30 May 2017 05:09:25 -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=RclVkdpnZ7KIYYWSMJzLcNZyeRA2JpOx0LtZdUaVfxk=; b=SZBXQ8oiuFUSoyrG5vU24Ahn/6/ze9CT77y6zNMU8jf+37Id9dEDuWjZc9z86UvmaR HeSvCX1anVLLzQgYOaBW4D8REa1GTZmShTCTBK0xXTv0DeNptL4fKswGeiXVqaIq2XDD AYe5YI5AFNmgnDUFUrBxSxoB5Ip9AtcCZpHw0= 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=RclVkdpnZ7KIYYWSMJzLcNZyeRA2JpOx0LtZdUaVfxk=; b=XEMtxLqM3oShzmJd6DzJx3HSt0BMGsEmNj9Tnkg+HBw3/+VQvFpOBb6pLcGcB3Qh22 90uvZf5yWAJZV5PqHkxeLBsMJxst7OUwPVVPQDINtv/s1+T4pNeI2v5HgwmWzBrsJ4sE OLD4oQg9EmFkJaCjWm5Bpsla4k0+yeL1bbbQKRXQ0yXCITzKn0qXZ/6LtgM5jbW4V/zu HMZT/2wqDr9qZ/ckVIJOSaGORqQBlElM0ex2evk2rapGHJ6b+QXbQsp6chyGd2jZGk+e z8Ize9f8MmVu7X0jaLR8jLRLdxGGW2l6BsZidaJ7QvFqRxB0yYIr3qHuoR0p9DuybpfK CZ8A== X-Gm-Message-State: AODbwcDxI02WHTu73aKRMCcs8q1vOW6/jt8kQq/Cbolfw3wuLNANsjQk bUyn3cPg8r1tUNTn X-Received: by 10.25.145.75 with SMTP id y11mr5895355lfj.68.1496146164938; Tue, 30 May 2017 05:09:24 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-9d7e71d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.126.157]) by smtp.gmail.com with ESMTPSA id 25sm2656353ljp.2.2017.05.30.05.09.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 May 2017 05:09:23 -0700 (PDT) From: Linus Walleij To: Dmitry Torokhov , linux-input@vger.kernel.org Cc: Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/2 v3] input: keyboard: DT bindings for the D-Link DIR-685 touchkeys Date: Tue, 30 May 2017 14:09:17 +0200 Message-Id: <20170530120918.27357-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 v2->v3: - No changes, just resending. 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>; +};