Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4025851ybl; Tue, 21 Jan 2020 11:25:28 -0800 (PST) X-Google-Smtp-Source: APXvYqwxLX0JAFe2ROYWLEBtNeZ7UxAdFUbZ8gLjjXGWiFpQ+STceX6P1gyfImpa8+NtJrLkUUMB X-Received: by 2002:a05:6830:2147:: with SMTP id r7mr4840287otd.94.1579634727946; Tue, 21 Jan 2020 11:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579634727; cv=none; d=google.com; s=arc-20160816; b=Vzc0fNC1jvHN+OY8Er2tIGBLayvYpqSdWYm3+zefsBMQ6PkmW0uW8nUzIXsqTXp7pK LrJ00c/GE8qB3glNftqPJ5miPhETuEjXzUpW5aDCXXJqt9opxdVo6uBtwhDSlF5BZJ2F M7/OSwnW3jKOpphUv05jruHZvloYrQ5GcnAeumNu5oMzXRCWouwXLNdfvuLRDnIDtBhl gU5YRIOB+6QCWpEIaIHhRIk6tYVNLzGAKorBKD4FfklcZjcjQzFWwC8+C2pmUBOZ+Fqd Q9He7OEXUm40Sjx6iZ5+8Iyqwe1UuLI945A0ZYrSedp8cQEZSh7o8ADvyRlmYewMTdBR asYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=d0px2i8+1RnbTOMeb6bSQy20/g4X1fdKW2WT1DhnaIc=; b=JuR/aCt47nDWoqYynsDJf/yv9Be7dvXWnIPexT54rzsqlqkWH2AyIF2nceIBtNRMfp 2ZscYK5I+PF/1X9ljs4Lyr6HGbEDNHs6WCl6Qyj3BR7lrbyNa80YzvnxNX7pEH5xbups Yh9YWvliK+d/pXLL1gnmnvyfO9eJy/Z3W5P6DEBydj9aZ2Eqm7qZBx+uvZTKWEso6T5a 6pSpcnQKzjeeiVddRvwzogbc2b53xlbBNPuH8vRhXI3IWFcRb8mPtOznbVa0t25jAm6w SLe8FJq/HIAnFTRLTooBI8NmFaClJJIfSzcX9QvyLaK4FFgBndfzsSGAZSWgCpnbX7dP Nfbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f01L+ITZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u191si19445891oia.86.2020.01.21.11.25.15; Tue, 21 Jan 2020 11:25:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f01L+ITZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728767AbgAUTYS (ORCPT + 99 others); Tue, 21 Jan 2020 14:24:18 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39621 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727800AbgAUTYS (ORCPT ); Tue, 21 Jan 2020 14:24:18 -0500 Received: by mail-wr1-f67.google.com with SMTP id y11so4610579wrt.6; Tue, 21 Jan 2020 11:24:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=d0px2i8+1RnbTOMeb6bSQy20/g4X1fdKW2WT1DhnaIc=; b=f01L+ITZtZQnYqNIoitmaZkjZI5eBo5Wo/P2W3JB3e3nK7fJYwwZKdXPJCdr66V6Lz YaNNMOeXa0raTDdJbpDUQPVpEoKgHiB+fe3fJWn6YDMamXwSbXIAaLtNefPZ3OuQoJB+ XqSLkXuXp2fGZQPg56dya8vg4P8SeCDFXbssV54DM7BPs01XlJvLTixLe5S8SSsVi0Lz pLyH8TebcZ12YMZVdX0hYefWZjSmVurBomV6qBTRU7L6P1d1ICheUkuzLdRkK+KSBUdW Sru3hltXi+3gQAXVcLGPvDbRDsHlIRJseF2Mm8+4Cm3MLfu7sURrb942D9TM9Cx6EHDf LuwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=d0px2i8+1RnbTOMeb6bSQy20/g4X1fdKW2WT1DhnaIc=; b=ldv1vpdzXLfbNMOdqX0eqqmOCmnThbxRr4d2zNrCoG/X+m6bP6rnrLNuGIQpDpHoGG iAqyR5zl2qOyiqA4hSFhQtVR8hNkkIlrWxG5Uya9pPtq7YnIAepss+R1hDwey059mvWU Z1ZbDZDxTFrnM4ppT5+8UJi4mNlAZOjynyNI3zVk4PLk0uy7NYS/DT2B1SBBviErNzfq d/5XGXozbddScDipreA8/qbKDcLmJOdzSzDVkg0590MiCIcYJbg2ulCIAp6SM3OhDO4b GkoAt3JtlmLLVVcmQTE3k36ihrbolYiblQ3hWTIPItSKJoAEUMFPSPPZMeRZn0daltZH BA/Q== X-Gm-Message-State: APjAAAXXGZSQ7H6Vc9tpH193F3hS6bWmzQzVSo8M4Mh0MwTS+PGGCTO0 tZ/scFi0MsV1QsseCEy9fjk= X-Received: by 2002:adf:eb89:: with SMTP id t9mr6843387wrn.5.1579634655451; Tue, 21 Jan 2020 11:24:15 -0800 (PST) Received: from localhost.localdomain (p5B3F62F0.dip0.t-ipconnect.de. [91.63.98.240]) by smtp.gmail.com with ESMTPSA id o1sm53401333wrn.84.2020.01.21.11.24.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 11:24:14 -0800 (PST) From: Saravanan Sekar To: sravanhome@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, mripard@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7] dt-bindings: regulator: add document bindings for mpq7920 Date: Tue, 21 Jan 2020 20:24:05 +0100 Message-Id: <20200121192405.25382-1-sravanhome@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree binding information for mpq7920 regulator driver. Example bindings for mpq7920 are added. Signed-off-by: Saravanan Sekar --- Notes: Changes on v7 : - added regualtors child-node under patternProperties, added required - mps,buck-ovp-disable is not common property, regulator subsystem provides only over current protection support. .../bindings/regulator/mps,mpq7920.yaml | 118 ++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml diff --git a/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml b/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml new file mode 100644 index 000000000000..d853690f34c4 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml @@ -0,0 +1,118 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/mps,mpq7920.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Monolithic Power System MPQ7920 PMIC + +maintainers: + - Saravanan Sekar + +properties: + $nodename: + pattern: "pmic@[0-9a-f]{1,2}" + compatible: + enum: + - mps,mpq7920 + + reg: + maxItems: 1 + + regulators: + type: object + allOf: + - $ref: regulator.yaml# + description: | + list of regulators provided by this controller, must be named + after their hardware counterparts BUCK[1-4], one LDORTC, and LDO[2-5] + + properties: + mps,switch-freq: + $ref: "/schemas/types.yaml#/definitions/uint8" + enum: [ 0, 1, 2, 3 ] + default: 2 + description: | + switching frequency must be one of following corresponding value + 1.1MHz, 1.65MHz, 2.2MHz, 2.75MHz + + patternProperties: + "^ldo[1-4]$": + type: object + allOf: + - $ref: regulator.yaml# + + "^ldortc$": + type: object + allOf: + - $ref: regulator.yaml# + + "^buck[1-4]$": + type: object + allOf: + - $ref: regulator.yaml# + + properties: + mps,buck-softstart: + $ref: "/schemas/types.yaml#/definitions/uint8" + enum: [ 0, 1, 2, 3 ] + description: | + defines the soft start time of this buck, must be one of the following + corresponding values 150us, 300us, 610us, 920us + + mps,buck-phase-delay: + $ref: "/schemas/types.yaml#/definitions/uint8" + enum: [ 0, 1, 2, 3 ] + description: | + defines the phase delay of this buck, must be one of the following + corresponding values 0deg, 90deg, 180deg, 270deg + + mps,buck-ovp-disable: + type: boolean + description: | + disables over voltage protection of this buck + + additionalProperties: false + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@69 { + compatible = "mps,mpq7920"; + reg = <0x69>; + + regulators { + mps,switch-freq = <1>; + + buck1 { + regulator-name = "buck1"; + regulator-min-microvolt = <400000>; + regulator-max-microvolt = <3587500>; + regulator-min-microamp = <460000>; + regulator-max-microamp = <7600000>; + regulator-boot-on; + mps,buck-ovp-disable; + mps,buck-phase-delay = /bits/ 8 <2>; + mps,buck-softstart = /bits/ 8 <1>; + }; + + ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <650000>; + regulator-max-microvolt = <3587500>; + }; + }; + }; + }; +... -- 2.17.1