From patchwork Tue Jan 21 14:15:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Reitemeyer X-Patchwork-Id: 11344045 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ECF561820 for ; Tue, 21 Jan 2020 14:19:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CCC102465B for ; Tue, 21 Jan 2020 14:19:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=web.de header.i=@web.de header.b="ge+UGsfN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727255AbgAUOTH (ORCPT ); Tue, 21 Jan 2020 09:19:07 -0500 Received: from mout.web.de ([212.227.17.12]:43631 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728916AbgAUOTG (ORCPT ); Tue, 21 Jan 2020 09:19:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1579616341; bh=oyW5kwO8xJarn3kuEr7zxq2OV3sMcoGNfUpvTIw+h1I=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=ge+UGsfNGl/VEaZcZ0OgqBVZhh/ZI3W7At+AAqbBiRTZlVfI5q9K6HFzFnEoO90tk mBGYKmxmqFNZLI+xaYIBI6L5zDUN7+8r7aYnTgxMXg3QaLgaPoxkx+50vLqsE2J1SN i0w16UmYQvVLtFON3DbxUxfyYlcKq3mcbn5F/AmU= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from LaptopNick.fritz.box ([79.227.106.217]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lrs70-1jch6R1qH8-013gUQ; Tue, 21 Jan 2020 15:19:01 +0100 From: Nick Reitemeyer To: dmitry.torokhov@gmail.com, robh+dt@kernel.org Cc: stephan@gerhold.net, linux-input@vger.kernel.org, devicetree@vger.kernel.org, Nick Reitemeyer Subject: [PATCH 1/3] dt-bindings: vendor-prefixes: Add Coreriver vendor prefix Date: Tue, 21 Jan 2020 15:15:24 +0100 Message-Id: <20200121141525.3404-1-nick.reitemeyer@web.de> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:kN2/uaHHSicxe1V/hz2OieOJKKx6B1Tx95Yd9/Hcpu+4ZaYbfCC MURnyZ/iITvdW7N9MebmFc3hYjHnU9VnU7gCDQWr+8ejMzOPnwqhW6GQfQpnMc9bB8Cesbs xNueTWr/vApeW15xL/RBk754nGsZhJYFzySU543HKJj2K06MUdND69ddPOLESF8TZ9o4M5S /bMjdqS2ae+09FNu60NpA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:9n/+EnS/cGo=:p+dN9YhqwwgZJL0dDuKZTm vDixCZcj9T0pjsh+/iBTXgExtMt7TceuOdMcN87Z4mg2ZBq8uSUIFm7eJ0hlHY9ytJXB9HlVg lXm0PZznTVS4Jd9A/idT5Tbo7dmXnHYxyglva48b6/8X5mN9dmvr7S2omgVn03PvfznJ22uvk kqk8VehRGQDze2yZX4lUs68GkCKb5eucdN/Cmqi8oWzC1RdJGXhRqifwgyCw0t4h217Js5KIT 4fqgVn1jZ+vlMXnP4dlOKwC39et6eDsbeqXNLtDCzVhTUbnTBrRJDyoDrlk7ygcrnALC3fF9M /dNXBrS8l4nYEHQBSe/SXBtfYTOKUtG/jxcEzkGskpS9uj92RZu37jrFsltnL1TdHyvtvyORL qw7DnYIwbpt4gCh/5+TM+hFfcjpuhv6aXig7ItdKL4ZCz/JPVXEn6w1f4Q6iB9VK2p91LDBY/ Ov+TczC4Z+O4i2X+D1qVIzmNwT+TXs9CgG0eYfU4jpnv0NZQi4u/cCF64acdub31iW1gB3frD /Og7POQ2q3YBf4RwHVPXmjyP6uU0k/sE+h+3gX29oCFac4JoqbvT9SBMvLyTrovbnZAzFrik7 BIyeDjrVbjZDTEH6QsbojNO4FAj9oQzoTczlqid/VMhg2f6sSwDniPF3kecHwmrrJfOT59cur jqpztsBq/tT+6pbUjwYjv9m/tJ46v7TNNSO2HilGr7NcBb1KhCyNK2lhlcTLiXWYO3T+72M2v 668lkqTZc4y2NeTHA6rJhsedVOm9gVbQF3dUqkmPECrbEVvzlpI7a5QYGyyOf9LWxApgd646U wQb6pzH0lfjYlQzQl+Hbgi27qPkWSv58jHwEycthjiK/DJMaM5J6+8SQJ0dHgBESfOdth8z5L 6hNWXBV5/jnIEyOa3Ob+mJtX8BxwpqO/XRY3HdunesoASR/ccblr7uyZOisoNO6uPRnEgSAYI sPldtj7Hc1kBQIvTAhhFWvspSTLY3bkfkEJAk+UyGTGVlmZ3pXgzWoKjr/lqCB2TykhO9iKUx ZsKJ1zxr5aryuQ+9pnpFC/1UYyY2OPnedHe6rcrIbEIEin25B1EXX/3QOBPomK25WlzcTcIrm w8O7nGq4lW+O9oQDUliyMWaHAhSIuwq+JxqLVv9swIERwHObuppT6bVMl3HC5cF2ZWEfgTQ4P an35sIgRuAnhhhSlDEpBwFB5qbRRM1U7zfdtXZ2tXt1/dCMu/ZGQ5SYkeDNskKIx/aqHkFln3 74y+Cfv2Uvd2Zb45BKti4TSfYJeeT69l2EqKrIUCn/+eEslicPw1Zid3xmYw= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Coreriver is a South Korean microcontroller manufacturer: http://coreriver.com Signed-off-by: Nick Reitemeyer Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) -- 2.23.0 diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 6046f4555852..77fb3c453014 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -199,6 +199,8 @@ patternProperties: description: Colorful GRP, Shenzhen Xueyushi Technology Ltd. "^compulab,.*": description: CompuLab Ltd. + "^coreriver,.*": + description: CORERIVER Semiconductor Co.,Ltd. "^corpro,.*": description: Chengdu Corpro Technology Co., Ltd. "^cortina,.*": From patchwork Tue Jan 21 14:15:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Reitemeyer X-Patchwork-Id: 11344041 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0D7141580 for ; Tue, 21 Jan 2020 14:19:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DF6A1217F4 for ; Tue, 21 Jan 2020 14:19:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=web.de header.i=@web.de header.b="Iy6Pi+wI" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729028AbgAUOTG (ORCPT ); Tue, 21 Jan 2020 09:19:06 -0500 Received: from mout.web.de ([217.72.192.78]:39039 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728186AbgAUOTG (ORCPT ); Tue, 21 Jan 2020 09:19:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1579616342; bh=MdUkYMZtyFfdIN9M9eXhJ33ZqLBdXaWNs9AvLX4Dzw8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Iy6Pi+wIzJXEdQbxn2Bn5Dethd/JP0VUnlKjOZ8v8KTHYtRQXA2kRDAKmDHASfPD6 8SdegMAq9pRByTws7M++AzDWq0vC1OuWNtACOZBrRjFezv/mT5HdN+hXYSacPxkRuJ pfpfkylveh3Go8aM03Rg9YO2lqD0oQPwCkq+jAkA= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from LaptopNick.fritz.box ([79.227.106.217]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M2uj4-1jjGfT3Vgs-00si7a; Tue, 21 Jan 2020 15:19:01 +0100 From: Nick Reitemeyer To: dmitry.torokhov@gmail.com, robh+dt@kernel.org Cc: stephan@gerhold.net, linux-input@vger.kernel.org, devicetree@vger.kernel.org, Nick Reitemeyer Subject: [PATCH 2/3] dt-bindings: input: add Coreriver TC360 binding Date: Tue, 21 Jan 2020 15:15:25 +0100 Message-Id: <20200121141525.3404-2-nick.reitemeyer@web.de> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200121141525.3404-1-nick.reitemeyer@web.de> References: <20200121141525.3404-1-nick.reitemeyer@web.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:6sX1kR2dv4gmfrQvCBnMZCU5faUd40Pfw/cNMHOBXaAYvw4wTig jgav/qxXLrT1K5Q2qKS4Y02NGXfZOH1NUIdJkhq55IMNNVyqGgz0+0uJ8N8d/vgl583mF9R 57L9Hdnw5fqh3CfkZvV3eJouOLJyWVe0Ekl6Fep0om4pfEEUC4hgq+DuNzRCSb1ku0S8wmO fyVvTZgSzcbCidYuE9dUQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:MptSEcWn4Nw=:3hjcNa1SfGd4pYCGaov5n7 xeaOqtBXdB4WQP/qWKeYTAM60v3jOhZpyF0ONp0EGLbPoDtLiau0BO6hax2CJo3JwTz4HWmTy ESRJqZSeKpZ+AgkiFWKeGsER3oHH2kIIG1hso842s6J2jcKnsndbnqe37H4/mb6s9v5veWxxY 31X/YIoKiMTFa728HTQ6XV7DMhWr/jahwRtenE3zz+Wm9DYiTU2cBz/VJhYbO5255Ux3drk7O 0PASmPzIqrN+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ender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Signed-off-by: Nick Reitemeyer Acked-by: Rob Herring --- Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt | 1 + 1 file changed, 1 insertion(+) -- 2.23.0 diff --git a/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt b/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt index ef2ae729718f..921172f689b8 100644 --- a/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt +++ b/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt @@ -5,6 +5,7 @@ Required properties: * "cypress,tm2-touchkey" - for the touchkey found on the tm2 board * "cypress,midas-touchkey" - for the touchkey found on midas boards * "cypress,aries-touchkey" - for the touchkey found on aries boards + * "coreriver,tc360-touchkey" - for the Coreriver TouchCore 360 touchkey - reg: I2C address of the chip. - interrupts: interrupt to which the chip is connected (see interrupt binding[0]). From patchwork Tue Jan 21 14:15:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Reitemeyer X-Patchwork-Id: 11344043 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 985F4139A for ; Tue, 21 Jan 2020 14:19:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7738722314 for ; Tue, 21 Jan 2020 14:19:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=web.de header.i=@web.de header.b="ODOAl3bY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729030AbgAUOTH (ORCPT ); Tue, 21 Jan 2020 09:19:07 -0500 Received: from mout.web.de ([217.72.192.78]:51253 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728794AbgAUOTG (ORCPT ); Tue, 21 Jan 2020 09:19:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1579616342; bh=9kRnx6Jx4zaILv3sEjaVmFzBKiRSW1pV8G1VB8CJASA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ODOAl3bYQl7SaKcOWN9MzrEsCh8KQviYNFjI1R0Zq/hIItUPDFXVPUk8fCfhSQs17 iadm2Mbo2B6SNc+NaqSEEYPrcRW8paZMEXcyLflVHxw4Ig3MNqhYS0MXSBv3mL1nfi fq6eV8YX/0h8cCe1EWkdhsjqmu4YpvSxilhgxc48= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from LaptopNick.fritz.box ([79.227.106.217]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MUFGo-1j2GM00yEE-00R2Ha; Tue, 21 Jan 2020 15:19:02 +0100 From: Nick Reitemeyer To: dmitry.torokhov@gmail.com, robh+dt@kernel.org Cc: stephan@gerhold.net, linux-input@vger.kernel.org, devicetree@vger.kernel.org, Nick Reitemeyer Subject: [PATCH 3/3] Input: tm2-touchkey - add support for Coreriver TC360 variant Date: Tue, 21 Jan 2020 15:15:26 +0100 Message-Id: <20200121141525.3404-3-nick.reitemeyer@web.de> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200121141525.3404-1-nick.reitemeyer@web.de> References: <20200121141525.3404-1-nick.reitemeyer@web.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:k2+u9ZfeHwTXo/d5p4ZrSG55i2emVHb8kyrVo/l1GUPLBrHNxY2 V8ZN8Myc/LGrAiZl0hyphimMnp+hZhQ8tVuomgH9VjRa5+yisWx4FlojBTdPtJUFhS4WM9s 3hx+0LywkSLQCCmQyWESeu+65CoKsWQYEIujYlksjwmL0BrgFyDHuGeMY9Xvjrvt7vNW0oa fhTOd0cS5Sd5WtFAZ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77daqQgxFnG+RtVb5IL61brQ+25R 5a1HFWexqxSPYa1acyPCB+QewBnL6RHV/UvI+xb/dF0pmNj6ww/MIL9SaB8sB3co5KdengFV4 S2Sy1s83XZfCFUt7/ZRnDi3HkmIFrAwoXCPqxqXShhmJ4hnkQfUFUFsS4f0wdIcRKNOWFVRDh KRHa4nYbX+H95AWsZoNXgEOsqT5CqbmUyjYcL/eIv1loUIvFBH3H+ogv/dhIY3tz+NCy46bk6 uhNn7CFiQk/mG8b0FLtux0dPjVeXLcmHswjnGR+yeXXXZ786ZtI1ff1hqMQs= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The Coreriver TouchCore 360 is like the midas board touchkey, but it is using a fixed regulator. Signed-off-by: Nick Reitemeyer --- drivers/input/keyboard/tm2-touchkey.c | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.23.0 diff --git a/drivers/input/keyboard/tm2-touchkey.c b/drivers/input/keyboard/tm2-touchkey.c index 14b55bacdd0f..fb078e049413 100644 --- a/drivers/input/keyboard/tm2-touchkey.c +++ b/drivers/input/keyboard/tm2-touchkey.c @@ -75,6 +75,14 @@ static struct touchkey_variant aries_touchkey_variant = { .cmd_led_off = ARIES_TOUCHKEY_CMD_LED_OFF, }; +static const struct touchkey_variant tc360_touchkey_variant = { + .keycode_reg = 0x00, + .base_reg = 0x00, + .fixed_regulator = true, + .cmd_led_on = TM2_TOUCHKEY_CMD_LED_ON, + .cmd_led_off = TM2_TOUCHKEY_CMD_LED_OFF, +}; + static int tm2_touchkey_led_brightness_set(struct led_classdev *led_dev, enum led_brightness brightness) { @@ -327,6 +335,9 @@ static const struct of_device_id tm2_touchkey_of_match[] = { }, { .compatible = "cypress,aries-touchkey", .data = &aries_touchkey_variant, + }, { + .compatible = "coreriver,tc360-touchkey", + .data = &tc360_touchkey_variant, }, { }, };