From patchwork Wed Dec 29 14:15:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12700946 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 13F5DC433F5 for ; Wed, 29 Dec 2021 14:17:16 +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=YdDOehmOLxTJz8NLChqwQlciRTCqlrksHca40kDVhuM=; b=HBmi7xNuO7ABtt Vk0Svd/zW4JaXKQsIQHsyXGJUMC+n78ShLEtNS3DumBlAYPRqGhm+jA62X7WRZo6NU7ufb/T2nArH o2xkKJuEKAp2aEGSTNBUirOtddTAR1nt44mKHSdQgZp9/01L7E21fQYarqULm1oGNywuxQqZQHbxx Jsjzonzd2ofwFaVP5a1FzQ73J1dGlKzOD7nlWEIPBmLt7jczGFAczqJ7obJQTF9Fm9rWjxMtVEXm7 4uUsNEqcHMX+RYZrqPQE600aiwz11O3Bq0T0u6MReRLTQLqXtknEFYa+AFItJfAW56TyvT7lgAqfk 2wl0vrQMoOApeGL8zVlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n2ZkC-002v7m-HM; Wed, 29 Dec 2021 14:15:56 +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 1n2Zjy-002v20-D6 for linux-arm-kernel@lists.infradead.org; Wed, 29 Dec 2021 14:15:44 +0000 Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (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 D68F33F1A5 for ; Wed, 29 Dec 2021 14:15:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640787337; bh=oVH2+WRf243xqhmGcQPlVR++PNNcWS7ogs/wCBMm8AQ=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Nsr436OBM9W8F8SnY9RctJ0Kma9C42NTtIuDMgOb8SiGj18F+ck0PnrtPZ0kM6NXQ c9Ur97ollURoTZx6AvP+tZYFPCmU5+jKdXx9EvWmcOuHrlfH1m+pRq1I+DFNH/ZCtR SwXn+2+fJs5v8MrKJluDR4X3PvSQVlmjHevVWH8Pb7s9ruysXUzWaL2Od8Tvhd7Rci aerrUzmGq6Vn77FP2l6dAOECvGwKfPHQ725b3jv22Ucv+M9tCWBIS/x5nJiU6KoYMC GCpJzWdUQel/vL7eQsWilCkZyPPB3hYSgfZ9KkvKaeMQ/OVFv4EOdLTSN3HIMOKzI7 01BAh7DkwCdGQ== Received: by mail-lf1-f71.google.com with SMTP id b5-20020a196445000000b0042659f2a17cso3508645lfj.23 for ; Wed, 29 Dec 2021 06:15:37 -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=oVH2+WRf243xqhmGcQPlVR++PNNcWS7ogs/wCBMm8AQ=; b=WP9SrInlJdQ10ZSo+kxckOSeNsjgTgjk2Y/UXmsl8J1Bli/hZhhCZ10FPwTrVj5xi0 yYjhzsjL7FGHTfXOBuTNtyN4nqkZGyX5atVpQHIiFuZKUer10BIDqaTuqNTqR/kKhsaW ypZ5Y6hWzg0RthcSiFp1g6pqW9hpQXNpHAQkSEpCeA+vCiDoRQjwIfXjri0gx1Bt4vWF crl0MJ4gH/ja0tAq0+IZVR393jgRJUuA9Ot8eMbofkDSVTZdQxsx9vkie0WZqdYaYExP pj/PbfWrRqUkCTat4VIT8Fvw/y9aqsRrfw9cDMDqySYDb3qKmEUZ6FwlCxiXfno8+9W+ KVMw== X-Gm-Message-State: AOAM532Vf4HEi/OqQPNwc4UedfVyhHL7STSx0pbKz6aqMHxScqB4VRI0 si1G3lJYPk5wTU5OyZt+552DedJV6LU2RfFj4lTYczbp45+Tx4lWswi089DG+2clfnI8oKLPzIX ZhEBvF16x74Gs1OFiHVFZiRza56DP60mWK1Hc1Gk4r6YmS33+aXsa X-Received: by 2002:a05:6512:1590:: with SMTP id bp16mr23016217lfb.407.1640787337328; Wed, 29 Dec 2021 06:15:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMAQJ4OARSXHncOgegzuj7gQusK77tDMk8km7b3wp/J8akQSrN4cAW6NgajRmaT+BNEw3trA== X-Received: by 2002:a05:6512:1590:: with SMTP id bp16mr23016195lfb.407.1640787337089; Wed, 29 Dec 2021 06:15:37 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id a16sm1316164ljm.98.2021.12.29.06.15.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 06:15:36 -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 3/4] regulator: dt-bindings: maxim, max14577: convert to dtschema Date: Wed, 29 Dec 2021 15:15:23 +0100 Message-Id: <20211229141524.34174-4-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211229141524.34174-1-krzysztof.kozlowski@canonical.com> References: <20211229141524.34174-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-20211229_061542_614389_11070D33 X-CRM114-Status: GOOD ( 15.81 ) 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 --- .../bindings/regulator/maxim,max14577.yaml | 81 +++++++++++++++++++ 1 file changed, 81 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..e7c2d9c948ce --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/maxim,max14577.yaml @@ -0,0 +1,81 @@ +# 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 + +patternProperties: + "^SAFEOUT$": + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + description: | + Safeout LDO regulator (fixed voltage). + + properties: + regulator-min-microvolt: + const: 4900000 + regulator-max-microvolt: + const: 4900000 + + required: + - regulator-name + + "^CHARGER$": + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + description: | + Current regulator. + + properties: + regulator-min-microamp: true + regulator-max-microamp: true + + required: + - regulator-name + + "^LDO[12]$": + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + description: | + Current regulator. + + properties: + regulator-min-microvolt: true + regulator-max-microvolt: true + + required: + - regulator-name + +allOf: + - if: + properties: + compatible: + contains: + const: maxim,max14577-regulator + then: + properties: + LDO1: false + LDO2: false + +additionalProperties: false