Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp688516lqs; Fri, 14 Jun 2024 02:43:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjzIIcMqQa6uNx1bdZUSD1FzZQktvvgHzgG70g4RWHnsP2WOOJiiYl67kh1c259Xw5MFrV7xnZzzmF54M+onD61MPIKgULfJOUfeV7jg== X-Google-Smtp-Source: AGHT+IHeY9vOlD8PpB59ZE3GukTGpC3GcpJ2zRZjgM9lSBwO7w7IKop9HQpuPZ3VZGmyo31vdjAh X-Received: by 2002:a17:902:ecc3:b0:1f7:12c9:943f with SMTP id d9443c01a7336-1f862a03db3mr27184925ad.61.1718358211611; Fri, 14 Jun 2024 02:43:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718358211; cv=pass; d=google.com; s=arc-20160816; b=bV2QR9tfNCngUv94OEnoO8pjIOby05qH1r7KquolAYUABpchDEgTPF6Zq7XxG29Emz +Ra8F2VzaMzZfm6hhF1xKMJAxFIKtgO1/lf3mQxoX3diw2CSm0hh5bnYQd75KzehaJaN SUHKPQ8raes8hoZE/nmgZobAOpSGF0qyQiQkxAjpj9EO8pPfVZDs/Ffig3xyKahJDvtl wRiB/71N4gGYi2jQ6mJD0hcytuUKxk0m5Ox7KGlzU0EeW4/frSFh7AbSx7NnVKfl6BZP +FgNyM3pqd3fW1PAt0SLRxp05KidALvurwP85/LfYcOA8Mx9fWvLGV7KMqa3x0hPMTvZ He2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=t2iOzSAnOwkGstzhGfNY8EkOug1CltGdGxTCzaoAIQ0=; fh=I53YYmoYE3kO4a/OAO6F4O/56g9w/4GgiWa3V74tLqw=; b=uuBzbc/uNlrYIG5DlUekhP33zHHEW8jVVMyeL5IkvLvtduXaw00PfhgHtgtmqDjvj2 NgC00WoSm+EObFS9urCfnv/9HGOLDoGeD77gjtoDE7+T5L5Ekq5TXUiopXMbXiQhJuTF O6ntFaBDSACBLZ+c+VXPQ2Zr578J+88YZX2MYgeAKfwTO6N3pH4xWyC0Xg8kAQH5EStn THlciVKeY2qeMD+aZsAAZX4GBl9o6D2KeyFM/jQOPI2kjz5VhqcUiaco2m0rLVXzmyvJ mgU9zLNswHDA0IH5mE1wOrXa1BRv3tumJQURG4dk778hTWIbR3FSn7LeA9fnZXDJ4GP/ 2g+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QbVnHaI9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-214654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f855ee4b39si30897835ad.398.2024.06.14.02.43.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 02:43:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QbVnHaI9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-214654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A2EE4B224FD for ; Fri, 14 Jun 2024 09:43:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E598192B70; Fri, 14 Jun 2024 09:42:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QbVnHaI9" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72B1518413A; Fri, 14 Jun 2024 09:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718358174; cv=none; b=mxgi9qjE6R9ZJo5n060Dq4exVBmtgkSMSLe7O522+MDBkZUVuPDhO9jzF/S3P+xdJT8al29tIk2DgbvcS7PwVHBiwc85gEYJtHNXZ05ZjcZNGsQfjUhS2DnD5UZ+SqTJP1ceo3srhVWQWXux2PJ9y8SKFIxa/AGWGdgogTn83F0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718358174; c=relaxed/simple; bh=czkOTYkZLTIQaApiczrsdIbe9LXXVyIz+FMdRAHJ+Jw=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=h7FWGzH9H9amzoeRDi2LMRKSQovXsZPhw0W/AlDJlaSAVUVKifl5TBVJWk998Mxo6CMt8ZdYXBayK4tGXm80jxBKiB8SEtYo2iJUGgmHtJiKZVBIk5zupTXpBu7EbzazxH8tvBZG9s0see9eicE87Z/q5tTvclVaR5KEMQwIDSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QbVnHaI9; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-52bc0a9cea4so1745425e87.0; Fri, 14 Jun 2024 02:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718358170; x=1718962970; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=t2iOzSAnOwkGstzhGfNY8EkOug1CltGdGxTCzaoAIQ0=; b=QbVnHaI97/ZknHETU5MfyVOwb3rZL3KuqE7UBxkJ5knjJ9JMQwNHi5BQ7Ul1eyrsYa EZlnBCyFvciTbQtcb2N0uv2JvIlmHxbjlSU3zhZDWTuVxJ3KFtRwJYHUng+Yze5CzIV7 MGDCMYlu4TksEiQNFWWPjPiPXHo3vIw+XYR4qA6/gBfI02XqF4NX/ZZsHgj/ovofJlCA nZV3i28S8UP31XaYd6Dp2nxxIE7ovqNAh3hYRHHUv1Qm7rct9NLuQ+EI6bm77/fWT5lq 9du0WRDoYVAEhaArg4vYOodF7pi1rsmHZI3aU7NiVNfTGXQ01krMhqJaXDbEANws8SdG Pk3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718358170; x=1718962970; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=t2iOzSAnOwkGstzhGfNY8EkOug1CltGdGxTCzaoAIQ0=; b=walLIDw+VmD1ofgC54FFALaf7x6BBe5045pNlN5gcOQrRvMaveGMJXxn3mDbb0Wazj YbpnFIT2HGZeszyv9oA3Cubx9R/u44VhkT46PXq0GJoUaN8zQmT23+BwOci/Z/p6Wnnb +h4b26MTvRY1945i0xkVgrBpBPdpzoS7MLCrFjTsWFaZUrAC4pygZKMN2uhlVY27crle vqx5E9HpBBUmPn1tdVNSxhOoUa4VU5YfiQ9e/jvf+Rm6Fp7xbZBM4tLQ/6Um6AtNz/M7 VUG/kC8hvwpnhZJedT+vy9s8z9EIenFmkubReRl5rnAbyZQdTI70IIa3UmuVjSuSeO+Y Daeg== X-Forwarded-Encrypted: i=1; AJvYcCWNpPxx3Y1I79qpTPpJmcQOEukh1z6ZS8Z8nk/P3ct9grCICIcl3w7iNUGCV7GHE3BRSYdgHuct9D6LTs7Cv+VDO6NTiFtNiNRVxHArculuHLmAka7xkodwXPV4MQ7tFxGi9hJ65d/yNQq3YnTRVAldquf2gvk/OWah+G2B+HALuSOa4uCLXL35 X-Gm-Message-State: AOJu0YzJWtDxeQHJcCAJmIJnLLTIJEdW5gtQL+8wK70H0EUXPRFCcZVA ozZIMJOT6HPO5F0GdPhm7xOD5ndx+DRwISUWiLtvWBXMYV16hiSL X-Received: by 2002:a05:6512:2346:b0:52c:939a:d70a with SMTP id 2adb3069b0e04-52ca689051fmr829685e87.0.1718358170109; Fri, 14 Jun 2024 02:42:50 -0700 (PDT) Received: from fedora ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52ca287affcsm455573e87.232.2024.06.14.02.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 02:42:49 -0700 (PDT) Date: Fri, 14 Jun 2024 12:42:35 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Greg Kroah-Hartman , "Rafael J. Wysocki" , Matti Vaittinen , Wim Van Sebroeck , Guenter Roeck , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org Subject: [PATCH v4 0/6] Support ROHM BD96801 Scalable PMIC Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="OFgH1s8YHkdjEScU" Content-Disposition: inline --OFgH1s8YHkdjEScU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Support ROHM BD96801 Scalable PMIC The ROHM BD96801 is automotive grade PMIC, intended to be usable in multiple solutions. The BD96801 can be used as a stand-alone, or together with separate 'companion PMICs'. This modular approach aims to make this PMIC suitable for various use-cases. This series brings only limited support. The more complete set of features was sent in the RFC: https://lore.kernel.org/lkml/cover.1712058690.git.mazziesaccount@gmail.com/ The v3: implemented also support for ERRB interrupt and setting a name suffix to IRQ domains. That work was postponed and will be continued after some unrelated changes to irqdomain code are completed as discussed here: https://lore.kernel.org/all/87plst28yk.ffs@tglx/ Revision history still tries to summarize changes from the RFC for the reviewers. Revision history: v3 =3D> v4: - Drop patches 7 to 10 (inclusive) until preparatory irqdomain changes are done. - Cleanups as suggested by Lee. - Change the regulator subdevice name. (MFD and regulators). - Minor styling in MFD driver v2 =3D> v3: Mostly based on feedback from Thomas Gleixner - Added acks from Krzysztof and Mark - Rebased on v6.10-rc2 - Drop name suffix support for legacy IRQ domains (both irqdomain and regmap) - Improve the commit message for patch 7/10 v1 =3D> v2: - Add support for setting a name suffix for fwnode backed IRQ domains. - Add support for setting a domain name suffix for regmap-IRQ. - Add handling of ERRB IRQs. - Small fixes based on feedback. RFCv2 =3D> v1: - Drop ERRB IRQ from drivers (but not DT bindings). - Drop configuration which requires STBY - state. - Fix the register lock race by moving it from the regulator driver to the MFD driver. RFCv1 =3D> RFCv2: - Tidying code based on feedback form Krzysztof Kozlowski and Lee Jones. - Documented undocumented watchdog related DT properties. - Added usage of the watchdog IRQ. - Use irq_domain_update_bus_token() to work-around debugFS name collision for IRQ domains. --- Matti Vaittinen (6): dt-bindings: ROHM BD96801 PMIC regulators dt-bindings: mfd: bd96801 PMIC core mfd: support ROHM BD96801 PMIC core regulator: bd96801: ROHM BD96801 PMIC regulators watchdog: ROHM BD96801 PMIC WDG driver MAINTAINERS: Add ROHM BD96801 'scalable PMIC' entries .../bindings/mfd/rohm,bd96801-pmic.yaml | 173 ++++ .../regulator/rohm,bd96801-regulator.yaml | 63 ++ MAINTAINERS | 4 + drivers/mfd/Kconfig | 13 + drivers/mfd/Makefile | 1 + drivers/mfd/rohm-bd96801.c | 273 ++++++ drivers/regulator/Kconfig | 12 + drivers/regulator/Makefile | 2 + drivers/regulator/bd96801-regulator.c | 908 ++++++++++++++++++ drivers/watchdog/Kconfig | 13 + drivers/watchdog/Makefile | 1 + drivers/watchdog/bd96801_wdt.c | 416 ++++++++ include/linux/mfd/rohm-bd96801.h | 215 +++++ include/linux/mfd/rohm-generic.h | 1 + 14 files changed, 2095 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/rohm,bd96801-pmic= =2Eyaml create mode 100644 Documentation/devicetree/bindings/regulator/rohm,bd9680= 1-regulator.yaml create mode 100644 drivers/mfd/rohm-bd96801.c create mode 100644 drivers/regulator/bd96801-regulator.c create mode 100644 drivers/watchdog/bd96801_wdt.c create mode 100644 include/linux/mfd/rohm-bd96801.h base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 --=20 2.45.1 --=20 Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =3D]=20 --OFgH1s8YHkdjEScU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmZsEIYACgkQeFA3/03a ocX58Af/e4WoONr6xXqNo5iiqJocjHn5lMOCw3ZvjpGsSrlbhc5HCnkw3wUv+hiO 7YUrdyoppjodh+tklX7Unk8Y7GrIJbZuxLDweXYh2KB8ac76sSWfFIV38QXSuuqe 7xlqxBfhYwWTAhXQ409wnk/aoK2pI2u0ppl/MMZsF8TPLyyPDnziV9gKDLXrjlcI PMGrpnxNKvn2mfB3SqVnMdViPjXon9ynePBLxpA0JLZCFk+Q27z8pwH+Y6i1prbN vLt/WMQuxNaP6sd5UerCZWvG+FDSNSXkkIOrIQ9EgfhT+bqniBFjOQZqMgsBHisD rvQWkfbfgt8j1ocCYPR7KY5SEIt6xA== =TFGg -----END PGP SIGNATURE----- --OFgH1s8YHkdjEScU--