From patchwork Thu Dec 26 04:58:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Val Packett X-Patchwork-Id: 13920996 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 6EC2AE77188 for ; Thu, 26 Dec 2024 05:10:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=1+Pw0Duk2ffkzOZeLZ/8MRbYDhOihMi4oOjlzS/3yps=; b=G6u1b+nHHTQLvupTmyDzSYXl87 ReNeoDsmlpCOSvmmSsWrjGCVYvXdXrR7jhJheQVfopIsc4wvrg5kJ22J4bUXEdOoHJPISw4jsP0Ic UKH2tcNPdsCLH3xtMd1d7YB5VbSJx/xC7FrlLEnxUUf1gWF4aXuNS3k7eLaV10tLMVtupCRQq8CHB +nQ2I80/l6LMp+ApEmz9UFQTXJ8wnmGs28NutOnpq1Ar6LIkqqU2LtVjlkzBZQpqDWn3DwytVo9uE c434vIMlrRj4KAAjTe6CqCflZjEy7UYnmF37vB1bVrAcB59iM28+aKwbYVAABiPOCdVUDE1IcYqM7 SWXGNADA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tQg87-0000000F85f-0IHi; Thu, 26 Dec 2024 05:09:51 +0000 Received: from out-177.mta0.migadu.com ([2001:41d0:1004:224b::b1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tQg6s-0000000F7om-3TVG for linux-arm-kernel@lists.infradead.org; Thu, 26 Dec 2024 05:08:36 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=packett.cool; s=key1; t=1735189711; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=1+Pw0Duk2ffkzOZeLZ/8MRbYDhOihMi4oOjlzS/3yps=; b=ptsMgJ2H46eD27TfaBfqI+4cUOz5vLA6QzK/27mp8ADqFsZ1CmUslrIWbwKt3H932VxT28 nDTIQTyD7SxYjuA/ll7SgJQUWXkitKKx30BvmlAhWnCv+iGu4eQc8unN2ChI1NQVi2BWfh uTHNc2e3Ezvd+JHJeVb/XSwIcxMQPhXR16MaK1umzxtDAUDgtz3kuZIpVWJ/fqFd+ZYur5 83RMZiPrCdSHsFlajpnAqfBrUKCsYGkr3Lj0uk5kgyCs3XKLyblKce8dqyoCXMJtRjgsVm 1SPx6owqt5PeQmpOTNlFXBis5hwywfH2i8iwNYnf28S7Jg2DOoiM9/J7fcOTUQ== From: Val Packett To: Cc: Val Packett , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sen Chu , Sean Wang , Macpaul Lin , Lee Jones , Matthias Brugger , AngeloGioacchino Del Regno , Liam Girdwood , Mark Brown , Eddie Huang , Alexandre Belloni , Javier Carrasco , Fabien Parent , Yassine Oudjana , Chen Zhong , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-rtc@vger.kernel.org Subject: [PATCH 0/9] mt6397: Add support for the MT6392 PMIC Date: Thu, 26 Dec 2024 01:58:00 -0300 Message-ID: <20241226050205.30241-1-val@packett.cool> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241225_210835_144668_E26D8AEB X-CRM114-Status: UNSURE ( 9.34 ) 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 The MediaTek MT6392 PMIC is usually found on devices powered by the MT8516/MT8167 SoC, and is yet another MT6397 variant. This series is mostly based around patches submitted a couple years ago by Fabien Parent and not merged, and includes extra cleanups, fixes, and a new dtsi file similar to ones that exist for other PMICs. This series only enables three functions: regulators, keys, and RTC. All that was tested on a lenovo,tb7304f tablet (basic DTS coming right after this, promise). Fabien Parent (5): dt-bindings: mfd: mt6397: Add bindings for MT6392 PMIC dt-bindings: regulator: add support for MT6392 dt-bindings: input: mtk-pmic-keys: add MT6392 binding definition mfd: mt6397: Add support for MT6392 pmic regulator: mt6392: Add support for MT6392 regulator Val Packett (4): soc: mediatek: mtk-pmic-wrap: add compatible for MT6392 PMIC input: keyboard: mtk-pmic-keys: add MT6392 support rtc: mt6397: add compatible for MT6392 PMIC arm64: dts: mt6392: add mt6392 PMIC dtsi .../bindings/input/mediatek,pmic-keys.yaml | 1 + .../bindings/mfd/mediatek,mt6397.yaml | 3 + arch/arm64/boot/dts/mediatek/mt6392.dtsi | 232 +++++++++ drivers/input/keyboard/mtk-pmic-keys.c | 15 + drivers/mfd/mt6397-core.c | 43 ++ drivers/mfd/mt6397-irq.c | 8 + drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6392-regulator.c | 484 +++++++++++++++++ drivers/rtc/rtc-mt6397.c | 1 + drivers/soc/mediatek/mtk-pmic-wrap.c | 1 + include/linux/mfd/mt6392/core.h | 42 ++ include/linux/mfd/mt6392/registers.h | 487 ++++++++++++++++++ include/linux/mfd/mt6397/core.h | 1 + include/linux/regulator/mt6392-regulator.h | 40 ++ 15 files changed, 1368 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6392.dtsi create mode 100644 drivers/regulator/mt6392-regulator.c create mode 100644 include/linux/mfd/mt6392/core.h create mode 100644 include/linux/mfd/mt6392/registers.h create mode 100644 include/linux/regulator/mt6392-regulator.h