From patchwork Tue Sep 28 08:49:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12522137 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 CADE6C433FE for ; Tue, 28 Sep 2021 08:50:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B2F62611C7 for ; Tue, 28 Sep 2021 08:50:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239820AbhI1IwM (ORCPT ); Tue, 28 Sep 2021 04:52:12 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:48496 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239803AbhI1Ivv (ORCPT ); Tue, 28 Sep 2021 04:51:51 -0400 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 AF91B4025C for ; Tue, 28 Sep 2021 08:50:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1632819008; bh=DYlpmkzuiD+xFishIZvq7/7ZcxNP9Zi3ybA1Mc3jieA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dN/yiq/YcHdtarJgmi9HwebrORtvxjQZhXjK1OGDxcIG67+lM70qOjEK2iNyDdWIL bmM9RMNqj/8uhXss/uhnxrPzyGB7a6iI+0i4XYKcXaH8TIXGWgDbba9uE1fXwWNPVK nLDpRMWEAxQj/cUQTJPQPm6LSsLVxMHv6ltqSLhiCsQDZV2CCnyko6DnhJBYbTGC7w +IVJ+S+7Z4LS8VvIG7T16qlXFVKFWG4SfwIuSI8PHWBvHZnjSWvcD7tJRUgEKYPPPc iavnU/KovwG+WzpTAJB0k118+sq6d7knj2HIYvKCEen/wo/cOd4zmPZK/SxQVM/w4a KPwAeMYkKEgEw== Received: by mail-lf1-f71.google.com with SMTP id d22-20020a0565123d1600b003fd0097d747so729875lfv.2 for ; Tue, 28 Sep 2021 01:50:08 -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=DYlpmkzuiD+xFishIZvq7/7ZcxNP9Zi3ybA1Mc3jieA=; b=L6bBnDOGBfSGfWsLkwfjfSS7me1sXO9BIUXjmEw5liKA2U1kW14A8SQC9FgW9i0xDY IA+IVIQpl2gnga0mGm4OnLGUIGWeHA/wHWzpJlDFm3nSFFIr5wzhF1hy5btd35k5hSvS FbFO1W3d0SGWEnA7atGGb0rKbdw+Vru4gSlxAXYLdbvm2S23HtGzz82BxtU1nXTfhd51 Zmm9TU+G6cd3Zl+t1iA18lY/UJ02y5ZaqI7r8h73vfpj7IOYV3yzPCIJlEJhRikYQ7a4 EqAajgph+AaGrZwneyshAUHHFfsTJnOMvk3l1amMDLlqTR4h5ozfvWO3dobWfHPJaSRH FMgg== X-Gm-Message-State: AOAM532tRq7dk+e5SDHm5P/vtcW57bKQFkbqmCimyo3shXkFQukYNa+c NvuxxxfBZZry1VSnDx7+VPWofmAtLPZwqcVa5rDj8X3x3PTMxF4MizLuOxGwUslSAdXhNQ2eUWX B817riBFRFckRpNX3eObamhWxqbob+Q/NMyOsQA== X-Received: by 2002:a05:6512:234d:: with SMTP id p13mr4396018lfu.324.1632819008070; Tue, 28 Sep 2021 01:50:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZU3x7gQJq5zyLoY/BjkB+UMtfLP9Dm61UR4J2xLQ3Gy9umSe77fjpziDoHP2I1RNmDK60gw== X-Received: by 2002:a05:6512:234d:: with SMTP id p13mr4396006lfu.324.1632819007900; Tue, 28 Sep 2021 01:50:07 -0700 (PDT) Received: from localhost.localdomain (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id h13sm1848419lfl.205.2021.09.28.01.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 01:50:07 -0700 (PDT) From: Krzysztof Kozlowski To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , 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, linux-arm-kernel@lists.infradead.org Cc: Marek Szyprowski , Sylwester Nawrocki Subject: [PATCH 08/12] mfd: dt-bindings: samsung,s2mpa01: convert to dtschema Date: Tue, 28 Sep 2021 10:49:45 +0200 Message-Id: <20210928084949.27939-9-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210928084949.27939-1-krzysztof.kozlowski@canonical.com> References: <20210928084949.27939-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@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 --- .../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..014e00616c8f --- /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 include 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>; + }; + + // ... + }; + }; + };