Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10281022ybl; Thu, 26 Dec 2019 14:31:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyuPBQQDfk6wkT2CDw6dPNwzUYdwH4lFyNoEkKsvDgfSd1Py/ILRyCiR1NQR5yKd9NVTqWo X-Received: by 2002:a9d:6251:: with SMTP id i17mr54017353otk.14.1577399480316; Thu, 26 Dec 2019 14:31:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577399480; cv=none; d=google.com; s=arc-20160816; b=GceXN6lH8zcXMPWU69q8urGbBQ/MtjdHPJrn6xp4sYioPneql/c6pubijH2L1rW1i0 eI1Bf47fQ8etjJudhYv6fiqtdLPxltNMuIGZANn4+ByOgr5SQQEnsbN0kl5hcAQK4q/a PfbvZJTkCZR8K0JMZ/qOpNrs0Qakw0tCKvlu2RiWwF1x0qSRW1C/SOsS05PgmuJ2X8z6 zeMFszr1TxlAWv07/qqHjbww7dCCYs8CFmdXawdiyZ1ji2AJnHJ4g00Q4hwLNrJCKpFt TUtTEcwvYYlVSdIubaZRx30hC1YZAyaAVERMItsfm+9BjLTz/+JYf/EpM5oeBGURDLOU P0Kg== 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=55LT+HlmWUTY6vJ3k/knFjbScNdU0pNrnELzUMhZDVM=; b=ILvrNoRtl6PNgM8dFNga4r/JthNx0GttWgyDJ76MFJZt+xMyuKI0fDxIWxXcvVbAZT EsJNKac50QW5PiIzyhFpog07nnFM1kzUc4Pq+jIHrSa5fK+HZ0ANCawtBOq9htRF+U51 IxprHUXEWaNduRBtXX7EiVOmqGXlh7kACzpeK5lvQavZAzi8daYEp3AWlJMW3lZ8nAIF laeoO/vhWQMMaiwexSnMhwviexxGgG9xIl4MOH5vtiFqIvCpF3mdOm3FzLv41Woz5PZK wybIB9x1QUyg1/3F4QDFouB4hwJAVc8r8xR7uRJh87DhQTexUt41t2FwPm3dMGLYwAVB np7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SLnVUsrj; 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 j7si16516817otp.323.2019.12.26.14.31.08; Thu, 26 Dec 2019 14:31:20 -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=SLnVUsrj; 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 S1727076AbfLZW3r (ORCPT + 99 others); Thu, 26 Dec 2019 17:29:47 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42067 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726105AbfLZW3p (ORCPT ); Thu, 26 Dec 2019 17:29:45 -0500 Received: by mail-wr1-f66.google.com with SMTP id q6so24620563wro.9; Thu, 26 Dec 2019 14:29:44 -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=55LT+HlmWUTY6vJ3k/knFjbScNdU0pNrnELzUMhZDVM=; b=SLnVUsrjCesu4wjGpvU/07sxDbTESGKmDrlSDTdLU0EWiQ4WUi0Ih9o3UjpbT1pp+Q tghtygMibk811toffjP9+BW3lEtdkFLnHqfR6U8dINOxr7JCpVzdjkugTgKsWn2qMc7+ y8WRsPTOIVq7tACJLmlBFLSD8v5fiGH2RqYhQibq90L4kcZu2r4PPMoTEGahIMGQPysX 4ttwot3pGyHUgeRU4lcevCK/ZMBvYgMyrbx5XAb00AVjs0FKWlxHdMLibDUWPzKWlpPX 6TJ4/ZBwejGewjwVFs1SlRGkqwt3zb0Xrlmk+fORbg5C4X5o9ds2koa8XflwxUqw0LDC 0JJg== 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=55LT+HlmWUTY6vJ3k/knFjbScNdU0pNrnELzUMhZDVM=; b=ezLS/MdG4feqH4+nwkvKVB68u62gPWdNmvO+o3qSzAxHEhOFxXaw9phT1CqkTQk+BP dOhIyL0JQ5zbYXHpmYRM1N5tFuSyBo94qRBGEkmHiCxYajVGDTjObYEqILrWueHTpcm/ y6DF28JUprwG7A7LtLdhkc3CcA+eOov3gCcuu6WYf/fJV2ZxkC6ylAI5jsG3MMm8Ltp2 LdqTNMsSGEP0P+jaVT2/lOxh15LlnwoFepNumFlmnweercHlpITvfPicl4Qkqus/Beb1 3JC3K9EHOzP5AmXtbo+smE0iEkFfy7A6hNIDgme05UKAhbqVrKHZVBOoz5hU3IrVM6WD CGcg== X-Gm-Message-State: APjAAAW+CLy8JOmAfsITn9O15I2IP5x++tdRh2MH0a/cptYlLUItyXbs lCnQYysMNuX5/8fVodJPxxM= X-Received: by 2002:adf:a109:: with SMTP id o9mr50552336wro.189.1577399383822; Thu, 26 Dec 2019 14:29:43 -0800 (PST) Received: from localhost.localdomain (p5B3F7018.dip0.t-ipconnect.de. [91.63.112.24]) by smtp.gmail.com with ESMTPSA id j2sm9731276wmk.23.2019.12.26.14.29.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 14:29:43 -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 v4 2/4] dt-bindings: regulator: add document bindings for mpq7920 Date: Thu, 26 Dec 2019 23:29:28 +0100 Message-Id: <20191226222930.8882-3-sravanhome@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191226222930.8882-1-sravanhome@gmail.com> References: <20191226222930.8882-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..54e9177dfd1b --- /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>; + + pmic@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