Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1116203ybl; Thu, 23 Jan 2020 13:58:37 -0800 (PST) X-Google-Smtp-Source: APXvYqw62uj4lmKrfJZIx0THWI08FMUeM/1UKK6mdRrayzvAiP1xBFXl9uJpeNXJ7y6FLl37jf+P X-Received: by 2002:aca:4c4f:: with SMTP id z76mr35031oia.21.1579816717114; Thu, 23 Jan 2020 13:58:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579816717; cv=none; d=google.com; s=arc-20160816; b=rQydIGN/9L9z39pm5jbD5MceRDS2unXttntWtpAOLgIu/5EaOfphJCtC62rBRhqdP+ KP3suGaW4BKJIOfhLbJLO91+Rh/iEeAER62H4pbFr+dlrm0l+COVKuCtKBba4C8wvpg1 dTpkRxe30oEdn9HOCArG66SpksnOgS1fX1rvVPWVISUrKReu768r5J/qaUMCgW5zp+Xb T9botbgCB9XS3wGrNl/fM56ubfLIj1F3Be/hRN77Fkoa53Vz+vAg6XEas4cCLdcl6zvL JBnBzYx3BX0+fIem0IIuFKGrMwEOqVVE5izjerJT3S60VGoSz9UjDULpmuxgdGbYYGT6 dGFQ== 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=ja0hiSxowstU3DYbi+J4Zvpbj+cNyzDgc6GiSVzHKjg=; b=qvgEYJ58uL625SPqLjUhEPmow8r8irMSU02ssUcs8h+BVY+RvmsJSSVeuQkc9JL6hk bMRnn+wxkqEA2HzvjX56Y5bIlzMuB6Dbc3+DaT+2ZscX1C78odzGGESU+Kjqr53j119R uXp7n0WV+qAaL12aB2MUJLgd8zINYrahYfSUiqqbm5I3YLe1n8GokPBW8uqzKNAZTeXK xFfHSwl2a++djryk4m4iycsPvlo9AO/VRhX73/T3j9cQ67GGg2D7ytKsUGgmHLJjt0N6 Q7Ukw4ntRSgmuE4KoUbFI9vr4ka6OTBvOeeJ9IsxefNlnG17xjx0pWJ4b/fUy8cQBfv9 toDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BZTb5k7m; 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 l17si1796768otk.218.2020.01.23.13.58.24; Thu, 23 Jan 2020 13:58:37 -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=BZTb5k7m; 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 S1729340AbgAWVxu (ORCPT + 99 others); Thu, 23 Jan 2020 16:53:50 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:56054 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729335AbgAWVxs (ORCPT ); Thu, 23 Jan 2020 16:53:48 -0500 Received: by mail-wm1-f66.google.com with SMTP id q9so4187903wmj.5; Thu, 23 Jan 2020 13:53:46 -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=ja0hiSxowstU3DYbi+J4Zvpbj+cNyzDgc6GiSVzHKjg=; b=BZTb5k7mSIAXODFZ2uDgRW3X4vNVHGFSfdHcLdvNJ/3DypcbhAOc6eMQwkcg4NmXvp wgJ+q7t+s3U7qpsP+MSyrHjPQxfM8yY+sIWhQ8sdBiSILJweLvUcRnafAAmein3pUOJb lI0jAFEOJorJHH0sfDuUofB+xkYfY03flq6L/ff+8t2v4tEt0qyzzBL1SEnuuobLIek+ oheUW0+PhWaI/zrlfHdPAYi4nI9BYYcFVulm09E/VwTeNHo/CyrUrTQgaBEXExy2l8fo Elc0WPc7thyc+QnU/BoMcbj1gXlb60ZMTj0mjEX0iaL51/I4Ltsq9HE2rQAeHqdk0NQp FsrA== 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=ja0hiSxowstU3DYbi+J4Zvpbj+cNyzDgc6GiSVzHKjg=; b=LC2DeCiOVwIMAq+3sl9blKog1OqEfXOAYlJS5FLs77FNzo5CQUeuzSWRYMEJDyYHGo sG6rMFumhdgDez64kKbH6W9GfkWEcccZS17PsnJQ36RVKrUxmyi/2I0dTIzUtc/CZ2JY bcJ7GeWViyxbthxEx2LWidslPmR/02IFrGaSTBuXjiNQ8IBnLp/cZ2B1DL0nuwUEGylR BafWitZsdXC9htcfaLs1pOh0PueeDB3+poqoI6Zki2IjScc5DSat+x6dOsUwty/yEDt0 2zxh8fw3xyXVNP7lsfVjbuLhx9VAga9KtvZGtdn3g8sLRubJNEU+5U1WjcBU0PWN7Jhb ussQ== X-Gm-Message-State: APjAAAUbRVHKKJ+Kc0S3vlwtc4UJmrhJXeCzU5UN6rTAsZFyfPUeGDK2 kuwL7mf7WHONAh3IctShz+A= X-Received: by 2002:a05:600c:2c44:: with SMTP id r4mr58942wmg.140.1579816425763; Thu, 23 Jan 2020 13:53:45 -0800 (PST) Received: from localhost.localdomain (p5DCFE5A2.dip0.t-ipconnect.de. [93.207.229.162]) by smtp.gmail.com with ESMTPSA id l15sm4398199wrv.39.2020.01.23.13.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 13:53:44 -0800 (PST) From: Saravanan Sekar To: sravanhome@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9] dt-bindings: regulator: add document bindings for mpq7920 Date: Thu, 23 Jan 2020 22:53:38 +0100 Message-Id: <20200123215338.11109-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 v9 : - fixed error reported by dt_binding_check "pmic@69: regulators:mps,switch-freq: missing size tag in [[1]]" Changes on v8 : - fixed error reported by dt_binding_check 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 | 121 ++++++++++++++++++ 1 file changed, 121 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..a682af0dc67e --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mps,mpq7920.yaml @@ -0,0 +1,121 @@ +# 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: + allOf: + - $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: + allOf: + - $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: + allOf: + - $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 = /bits/ 8 <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