From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6236C433FE for ; Tue, 11 Jan 2022 17:44:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241502AbiAKRoZ (ORCPT ); Tue, 11 Jan 2022 12:44:25 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:53508 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344515AbiAKRoW (ORCPT ); Tue, 11 Jan 2022 12:44:22 -0500 Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 4A50A4076D for ; Tue, 11 Jan 2022 17:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1641923061; bh=CoNoPr6o16kqFclEK0AzeM1mRIrDJDm6YGhA4HJ8sC8=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mSF2xoAgOHloW/A4SamJQA86FE7wp0OG5+JNwGWQaSHZnX4/WCwYi9Hhg6F7qDP+D HHluhWoFHSgsfvOiH4RD7p0tFYnsnm14nALzoWeIHpto9+B14JuzPs0bwX3AnmCTsK GZmeOOC3Juy7/94oPHd+k5S+TummpbcH2L7pIQTCmErw9tB78OHWblD12QB1tUwENI C0doHrSZ2ablRloVGtqIc/fbc15HB/NLrUn5GmUQmrCmu/zQ3iFRaraBh/C/kYV2ck DDDMIneFXibdSacknpEc33vDz3PpgdO9wUd0R1om5qZCgNI+HrmDSDD0TtmZ3FU3+o 25/xw5AFzH25Q== Received: by mail-ed1-f69.google.com with SMTP id p8-20020aa7d308000000b003fe9b0c4760so3825529edq.17 for ; Tue, 11 Jan 2022 09:44:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CoNoPr6o16kqFclEK0AzeM1mRIrDJDm6YGhA4HJ8sC8=; b=L2kPZzQ9jfL3GC1VP02RG02gXsD+dsgKijCOPe5wIzDf1VbdrTn1qpGf0bpk999QD7 E+2ZRbXaIDHgr6WXXO3jctCL/VpMUfR6X8GyTStdLrLGEAo0xCOuTdnukPSxCs+zEZov KyC6y9VsL4WvWD+zjn3k4ie49rgfNzlZCwKHwm8W3FIz86HXgmLDA5qxAMqyEIY76VR6 GKZ5S1vzT8qz7GxF9Vt4CvXWoYMzakpQo8UZuIyHJBrPRbpkV9bv44szmo/wwJY26Qov j1TQ02EcBn3/54Bh0fenHpnSQ88fflHGIFsDdajPIPp6TY6HvpcS4wYFdvHHVpNyevgm FRWQ== X-Gm-Message-State: AOAM532/7MyGTgPsopxR0RsfyluUKD94eSrjtRcvg7Eu3+i9rfn490Bs 9/K0UFe2wzUMPqragyWpveO/imAmUJsGBegqIuSyDLK/fCU3tHM9yqaA8hvxbHFACOzidRLjdBc O7YDWGboqzw6RbhbPRlE53duty8/2quuhaVGsMkE= X-Received: by 2002:a17:906:38f:: with SMTP id b15mr4584737eja.661.1641923060944; Tue, 11 Jan 2022 09:44:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFdC8KhRpjLNc8OqCmDTo1S5yleeLeqi+l50v2tbeeFbnrup7LnrmvEZTc7JBwdVDLrZCe2g== X-Received: by 2002:a17:906:38f:: with SMTP id b15mr4584723eja.661.1641923060742; Tue, 11 Jan 2022 09:44:20 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id g9sm3758657ejo.222.2022.01.11.09.44.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 09:44:20 -0800 (PST) From: Krzysztof Kozlowski To: Lee Jones , Rob Herring , Chanwoo Choi , Krzysztof Kozlowski , Sebastian Reichel , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 3/4] regulator: dt-bindings: maxim,max14577: convert to dtschema Date: Tue, 11 Jan 2022 18:43:36 +0100 Message-Id: <20220111174337.223320-4-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220111174337.223320-1-krzysztof.kozlowski@canonical.com> References: <20220111174337.223320-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the regulator bindings of Maxim MAX14577/MAX77835 MUIC to DT schema format. The existing bindings were defined in ../bindings/mfd/max14577.txt. Signed-off-by: Krzysztof Kozlowski --- .../bindings/regulator/maxim,max14577.yaml | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max14577.yaml diff --git a/Documentation/devicetree/bindings/regulator/maxim,max14577.yaml b/Documentation/devicetree/bindings/regulator/maxim,max14577.yaml new file mode 100644 index 000000000000..4212f10644a1 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/maxim,max14577.yaml @@ -0,0 +1,92 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/maxim,max14577.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX14577/MAX77836 MicroUSB and Companion Power Management IC regulators + +maintainers: + - Krzysztof Kozlowski + +description: | + This is a part of device tree bindings for Maxim MAX14577/MAX77836 MicroUSB + Integrated Circuit (MUIC). + + See also Documentation/devicetree/bindings/mfd/maxim,max14577.yaml for + additional information and example. + +properties: + compatible: + enum: + - maxim,max14577-regulator + - maxim,max77836-regulator + + CHARGER: + type: object + $ref: regulator.yaml# + additionalProperties: false + description: | + Current regulator. + + properties: + regulator-name: true + regulator-always-on: true + regulator-boot-on: true + regulator-min-microamp: true + regulator-max-microamp: true + + required: + - regulator-name + + SAFEOUT: + type: object + $ref: regulator.yaml# + additionalProperties: false + description: | + Safeout LDO regulator (fixed voltage). + + properties: + regulator-name: true + regulator-always-on: true + regulator-boot-on: true + regulator-min-microvolt: + const: 4900000 + regulator-max-microvolt: + const: 4900000 + + required: + - regulator-name + +patternProperties: + "^LDO[12]$": + type: object + $ref: regulator.yaml# + additionalProperties: false + description: | + Current regulator. + + properties: + regulator-name: true + regulator-always-on: true + regulator-boot-on: true + regulator-min-microvolt: + minimum: 800000 + regulator-max-microvolt: + maximum: 3950000 + + required: + - regulator-name + +allOf: + - if: + properties: + compatible: + contains: + const: maxim,max14577-regulator + then: + properties: + LDO1: false + LDO2: false + +additionalProperties: false -- 2.32.0