Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp617064lqh; Fri, 31 May 2024 10:53:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZF3SCOM3KVXcjyTGR5O1VNBb+VGVtglHacFevBrdMr+WJVc2XqcNKUxN5AR50m/llDCQ787jXju7B5WQlJF0xVRnYBnwfsHIbdcg1YA== X-Google-Smtp-Source: AGHT+IGHCETLjzeM4afCuRJs26AF7yW1L+72PAgHFTnfHt3ZRueu1Maw0TeraCLs8msYAu8H5FrG X-Received: by 2002:a05:6a20:2590:b0:1af:8c2f:5f5e with SMTP id adf61e73a8af0-1b26f164267mr3174564637.28.1717177994105; Fri, 31 May 2024 10:53:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717177994; cv=pass; d=google.com; s=arc-20160816; b=HlTkYZMWe2hK2buX2IU0s9v22Nwh0itFccSq33qHLh2tJ+uYbNoeaDsM421d6S6H83 ceU0w+Jvo91SbneCjXb2zPdnvgiHpIjmrZoLd3/p3OXHgHBW4XLaB2wnsNZacFdztm8d qt5lWYUaGKTN6DkVZU9ORX4jWgjiY33dMigw6ach70KpQcksftqzQ7jBkHfKVaE9NUZ7 lHkq4dzRbGw/lQ5PmTt6uGIogi/QNXolq8A30uZA7eWaj8gtpsXzMOcIEm9CpRbn3crl nOJ4H23qP13/wHEVi6yKwvnuu+FK7Rt0C0jZg3YkNa7vO1DlclZ5cwGDHM66/TMBkIdA dCJQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=S4yar11jBskM5NXE2uCCskBWs3tTNTOtonw/YB5eXo0=; fh=fMj999yRE4t8Lbh5PeP12BBF/1UAW0AuXV4HlxmoxBc=; b=uxmlu/W6LqKd+9neZoDjoIyxwMM6EBw0DZezXE8/xpigTe1YBkN3x046V8jU8dtHI+ q9qXci4V2Gl9WyIez8G0wo1WLoUIs4lJUc1gLHxw2uB9FPWaOJ0+I3ZXhnIGMrtIVHY+ Tqu2WXlQVaBL4ZoBEi/FC2YAzOpt59lE0P/w8OhZ3YT4wxY/cj6ay3p3L9XQry1U2pRV Lm9DO8+JonUAwqtx85OoFF95awpnhNbkrP3g01+ptK8bc21cC5IxRq2zUA4sWv2Pg28S ueObxXWdTebvjNVy1dSHCQ17dvkZJ0nr0YubQ3kfwq7Aw+SmS4Io9JEjZlHzaaoIfoTa 8Upw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mff.cuni.cz header.s=submission header.b=GElUbOIN; 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-197270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197270-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 41be03b00d2f7-6c35b40be10si1906397a12.571.2024.05.31.10.53.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 10:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197270-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=GElUbOIN; 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-197270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197270-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 B4455282654 for ; Fri, 31 May 2024 17:53:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 752D617C9F4; Fri, 31 May 2024 17:53:07 +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="GElUbOIN" 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 E1A421DFCB; Fri, 31 May 2024 17:53:04 +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=1717177986; cv=none; b=XB+7koBLnXHKVdy8k5LcEh8teh34K4J1tdq3mZcSRVMFJSp6UQ5TusztJRE7KNQI9igazyA83TGiD7alU41XhUQxlKZWyCi9BDFugJgf7nMe9FHvksb43HgP5IHP1YHBXOcRp98FPCxm7znvl4aDznjyD37mE7QmuPIe8Ec1bmg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717177986; c=relaxed/simple; bh=hE4Opi8q88sj3bbE4tAGJfv+i/kDFTsswL5/vRLXjK4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ujF50/f4tJYAcGXkAsZR7QkHS0TbuCny/FH+FNfyn1ZMZeXueBQPoJXlU8gTuIGDmVDOx3J5YJUAlLnwcvhOoWTixLyxCTb0miVwX1Hw9FibbmN3DqLqJTMrceqbmENp23gLOnxIkNiqOCqfGO94I43A7FACcTmtk2nq4pFx8J4= 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=GElUbOIN; 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=1717177963; x=1718477963; bh=S4yar11jBskM5NXE2uCCskBWs3tTNTOtonw/YB5eXo0=; h=From; b=GElUbOINYK4b3I8nCHwpy1dVF8nzuxozRSHEaJrwjbQvOIjPl0dH1lV5pMjHPM3rd RzWF6ghkKugZQygBnc39jZZML5oiK8NYFd5d1dii9PKnrBKUN/kSb+xweVD/anVvDw LyYIXRXYGU6fr0sVVqDAZUtqcLpLkminGGCqUQu0ej46v59Ff3TN0nEkUIK+auuqd+ +qfeRiH0YKYJvogHrA5IdPMR2nbyYzzKzENIuIeaYK+duZAbD0sr6rkp6v4ByGGs6I TWaGXQslSyuPSE7nie8E8oP3su9ZrIb0lnrGsT10p78V3APbIUk7aq9PQ1CNDu/ofd 9Zsc2ExGBBZsw== 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 44VHqg4C001112 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Fri, 31 May 2024 19:52:43 +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 1/5] dt-bindings: mfd: add entry for Marvell 88PM886 PMIC Date: Fri, 31 May 2024 19:34:56 +0200 Message-ID: <20240531175109.15599-2-balejk@matfyz.cz> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240531175109.15599-1-balejk@matfyz.cz> References: <20240531175109.15599-1-balejk@matfyz.cz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Marvell 88PM886 is a PMIC with several subdevices such as onkey, regulators or battery and charger. It comes in at least two revisions, A0 and A1 -- only A1 is described here at the moment. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Karel Balej --- Notes: RFC v4: - Address Krzysztof's comments: - Fix regulators indentation. - Add Krzysztof's trailer. RFC v3: - Add wakeup-source property. - Address Rob's feedback: - Move regulators into the MFD file. - Remove interrupt-controller and #interrupt-cells properties. RFC v2: - Address Rob's feedback: - Drop mention of 88PM880. - Make sure the file passes bindings check (add the necessary header and fix `interrupt-cells`). - Other small changes. - Add regulators. Changes with respect to the regulator RFC series: - Address Krzysztof's comments: - Drop unused compatible. - Fix sub-node pattern. .../bindings/mfd/marvell,88pm886-a1.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/marvell,88pm886-a1.yaml diff --git a/Documentation/devicetree/bindings/mfd/marvell,88pm886-a1.yaml b/Documentation/devicetree/bindings/mfd/marvell,88pm886-a1.yaml new file mode 100644 index 000000000000..d6a71c912b76 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/marvell,88pm886-a1.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/marvell,88pm886-a1.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell 88PM886 PMIC core + +maintainers: + - Karel Balej + +description: + Marvell 88PM886 is a PMIC providing several functions such as onkey, + regulators or battery and charger. + +properties: + compatible: + const: marvell,88pm886-a1 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + wakeup-source: true + + regulators: + type: object + additionalProperties: false + patternProperties: + "^(ldo(1[0-6]|[1-9])|buck[1-5])$": + type: object + $ref: /schemas/regulator/regulator.yaml# + description: LDO or buck regulator. + unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + pmic@30 { + compatible = "marvell,88pm886-a1"; + reg = <0x30>; + interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&gic>; + wakeup-source; + + regulators { + ldo2: ldo2 { + regulator-min-microvolt = <3100000>; + regulator-max-microvolt = <3300000>; + }; + + ldo15: ldo15 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + buck2: buck2 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + }; + }; + }; +... -- 2.45.1