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: 12710200 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 D712EC433F5 for ; Tue, 11 Jan 2022 17:44:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243278AbiAKRoY (ORCPT ); Tue, 11 Jan 2022 12:44:24 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:53522 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344572AbiAKRoW (ORCPT ); Tue, 11 Jan 2022 12:44:22 -0500 Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (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 5BAF940A89 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-f70.google.com with SMTP id q15-20020a056402518f00b003f87abf9c37so13968051edd.15 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=QOWcq+oNLRCSvK/5X7sI9UsW3fF8Z5D9Y1fRnJaD5IlTD85qfgxy2/GJ+aQrKSV2JD Ky7AthZ5dBfkSTZkH/n7G0OXo7aC9eACZVY5xU3HZIg+ovvxtPcx9ecBCETW7gmYld1k KPLAs9cAUFybw06umeADmvtM3sDJR7hsZ4mOpGVId7lYb4qGeNhchV0R1ChnYpbkrqgH kmgpPzn4GCflyZUiASk0AtKtFKnvvWiLCvG1A8RbRW+HWXdQWOlFb/EP++EcU/Fhoaid d4e0aMAybEYAa/9emRYxkM3Csj56dVSACL688CxCWZ9FMKtgJRFTTd/htLFsPEXFekTc AJsg== X-Gm-Message-State: AOAM530DO2KxxIgNnPXWDCAq4aoDjhvj4X7p59KTeJ5kOXPfhfZKpNS3 oUiyhLY0B5yDOM3KwJtnFqR8cOlix+pWhTBxzc7GJxmyO1wvUZdJd6ie0jbkHvhQj0szrQ3WWUb yp4pwq/E2/fRZsSM44x4HEM5OGU8rWzmCQB+2WEeaiDYbpnbP X-Received: by 2002:a17:906:38f:: with SMTP id b15mr4584743eja.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 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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 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