Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp509201lql; Mon, 11 Mar 2024 09:02:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5WoQzXCppL7zI5innj//aG56M2AmKz0i7+DKKz22rj/Pv28L9MbGPepJfDyZ8HIME2pktOZ67JnuCqgzWkRA7MrHIyeG6TNwd+MxqsQ== X-Google-Smtp-Source: AGHT+IEdI1YpMLvLm8hcKqSemODvy5XrHBA0C93exf1FF2+MTsxN6w3j6V28+qJYs4QrHolNo6bv X-Received: by 2002:a50:f60c:0:b0:566:be15:9a88 with SMTP id c12-20020a50f60c000000b00566be159a88mr4586904edn.20.1710172974750; Mon, 11 Mar 2024 09:02:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710172974; cv=pass; d=google.com; s=arc-20160816; b=oEtllZwXuzTqklmp31irpIIdWOTcU5DvZ3lCqck9Ae1+CHMWJkPZMw7K8zJq8sbo61 ny662AunUXN8NzcRDy10HjLPCgfPbWZyWU/46nqMtCsQ5rdVLQOisdVJxwN9KAl2UgBX KBkUEj97g+wrF1uj1SgD4cbjUikhjvXjzAcCeYJnxb4BweEtWdsyM8oC0aeJ8buHDV4o fNEaLqIlFP+NpFTfEXzz1MCTYDAaIXOWXIdpPqMhHQxdup6hso4h754iGJ8bidShx/ak n4HWmV0Mikw8OM95E4Gy4NK2Ls7kn1A0uVw3+tt6+L7Ki5TzX98jybXYIZkpvOZ3rddy fbBw== 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=p44WSKtbT1OeJYkibt9v8KEgYXBY0Om9qjQgK3kDuxI=; fh=XPznAPHjywHhKJCA3zzSjmtYugAvBjl32NkRZBKKmSM=; b=dL5Ot+8fTuyl4/vbkQm3p9Np1pz2ROIajGCRhEkOSXL55bIMmGgK/9+o9/a5RvfHaD 3tcurqblySRGkqNA14lmCPsWhk8hgbAB8gr45cOtn7MDeTde8eOm0OV8eABzj+ieYhbp SBAYxgjdJOEt4EHkV2cZy962gBv305GEpODQf3hplM4iyxLo66bT1VYQTaaTyHUy0aPB NByEma2ejUvkdLch0YghQL5HN5klfiMzrwNecVWFlMXtKE8z3/wQf3aPVWc8CQ1rb5pL pRPJd7VcCuk6n2Z+W2vPe28k0YM7Hb2NzxJvsApPBFVJbHbRlFG1gaGvuVnHlXOjzREe p41g==; 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=nQGldqRT; 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-99173-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99173-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 t35-20020a056402242300b005685d8dc06bsi1089767eda.371.2024.03.11.09.02.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 09:02:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99173-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=nQGldqRT; 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-99173-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99173-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 5A7371F21165 for ; Mon, 11 Mar 2024 16:02:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71C924D59B; Mon, 11 Mar 2024 16:01:56 +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="nQGldqRT" 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 0E99E4206B; Mon, 11 Mar 2024 16:01:51 +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=1710172915; cv=none; b=WLm9BMtu77i88A0Q7roZ00NdBwORrQswl2wXnlnTJEulOkAx4IYRq146IgMD4L2hWHacSEYPoseFyVW1TJHUYWqT1ghitSIoJ4Y/Rd1Kb/TWjmaNI0vXMbAVNRI7EkOrLgxzf5htsq96omZpIVs6mDt65UVuQX8dpZNkJ1nr6rg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710172915; c=relaxed/simple; bh=6WUjoQMP0Stg9FGRkDAMfYSvxTSIQUAWFNZz9PzwCes=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=E4dA2O5nN7LZM0UdQ7ndzsybzFWmwpykcCvUezEG39rhbyB8E6aP0IQyaxwzgN2uQOBQ+6CYQEbKFHX1qfNJ7a8C9Dm5pikvEc0A1BbKb6K4LL9GtNG/V+ZxezGsxo2EznsXhF4ndBHJ1CG0A3gG2OpCTUTluDp0XCUgh8qza9Y= 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=nQGldqRT; 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 43B7828470E; Mon, 11 Mar 2024 17:01:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gimli.ms.mff.cuni.cz; s=gen1; t=1710172910; 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: in-reply-to:in-reply-to:references:references; bh=p44WSKtbT1OeJYkibt9v8KEgYXBY0Om9qjQgK3kDuxI=; b=nQGldqRTpjkSwEO0iVvlFccoiV95EoDMLoPqCb0vhoJqYprYizKCPKeKZQuMN6XTW7vaoR iuG6DEYQeQ90LRykly1Z6PbWBKUlaZRVjluMfFoJoRs68w3RY+2SkWxYcNDXq+3spiRuUl ne3dVBWg/G59kVp7rTkT0JnXPhFi/GI= 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 1BA4E45665F; Mon, 11 Mar 2024 17:01:50 +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 1/5] dt-bindings: mfd: add entry for Marvell 88PM886 PMIC Date: Mon, 11 Mar 2024 16:51:53 +0100 Message-ID: <20240311160110.32185-2-karelb@gimli.ms.mff.cuni.cz> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240311160110.32185-1-karelb@gimli.ms.mff.cuni.cz> References: <20240311160110.32185-1-karelb@gimli.ms.mff.cuni.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 From: Karel Balej 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