From patchwork Mon Apr 25 14:19:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattijs Korpershoek X-Patchwork-Id: 12825825 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 196D5C433EF for ; Mon, 25 Apr 2022 14:21:58 +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=hKmjAP2BuU5Ylv 5LzZS+pE7VSFsVbD51ckU4rbSiksXLhH+u0pdoHwkg2+k44OcCWrMz8+rfV3eViszyZkYQt/98qzw FBML53GKLuGcjREY/QzMXwHgvU3CJNlBQkkk5snPY/FmVIV+oBRAmFJTD6tzH/Pua2KScMbCVwpzA NsUdN+XsT2boQB+asBZLIpYqI9e+Zp+6Hblbinxeeygu0BNnbc+ByPYuLJ+QXivv4qZvUZXEP63Se dkcGhAHvMoWVsWHvtkdhZbqjc+wwfdcwoHuqBOS7QMmkx8bduSsnH3LlG3hdxsXOxAFdaeaBn1MmO /mgIIPcygvfKohUdvIEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1niza0-009teZ-NC; Mon, 25 Apr 2022 14:20:44 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nizYg-009t4V-73 for linux-arm-kernel@lists.infradead.org; Mon, 25 Apr 2022 14:19:26 +0000 Received: by mail-wm1-x32e.google.com with SMTP id p189so9366312wmp.3 for ; Mon, 25 Apr 2022 07:19:18 -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=2wZ7xxmndjI9NQJiBzvZ+9oMRSULwSsVZpMGKupZt4eoKXKcTrRG9ejghP6/CpyUuf J6GPivos0E0L1129DN23cCqKBulz4lsYlAPrpGnZ6FtWBesfKQ3dmZq47aZhBsvw1W0d XOBMBfRyII3XmWBbe2KvNrz4IVvlkNYoXEwxqphQoEOgA6OTnO4rTn/yENtnTY1ubKc1 f6I+t24EcPrzRxmScY8seonziTlLJu+Ax7/kIJh4kvduJFvqVQg+P0tFvxfZBQen24xq pDwZgEepmZLygNr3idt9hH87SHj3JDbcc1047POsgs6eSmd/o2pGeWIMpYfT+SKHYHVV Cgiw== 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=AF7xpB0p8yeAeYd4Nc9Qb32VUr8Q8m+GTNFARrI2hYT67lTGtVoqnU3N3kU1TJZ8yO j+15aP38yiAZmPfrYoV6Gzd339mXVyr27enZxrZcmnyseKSyY8/jA/pmOl1A8nYPrkb1 S3Wwey3TG6Q2ovqncjpVi4cWqh/30cbFf50SrhDYlpZfqhA51HGLHW06aWKe9dzwkyDv x4usoVxnDabtIOs90J26PY4mTIIOq3y1DGFyCPcHi80nYw9mtC7/f84Sxds7AFtRPM+v InQ9xkZlL3SyLREfl5hsrt48GPsikz/ddniUHB/MyI2oLDM7lqqIM8a3W3LARJk4Mxxw 3A3w== X-Gm-Message-State: AOAM532mXda1zonJDxfyFEKTzg3HV9nJvPYXOGvdUdOI1yy8ByxxjPqR 38kAlqEr+MvbqpG4NvDKg3hCwF1UCAXpJA== X-Google-Smtp-Source: ABdhPJwTt4DIcem5kvWlreKWpNVp5wVoIc2dUHMFQQOhMqjw6b7upbwNhmMWnsokCbGLHmVbmoRsdQ== X-Received: by 2002:a05:600c:4f53:b0:392:e99:3002 with SMTP id m19-20020a05600c4f5300b003920e993002mr16952741wmq.35.1650896357823; Mon, 25 Apr 2022 07:19:17 -0700 (PDT) Received: from groot.home ([2a01:cb19:85e6:1900:ce86:3a65:67d7:726d]) by smtp.gmail.com with ESMTPSA id f10-20020a5d64ca000000b0020aa97b0383sm9144592wri.113.2022.04.25.07.19.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 07:19:17 -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: [PATCH 0/2] Input: mt6779-keypad - fix hw code logic and row/col selection Date: Mon, 25 Apr 2022 16:19:12 +0200 Message-Id: <20220425141914.158959-1-mkorpershoek@baylibre.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220425_071922_298790_8D34B12A X-CRM114-Status: UNSURE ( 9.43 ) 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