Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5722144ybl; Sun, 22 Dec 2019 12:48:23 -0800 (PST) X-Google-Smtp-Source: APXvYqy2XCx5pxzCi+DzPofFWRfolH1/Mw+v2a6CwMRXztvjrI7zNSwTbJ5z2l5cU0VnJ8viyswf X-Received: by 2002:a9d:6c92:: with SMTP id c18mr12090483otr.157.1577047703203; Sun, 22 Dec 2019 12:48:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577047703; cv=none; d=google.com; s=arc-20160816; b=rx76lKo8DAtD3wpWwUIY2KOJSYiMY3W5o8VDcC7lnbd7VPHFJy/uDS61BwAn7RLD7D Kg8DWaxWY6g0HE3Vf0zHZxBtjlYbd/19RsOr92fjIPKfzq3ziZ8zpC2mj280JEVjI8Th VJm2blgAzoJfDtA1fvSxvKeHcT5STbLI8V0wCmxYPWed4DPBcSH6fGP8YZgU5UyIutHA oAgRNs2XSDS9azY9AQSQQ60uiNS9UKSPF5B4MEC838u6Yk0/PvmhI8zmDusP3kN4mBm4 OXf7j4IkXZegcCz4DniwqNT1+buAgBBtM1tcAMxOQJPxbNv3VhtYgH0hn2dWb7Jt2p6D UdTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=pHJmzEWzu41VV42M7/F9DaNeFiiLD5jjP6m2fN21gQ0=; b=YTGhbWPxqSD3TvbZ0OCxsiPtoXD6Y6y+ZnIzfsrUmD0WpnIiIZgxTaUV+k3f3Az1D0 4ccFsrERpps7NRxomNnmU5QT53AUIxqe7j25HRWOWSkL/Gc7Kxe1tFaRy8eat50GpRIm 0WARqt0nbCaxqbmTgU8uRbdLxBist2rNlZ4fNDIDzvEKkOgXshAKG+IS5s4stwPcyY3c KkcBbhYkFLyqNBe9vX20JnxpKI6P+XNcSQ60bCRIobvydxdGPVu/X0bcg4gZXfxkIx1B YVshZaT8egDJKbhEqDz+tFS3e5rP4l42vPzMEwWwr/bmJPVgxPKjnQwCfycAkE49Gu7o ag0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=azF+6XiZ; 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 a9si1190017oid.132.2019.12.22.12.48.11; Sun, 22 Dec 2019 12:48:23 -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=azF+6XiZ; 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 S1726799AbfLVUpY (ORCPT + 99 others); Sun, 22 Dec 2019 15:45:24 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:32777 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbfLVUpX (ORCPT ); Sun, 22 Dec 2019 15:45:23 -0500 Received: by mail-wr1-f65.google.com with SMTP id b6so14659212wrq.0; Sun, 22 Dec 2019 12:45:21 -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:in-reply-to:references; bh=pHJmzEWzu41VV42M7/F9DaNeFiiLD5jjP6m2fN21gQ0=; b=azF+6XiZJ3a3UkKJ/l1+QOtCTbVyO8gUTFjKr91gFXNcPshHEsKKs8mXFOhGxO4A+t pDLHd1ceVwZIRqTD3Tg1Zfmh5/fKIlYRIsr7SIJC+Xh5R4UJIJ6C7ut5kZI646ga20Pc TAHYe237KooBx9Uv8AYNQt+Dpp+W2MCW/XUl2JSGJuEBYYv8Epvk6K9QRfeIo4EV7N2R UxkREtohNyEhbQj9iBiD+lpHDRqVYXv3vMlgo1TP8W7zPumsrmwPhbh3mX7y8Df3zmm1 vEoCACi31H8HXNE409wfMjvgHYGfW7Fy0CoCmaL52vg2vLttSAhALayjc4x9EqGsWq6G t2aA== 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:in-reply-to :references; bh=pHJmzEWzu41VV42M7/F9DaNeFiiLD5jjP6m2fN21gQ0=; b=dLNWes1WFC6bE+tIwk2B31wbvdYq+pKiK3L13BkZJHYuQ76jvuVFY7UkvjLYUo2dYp x6zE7yutN67/+yeA7BgVGSpq1+A3s8e9b5Gd6p+s+mn8MWX8eZdaEQl48OIY5e5N6AY9 3wCuLRJq2zg9fRQ/7JIZNnS/ovVPclMCH+AxQs7fvhUTiD0MO2FHGbBTkTdOzY5Q/cYD QWjNWWqsitRKizZmfNWB4rIWpks08MEji3+sNPgGLIBesDMswBsAfLXx0c2H3NOvO8kg rUj/dsHBiDB3n+qQRQSLDR8JaJ3JZNsp/QuLZ+3IzdEcqtBrIycV7O6VtjY7FMW9N9bM +Biw== X-Gm-Message-State: APjAAAWev9UHNxiyGEsxRxPgSMr07Je7FmYkk2O8M/b54QPXRC1+vXy4 ue951KwtkYevGt51EuC9mbw= X-Received: by 2002:a5d:4085:: with SMTP id o5mr26195461wrp.321.1577047521107; Sun, 22 Dec 2019 12:45:21 -0800 (PST) Received: from localhost.localdomain (p5B3F6AB6.dip0.t-ipconnect.de. [91.63.106.182]) by smtp.gmail.com with ESMTPSA id o4sm17603792wrx.25.2019.12.22.12.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2019 12:45:20 -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, shawnguo@kernel.org, heiko@sntech.de, sam@ravnborg.org, icenowy@aosc.io, laurent.pinchart@ideasonboard.com, gregkh@linuxfoundation.org, Jonathan.Cameron@huawei.com, davem@davemloft.net, mchehab+samsung@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/4] dt-bindings: regulator: add document bindings for mpq7920 Date: Sun, 22 Dec 2019 21:45:05 +0100 Message-Id: <20191222204507.32413-3-sravanhome@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191222204507.32413-1-sravanhome@gmail.com> References: <20191222204507.32413-1-sravanhome@gmail.com> 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 --- .../bindings/regulator/mpq7920.yaml | 143 ++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mpq7920.yaml diff --git a/Documentation/devicetree/bindings/regulator/mpq7920.yaml b/Documentation/devicetree/bindings/regulator/mpq7920.yaml new file mode 100644 index 000000000000..d173ba1fb28d --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mpq7920.yaml @@ -0,0 +1,143 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/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 + + mps,time-slot: + description: + each regulator output shall be delayed during power on/off sequence which + based on configurable time slot value, must be one of following corresponding + value 0.5ms, 2ms, 8ms, 16ms + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint8" + - enum: [ 0, 1, 2, 3 ] + - default: 0 + + mps,fixed-on-time: + description: + select power on sequence with fixed time output delay mentioned in + time-slot reg for all the regulators. + type: boolean + + mps,fixed-off-time: + description: + select power off sequence with fixed time output delay mentioned in + time-slot reg for all the regulators. + type: boolean + + mps,inc-off-time: + description: | + mutually exclusive to mps,fixed-off-time an array of 8, linearly increase + output delay during power off sequence based on factor of time slot/interval + for each regulator. + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint8-array" + - minimum: 0 + - maximum: 15 + - default: [ 0, 6, 0, 6, 7, 7, 7, 9 ] + + mps,inc-on-time: + description: | + mutually exclusive to mps,fixed-on-time an array of 8, linearly increase + output delay during power on sequence based on factor of time slot/interval + for each regulator. + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint8-array" + - minimum: 0 + - maximum: 15 + - default: [ 0, 6, 0, 6, 7, 7, 7, 9 ] + + mps,switch-freq: + description: | + switching frequency must be one of following corresponding value + 1.1MHz, 1.65MHz, 2.2MHz, 2.75MHz + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint8" + - enum: [ 0, 1, 2, 3 ] + - default: 2 + + mps,buck-softstart: + description: | + An array of 4 contains soft start time of each buck, must be one of + following corresponding values 150us, 300us, 610us, 920us + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint8-array" + - enum: [ 0, 1, 2, 3 ] + - default: [ 1, 1, 1, 1 ] + + mps,buck-ovp: + description: | + An array of 4 contains over voltage protection of each buck, must be + one of above values + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint8-array" + - enum: [ 0, 1 ] + - default: [ 1, 1, 1, 1 ] + + mps,buck-phase-delay: + description: | + An array of 4 contains phase delay of each buck must be one of above values + corresponding to 0deg, 90deg, 180deg, 270deg + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint8-array" + - enum: [ 0, 1, 2, 3 ] + - default: [ 0, 0, 1, 1 ] + + regulators: + type: object + description: + list of regulators provided by this controller, must be named + after their hardware counterparts BUCK[1-4], one LDORTC, and LDO[2-5] + The valid names for regulators are + buck1, buck2, buck3, buck4, ldortc, ldo2, ldo3, ldo4, ldo5 + + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + mpq7920@69 { + compatible = "mps,mpq7920"; + reg = <0x69>; + + mps,switch-freq = <1>; + mps,buck-softstart = /bits/ 8 <1 2 1 3>; + mps,buck-ovp = /bits/ 8 <1 0 1 1>; + + regulators { + buck1 { + regulator-name = "buck1"; + regulator-min-microvolt = <400000>; + regulator-max-microvolt = <3587500>; + regulator-min-microamp = <460000>; + regulator-max-microamp = <7600000>; + regulator-boot-on; + }; + + ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <650000>; + regulator-max-microvolt = <3587500>; + }; + }; + }; + }; +... -- 2.17.1