From patchwork Fri Oct 8 11:39:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12545097 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4EE7C433EF for ; Fri, 8 Oct 2021 11:43:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8B8E661139 for ; Fri, 8 Oct 2021 11:43:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240452AbhJHLo5 (ORCPT ); Fri, 8 Oct 2021 07:44:57 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:47500 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243300AbhJHLnl (ORCPT ); Fri, 8 Oct 2021 07:43:41 -0400 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 A5B9F3FFF9 for ; Fri, 8 Oct 2021 11:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1633693218; bh=ot49W0BLovtQBZiy0mCJysagJRdZUZ8sfEESkGMXTWw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=EBsfQim4dP10pdw2TmCpbdhHLybsHBZVayqWxqH1otSlYqYlvmUlCTjJXuagHDr9k Z7d48wSb0LGEYDj0J9ug4+S5KeecYGSFrPeRfN7Ap26fp714tFICf5yaGQ5lFWnwwB FqSdlh+ar7mfaSWkVNn8zsfwtV2NwAonxAfSbSl/lN73j6Yo7nSPugYvEfkYPy3esX DXiffjAnJqaWpQBPU0KK2dILtEv1PNxrmC3wm95eeughGK2bFaGa3pvRdAF9QRz0sn +zChQlR/ewIXZh/MqzX4qbTjv68W5jBu/etcNMNw+rH8g/E5w0nmcqZMUvJcYe3YmM EKjKIIZ9TjG1Q== Received: by mail-ed1-f69.google.com with SMTP id z6-20020a50cd06000000b003d2c2e38f1fso8956640edi.1 for ; Fri, 08 Oct 2021 04:40:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ot49W0BLovtQBZiy0mCJysagJRdZUZ8sfEESkGMXTWw=; b=fIdz4RPGUuhvNSRkGhLFsP1RREnf2J3sqpcgBgX6sCu0DGaTZ4FqnoufOFOyCR8ssf IcJaQBBn3c8L0IFFW3c3vJEh8ZKYrYpdifYYIsG1fIwW2lcr4+3YM7pylSLpe5ENTCSj 8FxbzJScVQxkR+fUMOpjaIn27SuYaGbhfS2sfw7sU2sqIHrp2dHd0y9vftLfPUqfTUcJ snpuTA11182vU05OTGcvmF2C5vksIP8iNr9a/WApR4n1DZYZgpcRGvOFhP3SmLvugVIC lhIDFQ0Tuvg2tWem2rtcyVNfknCrbUiG8lPClME2LMVAoJ5QzYGoLkPC4D3icesV6SG8 vhXA== X-Gm-Message-State: AOAM530ORHGKMh3j5tTN7ODi0eoYNrQ+TZRhAGmVeGoAQtmf7iQU6NLC jJYByTQpC/jCEhpZ/Z2de1OgFpXSP8lTYKiCBh3KtftRshQRW6msuyanad1MTxFUTvYB6Iw3osk KrUJ2ZzI7GrsPCH793p4rqfM95ZTXjbz+Ub1OsUWVpeOhkvys X-Received: by 2002:a05:6402:485:: with SMTP id k5mr14153350edv.257.1633693218390; Fri, 08 Oct 2021 04:40:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4QuirGm9nppb97oQk+JI8N+A0wj7clDGbcRopxUW7YNhpFXnCX8Vk/nDDFlgNN8xc/QtNFQ== X-Received: by 2002:a05:6402:485:: with SMTP id k5mr14153335edv.257.1633693218246; Fri, 08 Oct 2021 04:40:18 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-186-13.adslplus.ch. [188.155.186.13]) by smtp.gmail.com with ESMTPSA id c17sm901437edu.11.2021.10.08.04.40.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 04:40:17 -0700 (PDT) From: Krzysztof Kozlowski To: Michael Turquette , Stephen Boyd , Rob Herring , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Lee Jones , Liam Girdwood , Mark Brown , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Sam Protsenko , Rob Herring Subject: [PATCH v4 08/10] dt-bindings: mfd: samsung,s2mpa01: convert to dtschema Date: Fri, 8 Oct 2021 13:39:30 +0200 Message-Id: <20211008113931.134847-5-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211008113723.134648-1-krzysztof.kozlowski@canonical.com> References: <20211008113723.134648-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Convert the MFD part of Samsung S2MPA01 PMIC to DT schema format. Previously the bindings were mostly in mfd/samsung,sec-core.txt. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/mfd/samsung,s2mpa01.yaml | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/samsung,s2mpa01.yaml diff --git a/Documentation/devicetree/bindings/mfd/samsung,s2mpa01.yaml b/Documentation/devicetree/bindings/mfd/samsung,s2mpa01.yaml new file mode 100644 index 000000000000..017befdf8adb --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/samsung,s2mpa01.yaml @@ -0,0 +1,91 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/samsung,s2mpa01.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S2MPA01 Power Management IC + +maintainers: + - Krzysztof Kozlowski + +description: | + This is a part of device tree bindings for S2M and S5M family of Power + Management IC (PMIC). + + The Samsung S2MPA01 is a Power Management IC which includes voltage + and current regulators, RTC, clock outputs and other sub-blocks. + +properties: + compatible: + const: samsung,s2mpa01-pmic + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + + regulators: + $ref: ../regulator/samsung,s2mpa01.yaml + description: + List of child nodes that specify the regulators. + + wakeup-source: true + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@66 { + compatible = "samsung,s2mpa01-pmic"; + reg = <0x66>; + + regulators { + ldo1_reg: LDO1 { + regulator-name = "VDD_ALIVE"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + }; + + ldo2_reg: LDO2 { + regulator-name = "VDDQ_MMC2"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-always-on; + }; + + // ... + + buck1_reg: BUCK1 { + regulator-name = "vdd_mif"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1350000>; + regulator-always-on; + regulator-boot-on; + }; + + buck2_reg: BUCK2 { + regulator-name = "vdd_arm"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1350000>; + regulator-always-on; + regulator-boot-on; + regulator-ramp-delay = <50000>; + }; + + // ... + }; + }; + };