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: 631664 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 0CF31C352A1 for ; Wed, 7 Dec 2022 18:00:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229564AbiLGSAY (ORCPT ); Wed, 7 Dec 2022 13:00:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229818AbiLGSAS (ORCPT ); Wed, 7 Dec 2022 13:00:18 -0500 X-Greylist: delayed 50913 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 07 Dec 2022 10:00:18 PST Received: from gateway36.websitewelcome.com (gateway36.websitewelcome.com [192.185.193.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A2E95CD09 for ; Wed, 7 Dec 2022 10:00:18 -0800 (PST) Received: from atl1wswcm01.websitewelcome.com (unknown [50.6.129.162]) by atl3wswob06.websitewelcome.com (Postfix) with ESMTP id AB69C6D9C33 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 2yMQpBIqaDsCK2yMSpG6FI; 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: 18 X-Source-Cap: bGludW1jbWM7aG9zdGdhdG9yO21kLWluLTc5LndlYmhvc3Rib3gubmV0 X-Local-Domain: yes X-CMAE-Envelope: MS4xfF+5NtPG0CSRhaRCtgJQHotO2v/G7/cRPqLr3VzeGEpT9p5lvEj8ujvD5xehdvC3Hh6jz0t0ZgoSHtQMeryXaVTbCWkTtyfmlBRFRuWxVflNYItuHUfl 91VTyldSVgdMw5efkWaPPA3ZdoAjhvt5hn4MTQEHR2nMjnYblnjuYHcrULV+VSUnpBgjfpLjrDEIDtdcHoFue/iEn0FNxrrRMCo= Precedence: bulk List-ID: X-Mailing-List: devicetree@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; + }; + }; + }; + }; +...