Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6331113ybp; Tue, 15 Oct 2019 13:15:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0RVUa7xcQtB5yfTMhknvdUI0p5RgGORTSNKZURqLO8x0PNbcEoY/BUf+sJRoJh/gcilve X-Received: by 2002:a17:906:688:: with SMTP id u8mr36651957ejb.208.1571170519155; Tue, 15 Oct 2019 13:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571170519; cv=none; d=google.com; s=arc-20160816; b=HrRFTzY3pgLKOgsee48l9Ue1NPTR+QM8gKiJ+1OIwSnmzinUVNcYJoM6E8U2kJAXvj nNYOoFLVvBioLLulw42/eVgYKlsMVnTl3ru5NdQ0Yzuj4Q6WT11SikPSWsITk61B/Wfk ixtC9L2sgyTL8bvQQeu/UxWmMhCcyiFddBZiCaX7d3ADjGMqY4sH/7b0/Vh3U3EuS4eI y/ocCFvuW8oCDkC4dv6fJHasc20QUB8XxGAa1zhTHRYPzG5lQc7ZJTAjJNO2BornW6qH k4P4gRSq0C1DV7A54Ouj6Ogn4zjK0RxuBTbZJ0SPZv15dY5QuoZckL9+qUWy17MtvzaG Celg== 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=j5B5AkAQGi4DNKyHv7fhvAOLB86h889/P7BfszQY5c4=; b=A6ruKI92VjG2bESkGJR/vQTPpNJSD0jSTcT+d2eGiaoVR/vOMtzVTfAsf5A2F/L2Ue ldTZefB9AtcTDgAb2mp1zwV8RBUmEELTTIBQKhmNGa/1DXNtVDqVn34atMvuN/kwoDcZ NvCcrrLomXzmk3HmIk4UBw5Fr9KIJ0GULlhQJxF1qtjmdQ2541SPqssO+vRt2PHorwBi Kz4AznSMhgq1cbzgzmTNQKsM1Un+xKsioGON+H+nIKXWJ7OlKUZH2SVajAvg+aIGjp6q 01nNsR1GCSluxyloNajnPR5Dv/aGAkvTChoPs1wytl5AOT59oSqevywckmcDgiJVh7cS yozA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=eZOy7J2I; 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 i24si13643615ejh.35.2019.10.15.13.14.55; Tue, 15 Oct 2019 13:15:19 -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=eZOy7J2I; 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 S2387991AbfJOQXb (ORCPT + 99 others); Tue, 15 Oct 2019 12:23:31 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:52415 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387920AbfJOQXN (ORCPT ); Tue, 15 Oct 2019 12:23:13 -0400 Received: by mail-wm1-f66.google.com with SMTP id r19so21555629wmh.2 for ; Tue, 15 Oct 2019 09:23:10 -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=j5B5AkAQGi4DNKyHv7fhvAOLB86h889/P7BfszQY5c4=; b=eZOy7J2IO2HWDqq09vENTThSZi5vPpMlD7l5AKRvV+cYtbJ1ZcMswyrzdSm86HC42s jJyPjN99mftKfl1KK53lNJPl9dDdXq90BMed/I6d7tdIJHLtcYu5eNzFnvN+uXE7i+lD YqQ9kHqlp5eh97O/cqk5jL/bJ8Y2qanAgPRhOhZIwmG9QrIUZLJlsb7tiddKDdMpKeTf ks0ISe77XXkeGFPrXoq+BxHN+bEgRhkL5KdKbNey2Gls8+QUQVjZwnH0LntE1w56TTPj eZJ2xQ+d/sRURoZ/MZ+ls7i378TmmHLD0Fg8Q2Ef40Lf1trRCIepaVAPSYLHvjH7b5Xa kIQg== 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=j5B5AkAQGi4DNKyHv7fhvAOLB86h889/P7BfszQY5c4=; b=uk8ws4KUfedabACltKejAUfKw4+GFj0nJwADSoD2bwmS2yA5cG78LldnP+xbgZcbxL iFlY5We+qYPE4RDdIBt5qC1Rq0AlT1Z78Vz54TUjT7ZlddWLT78nIwkglZsLEfzMV/e/ MlEbtjLlnd50RzP2mxCQLpEljSTaM5toQPH6gVovv4SieYEsaJD6DtGR8C+ipNSfoc6S ozGz41Gvmp7mNkw9WspT+hGvNnZFBT7OdffgqvKtTf7L1aTQ91jZDoAKIiy4awXDIBba cZOXx+eRgabhC4R8hkCokCp+6QcseOM7z5HSquwUZ3fANefJmejUAZBOp8uX7+gloZ7W XtMg== X-Gm-Message-State: APjAAAVWO733wcT0mEsSmiwoeVxNUdSeP2OxfG859KkYP1S3kyf4ouCo sZclxrnRDmW2BWCNdRZrfNVw0Q== X-Received: by 2002:a1c:7219:: with SMTP id n25mr19497225wmc.33.1571156590048; Tue, 15 Oct 2019 09:23:10 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id x129sm41427605wmg.8.2019.10.15.09.23.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 09:23:09 -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 v2 3/6] dt-bindings: regulator: max77650: convert the binding document to yaml Date: Tue, 15 Oct 2019 18:22:57 +0200 Message-Id: <20191015162300.22024-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191015162300.22024-1-brgl@bgdev.pl> References: <20191015162300.22024-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 | 42 +-------------- .../regulator/max77650-regulator.yaml | 51 +++++++++++++++++++ 2 files changed, 52 insertions(+), 41 deletions(-) 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 index f1cbe813c30f..39686610589c 100644 --- a/Documentation/devicetree/bindings/regulator/max77650-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/max77650-regulator.txt @@ -1,41 +1 @@ -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>; - }; - }; +This file has been moved to max77650-regulator.yaml. diff --git a/Documentation/devicetree/bindings/regulator/max77650-regulator.yaml b/Documentation/devicetree/bindings/regulator/max77650-regulator.yaml new file mode 100644 index 000000000000..c0d986948ac8 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/max77650-regulator.yaml @@ -0,0 +1,51 @@ +# 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.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. + +properties: + compatible: + const: maxim,max77650-regulator + +patternProperties: + "^regulator@[0-3]$": + $ref: "regulator.yaml#" + +required: + - compatible + +examples: + - | + 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>; + }; + }; -- 2.23.0