From patchwork Wed Dec 7 17:37:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravanan Sekar X-Patchwork-Id: 13067463 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B10BC47089 for ; Wed, 7 Dec 2022 17:37:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbiLGRho (ORCPT ); Wed, 7 Dec 2022 12:37:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbiLGRhm (ORCPT ); Wed, 7 Dec 2022 12:37:42 -0500 Received: from gateway34.websitewelcome.com (gateway34.websitewelcome.com [192.185.149.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DC51DA3 for ; Wed, 7 Dec 2022 09:37:38 -0800 (PST) Received: from atl1wswcm02.websitewelcome.com (unknown [50.6.129.163]) by atl3wswob05.websitewelcome.com (Postfix) with ESMTP id 77FC215BDF for ; Wed, 7 Dec 2022 17:37:37 +0000 (UTC) Received: from md-in-79.webhostbox.net ([43.225.55.182]) by cmsmtp with ESMTP id 2yMQpMpVOpVRN2yMSpmBnl; Wed, 07 Dec 2022 17:37:37 +0000 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linumiz.com ; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=+5Bpf6w0b7QD/SF/Lp8AD5I90AMS2QjMrFwXHi0/feQ=; b=BMC/0ASwRm4c34g3YXLxQJf8ym nv8V74ujCjzfXEwZAY2JzdDKRyWY5ZozEMwwZpDcmdql2jTSq//V3tlov1u0Wzf6ozsYc0a5jsP3y NlHXqTQD9M5kPFbMHxRRMi1eD1PqtCXBvPLvCyMwc4K3eENYrI9f3EBopyE0NghCsY7aMPR+eBdK5 RygqEg0YSBpaihueTKbypLWiuKNX9q3QjOTfcRqEw1G8LMox+b2EASur4KyobGCeZTyC3hAA2rTcU +/kzYepATjWLE0p+jt8r48nnf3TZo/kuS33X+plwqh9gE0fe5dxvGEXBsJTBxDn9yC60ak0jwFz3+ WFbJqavg==; Received: from [106.222.117.249] (port=8172 helo=discovery..) by md-in-79.webhostbox.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1p2yMP-0025qb-ON; Wed, 07 Dec 2022 17:37:33 +0000 From: Saravanan Sekar To: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, marten.lindahl@axis.com Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Saravanan Sekar Subject: [PATCH v3 2/4] dt-bindings: regulator: Add mps,mpq7932 power-management IC Date: Wed, 7 Dec 2022 18:37:14 +0100 Message-Id: <20221207173716.123223-3-saravanan@linumiz.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221207173716.123223-1-saravanan@linumiz.com> References: <20221207173716.123223-1-saravanan@linumiz.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - md-in-79.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - linumiz.com X-BWhitelist: no X-Source-IP: 106.222.117.249 X-Source-L: No X-Exim-ID: 1p2yMP-0025qb-ON X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (discovery..) [106.222.117.249]:8172 X-Source-Auth: saravanan@linumiz.com X-Email-Count: 19 X-Source-Cap: bGludW1jbWM7aG9zdGdhdG9yO21kLWluLTc5LndlYmhvc3Rib3gubmV0 X-Local-Domain: yes X-CMAE-Envelope: MS4xfN/NqocAAo1Kh7i4hRaIZFlnlyovPzquD6F1fbXyEqUFkyMLKd0BlM9lvlIpFbv7O2jTT4j9kmJrWRyHqMNub9J6wDgwoelo/mwMI7rhIZ/phdgoE2FA GUlz63h7uSwilm4luFL7z3184L8vdGVhTJ2kKOgi/Ic4cZ2pkArhYwbJK/PZsnREr/KBF5fK4LzkawcwJZzpPjAZLA4OixXlNQQ= Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Document mpq7932 power-management IC Signed-off-by: Saravanan Sekar Reviewed-by: Krzysztof Kozlowski Acked-by: Guenter Roeck --- .../bindings/regulator/mps,mpq7932.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mps,mpq7932.yaml diff --git a/Documentation/devicetree/bindings/regulator/mps,mpq7932.yaml b/Documentation/devicetree/bindings/regulator/mps,mpq7932.yaml new file mode 100644 index 000000000000..2185cd011c46 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mps,mpq7932.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/mps,mpq7932.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Monolithic Power System MPQ7932 PMIC + +maintainers: + - Saravanan Sekar + +properties: + compatible: + enum: + - mps,mpq7932 + + reg: + maxItems: 1 + + regulators: + type: object + description: | + list of regulators provided by this controller, must be named + after their hardware counterparts BUCK[1-6] + + patternProperties: + "^buck[1-6]$": + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@3 { + compatible = "mps,mpq7932"; + reg = <0x3>; + + regulators { + buck1 { + regulator-name = "buck1"; + regulator-min-microvolt = <1600000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + }; + + buck2 { + regulator-name = "buck2"; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + }; + }; + }; + }; +...