Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp886938lqz; Sun, 31 Mar 2024 03:58:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQQBPKmfPh1Pm7LP6QDuDaul0form9Z5U00qWmuSOAUJtNLrkd484gg5vD5KINHPMWtj0l0nL/MMcXQPcHqnv3Te4n/C5O5o32zu+v4Q== X-Google-Smtp-Source: AGHT+IH6mLaTSFNksewM0j+d9Dxco4nvMWm+V2XrwWYlZYQ8iyxDrXChIHOG/N7F04EBP4nwwAYY X-Received: by 2002:a05:6870:959d:b0:229:e422:4ff9 with SMTP id k29-20020a056870959d00b00229e4224ff9mr7150915oao.18.1711882732849; Sun, 31 Mar 2024 03:58:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711882732; cv=pass; d=google.com; s=arc-20160816; b=vIdKwI0SEC2XhKDt9E+pYk1/9edZCwjPZ2r88r8AU8A56fdGGHPkEnFqcFFNsLrR2/ aH24x+4731ym8m9+P2S6FayO9NtaOu6nvcKxTkPCtoSeoEz/djrw5p4paJeGiumRSq8A SksZAHHDTHmO9RWlfFAKwOojdZgY88D2RYnagbFH5s1PmT7d10OmCLA4VJrA7BCUSd4s vVd14/yMzwh7d1dqrW04PZixkJqdILjJ0DUl2pyLKVQ4yfp2Stqhz19tjHt6wpsZHTWF DFy53Ual7xJ5tLSMs3wbnAugGAUjqhlxq+RaLeqNg3FjScC48vykm6loGh/M7ZWucaJj 7A3g== 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=se1snFc1nEa23e5++OW+940z0FemIDjAEXoDVx129f0=; fh=L0rhgpKIUgYWpq8ylUAxZvOqVWOhfbt+P2rLuyTk6fc=; b=htppQGGTv6nsFBjU32ZCM1TaKHfs2fpshmtWezpgXHY2wEk/uU98zpEIoFg/+w1kAA 86j2FFdydufhfzkLfU0JX3xKEkof7lg5MVzJfJaQw8d0UVm+BpTGbx/dF4/Y+JV/Rhgm zi3RrYTekLY4SYDp0skPFS9ETda91w4rq3Yc1nnIMluf9Hc+kQwxBzanABICkzGi9zin AT8LjhCT/Rd7rZusatj10saOPzrPyEecS72DgkcOkPKNEiMQ7KdU+HaSrnWHq+47J64I rYao5JIZuK2f6Uh8f+lQ/cc3UqyGvudli80PZ3d3B0KfQg2UJQWWx8AJZSWtp+nfaj2O 4+/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mff.cuni.cz header.s=submission header.b=beb7ixB7; 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-126043-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126043-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. [139.178.88.99]) by mx.google.com with ESMTPS id jw20-20020a056a00929400b006e6ca7264b0si7566478pfb.42.2024.03.31.03.58.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 03:58:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126043-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=@mff.cuni.cz header.s=submission header.b=beb7ixB7; 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-126043-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126043-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 7D04D281E0D for ; Sun, 31 Mar 2024 10:58:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB4CFC8DD; Sun, 31 Mar 2024 10:58:45 +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="beb7ixB7" 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 CFA3940C1F; Sun, 31 Mar 2024 10:58:42 +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=1711882724; cv=none; b=qNJbjdkwmCX8sLvf9WzxIJnb7deCTaQm+a1b3qx8ARN5uIRNBfxxcxhaWEsqDB/U0VgSadSAQLc+a8R8WyryArJ/sh+lS0l0yHB7O09ceN6vK1wJTiqBwVho1YGYjlx9Bksn5QJO7Adcdi+dYBy4M5iaZxQOn0YP1NnQnkiiKe0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711882724; c=relaxed/simple; bh=9rHX+cV9QXRg2F5l0hx77TAOVovZ5h8kyP/0xF22UlY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=G2hB6FUgPWHdcjjrkkqmqGkJqHeAkS9bO2RzJ+75xYVpDIQREPSbWn6JPpHpSnqQa3cule/HZ3zcTdiVqml26r+GYxoecPVDIVZeswCZXcZj8KhwOzRnb/BEHL3Tef5C/1lON8M6cpOUCT2vZ1MGv1vAADDvyc2RoZytroFtsA8= 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=beb7ixB7; 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=1711882691; x=1713182691; bh=se1snFc1nEa23e5++OW+940z0FemIDjAEXoDVx129f0=; h=From:MIME-Version; b=beb7ixB7UpScu06x0jPvUBtf2vdL0C/RNQhVcApUVXKzBhB6Q1ccNKyGnh9bl7Wl1 6O+YKrMXSuhdDfC2wRSJmLTxc4f6W4M4IRHNehLoaeDUIX5BeIp46vUZRVcLXvv7fg cQGpi9bN5Dka/ILl40vLi9m6px/S7eB1eLgwqFdfP0rHNTHetCrW2LSlXGs+Qxq6p1 iDciDZdlTHtwznldZm00C7BLoYUx6Zo2lbgC67QZnA54M9D8L+dXC1/e0/OLMNWj2N aeY30yJCVswio/ksQy5YRAAFkesGxlt6sSUH2hDWxMNx0+UTx73sC5BUNJNBeYmfUi acxCKTQAAHjrA== 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 42VAwAu2095400 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Sun, 31 Mar 2024 12:58:11 +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 1/5] dt-bindings: mfd: add entry for Marvell 88PM886 PMIC Date: Sun, 31 Mar 2024 12:46:54 +0200 Message-ID: <20240331105608.7338-3-balejk@matfyz.cz> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240331105608.7338-2-balejk@matfyz.cz> References: <20240331105608.7338-2-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.44.0