From patchwork Tue Nov 5 13:03:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Burri X-Patchwork-Id: 840931 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012006.outbound.protection.outlook.com [52.101.66.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4287F1D79B7; Tue, 5 Nov 2024 13:09:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.6 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730812175; cv=fail; b=sW+BdSBxe6rOrO+BMULxCEr6bZooJ8/c65YchIrA8BH8IP5EVfEvE5Dg4U2wiowxi2v8DGcLamfXNnuaDSKBLwxespJqRx/btKvL+1YU5RneyF93st3s1xYj7M1sqDLZ+OHEZ/EEtQCbinui6N+1fMWJmYp886XdMMoXOJh6fBw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730812175; c=relaxed/simple; bh=ICb1ZJa6LdnXLJpcObLc7GnKhpTlymZSzdD9dyFNT2Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Zkkhkaawfw/gH4OsPsXp+LhJm12VaGvb2SUYqklTtTZgKti9uD6oejaoObWAyCPmaWPJVsndBKXFraKjj3mrYLFvwEBWH7W5Oqh9Si0xtkEpnDrBtHAVF4JBACIKUziyI+lFX7FweCySdj821rDtRpk+9fLXf1VZKv0Wxg+DbHw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mt.com; spf=pass smtp.mailfrom=mt.com; dkim=pass (2048-bit key) header.d=mt.com header.i=@mt.com header.b=SjAA99lm; arc=fail smtp.client-ip=52.101.66.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mt.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mt.com header.i=@mt.com header.b="SjAA99lm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qW1oZfMyzPP6OIm6UC/CEwXj7u06FVQrzA/FlYfDQNiiY+66SuKiR7eiJUOsgHnQ0+q4ieopujG7DfHDZL+7GEYCPENeOhtDc+cQPX6zfZMxPYILoIUkbglOxYOFBV3/A4+5OQarwHFt00X8kaBa3JKWUyDdwmZ6TBpQOwAMl9U3aRE6nCdECMFg68XclK1qtB79YUsCsTKs7cc1gaLK12aphNWZYXXbsxeeWLA8WoUzi/x3BV/VXss1jTHed7DeStjHbPPVXRMjyGISsjNnZJESigUwUvGTzTXwKX0DVawJ/HCL6kz7JTrYUE71Sl/qTz7QPkwV1KfSCDojbzfmHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=etH6092wcqik7oYjT3OW7PC/JboEFgrsdlXTFY9BDoE=; b=LaqEuzvbM1dSD7eg3VVZXfwDLAyJy6NezupPVcKEvow2llosVVevlUtL16YiBToX1w/suyssU7AJjHl/IpBnTXvzTgz81l8Gh/nvJODW1PhHR02NRK4naC3jmRmQ46arKguGpzKbX3JDzP2bza4zTqc8yO+OhsPwr/Fuu9HhcHgUd7jDhRuNGL9DjEh96rASd/YdXoIprw0KQP3HWXfYmkZbx32ZrOvZG575bUsb/eoYLiTpZXMtTyGtBJ/BN8wOjkZZW2eLgerU6Q0PoZAAPV0xBfO3iZTxhOOJ8W7RU33UV3vrhU26INRMDlHbhlAILPMh1/nkEG48SGrIY5nJdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mt.com; dmarc=pass action=none header.from=mt.com; dkim=pass header.d=mt.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mt.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=etH6092wcqik7oYjT3OW7PC/JboEFgrsdlXTFY9BDoE=; b=SjAA99lmrYftZIaIu7u07C/Fg0ARDdlO06GRD0MtZhVc9i9Wsta829X9ph3mCi9WrNqbK6FX6z/NqEnd8qJGnTCD0I2J3QICNH9/yB490wBBE69HbZZzcLSZlKTJJhdS8yuXs0zSwSuh/aDRoQvNRZtqxKmtK25pdorPOD/oUl+NFoNq8cNVjp/qrnYNNUyv+IFMxzIrjSr1eeFPSX2bjbDxFSPuP4qQG5GUhU6eUl/NC/ZWfb7f2bP7QGVkwdXG1fuJoPoJFQLvvhnf0C0X3eyDxzUOzjfiBckzLYeQ9uRa2nkNPawrPplNTZ9ckXAMnZqUT7i6UbM9ONcIdkWjkQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mt.com; Received: from DBBPR03MB5399.eurprd03.prod.outlook.com (2603:10a6:10:f5::22) by GV2PR03MB9377.eurprd03.prod.outlook.com (2603:10a6:150:e0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30; Tue, 5 Nov 2024 13:09:30 +0000 Received: from DBBPR03MB5399.eurprd03.prod.outlook.com ([fe80::2fec:64f5:1893:f53a]) by DBBPR03MB5399.eurprd03.prod.outlook.com ([fe80::2fec:64f5:1893:f53a%4]) with mapi id 15.20.8114.028; Tue, 5 Nov 2024 13:09:30 +0000 From: Markus Burri To: linux-kernel@vger.kernel.org Cc: Markus Burri , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marek Vasut , linux-input@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/7] Input: matrix_keypad - add function for reading row state Date: Tue, 5 Nov 2024 14:03:17 +0100 Message-Id: <20241105130322.213623-3-markus.burri@mt.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241105130322.213623-1-markus.burri@mt.com> References: <20241031063004.69956-1-markus.burri@mt.com> <20241105130322.213623-1-markus.burri@mt.com> X-ClientProxiedBy: ZR2P278CA0025.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:46::15) To DBBPR03MB5399.eurprd03.prod.outlook.com (2603:10a6:10:f5::22) Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DBBPR03MB5399:EE_|GV2PR03MB9377:EE_ X-MS-Office365-Filtering-Correlation-Id: 6dbf1fd2-040f-48ce-06fc-08dcfd9b15a4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: GO0Y55qAjdjVwwK6LmYuoVdgbAMCYUfUEOAU4gqc8Vb8Qpy0FVddwWtkJrOdZL1b5O8I6SVmD8BOAKu8ucHchm3UH6vfn6r10SUaD+3aC3sBChz8O9R5b/cpLeKiQIkFJCMuqomU+RkYnHsFr20hiNoGKs5FMCgN9DWEOFxG14WCaSvBlPNU5/1RHnRjgkFZaK9pWE+og3++YwS+s1/7PDLSCBzkRfZg57ci8vQxh4ydyyRCGancXzJ0adZWg92cKT3kOtzvJJh7iSnMQF2iMRNr9OcrbkPRahidfdq3OAXEAewegKYuBtigRipJCTVkRBZS67Tye0EiV9UgJ1g6dCHKV2cTzg7RqcCQnVykLeaZw6BiUXI4DaKZsE3bdOfPmuUuWMNwvqAbpmbpt9pJ9V1j1wR+VxfFDyNYfV3/5bBQhmYa6kBpy4S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(52116014)(376014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /kgKYsL6l2c5HUZXSRmtF+HpiVBEp9h3ly3SDJQONQhbqeqmdnGIhJUMdWCddVpIUWyjoR0+rn6oK9e8uSzflorArr/WZeS3uxAD+Q3rZ7C1poCNnehwRteogwtc9L/rq/jTFmjP3kK1dz+Z7i1047vRUbypj/g89jAngt9Uzm4WfCygcQOfDlTf4CZruiuUq4ebmENGOByqPSLLdJd2worGm5tBJR5r07EaNmcYGDqXuCIMLKVI8TADUpEh1y/EvxmoagnWY87m0BTFD+26uuobRt0sENitI3yZYJ2ncPpUBcjoiv0FSMb0jkrIVX9Y1Rk3wV3rwiGBVFPvJPeTnvhhjLsOxicJvAShQrNDAG6zxBUtacIujw2pYITyI/Smd7ZiVhvjGbVH584VycuJ0ChdsMmaM4qjhtx50VQ7FHMfEP4MkGHpwhtwEivVS6fmfCSbp8ufuZuGcHIsNwhNLvUnzVOZD/t1RmNiG2+3Oa9diHiinR0P1IGqEUjzvxT3gckdtCkUPz0RKYhNyJeJW0DmJZsx/58MZLBVEn1/JZqh3+MAUJcx9otYWuP0OC1Z9v4zXJ2kSA+rHB1z8g789QpFT4eFhL7PugRVmnECuIZ9lXCKoIWK26EP/R4rQoWXKwGzEbQHJ6GtdWl5mZsCcao9CIX/xUkCzxZ1mcZ378yeI052D6P7o+UqK9EqJi7QZwigzOupwK6bzQX4jCV1aWWVUtpMJ/yiqthQ1JaX8AhdpOSNGejj6l1Yrp+0FgsTbLNRCPWm/tgXeFCsXC1KHIokYp708u06c+889wdkdeprrBq+ELr/1xpR2UBbmmuBuXLj7GXp4Kq0b0QQ5N2ktEU3ber75FLU7Uwb2A3eje09I8Da6znBrztnL3zj2VE4nyavdbqn3OnG9G/A738c6u14qk5oe3uxjzQhfVFburVeLzjiEQUR0sJN0aJoegItp/wgRbHS9KlKawYsFmD0y5a0CSEmkldYXIWjM1M9L5H+mNZymHWn1MKwfs5glR8ct6cMXiBQm4vUEg0S29qvxWjjh9G/vLaOuYyJcoxOQkj5bWuJz4MqUVBlneZy5mJMEBj3Fp2706lmbbW9wCAMm4wH4dR/F7Q/eBabooNYNkPNNz8FkME5CkzSDVQQjHRDcZ3euqjAx24jKHVNbumC0BIVCZXR6jTQGND9n0Wup5hQwa4GFcAMeWOf/dq0hdaM7eeLb0dIwy+Btg8GFcr6N4TnhKDino/1ViQg4Qa1Dz+jlHWxD4pHufSCRNmfLlTmKnSditRGkGm/1+ky7RABBmEfzQaI5h4NKttDxJyWrqShNHnDBkuuGrVhsYIMY0NuU1WsvH10fi23KQiDolMWyN4m4Ekiku8+It+iOtHnlUPLIp6f66juSPvNplRr5TIhdM67zxeSUBr+v+3VusFDM9dmg2ucAdRj3AaUXOD4sJRM2QKIFTcrrnp+z39jrlgp1UFpyOHNq/ux+F5cNggRpsoYGQMkavePOBQEURmfD/oMl57GuPE4ssG2MvViKyhDAbgxSAKx0ubN8o5rciFOE1F/5pCdHvgj19wcOaZdWB1STLvjwSfcQtOI1Ea022wk X-OriginatorOrg: mt.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6dbf1fd2-040f-48ce-06fc-08dcfd9b15a4 X-MS-Exchange-CrossTenant-AuthSource: DBBPR03MB5399.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2024 13:09:30.5316 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fb4c0aee-6cd2-482f-a1a5-717e7c02496b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fJa6gOjvWGSlnAj8WNcFy0uyN0TS4gB3TLW99KdlYvtSDgMvMl8JaUHDpLhqmJw3LHSTaFo2Y3CGRQGt04eTiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR03MB9377 Move the evaluation of a row state into separate function. It will be also used by a change later in this series. Signed-off-by: Markus Burri --- drivers/input/keyboard/matrix_keypad.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/matrix_keypad.c b/drivers/input/keyboard/matrix_keypad.c index 9eb6808..2818915 100644 --- a/drivers/input/keyboard/matrix_keypad.c +++ b/drivers/input/keyboard/matrix_keypad.c @@ -101,6 +101,16 @@ static void disable_row_irqs(struct matrix_keypad *keypad) disable_irq_nosync(keypad->row_irqs[i]); } +static uint32_t read_row_state(struct matrix_keypad *keypad) +{ + int row; + u32 row_state = 0; + + for (row = 0; row < keypad->num_row_gpios; row++) + row_state |= row_asserted(keypad, row) ? BIT(row) : 0; + return row_state; +} + /* * This gets the keys from keyboard and reports it to input subsystem */ @@ -126,9 +136,7 @@ static void matrix_keypad_scan(struct work_struct *work) activate_col(keypad, col, true); - for (row = 0; row < keypad->num_row_gpios; row++) - new_state[col] |= - row_asserted(keypad, row) ? BIT(row) : 0; + new_state[col] = read_row_state(keypad); activate_col(keypad, col, false); } From patchwork Tue Nov 5 13:03:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Burri X-Patchwork-Id: 840930 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2065.outbound.protection.outlook.com [40.107.105.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16BB31D6DA4; Tue, 5 Nov 2024 13:09:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730812192; cv=fail; b=t6yRbMOrybo8MtRDGyjSg98wzbEGBjOpxhgOBs+xA6Cjp8qIguKeLQBn6HEKr/gBHFFXPn2NbtEr5gOOoF/UqR8ubqRrahjaKxY4r8VTIZ/9DTQjT3KopyDBVoJ7q4cijIFuuUnTY672XKcZar2aif85yKmYc27q5/kc3fuUXuo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730812192; c=relaxed/simple; bh=ixd9vx7fGX6WhyKoIZR+/6JvIOeTDfPrEj60bDbhlBk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=sd37ZBuUiUSHAlQ10g0g2M6hwH+RwJg4xrCesolbO9J7WppDxD1Z9NZSdmMrYQVSR0FLWvkCn0i8XD9EHPyVxdXU3XlkdFvCTraKUhop3d96ZpLsy0+k52um7DgQNZh02urCO33mwwhr/Im+M9s2c2pHuz1VrFGskEHcgPkUNUg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mt.com; spf=pass smtp.mailfrom=mt.com; dkim=pass (2048-bit key) header.d=mt.com header.i=@mt.com header.b=hnfHMGQ4; arc=fail smtp.client-ip=40.107.105.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mt.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mt.com header.i=@mt.com header.b="hnfHMGQ4" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=S9hf0tqBE4AH8zigWWc7WdFjPMkzwCfvyjbNv+VPesGAObuOHXfZ5Pvwyl0mrej2xh9yYIgyknn/gBFs6XB1AE/t1Q98qN4TulUCJSe+AOzgDZHcF0xx5vBlJASD1Zrq/i2GZ31/UJU5+nRBWThwoQS3JOxQQykA1CGxILfNun9EbDu2PEsEYLtK73hBTs12koqmu65hueQPXeCO/BDRUOgVIqwEcojS+9JDhvcvO1uO2tFJZ36MU5zDfHwU2zqOfc2omk1BjTGu/8KCxFDYTvSOaCFtRVLgmPe5GQRxIOaFqLPL+BQEV4gvBt6IYdr3eVObPb45AMORctUT6Y5OGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YPpqvU/x1lLLzvA1jSXQ2tcMAGSm2VDvD1469TGC/pk=; b=Iv2eN3YBM+PL2itGkhasNKIdOWO81qWhKdd4qadJqQDq1m6p4WPuADY3C0fkuASX9sn486ITXglMGOuxB3vUG2YimRz/xAq3artWs4JkZTpo2mIMGaCFyTzgOlcBQ0qhgIvE4H3z9G29HuhDrPH4wt+sdUtoiJO7Za4/Xc/QAG4O1seZZOFcT9MCwvEvkwbhuSYT2NBBupLJrJ9rSezyJUmY8hJfud6kK6wkwvYi3tl3YH1xev0hGocYXZwqDuh4XUStPhtNTPYAftt5kbYBbAftB5lIn8Cz3KZY/JrqhMqHd/1hmjln9kLIhdBn2IppM7nLmoqzkirI72nhot9KqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mt.com; dmarc=pass action=none header.from=mt.com; dkim=pass header.d=mt.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mt.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YPpqvU/x1lLLzvA1jSXQ2tcMAGSm2VDvD1469TGC/pk=; b=hnfHMGQ4CExth4GxjNhXET24rY5FqBWbVV6qFrj014eG+IQTqH/OJsAsMk3DgjwXNFWd30b5g8fMQL2oEzWktIDLa4WFSfqUIQLNxgePsfjRFIivZ1wwcPyrJWCCeywEGs3iCgRl31TW5Tp/W8WhhKWU8Ig/iPEUVqjjXhN1KkCzD+0iURiMX2eInC2vlwRT3gkCXXKeFarpuCF/XoZAi16e50I1IcLNvLXKDTrkM4iV34Bbi8DXIXShkj9cvS00wp74+XEZJG4XMlu+73zHXJxh8arABpikfkNXwFp+4XaXyjJal63d6oF4adwAo2XMPtgUTEjR4TOWjrumMrR6Cg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mt.com; Received: from DBBPR03MB5399.eurprd03.prod.outlook.com (2603:10a6:10:f5::22) by AS8PR03MB8468.eurprd03.prod.outlook.com (2603:10a6:20b:52e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30; Tue, 5 Nov 2024 13:09:47 +0000 Received: from DBBPR03MB5399.eurprd03.prod.outlook.com ([fe80::2fec:64f5:1893:f53a]) by DBBPR03MB5399.eurprd03.prod.outlook.com ([fe80::2fec:64f5:1893:f53a%4]) with mapi id 15.20.8114.028; Tue, 5 Nov 2024 13:09:47 +0000 From: Markus Burri To: linux-kernel@vger.kernel.org Cc: Markus Burri , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marek Vasut , linux-input@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 4/7] dt-bindings: input: matrix_keypad - add missing property Date: Tue, 5 Nov 2024 14:03:19 +0100 Message-Id: <20241105130322.213623-5-markus.burri@mt.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241105130322.213623-1-markus.burri@mt.com> References: <20241031063004.69956-1-markus.burri@mt.com> <20241105130322.213623-1-markus.burri@mt.com> X-ClientProxiedBy: ZR2P278CA0024.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:46::13) To DBBPR03MB5399.eurprd03.prod.outlook.com (2603:10a6:10:f5::22) Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DBBPR03MB5399:EE_|AS8PR03MB8468:EE_ X-MS-Office365-Filtering-Correlation-Id: 29257e80-f1e1-43df-b624-08dcfd9b1fa1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: vuhXbb9FcUhQE9Z1sAxC/HuzWULXfk+BkYkOsyXH4q52zZKM20mbOu7TtqT+EMPrISy3c0yge4uC1CPH7yqySS6u7I7xZ8ZLRyUkKeYLek+X1dyjLZUlu2lNAJ97PnXGFEn8pOu3s5fAVw2vD7lPv5iPRwfUh5l16+KrdUiu/UkmIkU1GoUyE2j7HvvFnG+CwD0s6aErX4P/Hvq+4eurADd00Aj5Vn8MrhB6oGIoCZNd+I1l1eT9KG1Mw5CbokBMubtRzPELWVKdhp/Y4wQYwG4VoqgUKMAA/olyIT9orlv2X74MDVoUQwnvLAAqVG3Vdasm0EYC9dkWeyzrFJD7pkVNBenYuQq3rYGz6dAD3mVMGj2QisWi8w+3DRr+poN252K0/bf6XIBOHpKEqDHkls6H/Ka1L6solatljXsGzGkFJXorc+Aer+rbkH09YpaBw6QKHjK0HNVaLPbIX0PWE4N6cUcxyOoPm3eelwni36h7a2g/OK9cJmhVqoIzbHb2z92W5XA89LlhBvPflfucIp5+Bem/EeckSCPADobxbPm2BWpIlRGg3ZA8qqcssthBkKKz4wVk4+VC4Xtw0LPbphdJ3bNzK3UfjGJsJaUe94Pz3I72dmda+vMrAgOBV3+kCK3Ir7NXWYWM4Z5B7cmWKktVKuqydYyu8ofCI8JG00Bin6GUJ6DVQ3/XW5tInXO07iCMCeOYQk7Q1yvyyA7ss1XO9VXJMIhzv35tbMnhBe38g8hvsCCG4RNRkK6cvaAA0bRht12aIU8nhYgtNzcBJF+twNEKf4aJPmJhAneazYul4/I0T/ee2bEr7yHb2sKB/lKEG1MyJKpsV1SfCGeIQRQCIcwTo9gP9HSmGuSK5Z1YgDFEID82p3FuFRU81V72hfLYfxijtxgmAki4H9WNmoQefESibVJ3D/nC6DWdXJf//TPiKlqmM253mmO6BHMF/atxBVj3JRi30/GReZJAbVUdwgjujgPsAzr695xML6BTo7GPetZYHACRm6LCbf6QHqmjswgnskPnXljwJDXOO8TTd1HwBx5IvvCw1ghJpaowgJpVeWx6LId3jplJdsojMN3WvpJwU9hPZyVgBErq9V+S6O+5fqaW9asWxqJ7A3QH/YDoX4ii0qM29z/g16FiRGmtGDVkTLwDMQDdnrGWm0EFRX36/bEa/D5mfFtm1gsxQwTnJcBu4DdxLap/r0P+j4+f+FNj37ozioFXnspcd+HESfPS+JwrAV4txlnFKFGunWkQcN8ULNVB5VAmU7zwW2ZEDthlPshegt3g/CwV+var5920wxOV11R9MqcoorltyV+bcpZIbyHxIXsuo3aM6SFUOgWmc+BqQq5poD2Ovzp8DRGkC3qlDYqEAYLM7dU= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR03MB5399.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(376014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: E7OmlWhD5NBrdnwifp1b/Iirn0IHrXlwxnqoqWxRae0cJQon5YeEUTHAaZvkaIRTl9P8Wz0NF4kl1UAIMH3tAcdNqMHJpgpOc75C/PnOVlZo50XFegNS7+B7vpAbKDG+4F/vtyeYFOgJrbTR0Nk1SojZRSEXKCfSGJoJcWXV/TxzLyRxCztLcK7ls1f/jiOOi0CC11NP/lOz9RISfZAt6CxtQc7abRTT2pGuPQY+a7OJMdsnxSNxY4bw3UL1dpNa4JFAWum9yhtF5o1vBmLPtSPiLCevSrhPTVc3v0Qi9qN3/Wh5VHzO0Sc7uS+YQs9t8uMXp323U9DF5u4wEjB1B+YXGr8vlXCQ+bUP7xjegQhCuNaVw8+guE73dob8ByWn5BQqmNVehP8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sg4qbgojCPNdDNy+WApDZQwpGkVW5wq3sAtGgyQjhCr8CjKzyut9yEaUHhmxiWNbU+KcRQ8pYo5nUe0XZAhEuer0us+BcWEq6QNrD+AqA4w8l/rhWph8HEuMYZHVtAkPo2e X-OriginatorOrg: mt.com X-MS-Exchange-CrossTenant-Network-Message-Id: 29257e80-f1e1-43df-b624-08dcfd9b1fa1 X-MS-Exchange-CrossTenant-AuthSource: DBBPR03MB5399.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2024 13:09:47.2917 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fb4c0aee-6cd2-482f-a1a5-717e7c02496b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cS5L4H3bCjXKcxn2b/i17KTgvL1Xf8H8lDfLBVGSCnsXkyaLq1MDymNHgxr7d9binsy/0YhxuZJSW/7M9hw4GQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB8468 Add missing property 'gpio-activelow' to DT schema. Signed-off-by: Markus Burri --- .../devicetree/bindings/input/gpio-matrix-keypad.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/input/gpio-matrix-keypad.yaml b/Documentation/devicetree/bindings/input/gpio-matrix-keypad.yaml index 745652b..9ea66b3 100644 --- a/Documentation/devicetree/bindings/input/gpio-matrix-keypad.yaml +++ b/Documentation/devicetree/bindings/input/gpio-matrix-keypad.yaml @@ -51,6 +51,11 @@ properties: (Legacy property supported: "linux,wakeup") default: false + gpio-activelow: + type: boolean + description: The GPIOs are low active. + default: false + debounce-delay-ms: description: Debounce interval in milliseconds. default: 0 From patchwork Tue Nov 5 13:03:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Burri X-Patchwork-Id: 840929 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2072.outbound.protection.outlook.com [40.107.103.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 135461D79B0; Tue, 5 Nov 2024 13:10:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.72 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730812207; cv=fail; b=mjSGcwlhqIO6FQzgssKAPjVmvaxywOlgKfmnMu1KpE0pPDrDnojuD33DIQ2xjau4iZWGfEypFk+0rvmw+NL5hkPn3UlLYTkHbM+U9ycmupypf/5Ii80aCsHe0FdtVV9QbLyf87Bssm7kpqgcGBhvvtSRctNSNhrJVsn6pCbjXAI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730812207; c=relaxed/simple; bh=HlA+B+bMsb9X0pL9Dak2Dxl2qB3bCXfHS/XszhS7Ci0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=udJXnk1r7l9sdbXxD8qnUjHV+14nVvAJ/EHwBxnf6cIaHHr02YqplCf5iDD/zUYIiwygazgE5KSzPHdHDsZ1CySTXgI2RVJ/al+XOCUCnXg68AhYhCnAz/PvvjrhbFiVV4fiZhXBII3cAzbiMKUmusbpldqzMLoFHOQYCfRUR00= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mt.com; spf=pass smtp.mailfrom=mt.com; dkim=pass (2048-bit key) header.d=mt.com header.i=@mt.com header.b=kj45WaKO; arc=fail smtp.client-ip=40.107.103.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mt.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mt.com header.i=@mt.com header.b="kj45WaKO" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gKh5fpaS8Vd6DuSkIsGPNu/E8sK+YfUXdYrl6xUL82PLM786eUfLxB67gAPs79SzX8rfDLtbTU11kLtrJvBvh8qvvYyssKT1+3q8+1h15bm+Y7mEqqo6mAqU+926/1LBnaR6xOERsdJHAVZ/dV9y7eYcmQAg8apFJ6IA6HbH+uPrHlzcpr4IaCHs1a0CskwB1F5LLgR4iS/QYHsrZV0zhREeaolxT6+8hMvZQjXCnu55L2vYQEQxMRMX47hHcxZKBJ7lLyHXLOjoG2fxa+cC3T5+rqVaxj+PUSmIGOOsPXcdgd1j17OTbaTo8v2zgUca5vAzM/tM9H1yy3B1jm4GZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pjVRoRtT0K+lfU7ftwM2WRCcaz5bD9GFkcczj9oJ8Rc=; b=MyVS22HBnaB0V/xzbpGBajWD6BBGkqIsf6z8vSzs8s8dk0CDMzHjeEUKJpgCkbb9uoN0QQ6QJ133OdBFB8KuVIcOgSfKGnu39V2jkqVkJNuCYQXAxPz+OLnC+a2sAAS3OsC4yzfSZyesZltyfgJjuMbvRRpvaRnkM+J4v+VDolRMPDT5X4tfwHJ6xqHgGT2iZAvmJ/YQZsrEx4zr5Lf3XzCymVQl4z9+bHWfV/Fm34o2EaU8YRJfrzIMbmtugkn4ZZA3wh7PPI1gkQV0tRGJHS1Eepqg3L9a8P4yR/YOyAdUaF2l6pU1HT9IqikAav6IEn9eG/ZrRAMKXLo3NGYLBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mt.com; dmarc=pass action=none header.from=mt.com; dkim=pass header.d=mt.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mt.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pjVRoRtT0K+lfU7ftwM2WRCcaz5bD9GFkcczj9oJ8Rc=; b=kj45WaKOsaiN737thigcQNeAT1bV8gBTQRKcQrqxk7RQkcy55vKxZgiPdlnHTNzkpf0cLdkBsNvGje1LyUHOPT/Twn/wq1KfFxnQaZDWYUwovXnAfqUiEv0scnxOCBdGkLH7ucVBEmpwJOeZVhan494TdbeQvdyYPVWv0De51ZpmmkGpz2D3m3u4XuCEMwKiFEMVJ986F8BcdHBi9ExExDNzC+1vha6s9Wkk4GZjufmqAdGvUZmp5AOoqvBTNuoZfaHDi7GgUTV0xbQEutGRzR8HOY0M3thakngyfQ6F8a9+ISKdtgtZW3qm0rA239/9ZgaEIylSe4PeSKtKQFAwRQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mt.com; Received: from DBBPR03MB5399.eurprd03.prod.outlook.com (2603:10a6:10:f5::22) by AS8PR03MB8468.eurprd03.prod.outlook.com (2603:10a6:20b:52e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30; Tue, 5 Nov 2024 13:10:02 +0000 Received: from DBBPR03MB5399.eurprd03.prod.outlook.com ([fe80::2fec:64f5:1893:f53a]) by DBBPR03MB5399.eurprd03.prod.outlook.com ([fe80::2fec:64f5:1893:f53a%4]) with mapi id 15.20.8114.028; Tue, 5 Nov 2024 13:10:02 +0000 From: Markus Burri To: linux-kernel@vger.kernel.org Cc: Markus Burri , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marek Vasut , linux-input@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 6/7] Input: matrix_keypad - add settle time after enable all columns Date: Tue, 5 Nov 2024 14:03:21 +0100 Message-Id: <20241105130322.213623-7-markus.burri@mt.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241105130322.213623-1-markus.burri@mt.com> References: <20241031063004.69956-1-markus.burri@mt.com> <20241105130322.213623-1-markus.burri@mt.com> X-ClientProxiedBy: ZR0P278CA0080.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:22::13) To DBBPR03MB5399.eurprd03.prod.outlook.com (2603:10a6:10:f5::22) Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DBBPR03MB5399:EE_|AS8PR03MB8468:EE_ X-MS-Office365-Filtering-Correlation-Id: 29950423-6a00-47ef-81d2-08dcfd9b28dc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: PKrdB1iU6bYgq0rUjXR0uZQ6LZd16onv6+JC5zZCCJMglIqtol9aT4LIcWN9P5aiBny9ABx0MQjFsx4KD16L+B1Vk58eDcCPcAChM0R4DP6/sij67/tMw2tfTsYThr3nq3iqiiSZzaLv4fg7JJCEaDmthYT5LowOCk67mtUrYAnNl70karm7p2CwLGgyLCssDQaoGvPrhsvkIYMw8VacjFOthl7t9dmRvQRHC+npsKWADeP48YLMiUv+66hWitXzrOcF4xPZiYr35vDhdjBe7nbaokxhcVr0bE81R7zlVlEfqzoJSlEtLqBoJtnMsYkN8CTUqhxc6/9w8QS8CDp1TXSjuYhXBpfoaF/IJ/nyp29lP4NHdq3j74r8TljSuS/dRa15/jB873xmKKs8usdEyy3jnQZSDfGC6zdEba/Wy+HoKuJO4ETTidCXI4P9gJyycF0uZjx9TkmnjrYZ254iDzTNy5t09x46uhhBUCYUvDBzWlYIHp8gRX919uwsTWh6zotidC4pV3VYk/teHgJTwOoryA/10OflQF2+XGZvvNNRlwllmg/WYGKpBef47a+MXVznj+R5LDQ9bpZNUgUYRiv0NsAkpXsm8GgIY3BtT/XURGcxV50pEk1jZdbxe3gE81h+3nB5pPAuJZn4bE7uph5Cw7vcxy56IiK9scpf+pmknivqQpl2uzaiAJez77icuN4UTYkdTb+x1CCHKSm/YN1rgCke/HzoQ7axBtrx0L2473mFZPJUVoBExWceDd3Jdz6uOwQLwPv7hnhyEJxeyVMAgxsO4qNuMNQBhA8XtZ84PpoRwe97PptZaAdbqr0u6+IgnUCKjJ2C1Up8kcobTGhbQtLirouPMj+oTuJ1BSdGwP3CyhTsiAel+o0NiqxwzCBcHPDIfELdME+GsD5CCxdvOr5SsEve/hqybKbB70gOf2OFEIGhIYvYdi8+QH+8zbRvoE1OcweC8hF4OEzIzgrSLUrZ6lkcuWKWyF+YklCSvE+FklTm+nKUzXMFYxwzDOp96Ue8NmhNZZxXqyCb/GC5+WkTSnHYQOedZDuo3rqCcOdJV/ZNoh2TwE045HWG8EJDeEl3gTGsOF7Ba51jeJ9tFNZtw+Axmgbq/oriVu3F93rAFxpJ+vgzEm7BTjdPvGqtexKnskE878dSZnd1xW+UfJASZ8ZfZhORmzTo7yLxsF/DHw2WydfdSXbHEZwUij19UHlUCXtJELiOv14qnjj9fL5CFijjgD7D0EN7IgdC2nK8rnna9rspwroukd9ubFC+jLqscoBYM2UhiWpfaGTpzN1fOP/a4smV0RTKYPZ330P4teITc7bfD8CAfmgSssnpiQN92JW/QjOeMxKQiHqiJrSZPv/iICTHCJhHxag= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR03MB5399.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(376014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pfhU8neAxY65Ey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FF298ZJZRBAYgbw9nrCNnxQ8dtUsPnycEQAJTQ/5OwxSjlpR+x/md5aLDLRNo58D3m1usn2Pu0YFfRFuxt/6w+nhEs+jSGyY4dykET7mmZ8/BfPXpEZIKIj+MtmJCvOAS78RdbQrJCErvm13yQ9q6dXihgNkC4/GaNHDveDlKSvNh4hODTQ8QAPRCZcm/PdBmdoN88JGIaNUQZ06Uitr9ntlNvRY+Dlm5Vw7PzbnHK5SCl1s2GD2alGm7Ok3L/hMv3R40e6yTTEjOPtVsdUAVuTVb6KAZMSgQ+RhA62xQY7jRcnsHoyeU4CY079JY9s8K0wnx0pb1+95cqbmtFta1ZREqQ/3sHqtGQo4eJ3tEtu8xhqG+ZKIiMcEZTtvqk62fQQYa2qoWKlvdHyCIPq8XYMX6ZpE/PUEWSIQhyVRhZo4Usx+0MBLGalKOMXhMDRzB/yVbknWa+ZOqrxam6XfQf99Yl76y7JnnKMDR77CWntBtO7n4rDgY4bLQskNlrF8scFT X-OriginatorOrg: mt.com X-MS-Exchange-CrossTenant-Network-Message-Id: 29950423-6a00-47ef-81d2-08dcfd9b28dc X-MS-Exchange-CrossTenant-AuthSource: DBBPR03MB5399.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2024 13:10:02.7876 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fb4c0aee-6cd2-482f-a1a5-717e7c02496b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xHoQzObrLOJFGrLUP9NQBFhsOLx0SB8P/aLqgvwDjZ7DHBPNXvJribDQRXJ/qolezGUPklh7ju9tQVOSE+07sg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB8468 Matrix_keypad with high capacity need a longer settle time after enable all columns and re-enabling interrupts. This to give time stable the system and not generate interrupts. Add a new optional device-tree property to configure the time before enabling interrupts after disable all columns. The default is no delay. Signed-off-by: Markus Burri --- drivers/input/keyboard/matrix_keypad.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/input/keyboard/matrix_keypad.c b/drivers/input/keyboard/matrix_keypad.c index 2818915..46873b8 100644 --- a/drivers/input/keyboard/matrix_keypad.c +++ b/drivers/input/keyboard/matrix_keypad.c @@ -27,6 +27,7 @@ struct matrix_keypad { unsigned int row_shift; unsigned int col_scan_delay_us; + unsigned int all_cols_on_delay_us; /* key debounce interval in milli-second */ unsigned int debounce_ms; bool drive_inactive_cols; @@ -78,6 +79,9 @@ static void activate_all_cols(struct matrix_keypad *keypad, bool on) for (col = 0; col < keypad->num_col_gpios; col++) __activate_col(keypad, col, on); + + if (on && keypad->all_cols_on_delay_us) + fsleep(keypad->all_cols_on_delay_us); } static bool row_asserted(struct matrix_keypad *keypad, int row) @@ -403,6 +407,8 @@ static int matrix_keypad_probe(struct platform_device *pdev) &keypad->debounce_ms); device_property_read_u32(&pdev->dev, "col-scan-delay-us", &keypad->col_scan_delay_us); + device_property_read_u32(&pdev->dev, "all-cols-on-delay-us", + &keypad->all_cols_on_delay_us); err = matrix_keypad_init_gpio(pdev, keypad); if (err)