Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6356255pxb; Tue, 15 Feb 2022 00:05:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxONzhxaEv7wGvZktAx0rHYqtY3BzD56DfbPEoKHM9F7qaQUVl491kmpqco80n5isQlqJy0 X-Received: by 2002:a17:906:4791:: with SMTP id cw17mr2025603ejc.141.1644912317312; Tue, 15 Feb 2022 00:05:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644912317; cv=none; d=google.com; s=arc-20160816; b=w+CpIVjwMJxQI9EsA2UGAHYR7HmSCR3es9wSrSieogJ5q7mRFZvO7xBamXiUM4izq/ 5G46KddTLzjGbThu6HV6mluiGASuCXS8ggEB3f9bebZ5gwl5HTXXZrsCuwRyDpLftui4 6+eCvX+EYoH2pCrh6ihCCa7oXzIxxH2KPL8okoP1U0+HOUvEv6ojSq4j9tH49Q15Nei4 0mPsZh1I2o+fJ3+UgpXN9CQtPhodz7SvB0oVuv1pEWdzrblsoNpMB0ToAbOdBGcBuDMI po8XS2vbAdQhLDqSeN45mFtrvwZP1z91HeeehmbXs1cgC6T0jyMF5f3oKspCjHeEBM8M X/Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xUfWt8K8DvSQWW/wfcPCCEqq3LOVzecUY4ADYtMZEAc=; b=GS3Hw2ogpDMN7NQd1OoxUjTqieJ/xpp1G0zCX1h+kdZsDeoQN/WQRo54GDaP8GXUH/ IdtjYh7cnFe6aezDltsKcs/cuCSZElePoId9ifgWmqlkmh/Cz8ldezdkwss7mi0cTwRX 56Dk20SD5fPeSWGg5oUG7485Qv6dauP4wjSyAMud7WzbZijp552O/GFgCTvwYCouMkpQ J9Za9DMKB8b9k8j++0OFhXXrgtlSoLJOrOcIgTZE4SEl5KknGK62lYa3rEhfdTOsUnJd gQkTALvokMHQaYoeENw2QbByZPIfhCZTxLdbXkxoWxlgYVAjQS4Civsnz6VpRN9YQ/Gt KhKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=ReDKpD+z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 15si19093951ejg.55.2022.02.15.00.04.54; Tue, 15 Feb 2022 00:05:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=ReDKpD+z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234983AbiBOHyC (ORCPT + 99 others); Tue, 15 Feb 2022 02:54:02 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233992AbiBOHyA (ORCPT ); Tue, 15 Feb 2022 02:54:00 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3D50BECE0 for ; Mon, 14 Feb 2022 23:53:50 -0800 (PST) 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-1.canonical.com (Postfix) with ESMTPS id CEFDA3F1AE for ; Tue, 15 Feb 2022 07:53:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1644911629; bh=xUfWt8K8DvSQWW/wfcPCCEqq3LOVzecUY4ADYtMZEAc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ReDKpD+zEghSSx8pSArkUYeXOD6IlP9Gp7qNaA0ELZOdmlJvIIjMVA+Cn2Vz00WRe oJyPO3ILkugW1nLCqGh0AmL0Qghz8ScqLsp2zkQej7N4fT/AcWtnBHJfGIGuqDmjSe 8PzsxzubIAs3tw/SnO8fjoQ2fHi+k2sPH3uY7kZYX5J93+uzVE6w1JXDdKg56rBKlg 2R8DduyW/5lns53FtYZb70B0X/h5oM6BV7/2FuQe/Vu/EntSxV4EBWFKW4s4YHFxFS frdUKKWW6pbodmfouMaGxPk9wrU7ANlxOrP1PQxgand3ElQ37TiOEoju31Hqi6m23R Y0I8d4wCH/tBA== Received: by mail-ed1-f70.google.com with SMTP id f6-20020a0564021e8600b0040f662b99ffso11854786edf.7 for ; Mon, 14 Feb 2022 23:53:49 -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:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xUfWt8K8DvSQWW/wfcPCCEqq3LOVzecUY4ADYtMZEAc=; b=VgU9TfgZ9TAymHtQaGRmOBFaG6Evc/AYp9dmB1vIhzHuJecQmlJdsKBr89pZ1dKBvi OXYlx8svUgcs7kOkJpp77M1c0WN4+R1b7QZTk3Syb8nOKfDvQvU4lki6n42/f9gzASbH PyfoNfEp2STZP8sa47/SldxumzxiG2tJF8Wq5ha/qtJEOu4EfNw5tLUbk222mbPMzqVc kc3MHq7owwZnwrOwYO4i+MOYJSomTWtwKP0q20diMiTCbZJOiUBGVh+Mn9OBKuprWnWJ 6XC4RE7OfLCf07/JMTLqieYZlNZc03GxGJb4zNSFtGHT3LHX6U62tRfr4PElSHflIgM6 Ywrg== X-Gm-Message-State: AOAM530DV8wIteeCMcKj6keyEW2FjHfuizx0Lja+1mkdnA3muZNeSBLP vlhoL+A2va0e6ldzqdLySZ6hVLmzj5DpKkJUr9FOqdGl0FQbKhb5pCPfjSZZ2bLhXCgRjWwLiQq z46/tm3uQHHiuBa8tVC191JqCpY1mz8v7Iw+i6I9cIg== X-Received: by 2002:a05:6402:3714:: with SMTP id ek20mr2734796edb.16.1644911629488; Mon, 14 Feb 2022 23:53:49 -0800 (PST) X-Received: by 2002:a05:6402:3714:: with SMTP id ek20mr2734779edb.16.1644911629314; Mon, 14 Feb 2022 23:53:49 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id h11sm4663713edb.68.2022.02.14.23.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 23:53:48 -0800 (PST) From: Krzysztof Kozlowski To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Javier Martinez Canillas , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Javier Martinez Canillas Subject: [PATCH v3 2/2] dt-bindings: mfd: maxim,max77802: convert to dtschema Date: Tue, 15 Feb 2022 08:53:44 +0100 Message-Id: <20220215075344.31421-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220215075344.31421-1-krzysztof.kozlowski@canonical.com> References: <20220215075344.31421-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the MFD part of Maxim MAX77802 PMIC to DT schema format. The example DTS was copied from existing DTS (exynos5800-peach-pi.dts), so keep the license as GPL-2.0-only. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Reviewed-by: Javier Martinez Canillas --- .../devicetree/bindings/mfd/max77802.txt | 25 --- .../bindings/mfd/maxim,max77802.yaml | 194 ++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 195 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mfd/max77802.txt create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max77802.yaml diff --git a/Documentation/devicetree/bindings/mfd/max77802.txt b/Documentation/devicetree/bindings/mfd/max77802.txt deleted file mode 100644 index 09decac20d91..000000000000 --- a/Documentation/devicetree/bindings/mfd/max77802.txt +++ /dev/null @@ -1,25 +0,0 @@ -Maxim MAX77802 multi-function device - -The Maxim MAX77802 is a Power Management IC (PMIC) that contains 10 high -efficiency Buck regulators, 32 Low-DropOut (LDO) regulators used to power -up application processors and peripherals, a 2-channel 32kHz clock outputs, -a Real-Time-Clock (RTC) and a I2C interface to program the individual -regulators, clocks outputs and the RTC. - -Bindings for the built-in 32k clock generator block and -regulators are defined in ../clk/maxim,max77802.txt and -../regulator/max77802.txt respectively. - -Required properties: -- compatible : Must be "maxim,max77802" -- reg : Specifies the I2C slave address of PMIC block. -- interrupts : I2C device IRQ line connected to the main SoC. - -Example: - - max77802: pmic@9 { - compatible = "maxim,max77802"; - interrupt-parent = <&intc>; - interrupts = <26 IRQ_TYPE_NONE>; - reg = <0x09>; - }; diff --git a/Documentation/devicetree/bindings/mfd/maxim,max77802.yaml b/Documentation/devicetree/bindings/mfd/maxim,max77802.yaml new file mode 100644 index 000000000000..baa1346ac5d5 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/maxim,max77802.yaml @@ -0,0 +1,194 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/maxim,max77802.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX77802 Power Management IC + +maintainers: + - Javier Martinez Canillas + - Krzysztof Kozlowski + +description: | + This is a part of device tree bindings for Maxim MAX77802 Power Management + Integrated Circuit (PMIC). + + The Maxim MAX77802 is a Power Management IC which includes voltage and + current regulators (10 high efficiency Buck regulators and 32 Low-DropOut + (LDO)), RTC and clock outputs. + + The MAX77802 provides two 32.768khz clock outputs that can be controlled + (gated/ungated) over I2C. The clock IDs are defined as preprocessor macros + in dt-bindings/clock/maxim,max77802.h. + +properties: + compatible: + const: maxim,max77802 + + '#clock-cells': + const: 1 + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + + regulators: + $ref: /schemas/regulator/maxim,max77802.yaml + description: + List of child nodes that specify the regulators. + + inb1-supply: + description: Power supply for buck1 + inb2-supply: + description: Power supply for buck2 + inb3-supply: + description: Power supply for buck3 + inb4-supply: + description: Power supply for buck4 + inb5-supply: + description: Power supply for buck5 + inb6-supply: + description: Power supply for buck6 + inb7-supply: + description: Power supply for buck7 + inb8-supply: + description: Power supply for buck8 + inb9-supply: + description: Power supply for buck9 + inb10-supply: + description: Power supply for buck10 + + inl1-supply: + description: Power supply for LDO8, LDO15 + inl2-supply: + description: Power supply for LDO17, LDO27, LDO30, LDO35 + inl3-supply: + description: Power supply for LDO3, LDO5, LDO7, LDO7 + inl4-supply: + description: Power supply for LDO10, LDO11, LDO13, LDO14 + inl5-supply: + description: Power supply for LDO9, LDO19 + inl6-supply: + description: Power supply for LDO4, LDO21, LDO24, LDO33 + inl7-supply: + description: Power supply for LDO18, LDO20, LDO28, LDO29 + inl9-supply: + description: Power supply for LDO12, LDO23, LDO25, LDO26, LDO32, LDO34 + inl10-supply: + description: Power supply for LDO1, LDO2 + + wakeup-source: true + +required: + - compatible + - '#clock-cells' + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@9 { + compatible = "maxim,max77802"; + interrupt-parent = <&gpx3>; + interrupts = <1 IRQ_TYPE_NONE>; + pinctrl-names = "default"; + pinctrl-0 = <&max77802_irq>, <&pmic_selb>, + <&pmic_dvs_1>, <&pmic_dvs_2>, <&pmic_dvs_3>; + wakeup-source; + reg = <0x9>; + #clock-cells = <1>; + + inb1-supply = <&tps65090_dcdc2>; + inb2-supply = <&tps65090_dcdc1>; + inb3-supply = <&tps65090_dcdc2>; + inb4-supply = <&tps65090_dcdc2>; + inb5-supply = <&tps65090_dcdc1>; + inb6-supply = <&tps65090_dcdc2>; + inb7-supply = <&tps65090_dcdc1>; + inb8-supply = <&tps65090_dcdc1>; + inb9-supply = <&tps65090_dcdc1>; + inb10-supply = <&tps65090_dcdc1>; + + inl1-supply = <&buck5_reg>; + inl2-supply = <&buck7_reg>; + inl3-supply = <&buck9_reg>; + inl4-supply = <&buck9_reg>; + inl5-supply = <&buck9_reg>; + inl6-supply = <&tps65090_dcdc2>; + inl7-supply = <&buck9_reg>; + inl9-supply = <&tps65090_dcdc2>; + inl10-supply = <&buck7_reg>; + + regulators { + BUCK1 { + regulator-name = "vdd_mif"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1300000>; + regulator-always-on; + regulator-boot-on; + regulator-ramp-delay = <12500>; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + BUCK2 { + regulator-name = "vdd_arm"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1500000>; + regulator-always-on; + regulator-boot-on; + regulator-ramp-delay = <12500>; + regulator-coupled-with = <&buck3_reg>; + regulator-coupled-max-spread = <300000>; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + // ... + + BUCK10 { + regulator-name = "vdd_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + LDO1 { + regulator-name = "vdd_1v0"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + regulator-initial-mode = ; + regulator-state-mem { + regulator-on-in-suspend; + regulator-mode = ; + }; + }; + + // ... + + LDO35 { + regulator-name = "ldo_35"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index ad66530bcbe2..6783a9dc85a5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11825,7 +11825,7 @@ MAXIM MAX77802 PMIC REGULATOR DEVICE DRIVER M: Javier Martinez Canillas L: linux-kernel@vger.kernel.org S: Supported -F: Documentation/devicetree/bindings/*/*max77802.txt +F: Documentation/devicetree/bindings/*/*max77802.yaml F: drivers/regulator/max77802-regulator.c F: include/dt-bindings/*/*max77802.h -- 2.32.0