Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp508993lql; Mon, 11 Mar 2024 09:02:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXl4nzG/zLjA+yDruKbuVVwPYDUOTJq2V+0/gTbsoqA8yyNoYbgh/nCu6dnqfY4rDOklRrj5/oPTCqjm9BQEErMsXEkhfVhyNOpCu80gQ== X-Google-Smtp-Source: AGHT+IGdMhbe8j0NzE8RJ3xPlQs8XgWCF1DfG4v97L6V4jw6Soi2ZC7kicGZIhD9/wScgxLUNdA6 X-Received: by 2002:a50:aa9a:0:b0:564:fe6b:906a with SMTP id q26-20020a50aa9a000000b00564fe6b906amr478016edc.42.1710172959724; Mon, 11 Mar 2024 09:02:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710172959; cv=pass; d=google.com; s=arc-20160816; b=kJuMRzPvgWi04mEtevdewHNr3CQSH5mYZl1aNwIsn6nrr+sp7JfAFW7RKr3N2rw2vt Ah9s6YtEV4PpofKgAolF7GHMfFSo6UNgJ0slQLrjbCZNg5m7SG5SqWZKj0ulYBNb1miF FYExoGO+xhP+UVOqDgTDbAdSZMxeWgMTYlSrJaC3wL+AotCbjjDKMX/TEN1CyJHvJJ9c d/gyMNVl98LM8HMpFl40ltM7twA1zaAivNwfQNKWQjxuweMx7JMAKhfqyy5ss6qMRJhy nabeiy8yuGflnvINYCUWRC7CkornePJg2pHIZjJdLRW5TJlw+/0sY4+ihNLTz8Yx9YAk 2mGg== 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=8rja39NWvpfvyO+yfPHNzyL8h9k3zxVbMNChukBVYTA=; fh=XPznAPHjywHhKJCA3zzSjmtYugAvBjl32NkRZBKKmSM=; b=A0e/I+PGmcJVWRC96vhhL4mm8Dn87yNFtUtEQLREFQEYHkTNJklrYNuE72hRR+yqxU 25um+DgSyKJJ0qrdq68juBVozniOqJLxDdylswOxkuwH106yNQgBfuLhhvqeeVXYNCOQ XSv7uPMmEqjP+1cFCH3psGXa3Xv2MwUxzM/FR9i3IOxnfPmj9p6f+usF8XDSGoebRS7v FTf6OcLOYbpA4fHLClwcbZkBUbNkMvdVjgG0MhzT6eODqJXYztGpV2Fgr4Me0uVWfAXL +Y8B7X0L2gVSV3xuaQJ57VbyF6lEDb3hqDbBV+ea8BQN48vmCO0nIP6oas5qNr1yJA5B G+jw==; 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=nvO5OOow; 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-99172-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99172-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 am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z17-20020a05640235d100b0056826e3c836si2655083edc.215.2024.03.11.09.02.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 09:02:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99172-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=nvO5OOow; 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-99172-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99172-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 749E21F21508 for ; Mon, 11 Mar 2024 16:02:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 838494AEFA; Mon, 11 Mar 2024 16:01:54 +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="nvO5OOow" 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 CF533487BF; Mon, 11 Mar 2024 16:01:49 +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=1710172913; cv=none; b=Tm9jtOYVvfKOEU2I/yUfAeqDZdyHw2jk0cUeEmB60oLZt/XNcLBltPh0MNZnMvqzdYG2uDWOyOaLf8L8/wxg0RPxdydV1u41A/iNtVdZitxBOjBL+Z1RRVcTvPVrjjBJslv41PBUCLoOGgcIxHj3nB2WbtUNRu7It9nDJiSZ7Co= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710172913; c=relaxed/simple; bh=GLEeATJ3Svnr6RANz7IL3Uj6iElvRYrDj/cIksBhlrQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t5A2AE8lXkUYoP64IbSz+jHzQAceTfMJqji40MDJbIEe04f1+iPiFoxvS6SDI0jw2TGyWN5cTxHpV5O1/gb2ZughtGCAFcF/Cj3g/egUlfhKFqpzzsGhjf/+UzFP0wKvrJ3h2ZbGF7xWe8xnrpZsmZIgnq6nywPBLfD/rK6XW7I= 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=nvO5OOow; 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 6CFE02846EE; Mon, 11 Mar 2024 17:01:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gimli.ms.mff.cuni.cz; s=gen1; t=1710172907; 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=8rja39NWvpfvyO+yfPHNzyL8h9k3zxVbMNChukBVYTA=; b=nvO5OOowaQcCQEfYjlA+ji8TjPP6wc5jt6UjDQ5DRbF0QZCw20/rTU8ObOyv4bq7kyzQcP Bh67qCKeXoWJSV/C+ZKiQFbuUH1AJEn2w+CgSnCA18SlSK3UuokBGjfEVMHhIKa+REQ4Bq Qme3Js91m2jqcFFV4NynEYPsH8NGWmg= 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 49A3445665F; Mon, 11 Mar 2024 17:01:47 +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 v4 0/5] initial support for Marvell 88PM886 PMIC Date: Mon, 11 Mar 2024 16:51:52 +0100 Message-ID: <20240311160110.32185-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 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 | 99 ++++++++ drivers/input/misc/Kconfig | 7 + drivers/input/misc/Makefile | 1 + drivers/mfd/88pm886.c | 149 ++++++++++++ drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile | 1 + drivers/regulator/88pm886-regulator.c | 215 ++++++++++++++++++ drivers/regulator/Kconfig | 6 + drivers/regulator/Makefile | 1 + include/linux/mfd/88pm886.h | 38 ++++ 12 files changed, 614 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