Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4857153ybl; Wed, 22 Jan 2020 06:01:35 -0800 (PST) X-Google-Smtp-Source: APXvYqyLiCDyD6z+i28jbFc7qa5Yj4USBFGNJUiwym2ap+iTmtGMyOr6VpZQMWbvIrbr5CEp2obc X-Received: by 2002:a9d:6acd:: with SMTP id m13mr7324196otq.313.1579701695021; Wed, 22 Jan 2020 06:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579701695; cv=none; d=google.com; s=arc-20160816; b=n0yKaXmyH+HBvD9F/emSnblaHstKBI+rBzhv4CP8BBO5rijzdz3ViSgy0dM85DCv9W 0pIutaFx5mxjQBtVi3/E0CtisjWK7VqfC7uytYkQeEqk6xfXHQ/RWkjRC7wldEcJe7OZ SUwuqn0458ZRx6va3oCp/M0LfZhKpbbE9LZquj9fQr/BGsZuRkI+X1mzlluqgRk/9zUZ tZ8b23wjAlNePHAQcoJ31G/4m8dDDi21UE1c8ovk9MGJsqtduaxTeIecZlB5KLmadgqI FD1WucoueodPr1UkuXa2Ih763y7JmqQ/HbOsqfgFMwoXPQc7iuzAUcNYoN7tAzlXzRt0 8Cgw== 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=llJtsD1yoIdDJJBrtXp9tF8w1Mo3indfYk+7VrYbE8Q=; b=mPHomoau0oVOT/Tp8WqA9oyjJh0idp0dwvAUFFXGfke/KjLaBRVBamirYQ8ei2g29P xRaI9buu82mWF5Xa3TpWAlImE4vz1Y9qMsKURiBfrRgszIbdFAvCRnBLAOZBohrHZgIX 9ClAfTbteUXl0i+XGpn/kM0NwLtyL+5COOjcE07CSm6VrXZfb1/JwR2nmpzyvCPSk9Sv WbmAbz5tnvEjyO41zGN6/hloGM0kCHqcuyRjshhPwyUpM8RGMuYo644PUWrZORGt0d+V MfFPu2cbUftTaTt2iqYfqsrJz8+P6aNwIJqhGzkgHy995c9PIhuC86iZt3kIkl5/GMXZ b7SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LPti3YbV; 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 f3si21376479oia.264.2020.01.22.06.01.19; Wed, 22 Jan 2020 06:01:34 -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=LPti3YbV; 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 S1728655AbgAVOAV (ORCPT + 99 others); Wed, 22 Jan 2020 09:00:21 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:44074 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbgAVOAU (ORCPT ); Wed, 22 Jan 2020 09:00:20 -0500 Received: by mail-wr1-f68.google.com with SMTP id q10so7345769wrm.11; Wed, 22 Jan 2020 06:00:19 -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=llJtsD1yoIdDJJBrtXp9tF8w1Mo3indfYk+7VrYbE8Q=; b=LPti3YbVAbzC2HZff/IMU/SFTweupPZu/GOiGZN9vql4modIiuZ3/cwzVaLLSrNJiw dG7UEPKYxTXvjTPo3JN4jZnYd20NISOouc4ovwQbfCJ5t43jZvWIAoA09LFe8ygG7TNi gUHkFoi/Qu/rfCIPnfnuVItWYB4ka3OmnKcbZLRK0QrAtn0TIFABVLA6DsjyFkfa20kF jZx9wixTeVwQtAQ3H0VixiVKaViYqlauD2uf4wKeaQpctjPnxRcfHkznSNjsHE2FNBAz 5qC6CIDRU+yllm53O/74+quY1OprrxTlAT/zULBFW/g3TAbtDIpVNZz8OdCJ84P41URO UJUA== 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=llJtsD1yoIdDJJBrtXp9tF8w1Mo3indfYk+7VrYbE8Q=; b=ovqfEam1d+HTsdwsU0Zm4qlzkz6NyluLq1xGlZ+MCIToZ2bScrFEoJPJKPie/+r0tZ B96PMorU7f4pvWWW2FFCgTJZK62nSMHwCdlO2XIylByjU/gP+NvqR9ekL9G0jzvp2JMb dDoVvUwbh3gmPMSqQ8BymIQreIeOhhlBXWXL5G8cOYjDNXVg7a3VrXPN38OcmUXKTmEj 9aKsmIO2ziuPChKAalsCqTfSCVOBV0zWUucOrfubK1ndH90+2x//d/z7NYz0VDwCoGTD xLJhlc7O8fA+8CBg2zXgDyIlDnXJ7OoSkC0k7UmLjBGqLxm5A5oa1ZK+UtSS23nayYNk 4oeg== X-Gm-Message-State: APjAAAXHbasxOPXQ1Be2+o8OscXy0EsoQyur66YS6xgEbQT39dfUNZCw sZI9v9EGghIjcy8Nj4fMKRaN+SQBv8k= X-Received: by 2002:a5d:534d:: with SMTP id t13mr11871938wrv.77.1579701618471; Wed, 22 Jan 2020 06:00:18 -0800 (PST) Received: from localhost.localdomain (p5DCFF1C1.dip0.t-ipconnect.de. [93.207.241.193]) by smtp.gmail.com with ESMTPSA id g2sm57388270wrw.76.2020.01.22.06.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 06:00:17 -0800 (PST) From: Saravanan Sekar To: sravanhome@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.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 1/3] dt-bindings: regulator: add document bindings for mp5416 Date: Wed, 22 Jan 2020 14:59:56 +0100 Message-Id: <20200122135958.13663-2-sravanhome@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200122135958.13663-1-sravanhome@gmail.com> References: <20200122135958.13663-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 mp5416 regulator driver. Signed-off-by: Saravanan Sekar --- .../bindings/regulator/mps,mp5416.yaml | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mps,mp5416.yaml diff --git a/Documentation/devicetree/bindings/regulator/mps,mp5416.yaml b/Documentation/devicetree/bindings/regulator/mps,mp5416.yaml new file mode 100644 index 000000000000..702508e4267f --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mps,mp5416.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/mps,mp5416.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Monolithic Power System MP5416 PMIC + +maintainers: + - Saravanan Sekar + +properties: + $nodename: + pattern: "pmic@[0-9a-f]{1,2}" + compatible: + enum: + - mps,mp5416 + + 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] and LDO[1-4] + + patternProperties: + "^buck[1-4]$": + $ref: "regulator.yaml#" + type: object + + "^ldo[1-4]$": + $ref: "regulator.yaml#" + type: object + + additionalProperties: false + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@69 { + compatible = "mps,mp5416"; + reg = <0x69>; + + regulators { + + buck1 { + regulator-name = "buck1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <2187500>; + regulator-min-microamp = <3800000>; + regulator-max-microamp = <6800000>; + regulator-boot-on; + }; + + ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3975000>; + }; + }; + }; + }; +... -- 2.17.1