From patchwork Thu May 6 15:37:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattijs Korpershoek X-Patchwork-Id: 12242645 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.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,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 E6888C43461 for ; Thu, 6 May 2021 16:03:10 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 63FD7610C8 for ; Thu, 6 May 2021 16:03:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 63FD7610C8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=QDr8CtaH9XrHY/IOSmppPFwMMk+Yho81GgNyURRrLvA=; b=GFC6TFkmnHnRgSAEw5q3+PPzuR knxJVTNQAMVJ2iee7QDqhezGE4UCP/F3x2JA74KA3U1pQ4vKFqYKQ6QdFIJmjXce/isOfuCPfZ6VO j6b3wbtiFRXMboqjhDJaJLiEbsWrW7GFPcZa0doS0ReKVuPb6+OZ07zPeU2TeVA7cOu5kig3P/UPe mx/HnmC74IjrLRzhhXIaZOIOo36l8T78zfH0cnjrGilUn4KDfyhLq9w7NVfxDC+11t9XKVbLu36iB 58ikDaa1dnPnJefOCYnCaCJQzVyAofABTzHRDI1ruMRYCyVDUHl/etwEBJjrz6RexwsaSbAMne41M UAorA5Hw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1legNX-004i8D-3f; Thu, 06 May 2021 15:57:31 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leg4C-004beK-EO for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 15:37:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=dSJyU8aFK9mEONqG/nUNis6Uka+vOYd9hMvtVOFuDIc=; b=xbRNHk2dqsqkJipOwU7gYLMKR9 JdpEPe22O6mm5UkEMG0r4e5dc9UWlHoF9bJnYrxwXMfKiQY7IcqdWP+SRSLP5zWyKUlISdzJ82egB tQSyrQOGkkmF5Ysjq2IsKQv7AwA0fpGYc0OxbDJFuQIgoVvwZONkm/Jvm+Su+1S+FiqXDBktJmkT3 8cGtPuC2wny40rXFdrh1X8+HVuaCnvprVzd1e8dzYTMcl0+zogpDnbllccfrG3Xq6ftQ7maBiwkuc 1s0ZmomGroDeG7j9X07XRk15qAWCQI+d5xtbMvX+ZOddoPYkEhr609r8G6XC9uDp8SAgUNA2Bcl1u m1kHam2w==; Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leg48-006AKZ-Bq for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 15:37:31 +0000 Received: by mail-wr1-x433.google.com with SMTP id a4so6111492wrr.2 for ; Thu, 06 May 2021 08:37:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dSJyU8aFK9mEONqG/nUNis6Uka+vOYd9hMvtVOFuDIc=; b=z57l6UWUoyml5qPK/3dbAyigL3/mFw4SWpA4jlORRMa04ADgJXr2kse+DOKvcgBMj6 q6Rod2Pu8U/Z7HFXhUbZwV+N9F7S2ghT8tkGE15T28OFlM6bLNs+xhSzPExWm5bmmqqn i5GwKj+sqRYa9MOwMihoVFYbFl+18PK0T7HMhQrgzvSMT9U3v2rqocrefBcP37C110ty HVYJ/zH7DB1ez+PWo+LQflFW1BTren1pfZeIvSaSQgbVhH6BxvtLCpmk1g98ZAHbwv7A wpN5pK8V0WAbbcRUC/Hc4lddTVKyG54TJl5j7+cXQRJo5lUBA6JA5T2wq8832ohc0kQJ cVGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dSJyU8aFK9mEONqG/nUNis6Uka+vOYd9hMvtVOFuDIc=; b=g8Ups4LorSpZFSTLTT81yLuDMBAhSvHtSct79ikJYajZ7JJHA9cb14nEdb4FdV+XRd NhgVe2fBIefmpX6yHttezvKf2DeqL2IMSpdNWCoFkZdIclxrkgZxfYJdy76whYU2gL7E rM9sfM2gXxJzT5DVaamA00BLZd/p6j/ukdLm7RMWlmoECJGNb9TJvYhPhBPZqRH/7TqB 1G9mpljd9VV4F9CeLmAoTwbH3T9P6uke0V8B/TVagvKyeXMuzUIEMCWkJAmwa0p+BPxy 0k6oRYxDe/PGFB7qJ9J8NAiK0r9C7519pKvtx19Wld+jFxGsHYdaFxbT7YTEb5e7ZJ4L zdzw== X-Gm-Message-State: AOAM5311X3wDeRhWkqYz4DqbEmIZ349WNTOmXp7ly51V6fQT3Z5AmRNW evbMaCNF2SSoBbmoqrZcRGKZog== X-Google-Smtp-Source: ABdhPJyaW15qMZEmXE3SxBInodABKnX5TaulmK6kQs2Ns1gEa0yWwUQeyDIYIIeCr4O4aaMcdPmAOw== X-Received: by 2002:a05:6000:50:: with SMTP id k16mr5991194wrx.418.1620315446400; Thu, 06 May 2021 08:37:26 -0700 (PDT) Received: from groot.home ([2a01:cb19:826e:8e00:5fe0:3a70:ad4a:a29b]) by smtp.gmail.com with ESMTPSA id o13sm3788673wmh.34.2021.05.06.08.37.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 08:37:26 -0700 (PDT) From: Mattijs Korpershoek To: Dmitry Torokhov , Matthias Brugger Cc: Fabien Parent , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mattijs Korpershoek , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 0/3] MT6358 PMIC button support Date: Thu, 6 May 2021 17:37:15 +0200 Message-Id: <20210506153718.256903-1-mkorpershoek@baylibre.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210506_083728_506843_F747B5A3 X-CRM114-Status: GOOD ( 12.16 ) 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 The MediaTek MT6358 PMIC has support for two buttons: PWR and HOME. The interrupt logic is a little different than other PMICs from the same family: * for MT6323 and MT6397, we have one interrupt source per button * for MT6358, we have two interrupts lines per button: the press and * release interrupts are distinct sources. Initially, this series contained both mfd and input patches. To simplify maintainance and review the original series [1] has been splitted This series depends on [2] [1] https://lore.kernel.org/linux-mediatek/87tunpw339.fsf@baylibre.com/ [2] https://lore.kernel.org/linux-mediatek/20210506094116.638527-1-mkorpershoek@baylibre.com/T/#m5c76f061c2158587b7190a13abbf2094b0c050bf Mattijs Korpershoek (3): Input: mtk-pmic-keys - use get_irq_byname() instead of index dt-bindings: input: mtk-pmic-keys: add MT6358 binding definition Input: mtk-pmic-keys - add support for MT6358 .../bindings/input/mtk-pmic-keys.txt | 5 +- drivers/input/keyboard/mtk-pmic-keys.c | 56 +++++++++++++++++-- 2 files changed, 56 insertions(+), 5 deletions(-)