Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp887045lqz; Sun, 31 Mar 2024 03:59:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9Gpyk8t2JIMJfJJ+XkbbGVVTpzOOj8o+zLGrijzf719kW0qBFRXL6G68cpXuvHfdaf3JxvyKVAs9pxClNA/FPqd4zsulLA1dC0Lj1tQ== X-Google-Smtp-Source: AGHT+IH0p7eoRtyr8rstrGVr/mRXNETnG01Lr6AkXsnUGwprgxoQiLCpPhQ2fJLAne6h3nDpDGi8 X-Received: by 2002:a05:6a00:3903:b0:6e6:97d1:57ab with SMTP id fh3-20020a056a00390300b006e697d157abmr8640176pfb.33.1711882755968; Sun, 31 Mar 2024 03:59:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711882755; cv=pass; d=google.com; s=arc-20160816; b=OTziVg1IBI5I+j5ZCGXqqTPm/TVVbhrk7QsvU3j0+pLvXGtGtn4xD3WDDYrl5ZaunK /7F6aqbcVve1MdhyfzR1ouzRE+uT/D/o2qyy65NWicS0ennJrYCw1nCxkImgSuL7d400 Gr6UmWccAfix9rvCX8aKPYcLAFk3cErUl4pzEzqLY4stP57NXasKjVjyqfjOION6D1k2 K3hlkyb0C+oE8IJpjmZw6CrN2lCX/qdnfR4xRHs3fNpd2kFqcVyo5Wusi8BC0GRYfGYC N4j6dxioH1hQnpCQkTW6AZT4e3828Dcn7Kvzj8v2brzwGpEWE8tUX9ImjFHo0RleS3o3 sPAg== 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=x+wQ7I/sdjfXLmnJE9MBqntMralduAmx24DA6Fuwkgk=; fh=L0rhgpKIUgYWpq8ylUAxZvOqVWOhfbt+P2rLuyTk6fc=; b=bJTBtwKudQds5cr7IXUpCA+JMPXIVRbYihfe4nW0ox9qd+LpOrtjUnYO5HiIs6Fj02 4pqMoEoKSJcFweJNeNcT19XpPuhzUVcoZqMHkVoX1k0hUhh06AMJCyXPGR6uSX9rq+Qv ADksUFperXDHT7rpxHUfZEl8QKwFHphTUHtxEjO1LCADNNfCMgiQQYFNo0QopRaXw2eW UVUkvqWugo4aA9FAQmXOCxe8uo1xrd5xa8VtXRP50GT/osmtyU8zOC2eMXb0ZuBFTwfa 3nw7gnr5Y5V7+WZr/I9qsaP/GunwC9/p8C7lhvaqPIYhkbNyMn0XI4IN2gxUba1igsZr FEbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mff.cuni.cz header.s=submission header.b=OvsSvFv4; 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-126045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126045-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v69-20020a638948000000b005d8c18c7c65si6976020pgd.671.2024.03.31.03.59.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 03:59:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mff.cuni.cz header.s=submission header.b=OvsSvFv4; 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-126045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126045-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 9CD47282085 for ; Sun, 31 Mar 2024 10:59:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA4CC1448E9; Sun, 31 Mar 2024 10:58:48 +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="OvsSvFv4" 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 49C3F1442F9; Sun, 31 Mar 2024 10:58:46 +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=1711882728; cv=none; b=SdZhMmYYj8wDCmL/To68AkmruQXAHK9Un+VfJ5hTqk4uSeuQJq3Zm7O3N4wWM/HvLW3zAnejZUG41MIGy/xCurUCM13BpR69dN5DXlBtI1EVeioK/jwHPHndMlCbzNWkXQfqiQYXvZw++kJt6wSm+KFuvkOieeGMRCIZA/iantE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711882728; c=relaxed/simple; bh=t93YFYitOmuzsRrL966Hzq4Kb+YDmIsifWDYidPpN90=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=csUDQZ+zKTeFAF+cbohbB/ef9qk81ZIjbwE5BKZRYSmEXA/HV2Mi+lQAy2jC2bHZy76EYPZaLdAwGRV7SB5a7LPX1Eur0WnTAf/lcDgQvLhk3wdHJ0PYcxw5Fp/5xfmHDJizzNtYW5JjAV6GbPSx0wkhTxWNtju5JxEAQ6H5wMY= 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=OvsSvFv4; 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=1711882687; x=1713182687; bh=x+wQ7I/sdjfXLmnJE9MBqntMralduAmx24DA6Fuwkgk=; h=From:MIME-Version; b=OvsSvFv49FkibgnTVvNN6kIC1pcqaEKvnS+JrnRoL6Y7/lxwXRNCMD9dvVbO6DAh7 LLhTvB7LoTAN7B3bzTsREXqyWthUDaDL+G7qNhyGqn311cvWXKOl0Ss8YcNLeUXgL+ tIACKdsYTKRwMANKg0fJKGjWrIL+VqGagCcdu1kLVyEZyNrCkwjFYHmrOqFK/EOAZr lnBtzXvP4yqnb+QhIoaKyEWyg5PE/0Dvwwra6emZbqeM0a4cdzCZfWQAJ3Y1CHXlw4 ZsVDNHn5YcYBhc58GaPQy1q75/xAHUiDUTSpvTnerJr+lQ4ABNuZ16weQxv0Uozgc6 eST/6mZgszqvQ== 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 42VAw5IC095397 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Sun, 31 Mar 2024 12:58:06 +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 Subject: [PATCH 0/5] initial support for Marvell 88PM886 PMIC Date: Sun, 31 Mar 2024 12:46:53 +0200 Message-ID: <20240331105608.7338-2-balejk@matfyz.cz> X-Mailer: git-send-email 2.44.0 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 and kind regards, K. B. --- v1: - 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 | 157 ++++++ drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile | 1 + drivers/regulator/88pm886-regulator.c | 509 ++++++++++++++++++ drivers/regulator/Kconfig | 6 + drivers/regulator/Makefile | 1 + include/linux/mfd/88pm886.h | 30 ++ 12 files changed, 907 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.44.0