From patchwork Tue Jan 11 17:43:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12710190 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5684EC433EF for ; Tue, 11 Jan 2022 17:46:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=f8K2i/CR1mlLGdO+ElFLWZY2U+9kda0sLRJT+9k/1Zg=; b=Z9oZM0Bnao8Ckh d9gOZSZs9DyqBUxUcqyyb9ZCELNOT7M/zx++SrBz+5QeG9xgZf1S3Tl7H3tj4VgwYCI/UakPzJTAX 4e1APaS28nHCKtNgNjlONXx0izoQheKYpNNW68U654htMck8kYFRV1sMxR7dyMe4Thk4cp8G6PNaV z5n5ridYcUFKnGoikMShB0Nu5ApR9d9xq/ebNWg4b68EeDQ/vEIJdnkboPi/ubc+uhEIVeWMJ4LmV JSJtAa0BgModVqgaEny2YOsxjPoszDdxvEf1+X06uTaq6sXzBr2Yu943ppC6OVxIYd8NIgD6e+4X7 3T3nM3tIX4rMXiKV7rlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7LCa-00H5lv-RP; Tue, 11 Jan 2022 17:44:57 +0000 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7LC4-00H5eO-AF for linux-arm-kernel@lists.infradead.org; Tue, 11 Jan 2022 17:44:27 +0000 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-1.canonical.com (Postfix) with ESMTPS id 497BE40044 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 i9-20020a05640242c900b003fe97faab62so4143296edc.9 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=fugmzI1JCUiCtJFy4b8QCOfoLF9ewEsUcNI6ZS4ZL9YQ73fGxx61fHfaPB9DPaZMff RlZetIdkSNMywgxem7KC99E4lwLoxfbg1jgTQnPkfsmzUak8TWJAxreEG82k205CsFkK B6ZoINgVlOMtQaauNG0of6HqfYrJBeJKeAGXRdZTJxgeK8H9SRbx2MMEYh8jqrJzRlOm FOT/+VhxD/l+oRqOEqrCV75UQ53Gu4o1nSUUxt5SPXt78gt+oSxoINUXNvhkpcOMgml/ ex3i1auFzFKyhyK5qkce5NiWzfpgMrBhCNl45WBgnKW7lj38LYkareKS3pHGrAlosB5U 8KKA== X-Gm-Message-State: AOAM533ujeKUD/R4HroAKTza4L//52KIbYR4O+kqgmiBuJjVdln+Aesb jLi0wbM+EK2AYfmfj5rKJ+uQlYO/s/QC60KkusJ5pedcf2xi+b95Ixzc1Wiv314i1ODUBqIvUjI 2gZFjLLNat2Bc7UZKi1TrFHyIbh78Xm/scL0BPtHrqcBCnD9uO6hz X-Received: by 2002:a17:906:38f:: with SMTP id b15mr4584738eja.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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_094424_510688_9DC1E144 X-CRM114-Status: GOOD ( 16.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Reviewed-by: Rob Herring --- .../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