Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp617416lqh; Fri, 31 May 2024 10:54:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7LPfna88wytyl+x7hbPDsbUYcNTDza3GEh8RqDQ0M1BO0FPX65nVcaXsL8p8AwuPSfRqRzT7AzIyJE4zLbI3Lnp7ljyPf4WMz1JAgRA== X-Google-Smtp-Source: AGHT+IEh/kSJrKfrGjuYdOYfnQJhCeeLfBCE/J8Mz8glFJVrLTt8qMcxykb6SGiWGDFOPQhSyvQ9 X-Received: by 2002:a17:903:2285:b0:1e2:9aa7:fd21 with SMTP id d9443c01a7336-1f6370a77admr27758315ad.54.1717178045042; Fri, 31 May 2024 10:54:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717178045; cv=pass; d=google.com; s=arc-20160816; b=AaRdvXzRAMao8kkojpDh/vHomBa4sCl/OyGt+9lMuKL2m+LK589bFkw/jfRj/xpnRk 1bx4iqZQZCi4404bfd0yZRDWLsuOTr7sJ+5/k28ywfbxczNkWWBvSO2K4odRfkOOKMiH 0dT16JyDUqA2iyPRhI3P6usupwYXUAtknfR6mD2Q0Po2SIiWGJiYcWbh+tlsqZYoxa9O s32hpl7g+dSL0nqfj0VZGlAg4zZULsWZnL8lPC6n0ge9R8KTmCGzTDYoFsxUqx72Z4Z8 tlOcI8PvR/4/o32VUMAXZaWner8mqTy+xyvTqnGqN51Xj62tvC0s9mrhId/gdT1+t1I4 woxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=0FgpR1aECR85O06IJpvA8Cs8BgOwF77lbIJOtehcqWE=; fh=fMj999yRE4t8Lbh5PeP12BBF/1UAW0AuXV4HlxmoxBc=; b=DmJGIh0tF1lAeOL1JEFPwX0FBM1Sx+ZE7gT9TqJH7c0j8OEgefDQHlTXlZTuPMav0Q 94oSn2wNPb0p+Bcbvh6bgTCTMkEYwhBjK/LTNYyEMHu+K/FwQz9Tewfz+PeLig1nbERN oPbgfvRFsB09Y5Fg3OinvWX3K57II6+XUNJorB0j5qBPSBv1Inms/prBQo2Nkw9bjr2/ Hur9YiMdBDg7mIlqD9a+udCq3tXJalIKPOUDlxtZuzhwh5ZdB2+ByeDiDmk1GEiCWOL9 mgQ7eHVthD/+28EszaUHCpazlNo1HE56T1r8vE7I9jVxLhwVLKvjglKkWYxZ1ac8OFa9 z2cw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mff.cuni.cz header.s=submission header.b=XEc07oIy; arc=pass (i=1 spf=pass spfdomain=matfyz.cz dkim=pass dkdomain=mff.cuni.cz dmarc=pass fromdomain=matfyz.cz); spf=pass (google.com: domain of linux-kernel+bounces-197273-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=matfyz.cz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f6323debbbsi19218815ad.199.2024.05.31.10.54.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 10:54:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197273-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mff.cuni.cz header.s=submission header.b=XEc07oIy; arc=pass (i=1 spf=pass spfdomain=matfyz.cz dkim=pass dkdomain=mff.cuni.cz dmarc=pass fromdomain=matfyz.cz); spf=pass (google.com: domain of linux-kernel+bounces-197273-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=matfyz.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A49DC28251E for ; Fri, 31 May 2024 17:54:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0B6317E452; Fri, 31 May 2024 17:53:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mff.cuni.cz header.i=@mff.cuni.cz header.b="XEc07oIy" Received: from smtp1.ms.mff.cuni.cz (smtp-in1.ms.mff.cuni.cz [195.113.20.234]) (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 13A1517C9EB; Fri, 31 May 2024 17:53:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.113.20.234 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717177998; cv=none; b=EBF/YfnjPSx8RvNlzMGjV7gEPJ96PwsgjnIS1aT3TdAUYlcaDp6ciLvB+69FK2YBE9MXFew4WnBRV3dfDoikOlWH8oYliuGloopJpax44PALLVUnSZHDgpw+9IzTNWczueAeci5WsZVjYjzjM/02LBW8LvuXbHiz2j7vhrAwpZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717177998; c=relaxed/simple; bh=ZPgHrbjokg3R/Bb+Nr4nz0p02I7Sa0phcTE6lMVnJvg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uvxBNKMEKd80s3XIZui3G+PXztglwO6G9m63tJUMVPUzVbR6ldyXO2at5w4xFXLQ7b/J9NgNq9/74+lBX+Y1apOoorBp1bXAFmrBAZ5OOpNpo+B5wbIf3iWsS10yTpQDujDw0EBd1/NGLWJ8MpKBa8b01zcpVoLjFI4+ZnP/HDk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=matfyz.cz; spf=pass smtp.mailfrom=matfyz.cz; dkim=pass (2048-bit key) header.d=mff.cuni.cz header.i=@mff.cuni.cz header.b=XEc07oIy; arc=none smtp.client-ip=195.113.20.234 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=matfyz.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=matfyz.cz X-SubmittedBy: id balejk@matfyz.cz subject /postalCode=110+2000/O=Univerzita+20Karlova/street=Ovocn+5CxC3+5CxBD+20trh+20560/5/ST=Praha,+20Hlavn+5CxC3+5CxAD+20m+5CxC4+5Cx9Bsto/C=CZ/CN=Karel+20Balej/emailAddress=balejk@matfyz.cz serial F5FD910E8FE2121B897F7E55B84E351D issued by /C=NL/O=GEANT+20Vereniging/CN=GEANT+20Personal+20CA+204 auth type TLS.CUNI DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mff.cuni.cz; s=submission; t=1717177959; x=1718477959; bh=0FgpR1aECR85O06IJpvA8Cs8BgOwF77lbIJOtehcqWE=; h=From; b=XEc07oIyL44bM9hvxjX+628HcCWHiVfbEPLhwhTegsVj4FHkyGQr7OULySozz0gT0 Qb3fnjDqDHmxGjCK17T6Yg6/uOFE05SsI8ZFll4kyIFtNgZQXAQUmbdRLM5a00C2LF fcwLv8Ylo5JnMx2jvRGNOO6m5qN+ipScMUrChreiuQXFwqrsOYt7d9BILYDurjw5En Sogov4yPK770rK/X90SlOqcf41Sh1JzQP9drt3yHIdQEkALR1hcj7bo9Hmq6JnDSOn n6q3B7nefSJtNaf25mc/iAMLDD+XgTXP30RxgiaHv0tsOVDpBiWJsjE9/LErwTvS57 SHdWAi0A0+N/Q== Received: from localhost (internet5.mraknet.com [185.200.108.250]) (authenticated) by smtp1.ms.mff.cuni.cz (8.16.1/8.16.1) with ESMTPS id 44VHqbY6001107 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Fri, 31 May 2024 19:52:38 +0200 (CEST) (envelope-from balejk@matfyz.cz) From: Karel Balej To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Cc: =?UTF-8?q?Duje=20Mihanovi=C4=87?= , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, balejk@matfyz.cz Subject: [PATCH v7 0/5] initial support for Marvell 88PM886 PMIC Date: Fri, 31 May 2024 19:34:55 +0200 Message-ID: <20240531175109.15599-1-balejk@matfyz.cz> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello, the following implements basic support for Marvell's 88PM886 PMIC which is found for instance as a component of the samsung,coreprimevelte smartphone which inspired this and also serves as a testing platform. The code for the MFD is based primarily on this old series [1] with the addition of poweroff based on the smartphone's downstream kernel tree [2]. The onkey and regulators drivers are based on the latter. I am not in possesion of the datasheet. [1] https://lore.kernel.org/all/1434098601-3498-1-git-send-email-yizhang@marvell.com/ [2] https://github.com/CoderCharmander/g361f-kernel Thank you, kind regards, K. B. --- v7: - Rebase to v6.10-rc1. - v6: https://lore.kernel.org/r/20240504194632.2456-1-balejk@matfyz.cz/ v6: - Rebase to v6.9-rc6. - Fix patchset versioning: the previous version was marked as v1 because I considered RFC to be its own thing. Thank you to Krzysztof for explaining that that is not the case. The previous version is thus now marked as v5 and this is v6, sorry for any confusion. - v5: https://lore.kernel.org/r/20240331105608.7338-2-balejk@matfyz.cz/ v5: - RFC v4: https://lore.kernel.org/r/20240311160110.32185-1-karelb@gimli.ms.mff.cuni.cz/ - Rebase to v6.9-rc1. - Thank you to everybody for their feedback on the RFC! RFC v4: - RFC v3: https://lore.kernel.org/all/20240303101506.4187-1-karelb@gimli.ms.mff.cuni.cz/ RFC v3: - Address Rob's feedback: - Drop onkey bindings patch. - Rename PM88X -> PM886 everywhere. - RFC v2: https://lore.kernel.org/all/20240211094609.2223-1-karelb@gimli.ms.mff.cuni.cz/ RFC v2: - Merge with the regulators series to have multiple devices and thus justify the use of the MFD framework. - Rebase on v6.8-rc3. - Reorder patches. - MFD RFC v1: https://lore.kernel.org/all/20231217131838.7569-1-karelb@gimli.ms.mff.cuni.cz/ - regulators RFC v1: https://lore.kernel.org/all/20231228100208.2932-1-karelb@gimli.ms.mff.cuni.cz/ Karel Balej (5): dt-bindings: mfd: add entry for Marvell 88PM886 PMIC mfd: add driver for Marvell 88PM886 PMIC regulator: add regulators driver for Marvell 88PM886 PMIC input: add onkey driver for Marvell 88PM886 PMIC MAINTAINERS: add myself for Marvell 88PM886 PMIC .../bindings/mfd/marvell,88pm886-a1.yaml | 76 ++++ MAINTAINERS | 9 + drivers/input/misc/88pm886-onkey.c | 98 +++++ drivers/input/misc/Kconfig | 7 + drivers/input/misc/Makefile | 1 + drivers/mfd/88pm886.c | 148 +++++++ drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile | 1 + drivers/regulator/88pm886-regulator.c | 392 ++++++++++++++++++ drivers/regulator/Kconfig | 6 + drivers/regulator/Makefile | 1 + include/linux/mfd/88pm886.h | 69 +++ 12 files changed, 820 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/marvell,88pm886-a1.yaml create mode 100644 drivers/input/misc/88pm886-onkey.c create mode 100644 drivers/mfd/88pm886.c create mode 100644 drivers/regulator/88pm886-regulator.c create mode 100644 include/linux/mfd/88pm886.h -- 2.45.1