Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1264911lqg; Sun, 3 Mar 2024 02:15:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU3xu/bBnVlNoP+RZvOV/lGiMll+sM+ArqlvMTZTu2jEyZgT1AMS/J4d+jiXkXpOb8IXrBoP+BWbYGuD17Nrfb2/aeI7DvKcaz8S4JV4Q== X-Google-Smtp-Source: AGHT+IHOA49V3BIpZTieXpOSorW2iCX75FwwKpU8akywedjRZvisyjgdYoWtz+qQzIWlmeFPNWKh X-Received: by 2002:a05:6e02:1ba1:b0:365:f95:6fc3 with SMTP id n1-20020a056e021ba100b003650f956fc3mr8515267ili.11.1709460948211; Sun, 03 Mar 2024 02:15:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709460948; cv=pass; d=google.com; s=arc-20160816; b=u316DJqOPnjntvJ0D6VcX+gVuOqxwIkwmznQp2XMmHPaa7NrZtirc3uW5Hq+ALb+tF JGcnv0pEMSkfZbFQS9wLrrAdjnybHIiwub3XcQLmU5p7mL3gmSVPNUqkfmLhg+fLmLMR 42jL+MPXCCdnmTKNtUPIsnaUFVNWxmoIM66opzkNlt18VzODmHNJK4VxsRrAUuJGU1vn YQuaCFycHThFD9gCn+59VFJu300HEaE0ltptWkvN49F6EnjBxVKLMCq/MP+ioDbyG9Yz ZLPU7tcN1SngCLnBvxZh/NKzNXChmL6OCm/Vg4SuOaBqOjPs8LdPLHgisGU+uzknVYDo SoEw== 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=lZvjtksvf4qK4UfszmybD7ivOvG0abGJuHgkrZ/Ur8E=; fh=XPznAPHjywHhKJCA3zzSjmtYugAvBjl32NkRZBKKmSM=; b=wM1bCXuk7gWRFZ83aZ/rLGk/uwzqaC3O0V0CHTUsnUnV45t8FsfF040/35Yn+aR5/8 rxr5M2omJkxu1ZCnDM+3Nd8HZPOqwQyz/pFRJzoX/x8i2y1l44K59P/tA+V7qdTPW1/7 ZN0CW/g4ukOZ52vD/Wpyx0Q29Xj+okvHql4C3pxhbYl8nUi60RD0Na+MlS+c+7Py/ZbX D0SC1iRu6YcYDTYhhDRktbUetfZP9xtCb+N8HiSOtYb2NqAqjXd560QduxBAZo0upcbg tNwD0ku+WegiwdabwtEh9NARCia472lOXrD26GdTObxaHBZSVmAZYvQRAti3dSsMy0IL Au+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=GjUcTofE; arc=pass (i=1 spf=pass spfdomain=gimli.ms.mff.cuni.cz dkim=pass dkdomain=gimli.ms.mff.cuni.cz dmarc=pass fromdomain=gimli.ms.mff.cuni.cz); spf=pass (google.com: domain of linux-kernel+bounces-89697-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.cz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z15-20020a63e54f000000b005d8b884ae31si6691893pgj.568.2024.03.03.02.15.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 02:15:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89697-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=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=GjUcTofE; arc=pass (i=1 spf=pass spfdomain=gimli.ms.mff.cuni.cz dkim=pass dkdomain=gimli.ms.mff.cuni.cz dmarc=pass fromdomain=gimli.ms.mff.cuni.cz); spf=pass (google.com: domain of linux-kernel+bounces-89697-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.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 BD7922831E8 for ; Sun, 3 Mar 2024 10:15:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24155BA5F; Sun, 3 Mar 2024 10:15:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gimli.ms.mff.cuni.cz header.i=@gimli.ms.mff.cuni.cz header.b="GjUcTofE" Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) (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 C585EB642; Sun, 3 Mar 2024 10:15:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.113.20.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709460935; cv=none; b=gZcw27mNfJusZnYT4v67IVeo4iovN6D83HbdPiv/OFVG6fueyYzVD4MbFLPqC/ZQcoIcKMkxUdeq3fPBks8WmSCwTY/FaS5ybn+0N8pJW718/u/Rz60fI6xnMCStQ/21LkOeElhrigyOLd8sQnlk9zpm/SoV5Kt2Set6XMzo5s0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709460935; c=relaxed/simple; bh=y4upltIYbr5815lbbJcq3QZupeGcFF1aeW5dMLuiP8k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dt2oKd4Q9fs2dxrQKalNhwvJV4dHQnQzTQawczIrp/hUiu+Ib49KOPyl5U3SUlJw+2VigPpe+acsNdQArCYQIWumnBeflDUgTfZXTu06A6RexFQmFSL+ILpQ9tiF+QtM0ZqcKPPk/lW4TLV2emJ0MIGttI/5lrd2LphSFIFUsSs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gimli.ms.mff.cuni.cz; spf=pass smtp.mailfrom=gimli.ms.mff.cuni.cz; dkim=pass (1024-bit key) header.d=gimli.ms.mff.cuni.cz header.i=@gimli.ms.mff.cuni.cz header.b=GjUcTofE; arc=none smtp.client-ip=195.113.20.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gimli.ms.mff.cuni.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gimli.ms.mff.cuni.cz Received: from gimli.ms.mff.cuni.cz (gimli.ms.mff.cuni.cz [195.113.20.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by nikam.ms.mff.cuni.cz (Postfix) with ESMTPS id F2C5328428C; Sun, 3 Mar 2024 11:15:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gimli.ms.mff.cuni.cz; s=gen1; t=1709460924; 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=lZvjtksvf4qK4UfszmybD7ivOvG0abGJuHgkrZ/Ur8E=; b=GjUcTofEQJxcRwBtKVE1oi06Oetf0EvQXf90RKJyGa9n817Mr+dCjUHO5HxDMnINtIbUKg kVi1QN4POB05+nF+3vfbjsoqnmdibc3YUqEIGH0so2j7LjSlXlGF3ji0O2kmiqFWsVfULv 6+ouhuW9+uqkzuGAmM5e5zG5iLMPj70= Received: from localhost (internet5.mraknet.com [185.200.108.250]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: karelb) by gimli.ms.mff.cuni.cz (Postfix) with ESMTPSA id CEED2456F3E; Sun, 3 Mar 2024 11:15:23 +0100 (CET) From: Karel Balej To: Karel Balej , 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: [RFC PATCH v3 0/5] initial support for Marvell 88PM886 PMIC Date: Sun, 3 Mar 2024 11:04:21 +0100 Message-ID: <20240303101506.4187-1-karelb@gimli.ms.mff.cuni.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 From: Karel Balej 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. --- 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 | 92 ++++++++ drivers/input/misc/Kconfig | 7 + drivers/input/misc/Makefile | 1 + drivers/mfd/88pm886.c | 210 ++++++++++++++++++ drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile | 1 + drivers/regulator/88pm886-regulator.c | 195 ++++++++++++++++ drivers/regulator/Kconfig | 6 + drivers/regulator/Makefile | 1 + include/linux/mfd/88pm886.h | 46 ++++ 12 files changed, 656 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