Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1765521ybl; Thu, 19 Dec 2019 02:38:32 -0800 (PST) X-Google-Smtp-Source: APXvYqz8koC83fuF77qeFZMH2vRxVrZE3NQ8kmB/txh/3KO/mVEhmq4/C5AovOW8jCBVxLb0v70v X-Received: by 2002:a9d:21f4:: with SMTP id s107mr5917322otb.102.1576751912826; Thu, 19 Dec 2019 02:38:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576751912; cv=none; d=google.com; s=arc-20160816; b=kKidX3G67pqj2enGrpYfOwihvG6suGoNBsXV192xSKm1EQGDzvgWDBIQPQYn2m/A0q Lforp6EUX2OjxyfrCaWwBXigwfkJd33pWplf0tLUjdilCGHI7aokIOF1JJWW6/+Uss+p FLHKQCsTYWP0r+bjb5EYxMv5YIotMl5T/7ZQZv0q5w/ZOyD5erm/9kT50Y2PFQ3ETMnP aJMqEewXUS+JToOBiR9FKCYD3CdHrQiaxIQS2Vf7IVtKNmLZ140AjDe0VhB7agqU0h6g Clrn9zZKo4mDs1ChjtWt0IVheKdzpn6LHFSAqZPk5c9CfEmgDutf0F4KFKS6BXvtJIHK LX4w== 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=HTOvBssqTqxtZmGGIc8RqHJ2OODrmOCdLMv1BNyEoI4=; b=jlKe5w38aVcVUw2e8G4lCtvYnSjVIQoX/3q3ZCdQJISfJ3oPdOFLNX/mvBtUNkU9mU R2y3kmcuFrS5GvU1vQOjUaOWbP1UhTijP4VS1KNW6f1p9gpH5JI2JxRtWQ5PHhbgVEqv EMTqHdjGkiCf91CjY+A5cNtODvn7VVhiJq1aKXkeP1Y4a8BCVRKX+tVvmBAS066z3Rll XvzH6OxbJP6zuyT+OKt1QTEpVuGxf0XGGdItBCueI1rxRHLcb2BMvYfi0+ePuxYgLQ3w dyJSagJbH9DTz42YO3LMhEcKt8UQ//vDt9n+p+l60hOo8XDKS8KWODdVGOfUcBggnKac mRXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="M9Etg41/"; 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 h28si3650803otg.63.2019.12.19.02.38.20; Thu, 19 Dec 2019 02:38:32 -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="M9Etg41/"; 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 S1726776AbfLSKhh (ORCPT + 99 others); Thu, 19 Dec 2019 05:37:37 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39206 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbfLSKhf (ORCPT ); Thu, 19 Dec 2019 05:37:35 -0500 Received: by mail-wm1-f68.google.com with SMTP id 20so4947922wmj.4; Thu, 19 Dec 2019 02:37:33 -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=HTOvBssqTqxtZmGGIc8RqHJ2OODrmOCdLMv1BNyEoI4=; b=M9Etg41/5NvZhTya2jX8mqCOhWXFTr90PGxhoMEgZWqJbk9VQa2AF3D8wleSnDg2zF jyt+pTWWS23yHnCnidS/upUxzEU6y5lVysOg6Rhd0Yt5K31aIiiz9wnHDMekyyI5MQK5 LYmuIphhpSP1IaEduZWnlg7xYbeBPHgFoIhqLVOdkQkZbZSnZPU6OuUsxywEBxXHGA6y OfcQYyg5kBYYni6v3PiVVS4yivDdWbbv5Ivdli4uETDY7EF4oyBTvLaUeb8Ac1pWGNYq ynRWatwyl/EasbX5hRjDmlS0KORP2mL7oqBC8E2J+0yvCzO3DI6ZDC1s4JUMwLoqD/Ra JLDg== 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=HTOvBssqTqxtZmGGIc8RqHJ2OODrmOCdLMv1BNyEoI4=; b=PVoop8qz4sTGsA0OfvnAl1zTYMd4fyMhZ+W9AEAue4JtNCgEg2g3PVHxmUdK3DFvQB EhvNl4hmpM/OBVpLNvu+ShSkauzde7mJf2no6x6uKox5/IEMqgOG8aqA5hlwKrUxFI8b 6dfBLOjSAcZDaikANr6h9PRBAanCSOmgc9xRE1TPIxn8bk2m5PG9miXZy+zdSDLz07/F LpETtpqvdsljMtnclWQJ/Z5GuTiwVaoQXqjZeObT8EHkyHSQ+zrI0Kmo2q7qWxziMZXR S88lVbyumqhtVqVTu79+wMhtTwt3WJhGn7aZdIALus54c4VLP80YaAgigl3hARe26IJp 5F6w== X-Gm-Message-State: APjAAAUhu4QAmik7srFNKMej+5+AHaWDrUqTmYeyRKr1I6p1oqJ6NHzr gDkWyxMmVF+HXBbqm0arnVvz7rgVSN4= X-Received: by 2002:a1c:1bc3:: with SMTP id b186mr9190522wmb.79.1576751852761; Thu, 19 Dec 2019 02:37:32 -0800 (PST) Received: from localhost.localdomain (p5B3F677C.dip0.t-ipconnect.de. [91.63.103.124]) by smtp.gmail.com with ESMTPSA id c68sm5735147wme.13.2019.12.19.02.37.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 02:37:32 -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, heiko@sntech.de, shawnguo@kernel.org, laurent.pinchart@ideasonboard.com, icenowy@aosc.io, mchehab+samsung@kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org, Jonathan.Cameron@huawei.com Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/4] dt-bindings: regulator: add document bindings for mpq7920 Date: Thu, 19 Dec 2019 11:37:19 +0100 Message-Id: <20191219103721.10935-3-sravanhome@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191219103721.10935-1-sravanhome@gmail.com> References: <20191219103721.10935-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 | 149 ++++++++++++++++++ 1 file changed, 149 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..79000b745cfd --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mpq7920.yaml @@ -0,0 +1,149 @@ +# 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: "mpq@[0-9a-f]{1,2}" + compatible: + enum: + - mps,mpq7920 + + reg: + maxItems: 1 + + regulators: + type: string + 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 + + properties: + mps,time-slot: + - $ref: "/schemas/types.yaml#/definitions/uint8-array" + description: | + power on/off sequence time slot/interval must be one of following values + With: + * 0: 0.5ms + * 1: 2ms + * 2: 8ms + * 3: 16ms + Defaults to 0.5ms if not specified. + + properties: + mps,fixed-on-time: + - $ref: "/schemas/types.yaml#/definitions/boolean" + description: | + select power on sequence with fixed time interval mentioned in + time-slot reg for all the regulators. + + properties: + mps,fixed-off-time: + - $ref: "/schemas/types.yaml#/definitions/boolean" + description: | + select power off sequence with fixed time interval mentioned in + time-slot reg for all the regulators. + + properties: + mps,inc-off-time: + - $ref: "/schemas/types.yaml#/definitions/uint8-array" + description: | + An array of 8, linearly increase power off sequence time + slot/interval for each regulator must be one of following values + * 0 to 15 + properties: + mps,inc-on-time: + - $ref: "/schemas/types.yaml#/definitions/uint8-array" + description: | + An array of 8, linearly increase power on sequence time + slot/interval for each regulator must be one of following values + * 0 to 15 + + properties: + mps,switch-freq: + - $ref: "/schemas/types.yaml#/definitions/uint8" + description: | + switching frequency must be one of following values + * 0 : 1.1MHz + * 1 : 1.65MHz + * 2 : 2.2MHz + * 3 : 2.75MHz + Defaults to 2.2 MHz if not specified. + + properties: + mps,buck-softstart: + - $ref: "/schemas/types.yaml#/definitions/uint8-array" + description: | + An array of 4 contains soft start time of each buck, must be one of + following values + * 0 : 150us + * 1 : 300us + * 2 : 610us + * 3 : 920us + Defaults to 300us if not specified. + + properties: + mps,buck-ovp: + - $ref: "/schemas/types.yaml#/definitions/uint8-array" + description: | + An array of 4 contains over voltage protection of each buck, must be + one of following values + * 0 : disabled + * 1 : enabled + Defaults is enabled if not specified. + + properties: + mps,buck-phase-delay: + - $ref: "/schemas/types.yaml#/definitions/uint8-array" + description: | + An array of 4 contains each buck phase delay must be one of following + values + * 0: 0deg + * 1: 90deg + * 2: 180deg + * 3: 270deg + Defaults to 0deg for buck1 & buck2, 90deg for buck3 & buck4 if not + specified. + +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