From patchwork Sun Aug 16 21:14:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff LaBundy X-Patchwork-Id: 255113 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C02BDC433DF for ; Sun, 16 Aug 2020 21:15:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9E44320B1F for ; Sun, 16 Aug 2020 21:15:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=NETORG5796793.onmicrosoft.com header.i=@NETORG5796793.onmicrosoft.com header.b="SfJJTRcr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728984AbgHPVPG (ORCPT ); Sun, 16 Aug 2020 17:15:06 -0400 Received: from mail-dm6nam10on2059.outbound.protection.outlook.com ([40.107.93.59]:32963 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726331AbgHPVPF (ORCPT ); Sun, 16 Aug 2020 17:15:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UJzXbQBR/3Uc/RZvonJ79keMYr9PtgH3rrx3QWjEBoFancLc6CSilNFkzSjTXdhf79c5wnLahBDpq5Uy+0tZ++fjyA75Uq9KVS1e9ofQfJFLyLAuUxBM8I0yNy6x8CPNWnU4JbjaXhtsgDIWLwe7AfM5xAiqFNCfJnxTCqiA4P0lc3BVsXUT1VXLXzurFVx73oi2HJqAyXXS/lDeb6obZDQxPVcn0pc0txHRZcwNdhvJajGmVk3WUvZ0vWuqyEhWbqHT/czwcltrL+TqAdLpDbU3NdD4/cbTMMbV80CiAJg6DQ+I5BOFMwjYztJcTQtdUaIucf3uGalb/aMs6bOffg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ys8qGZuCkJQq+Fvfp3QROd8s8RMA2dIsbBXjErkIA3o=; b=Si2YkGQz58fgXT1FK5VY26ulBC4/vE7jibIbczsNhL4zZZJUzSEXj3mUx7kzO1FyhTHa+303fME3suIrBHKuxKxUHPPPoVy2qaxDcrug7LJQsFpbyxd0shJv/5hjp6PI+VVqd4arfZ9DXVieQrW4gYKS3nB1yHuAK2yUVhc453KLekgJ1Bg5MEiRxRRpC79P9ZolOBpBR4XadsfT+Z4wv7pKtzMWCxFJ0+7MnsrcZJAy/ke8g8YvpWwiZ8n+im/NLQ/NVgA201r1Hu8CVRgGwgj5rq4MpP9JZ/W+Q4PM31vQRBrpymHRNn/wFOKzCl7LaAcOjH7HAhf0eBfN/3AInA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=labundy.com; dmarc=pass action=none header.from=labundy.com; dkim=pass header.d=labundy.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NETORG5796793.onmicrosoft.com; s=selector1-NETORG5796793-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ys8qGZuCkJQq+Fvfp3QROd8s8RMA2dIsbBXjErkIA3o=; b=SfJJTRcrMoSLPBcEqbcoLhkty75slY1VIQaV8oTQA+aM1Zs4kZOClVWRmvvUDaJ10zyKU96R8NZkQMLkEpoKmqsF6lfG9nB6SyrwRePzjWMaRI76v3w6U4FJZajSSQe59H7GoX4UY4typwDfGiaifEVom0wcw4v6JQ1b4cBJy1I= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none; gmail.com; dmarc=none action=none header.from=labundy.com; Received: from SN6PR08MB5517.namprd08.prod.outlook.com (2603:10b6:805:fb::32) by SN6PR08MB5631.namprd08.prod.outlook.com (2603:10b6:805:fb::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.20; Sun, 16 Aug 2020 21:15:03 +0000 Received: from SN6PR08MB5517.namprd08.prod.outlook.com ([fe80::2ca3:f294:d154:6875]) by SN6PR08MB5517.namprd08.prod.outlook.com ([fe80::2ca3:f294:d154:6875%6]) with mapi id 15.20.3283.027; Sun, 16 Aug 2020 21:15:03 +0000 From: Jeff LaBundy To: dmitry.torokhov@gmail.com, robh+dt@kernel.org Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, Jeff LaBundy Subject: [PATCH 1/6] dt-bindings: input: iqs269a: Add bindings for slider gestures Date: Sun, 16 Aug 2020 16:14:22 -0500 Message-Id: <1597612467-15093-2-git-send-email-jeff@labundy.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597612467-15093-1-git-send-email-jeff@labundy.com> References: <1597612467-15093-1-git-send-email-jeff@labundy.com> X-ClientProxiedBy: SA9PR03CA0006.namprd03.prod.outlook.com (2603:10b6:806:20::11) To SN6PR08MB5517.namprd08.prod.outlook.com (2603:10b6:805:fb::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (136.49.227.119) by SA9PR03CA0006.namprd03.prod.outlook.com (2603:10b6:806:20::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3283.27 via Frontend Transport; Sun, 16 Aug 2020 21:15:02 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [136.49.227.119] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 515d1faf-201c-4767-a455-08d84229710c X-MS-TrafficTypeDiagnostic: SN6PR08MB5631: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kgStnqI4LR6Nu2Sroos4zeK6DHlXiXwBv2ll1TPDrNAKGElol17pa0lD/pLpktUNml2YFDgtuLaf9FQ9Wb6+zsTbpGUqto1yRZaQaAMD6ssdg8h4Vt1GkWUFzzmhV+PhrdlKOmqqTLPF0Pvi4+U0/Apcmlo8i0J5up2/Ro4SWo/vVHhiV2NgofJQ0GDAnrlypDtMJZ3uN/lgBH8b7DLDO+lMyVOJTKhwl6gurqpuvCettl0Hxz8vNo+o8J4k7pc67cl130ojFgHBN9TFV5InwKS4Gq4j1vLm+xdu+leNDfFghfOW+nP22/fhqi/uPf++fwWf+tVvAq8zpwiH1SHK3X6SBT6R+YWe4RJPrXYT/FN4HbSeoVJkmN0K99s4f4pu X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR08MB5517.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(39830400003)(136003)(366004)(396003)(376002)(346002)(66476007)(6666004)(66556008)(69590400007)(36756003)(4326008)(86362001)(107886003)(2616005)(956004)(316002)(16526019)(8676002)(83380400001)(6506007)(8936002)(52116002)(6512007)(2906002)(478600001)(5660300002)(66946007)(26005)(186003)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: odvYUVrEI9rB/0Khjlkj+y5/pphAHLxorndIjvQVZuXEO+Ng5q6RscDISNj3ymZAPi+X9s+2DgIsn7lzk5CgLU2jaPXgTEyVwnP0cUK5Tx62Raz5QJQgfYv86mFEdF4dgGQGwvrA9savxKFnKnozRUqwZV5Zc5+Cffpd5piOqdAhmphRSh+gm2p+Xk/xpv9OOVgGdN/E3ePWrIP4yXiVOYX8g/s7EILA9hKf1NDKg8nLKzRXJ7LpOEG/skofuXIib+Fu6bWAFiGYB/QVpois/Ye5WOCTk2FiGUb713OFFjr9XOksubaUx5cucvMMmZzmmo1BwIsiTdTQjWISaW2f17G/o5TvPBtPqF/J3IxXcXUZxn1tr+l6HWI9uJG4NpYSs3iVZSNgLMVMTudJhcw2ZN4XeM9HTUpiLIE/fKwxH5HE1mULKsfvP13VMOEqAzJ3J9n0PJV/tlrZnNs9cW4dqG8Nr4+UX4nXDIyLCwoR6C3Bd9tjKyEIzd8VBzkOLSNzywhlOEq4cDMbpv5n/4mPMcXs8xB9W/XV+9JKAI2TtnwsdrKC0kc4dViKGOtqJSBixURYyDbQ2rijbDuaTX43LZiNP2rryrMEolYieFwb8p+O06UGBZskJM5J9/zN61HMdwCgR8bSOyZkNy/xF2JW4A== X-OriginatorOrg: labundy.com X-MS-Exchange-CrossTenant-Network-Message-Id: 515d1faf-201c-4767-a455-08d84229710c X-MS-Exchange-CrossTenant-AuthSource: SN6PR08MB5517.namprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2020 21:15:03.2100 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 00b69d09-acab-4585-aca7-8fb7c6323e6f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: RzgJ5fBO1BYh48wTk94xleimLPCt7sZWWfN6N/bkewWZ4qh0uW346mnS45W03Xfp64rt7jEr2ZcDLWmG/rBhtg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR08MB5631 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org This patch adds bindings for slider gestures that can be expressed by the device. Signed-off-by: Jeff LaBundy --- .../devicetree/bindings/input/iqs269a.yaml | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/Documentation/devicetree/bindings/input/iqs269a.yaml b/Documentation/devicetree/bindings/input/iqs269a.yaml index 9c154e5..e13812d 100644 --- a/Documentation/devicetree/bindings/input/iqs269a.yaml +++ b/Documentation/devicetree/bindings/input/iqs269a.yaml @@ -61,6 +61,12 @@ properties: default: 3 description: Specifies the ultra-low-power mode update rate. + azoteq,slider-swipe: + type: boolean + description: + Directs the device to interpret axial gestures as a swipe (finger remains + on slider) instead of a flick (finger leaves slider). + azoteq,reseed-offset: type: boolean description: @@ -204,6 +210,57 @@ properties: default: 1 description: Specifies the slider coordinate filter strength. + linux,keycodes: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 8 + description: | + Specifies the numeric keycodes associated with each available gesture in + the following order (enter 0 for unused gestures): + 0: Slider 0 tap + 1: Slider 0 hold + 2: Slider 0 positive flick or swipe + 3: Slider 0 negative flick or swipe + 4: Slider 1 tap + 5: Slider 1 hold + 6: Slider 1 positive flick or swipe + 7: Slider 1 negative flick or swipe + + azoteq,timeout-tap-ms: + multipleOf: 16 + minimum: 0 + maximum: 4080 + default: 400 + description: + Specifies the length of time (in ms) within which a slider touch must be + released in order to be interpreted as a tap. Default and maximum values + as well as step size are reduced by a factor of 4 with device version 2. + + azoteq,timeout-swipe-ms: + multipleOf: 16 + minimum: 0 + maximum: 4080 + default: 2000 + description: + Specifies the length of time (in ms) within which an axial gesture must be + completed in order to be interpreted as a flick or swipe. Default and max- + imum values as well as step size are reduced by a factor of 4 with device + version 2. + + azoteq,thresh-swipe: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 255 + default: 128 + description: + Specifies the number of points across which an axial gesture must travel + in order to be interpreted as a flick or swipe. + +dependencies: + azoteq,timeout-tap-ms: ["linux,keycodes"] + azoteq,timeout-swipe-ms: ["linux,keycodes"] + azoteq,thresh-swipe: ["linux,keycodes"] + patternProperties: "^channel@[0-7]$": type: object @@ -487,6 +544,14 @@ examples: azoteq,hall-enable; azoteq,suspend-mode = <2>; + linux,keycodes = , + , + , + ; + + azoteq,timeout-tap-ms = <400>; + azoteq,timeout-swipe-ms = <800>; + channel@0 { reg = <0x0>; From patchwork Sun Aug 16 21:14:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff LaBundy X-Patchwork-Id: 255112 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A9CAC433E3 for ; Sun, 16 Aug 2020 21:15:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 672F220B1F for ; Sun, 16 Aug 2020 21:15:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=NETORG5796793.onmicrosoft.com header.i=@NETORG5796793.onmicrosoft.com header.b="f+q6nGEo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729117AbgHPVPT (ORCPT ); Sun, 16 Aug 2020 17:15:19 -0400 Received: from mail-dm6nam10on2076.outbound.protection.outlook.com ([40.107.93.76]:55009 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729072AbgHPVPS (ORCPT ); Sun, 16 Aug 2020 17:15:18 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L9GLX41exIZ8P3B5n/hbQKqWES18KMLuSaSSL0ptm8rCuy1f33OstT9qqiwYvuXdaURiCHLDarHx4RsRnSH0mVOfdD5Cnm7jPOUlrJWw422A+tzSWfHijH1layYBYy3x3F89xd78mdTqRnF7rU3jwvBIhcE1OT3pfbgB8Ercb9oeNUCQTJhhqEZtXJLZujXAW0KIqP7WKa48Y6NADCWI0uGLIqxq88VT/WBkuWm98d23BlfwAvz/tajJLCQi60QTPIobpWAYtd801vDHRcrVSqRywAT6kDv8Zi2fBdiW35BcKatX4zlHrhIwyAEM6XLQ0Id6SsniYLDZSfVPpEbasQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qs/YKVRBtzFOL/l2mOlWeUZkN1r6qiWQgA8WjHabqes=; b=gS4CIZAPVFgcYTrpQzNF+VbZYvQ3TlXsXetv6hGBI5NbwHcLeBVQt7t82S/L5gm+hOe5NE4RMdGPUGOfNaWHCBo/rboJSYfIhJYJ3f4sqUhCBcuv8/D1+HQ5yuxAe4wccG/NSMe4B8X1a/+k3bOIqcc+g9vHuLTJhljPigYEzkjaqNSW1YyWI0SmgLYtIQCiKbcYMU8Pd4HdgmER5lSFE57jEvX48f0uxRIyzpgZAKDYFE1tj46lmC9IJL/gSMDtyvKPW762fGdot3VfUAblEJL2U9+Q/T0u6uC8PnwyrzFmobe92OvSjDTpZ8OPMseauLbjBvnd/oeA5jBuOAxnhQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=labundy.com; dmarc=pass action=none header.from=labundy.com; dkim=pass header.d=labundy.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NETORG5796793.onmicrosoft.com; s=selector1-NETORG5796793-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qs/YKVRBtzFOL/l2mOlWeUZkN1r6qiWQgA8WjHabqes=; b=f+q6nGEo8QtKYpqnSHlutVhXksnIKgV3sexLMtF/JIQPQMUyZp+GajGQBZN1BulFVKa+jzDA9tw/SfBMDYimg0NjgP+PXSXSSNzGwapGhL+gisCRQzeDyK0WNmWuUvqxnbERgaPJbrVTlNTJ9jq5fzcblVX5WOogWINx24O6iyU= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none; gmail.com; dmarc=none action=none header.from=labundy.com; Received: from SN6PR08MB5517.namprd08.prod.outlook.com (2603:10b6:805:fb::32) by SN6PR08MB5631.namprd08.prod.outlook.com (2603:10b6:805:fb::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.20; Sun, 16 Aug 2020 21:15:09 +0000 Received: from SN6PR08MB5517.namprd08.prod.outlook.com ([fe80::2ca3:f294:d154:6875]) by SN6PR08MB5517.namprd08.prod.outlook.com ([fe80::2ca3:f294:d154:6875%6]) with mapi id 15.20.3283.027; Sun, 16 Aug 2020 21:15:09 +0000 From: Jeff LaBundy To: dmitry.torokhov@gmail.com, robh+dt@kernel.org Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, Jeff LaBundy Subject: [PATCH 3/6] dt-bindings: input: iqs269a: Add bindings for OTP variants Date: Sun, 16 Aug 2020 16:14:24 -0500 Message-Id: <1597612467-15093-4-git-send-email-jeff@labundy.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597612467-15093-1-git-send-email-jeff@labundy.com> References: <1597612467-15093-1-git-send-email-jeff@labundy.com> X-ClientProxiedBy: SA9PR03CA0006.namprd03.prod.outlook.com (2603:10b6:806:20::11) To SN6PR08MB5517.namprd08.prod.outlook.com (2603:10b6:805:fb::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (136.49.227.119) by SA9PR03CA0006.namprd03.prod.outlook.com (2603:10b6:806:20::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3283.27 via Frontend Transport; Sun, 16 Aug 2020 21:15:09 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [136.49.227.119] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ecf66025-e5a2-491d-2c13-08d842297500 X-MS-TrafficTypeDiagnostic: SN6PR08MB5631: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Jrj8oJ8MGhMvW5nCBO9wDjSuzuBm8kltvPw71LAZ2X93E3v6brRn71aOp6Vc2c+dLWy4J+R7bgqqBfxiXR8STRAxMYV+NO1webLV3LTTbSh26ye+Aw+8IlON1G2ZaraBqpABehNbShVZ06iRiA8T428oRgpYt3ICEQgesZlYrLW/sX71g2EDwTRQ5KhPCTz/wgFF/unNSTDA4TuMdnMFsIqH/5vOm+1s5YW+TyEGSwpT2jeU/2+/IklhFtSxllxGI5SJWgTGeXXdLjxPolCjB4pSRFwuvk2FPPoPzg0f3mPwYF4UutqOQDzXbXyJC8E8g5OpoEaIPUehJcm36L4Fgg8NVvLR3bzibvxSazTXBWd2jScA1jfib3mIRK0+HdHM X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR08MB5517.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(39830400003)(136003)(366004)(396003)(376002)(346002)(66476007)(6666004)(66556008)(69590400007)(36756003)(4326008)(86362001)(107886003)(2616005)(956004)(316002)(16526019)(8676002)(83380400001)(6506007)(8936002)(52116002)(6512007)(2906002)(478600001)(5660300002)(66946007)(26005)(186003)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: gtd6tR0b/8tpyGYkWPIK3rO1zW0O+fw3zitSlOrqpOGOx8X5HOJt6o0kfgIm+TJHMLWRMWI+dls96K2gI5mtHlNv6nBQlvYENPFNEWctaIDNxMl3HPr3xRazfVu6sdm3Bgd/C9Mdp5wuDJ+wWoWeVUluJzsRFUbzCN51GewPlfgmsyJg959JYvRl0q+5Z1COa3OfSK8e2j2/o004Wrml4Ep005+9MhpMJCPc1gWwlzCmykKrsdXqo7MlJ6GFd/N0yNvadwUMWCoy3BVsQC4GebkJva/8tYKFY5kwffTJ0YY1d0E7mKH/QymnxV5+iuQvbgfhTha0k2vs4v8pKok+GQwDlnqz7bsR2/M1d4u7vAyUu6CrKinoPvKgU+rrw9vrNEQeHcgoFEyQcBRy3UUbL3S6L4Sx1XJEumxB8elf99mwuANE5pnU8uCUAK/LNulqeQrIernyFGFxm675RP8p80IR8LdzoSboPu8TT0FsJTNJx8FCyWkzoj7dlNasfYJ68pf6QRz10pcUPJ/rBLfbR7zi3CIl4LxGcVQcLMrhKpOUMOJZlILtwvFTPcMPg5DWouTGH7e6owLiaG+AL05RyDkLW7CHEJ1DHuT6Bqa3K9RxZ5N+tOzk9/tnLteVuT4MweeKUP/AE/pEqD9nkahyJg== X-OriginatorOrg: labundy.com X-MS-Exchange-CrossTenant-Network-Message-Id: ecf66025-e5a2-491d-2c13-08d842297500 X-MS-Exchange-CrossTenant-AuthSource: SN6PR08MB5517.namprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2020 21:15:09.8392 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 00b69d09-acab-4585-aca7-8fb7c6323e6f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JNVVi40FGGlwJcMr1wgWvMGQ/laHK31mgI/+lvHe/t99F4f1ecqGgNF6a7qc01kXfWuTqUGCWH6+qWhaDuZpNg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR08MB5631 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org This patch adds bindings for the D0 order code of the device. This order code represents an OTP variant that enables a touch-and-hold function in place of slider 1. Also included is the ability to specify the 00 order code (default option with no OTP customization) explicitly. Signed-off-by: Jeff LaBundy --- .../devicetree/bindings/input/iqs269a.yaml | 30 +++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/input/iqs269a.yaml b/Documentation/devicetree/bindings/input/iqs269a.yaml index e13812d..56a628e 100644 --- a/Documentation/devicetree/bindings/input/iqs269a.yaml +++ b/Documentation/devicetree/bindings/input/iqs269a.yaml @@ -17,7 +17,10 @@ description: | properties: compatible: - const: azoteq,iqs269a + enum: + - azoteq,iqs269a + - azoteq,iqs269a-00 + - azoteq,iqs269a-d0 reg: maxItems: 1 @@ -210,6 +213,16 @@ properties: default: 1 description: Specifies the slider coordinate filter strength. + azoteq,touch-hold-ms: + multipleOf: 256 + minimum: 256 + maximum: 65280 + default: 5120 + description: + Specifies the length of time (in ms) for which the channel selected by + 'azoteq,gpio3-select' must be held in a state of touch in order for an + approximately 60-ms pulse to be asserted on the GPIO4 pin. + linux,keycodes: $ref: /schemas/types.yaml#/definitions/uint32-array minItems: 1 @@ -514,6 +527,21 @@ patternProperties: additionalProperties: false +if: + properties: + compatible: + contains: + enum: + - azoteq,iqs269a-d0 +then: + patternProperties: + "^channel@[0-7]$": + properties: + azoteq,slider1-select: false +else: + properties: + azoteq,touch-hold-ms: false + required: - compatible - reg From patchwork Sun Aug 16 21:14:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff LaBundy X-Patchwork-Id: 255111 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5310AC433E1 for ; Sun, 16 Aug 2020 21:15:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 316B320829 for ; Sun, 16 Aug 2020 21:15:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=NETORG5796793.onmicrosoft.com header.i=@NETORG5796793.onmicrosoft.com header.b="qU1JyO5Z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729172AbgHPVP2 (ORCPT ); Sun, 16 Aug 2020 17:15:28 -0400 Received: from mail-dm6nam10on2076.outbound.protection.outlook.com ([40.107.93.76]:55009 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729072AbgHPVP0 (ORCPT ); Sun, 16 Aug 2020 17:15:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LlDtyH8F/KXERVUI2JjUVLPJF9NahCmwJA0RYcuGAuaMS+jx7R+E+npaLk2md6/vS7FspvCMvXOpJTv6flO0nypzOQ3rHzMv3x5ZNN+4lHRwOGJuDPMpROPy3coxIQGtmXI3kVTzt80n/Q4tt18URqW1/Gsdtd3Q0xO4PWbMLsROTuk2oLlSZCe/1MtgzinSDxE7drWdkNg4fuFStEz0hcXENKt83mEMzdpnmvi+nsZrDCF3w2tirtaCHDx9TWmGwFR2PUgKkXytLKSj5etMTi41zt1ITac8O1l9zYDVV0vqJbFVnspUufWgH+q3poZOJVeTgwJWydmEfUcu8KqCpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eZOS9QNE92oxGWSPhUfAu6jraI0qXSySjYhObHDbUcA=; b=GOguSVJBxBGO/rqlJlzFeSTVaT+HnC7lfjYMMbNFXoof6M75F6INkWHGlVYKia/9jdRQq4vBnzyrViSie4LC8Ujiw9YnAR3pm6dGO98dw9wHH20yUnYf3dUPImmjim/JeXZS4WifQG9Uwq7iTT7to7B4ok7PbamzCDL4D2MaU6YAHG3LRDwMlCeD8xWMr/+6qkJCdmrVqk8y1z4vjsmO8/GhEFpq2Q927paAOEczNvI5rTof5HYv2pmphNyHz33OHemjNV6arE8YqjnmAwPmdaCH2PWyPtEFAtRTg8u2xKasX2MzXIT0aEirFZTIx6w6BTtkFp2Qq5fmgvv9G1gG+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=labundy.com; dmarc=pass action=none header.from=labundy.com; dkim=pass header.d=labundy.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NETORG5796793.onmicrosoft.com; s=selector1-NETORG5796793-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eZOS9QNE92oxGWSPhUfAu6jraI0qXSySjYhObHDbUcA=; b=qU1JyO5Z4Bl4x3hVsDligHDq/5XdRjaikO/Xq+03LujYanJK1Vu1DeK3SE2LuCaXRMwftYqk3RTFJrS9f78rPLmP6nyOVyq21bkHVtlNTsfDdhJo7vY4JxRNd/zUMNFOomu2JH+AiWTp3iGVI1uuyLJVB54hGNJy4GNMgPtw5Hs= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none; gmail.com; dmarc=none action=none header.from=labundy.com; Received: from SN6PR08MB5517.namprd08.prod.outlook.com (2603:10b6:805:fb::32) by SN6PR08MB5631.namprd08.prod.outlook.com (2603:10b6:805:fb::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.20; Sun, 16 Aug 2020 21:15:15 +0000 Received: from SN6PR08MB5517.namprd08.prod.outlook.com ([fe80::2ca3:f294:d154:6875]) by SN6PR08MB5517.namprd08.prod.outlook.com ([fe80::2ca3:f294:d154:6875%6]) with mapi id 15.20.3283.027; Sun, 16 Aug 2020 21:15:15 +0000 From: Jeff LaBundy To: dmitry.torokhov@gmail.com, robh+dt@kernel.org Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, Jeff LaBundy Subject: [PATCH 5/6] input: iqs269a: Make sliders two-dimensional Date: Sun, 16 Aug 2020 16:14:26 -0500 Message-Id: <1597612467-15093-6-git-send-email-jeff@labundy.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597612467-15093-1-git-send-email-jeff@labundy.com> References: <1597612467-15093-1-git-send-email-jeff@labundy.com> X-ClientProxiedBy: SA9PR03CA0006.namprd03.prod.outlook.com (2603:10b6:806:20::11) To SN6PR08MB5517.namprd08.prod.outlook.com (2603:10b6:805:fb::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (136.49.227.119) by SA9PR03CA0006.namprd03.prod.outlook.com (2603:10b6:806:20::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3283.27 via Frontend Transport; Sun, 16 Aug 2020 21:15:14 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [136.49.227.119] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3c770b67-8125-4d25-7f7e-08d842297805 X-MS-TrafficTypeDiagnostic: SN6PR08MB5631: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RAQ3Ok9OJ+AQuQqAxRsx0uA2EVq7madAdEvmdoGeA43BIrVj+sUNqZlTLEYqUHYBKVgJp8kck2YZ0mZCSXOnggkwOi60uNpmV/pGBvn2i1ASgVXgn7Wd8Jm8P/8E1jVatYwZ8IfMqddR19TUAlRhc26WxoVt+XsD5620ugF+LsrSEe0tg2xDbCS/umsM+iuB3LLrOgGB4PvlsB1nUsSom3iWgxuby4/Dy84J5zBiIr7rz6Z3uxsFgKLJ5BXuq8ycuXcymrXO/rHzeY69Iblf+530jHK2Rei+RHtXxJKKJd2dgOPAA3wKNu0v4amP+D5uCOTycqSSyG/8szt4jZYW2UktU7FAto6PzFO0pu9LSr87EXuAdjyCIiBaXP9InT3F X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR08MB5517.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(39830400003)(136003)(366004)(396003)(376002)(346002)(66476007)(6666004)(66556008)(69590400007)(36756003)(4326008)(86362001)(107886003)(2616005)(956004)(316002)(16526019)(8676002)(4744005)(6506007)(8936002)(52116002)(6512007)(2906002)(478600001)(5660300002)(66946007)(26005)(186003)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 6tTJl16iEY2Go9od6QXwc4aZwKlGx3nUtLv02MH4KmphqpTKQGMVxrKjlvEgbKC8iU3P4WsmQGT4CWA3EJcIvAYfdj7lkQYQpzvNWZLrUJtoFhiSvC+UnGbw7j339PAkwezEc1HA+b8ACRdeQDmlaxjwvlfTRF+9r3QZUkM7ksyEHlRdMTtnlJWa2xsEq/furIp3e0WpCaTTm9cOeGUMkyfTwmmMCHBum95jBGXGnfMr7JRxDjkfxLRrgZUzERBtLdambyFImDlbAoNBtqgmesbDvFI6iK5MQVeM0bzCuoxRWLSMR0srBfZEmaJNYhYI9XKi5lJtlw7TAcfl0Vs28BPRXBr+XpZ89UJSymkfoQrLUGOedD+xEuhGBZYwZvXfxDmXVFpCQLtNzzJBoeM6JPjrAYqL8f1GPpHy7us8uGW5CLukxG7s/oxnqrTt2noxTgg6Z81WhrTRReyFd9qDiscmy3enqGnDGmXvjtqIHVE461b4QkjX7u5joxvjB/390fw/3vok4ezUY7WCqoKXULjDQyqPFdhzVawbrgtQKAH9ge8ZPpgwy3NaS12a77NoRnliMtfiWJLjFMPcZZxy3+R34/3wfo22efsfdh1SYNVCrjq2GONc3fa6jbZ7GduMJw1Lun7QV/Ng9EYFzQMFBA== X-OriginatorOrg: labundy.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3c770b67-8125-4d25-7f7e-08d842297805 X-MS-Exchange-CrossTenant-AuthSource: SN6PR08MB5517.namprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2020 21:15:14.8983 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 00b69d09-acab-4585-aca7-8fb7c6323e6f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CTGcvUwYeZAq4vxQjct66KkyNrvGcxxRpGog5q5NN84m32b0gyn7hsnEp9ifHR+1iaApGYN++4oecP8wYN42Qg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR08MB5631 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org libinput rejects devices that define one axis without the orthogonal axis, as well as devices for which either axis's resolution is zero. To solve this problem, present a thin y-axis with a resolution equal to one. Signed-off-by: Jeff LaBundy --- drivers/input/misc/iqs269a.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/misc/iqs269a.c b/drivers/input/misc/iqs269a.c index 04947f1..4a0e4ec 100644 --- a/drivers/input/misc/iqs269a.c +++ b/drivers/input/misc/iqs269a.c @@ -1377,6 +1377,8 @@ static int iqs269_input_init(struct iqs269_private *iqs269) EV_KEY, BTN_TOUCH); input_set_abs_params(iqs269->slider[i], ABS_X, 0, 255, 0, 0); + input_set_abs_params(iqs269->slider[i], + ABS_Y, 0, 1, 0, 0); } error = input_register_device(iqs269->slider[i]);