Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4221652ybg; Mon, 21 Oct 2019 05:48:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC6dUHBBhZRbWFvWM4YruBEry+l3eK7lmu7TD0d9FJsNFQOrX0VkVCFfqUJK9wnX7u7OTz X-Received: by 2002:a50:cbc2:: with SMTP id l2mr25097700edi.304.1571662106759; Mon, 21 Oct 2019 05:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571662106; cv=none; d=google.com; s=arc-20160816; b=ym07m+1l0SXLkwz0/sASOTCRjk6ZY3NzRm0UqrI/mY84AFvkwNr2gz5Si11ae4aKx8 +tnV8zCgvEi7yqc34bBKhLilxXXD0BBMlEJG/HJhmnhDuCuuv5z7GyUa/RSimq8H3I7c aJhM5QvkoQluiOt0dgMEuTCzWrWTqFCTH/dZQeSRG58oS1bXpAjKT1PZ6+O3pAiTycfB jFbXtEfgpW3b2sI/EwQQBrVSmlllVc8yRtsAO2+CzknzNZvGg8EbfvVUC4b46YGnfBvy 5l2aDHzV0GXm+ca7TwdvaUsCuK67/IyTmuMcrHkfuDAnKC0tBKyDjqV2I7MTU/+DYeYN liFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=az5Qk9HV+xwHSQgQsE7jPUxX1AeC/LW+c8v20q7G+To=; b=V+oj1T1/NQE3foFFGmVqtOcK1QY/MnY1UsUvkwbod6kqxjW7n/th95y/Wu7pkaf03S DZQ2vhKjRPlFjS3ChAGCWQDn05X2yGseYEqbGIcTnp7ZUp3tsP78ns7/dvselb7lCEzW kqd79R3DpXkcft+kLxaY9N4jRbgzI7XEMXrAcXsdM1WHVVIczGcvnXWEFOnJhKL6jX61 Z95FdSEanj2KLKF8TW/GKgBZhXWjG9YqxAwMJHvrbBCiNyapTtAGa4EzPCZY/QOOTDc6 7PVRz7fGVMuol3MmeNu1d2f1H4ZXH7iTeRBsGqURV8HBKfanaMNdaIr75ZnNLoJxIsU+ 78yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Yn2N3y3T; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b27si9850851ede.233.2019.10.21.05.48.03; Mon, 21 Oct 2019 05:48:26 -0700 (PDT) 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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Yn2N3y3T; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728913AbfJUMpG (ORCPT + 99 others); Mon, 21 Oct 2019 08:45:06 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:44310 "EHLO mail-wr1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728788AbfJUMoi (ORCPT ); Mon, 21 Oct 2019 08:44:38 -0400 Received: by mail-wr1-f53.google.com with SMTP id z9so13813350wrl.11 for ; Mon, 21 Oct 2019 05:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=az5Qk9HV+xwHSQgQsE7jPUxX1AeC/LW+c8v20q7G+To=; b=Yn2N3y3TuMvAi4XTRPu4kdvgMY/oy9tYbogJ5rt8gHn60GNFokeWPQsFaOPsv2e4JE hLL4Z2ZUJDpFho0Voth3CJ565u+qhPNkTkwk1Yg2KKG+JcmnwuA2IbBI/4/7MyYITUAa 8xi6COny3LVcsSizEx9+drR7rX6cCve9/xLIpLdpmFcIU+GspciFTGJS4reOLGP6buSi W3OTHBhupUI6RmNiIgX3N2Ko71rgkKgJR0s2QzWjHYBotStGpFwOpFLnJSDsN1kLyBTP AZxyaNGUSV7bG5VUj9NqmkF4HZFPdQKe9TKGELeTusQOGzNPtEuhIwaWwawoBNEdFWA+ tCJA== 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:mime-version:content-transfer-encoding; bh=az5Qk9HV+xwHSQgQsE7jPUxX1AeC/LW+c8v20q7G+To=; b=Sdtp1Nft1TkvHGD1qdsuQjTVT1T667DxchG/A4asQzognkiTNfAkAN6EYN9yg1anxt 19H2MpwFG2Z9E+jBCMm9WZRxgizHj8ei/5A/8qX3aw4oNnCTg1kchCviCZeqRMBRMy9j +WA6HPJE1C6zsQUoeWabmckewi2cOfFIJiDfUk6pjYLQwtlwLrpox7pgPP63lzt8FLbR VGpCeDvcv+fi+t79stapRH86LEu6Jq0lkLEtnJrJeb5z+7HENt4nU2GUYEECU7kBucPo alFKyKfKXiC3NpNSot15Af8RE8L5d1GvqgfC0Tfxh6lqKKnR7lfoGiYbokXoW+Zs6CHp KKeA== X-Gm-Message-State: APjAAAUiC49+wnEPCqHiDHjlcxYWQCrjB4TFz3vxSpI/eNLlUCiQ7snl bcw/BdyJ8PV1/qX2X0nQosS/Cw== X-Received: by 2002:adf:f58b:: with SMTP id f11mr16074645wro.85.1571661876038; Mon, 21 Oct 2019 05:44:36 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id a17sm10216150wmb.8.2019.10.21.05.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2019 05:44:35 -0700 (PDT) From: Bartosz Golaszewski To: Rob Herring , Mark Rutland , Dmitry Torokhov , Jacek Anaszewski , Pavel Machek , Dan Murphy , Lee Jones , Sebastian Reichel , Liam Girdwood , Mark Brown Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v4 2/6] dt-bindings: regulator: max77650: convert the binding document to yaml Date: Mon, 21 Oct 2019 14:44:24 +0200 Message-Id: <20191021124428.2541-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191021124428.2541-1-brgl@bgdev.pl> References: <20191021124428.2541-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Convert the binding document for MAX77650 regulator module to YAML. Signed-off-by: Bartosz Golaszewski --- .../bindings/regulator/max77650-regulator.txt | 41 ------------------- .../regulator/max77650-regulator.yaml | 31 ++++++++++++++ 2 files changed, 31 insertions(+), 41 deletions(-) delete mode 100644 Documentation/devicetree/bindings/regulator/max77650-regulator.txt create mode 100644 Documentation/devicetree/bindings/regulator/max77650-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/max77650-regulator.txt b/Documentation/devicetree/bindings/regulator/max77650-regulator.txt deleted file mode 100644 index f1cbe813c30f..000000000000 --- a/Documentation/devicetree/bindings/regulator/max77650-regulator.txt +++ /dev/null @@ -1,41 +0,0 @@ -Regulator driver for MAX77650 PMIC from Maxim Integrated. - -This module is part of the MAX77650 MFD device. For more details -see Documentation/devicetree/bindings/mfd/max77650.txt. - -The regulator controller is represented as a sub-node of the PMIC node -on the device tree. - -The device has a single LDO regulator and a SIMO buck-boost regulator with -three independent power rails. - -Required properties: --------------------- -- compatible: Must be "maxim,max77650-regulator" - -Each rail must be instantiated under the regulators subnode of the top PMIC -node. Up to four regulators can be defined. For standard regulator properties -refer to Documentation/devicetree/bindings/regulator/regulator.txt. - -Available regulator compatible strings are: "ldo", "sbb0", "sbb1", "sbb2". - -Example: --------- - - regulators { - compatible = "maxim,max77650-regulator"; - - max77650_ldo: regulator@0 { - regulator-compatible = "ldo"; - regulator-name = "max77650-ldo"; - regulator-min-microvolt = <1350000>; - regulator-max-microvolt = <2937500>; - }; - - max77650_sbb0: regulator@1 { - regulator-compatible = "sbb0"; - regulator-name = "max77650-sbb0"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <1587500>; - }; - }; diff --git a/Documentation/devicetree/bindings/regulator/max77650-regulator.yaml b/Documentation/devicetree/bindings/regulator/max77650-regulator.yaml new file mode 100644 index 000000000000..7d724159f890 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/max77650-regulator.yaml @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/max77650-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Regulator driver for MAX77650 PMIC from Maxim Integrated. + +maintainers: + - Bartosz Golaszewski + +description: | + This module is part of the MAX77650 MFD device. For more details + see Documentation/devicetree/bindings/mfd/max77650.yaml. + + The regulator controller is represented as a sub-node of the PMIC node + on the device tree. + + The device has a single LDO regulator and a SIMO buck-boost regulator with + three independent power rails. + +properties: + compatible: + const: maxim,max77650-regulator + +patternProperties: + "^regulator@[0-3]$": + $ref: "regulator.yaml#" + +required: + - compatible -- 2.23.0