From patchwork Fri May 13 15:18:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattijs Korpershoek X-Patchwork-Id: 12848995 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3EBACC433FE for ; Fri, 13 May 2022 15:20:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zOT5XX0BvJwQAOXMBJ+NhtGtkF1zRltUWCRhtvzEvRk=; b=XF7k4xfFpqo/bm JDgDYF/Kyh1XoAfOVkQSv8GmEvsCOaRj3j3QcixcjN8QFXYLLldp2f0QPxvmNKcyhG37LSBoIjHRv CfDIN91tyw6bWYpnJGhOPC6gkN+4RUYasbvhC20qwy7tiRWSVB9nmOMnjB1CHItTF3Pl1kOmcLSKN XDBnHrIIXBcGilBpQ18KJyB8dPdtcKxNYZKwnhVMnYrgSD8bYn/SxAYgjFuRLSegoJ9Ju6tXfaPol 31d1ELQXxaXu3l2nlt/JqbW0XJRNbiDPo4SLuW9oCsbFh0+aCDtxfklvmtfJzjpCtIvrRRk2jHZNu QHYZdtSlxN4ul6VE6aoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1npX4O-00Gd3K-MY; Fri, 13 May 2022 15:19:08 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1npX4A-00GcsI-2Y for linux-arm-kernel@lists.infradead.org; Fri, 13 May 2022 15:18:57 +0000 Received: by mail-wr1-x431.google.com with SMTP id f2so4861364wrc.0 for ; Fri, 13 May 2022 08:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aZq4fC2Rak5UWYJ3VIIYdWjnbZR2sPVVIaexZnW1q/I=; b=HQi8r+ZoZeMt4xZoWTa3lRBsVXxOn9iEpiGjsop/qcVb8GtAWT7q4ejCTLXnoYStp+ t2MLJ4dQ3KYgeA9XJjgbJZ6szcX/KAygjsrTG6rO2zuz24jEesb7vWndS0NDrUOIRX7y 9lYwfTflLqPnC1vPRLYuSB16+3cZCG8xVSj8mRtZOpTtHVTnRutvuuVwvvOe0k9v33ou /zQuGgtcZE8eSGSAFwbrY/m+2xZ6+0UAAF9fflSDvh6BXrguAQ/ZCeb67WFjzyrJ19cp 4VsF+OsNbQmSWskXl/8o98wPcjlc0Qv5YQMhvVMsrMFpxDGf16yquD1ruPHIoCkt6PsZ ouCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aZq4fC2Rak5UWYJ3VIIYdWjnbZR2sPVVIaexZnW1q/I=; b=VKXmNRkyQ3P/pTcoArXrFl2mYIW4XJYrqOFoRFUnJQQuCJt24t081rLpTz8lzKMsKk WoPgo8DEeluzL62Lhhg615IIt00DG/gxjCr3AvFrDSHVVo4MQaBe9Mc5KJZ7VFaOq/0o zU2Feo98NimiVb5RpREgjr8YKvKJHPLyYTrDZr5UFgQEV3fLX0+XMetI5w2l/2jI6qI+ C4J1kLgP6HOvwAPFKnxcdpF6sdQqoGf1aEMbllzK7Tz6XkMqvfwQZW2q8IUdiytkuk3B SkAUnnKLli9f9KsXxPyCZI3kJhlTeLX9ZN8zMNwwz4/HStyYL/LPM1JOY28zxoLNA7gI kqzA== X-Gm-Message-State: AOAM531zmuLW3k0KPCWN9dFfXuejT+ae9KgQJJ7WX4Kt61dV5H3Vjps+ LQFV3H1Tk9smHUNbmJ/SSjDFJw== X-Google-Smtp-Source: ABdhPJzA5hibYWer3Lwq832/9i84TeS4ajByZLSB7T1HAQ11tmgx+UjsG7iBBisRg7iuu3/eHnmloQ== X-Received: by 2002:a5d:5960:0:b0:20c:5a12:20ed with SMTP id e32-20020a5d5960000000b0020c5a1220edmr4425513wri.303.1652455130320; Fri, 13 May 2022 08:18:50 -0700 (PDT) Received: from groot.home ([2a01:cb19:85e6:1900:9353:61cb:4e25:b9cd]) by smtp.gmail.com with ESMTPSA id b9-20020adfc749000000b0020c6a524fd5sm2800825wrh.99.2022.05.13.08.18.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 08:18:49 -0700 (PDT) From: Mattijs Korpershoek To: Dmitry Torokhov Cc: Matthias Brugger , AngeloGioacchino Del Regno , Kevin Hilman , Fabien Parent , linux-input@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mattijs Korpershoek Subject: [RESEND PATCH 0/2] Input: mt6779-keypad - fix hw code logic and row/col selection Date: Fri, 13 May 2022 17:18:43 +0200 Message-Id: <20220513151845.2802795-1-mkorpershoek@baylibre.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220513_081854_140120_03541A04 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This serie is the first follow-up on the mt6779-keypad in order to enable it on the MediaTek mt8183-pumpkin board. To fully enable it on mt8183-pumpkin, we still need: * double key support * dts changes To ease up reviewing, I preferred sending this first. The first patch fixes a logic bug based on the (non-public) datasheet I have. The second patch configures the keypad correctly in order to not report bogus values. Thank you, Mattijs Mattijs Korpershoek (2): Input: mt6779-keypad - fix hardware code mapping Input: mt6779-keypad - implement row/column selection drivers/input/keyboard/mt6779-keypad.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) base-commit: b243018eafeb69bf074ef013c54504632fd161ec