From nobody Tue Jun 30 19:08:32 2026 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 DBE04C4332F for ; Tue, 11 Jan 2022 17:44:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240447AbiAKRoY (ORCPT ); Tue, 11 Jan 2022 12:44:24 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:53452 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241502AbiAKRoT (ORCPT ); Tue, 11 Jan 2022 12:44:19 -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 274A34076E for ; Tue, 11 Jan 2022 17:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1641923058; bh=HbKpfkrZUGdadD7XmgDwzNz9vUvDJVLjf2lMxGGzeCA=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=LOkmomodQEQZ7XER7XdGTg/A1guSOPUpRuHHsEdFER4h8sNXzvAK61dR0zxpx9Qvt bHhEliRAK2G2Qi+qq9l+poLc/EW/9YjAXSonuQiR5JfYsV2cD3HTy2OCGfdAuAYWyt q5/Ebm2GpqUk8WoWKD8d/TPqB0imSzmIxQpfhNHa3I1ubc06a5qRzjqjYTHlQ3Ag/6 nnF3pnqfGQJIxqetirmQtVhy1lZfqFNuMwSD9ZswDOIa7pE7MNK/FiCk46iYHLVmGU VJdKenyjYbpN9wdZggH/+ql27PSvIE5wkaiIlQRe4VE8jipfYPLEAjMH9VDXGH0CSh /RHLnYs2521dg== Received: by mail-ed1-f70.google.com with SMTP id p8-20020aa7d308000000b003fe9b0c4760so3825391edq.17 for ; Tue, 11 Jan 2022 09:44:18 -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=HbKpfkrZUGdadD7XmgDwzNz9vUvDJVLjf2lMxGGzeCA=; b=c9vh52hlgndi2drkLWr6PAs6YwzkED3JJrvAH5hBMe01oY0Q2sGM7vYR7UU0458DH8 saR1SGDOb2y0Fea2KliLvXDHNQhicc11TgrB8pe3uQeJO/tUMkF9MfK4bsD9TVO+OGTz HnoZlE+wRK8V8OOEV/JJylsiFSsTfLvXEAD3cXKLV/GEIs5VMOCU9nHrlahRYwA69dKf PWFqVS2PAB4LVttWyxi/PsTb+YKDgjr4FFgbAyyuk0p1Py/lh4AKyF8lUDjblo9fFLby sr6AcxL6PvcyjAgiHSc2WPanlwE8z9uwaBpQ9VFpGJAvgEHBV5tDfcy26MNBUt24+8gj DpNA== X-Gm-Message-State: AOAM532OLGpCzejLiTl+Z/4531SQ0EQN/AoAse90Ki0JSVDyIDLg2Mqw KXtJpTO7F6gyeTawvivtabtdDDgcaiZUfzTy8hm6QvCgRolIJPY9BjzjwQFvRuPAJT7ikCjjM3E cS8QXDJ2tzAL8FwXwYbvECw00BA5VgWCDhC4BFuhRDA== X-Received: by 2002:a17:906:b00c:: with SMTP id v12mr4393042ejy.543.1641923057862; Tue, 11 Jan 2022 09:44:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcy6vxPNZHkL/0CL6ykZS2+K72ACBNrvG7TKjPiCN6vT6isj8/Hp40qNuu0wHVVxtz0VbcYQ== X-Received: by 2002:a17:906:b00c:: with SMTP id v12mr4393032ejy.543.1641923057670; Tue, 11 Jan 2022 09:44:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 09:44:17 -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 1/4] ARM: dts: exynos: Align MAX77836 nodes with dtschema on Monk and Rinato Date: Tue, 11 Jan 2022 18:43:34 +0100 Message-Id: <20220111174337.223320-2-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 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The newly introduced dtschema for MAX77836 MUIC requires proper naming of extcon child node. This should not have actual impact on MFD children driver binding, because the max77836 MFD driver uses compatibles. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos3250-monk.dts | 2 +- arch/arm/boot/dts/exynos3250-rinato.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/exynos3250-monk.dts b/arch/arm/boot/dts/exyn= os3250-monk.dts index 8b41a9d5e2db..02a9dc479d34 100644 --- a/arch/arm/boot/dts/exynos3250-monk.dts +++ b/arch/arm/boot/dts/exynos3250-monk.dts @@ -69,7 +69,7 @@ max77836: pmic@25 { reg =3D <0x25>; wakeup-source; =20 - muic: max77836-muic { + extcon { compatible =3D "maxim,max77836-muic"; }; =20 diff --git a/arch/arm/boot/dts/exynos3250-rinato.dts b/arch/arm/boot/dts/ex= ynos3250-rinato.dts index 5f7f8fedfb92..6d2c7bb19184 100644 --- a/arch/arm/boot/dts/exynos3250-rinato.dts +++ b/arch/arm/boot/dts/exynos3250-rinato.dts @@ -70,7 +70,7 @@ max77836: pmic@25 { reg =3D <0x25>; wakeup-source; =20 - muic: max77836-muic { + extcon { compatible =3D "maxim,max77836-muic"; }; =20 --=20 2.32.0 From nobody Tue Jun 30 19:08:32 2026 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 D4B68C433F5 for ; Tue, 11 Jan 2022 17:44:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344215AbiAKRo2 (ORCPT ); Tue, 11 Jan 2022 12:44:28 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:53486 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344111AbiAKRoV (ORCPT ); Tue, 11 Jan 2022 12:44:21 -0500 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.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-0.canonical.com (Postfix) with ESMTPS id 0F23A40A8A for ; Tue, 11 Jan 2022 17:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1641923060; bh=UwxCg/3JRxb+xIwzo2AXdt3q4ESk3LoFT4Bw/xZKpww=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=o5GXslVAzD3nFqgjJJFAtxtn3n/4JpuSUEb1Gg9tL2Nsb5U8q7N25pMY+YeNhoOWg VACqAn+3BNMxQg1xQox+tCHEtbOEzMKrjo0i0oyPR7lLUxjbjaxPtQkjUiiu7Kn5LS /Vpe1t+5R2J4Gt82H4DhG+rYLIS2duYf3i93zo075hEXQ6e12lyUBcxwDdvtitr3pz JTiqY6CP9vxzsZx9CebMCkZ/FeCU+pcvHPYaphY2PGbzx6TZIkAVhvGNVlLB8dNicE QtMkdGzvgWFBMC/WsPSASUV+h9R2hlnB+DWXi43pi9hr14Af/H/INhTg8rgl1i8f9P Tl1vLyk4ZdK9A== Received: by mail-ed1-f71.google.com with SMTP id l14-20020aa7cace000000b003f7f8e1cbbdso13946398edt.20 for ; Tue, 11 Jan 2022 09:44:20 -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=UwxCg/3JRxb+xIwzo2AXdt3q4ESk3LoFT4Bw/xZKpww=; b=2LF4OeLT+KewLFgYsZbhh0w3F82033ExRwSuZcoV1asYKHTQ/e2tX9B25zdoZtJFyq 4weJbdEx24/VFQF8mxK8VveNJIBGtZ7BnPp6onQPE05iYN44xn0k9TrSWq2gXaHh8Rwh eSP0nB7DCaD8E62pcpSaZ+dgcrdPkkC6DARdJYqR0kIZ/qAPHUBHKI2SxrYcDXCSN4z5 RXsFoNfLLwdQ5wLUDSFEp/J/iFuPd6wNxwSpasVQuWObbD1dqn5iqChpdwTqJSfm1Jgh iBkyC3ahRUF4ZbodckIaobQzBMriXBAZZk7w0glvtrksURwafw1t5HIxhH5OUwZJxemQ 8EQA== X-Gm-Message-State: AOAM532An5e7Ns3Y3Vlmv8ClSYFM/steo0RasaVpDCh6jIPoAfUtq0FO QKtOn30idw/v01LbG41hsUzEFi8wPQH+4HAezg4GUCdgaK7WnWLLPiaItb8cXmGsLYH06vxugf6 8W1Je/OvGMz5MMbQ/tl299Bp2k6X0SvqsybzW5JGbtw== X-Received: by 2002:a05:6402:1c08:: with SMTP id ck8mr5463523edb.406.1641923059344; Tue, 11 Jan 2022 09:44:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsS0hDLRYk0r5JjweCUErlbNd0YkPquUINIsjfQ4os97kXEQhtnlMaSz1xWFtOEmAAPmTevg== X-Received: by 2002:a05:6402:1c08:: with SMTP id ck8mr5463508edb.406.1641923059150; Tue, 11 Jan 2022 09:44:19 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 09:44:18 -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 Cc: Rob Herring Subject: [PATCH v2 2/4] dt-bindings: power: supply: maxim,max14577: convert to dtschema Date: Tue, 11 Jan 2022 18:43:35 +0100 Message-Id: <20220111174337.223320-3-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 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Convert the Charger bindings of Maxim MAX14577/MAX77836 MUIC to DT schema format. The existing bindings were defined in ../bindings/mfd/max14577.txt. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Acked-by: Sebastian Reichel --- .../bindings/power/supply/maxim,max14577.yaml | 84 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/maxim,ma= x14577.yaml diff --git a/Documentation/devicetree/bindings/power/supply/maxim,max14577.= yaml b/Documentation/devicetree/bindings/power/supply/maxim,max14577.yaml new file mode 100644 index 000000000000..3978b48299de --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/maxim,max14577.yaml @@ -0,0 +1,84 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/maxim,max14577.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX14577/MAX77836 MicroUSB and Companion Power Management IC = Charger + +maintainers: + - Krzysztof Kozlowski + +description: | + This is a part of device tree bindings for Maxim MAX14577/MAX77836 Micro= USB + Integrated Circuit (MUIC). + + See also Documentation/devicetree/bindings/mfd/maxim,max14577.yaml for + additional information and example. + +properties: + compatible: + enum: + - maxim,max14577-charger + - maxim,max77836-charger + + maxim,constant-uvolt: + description: + Battery Constant Voltage in uV + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 4000000 + maximum: 4350000 + + maxim,eoc-uamp: + description: | + Current in uA for End-Of-Charge mode. + MAX14577: 50000-20000 + MAX77836: 5000-100000 + $ref: /schemas/types.yaml#/definitions/uint32 + + maxim,fast-charge-uamp: + description: | + Current in uA for Fast Charge + MAX14577: 90000-950000 + MAX77836: 45000-475000 + $ref: /schemas/types.yaml#/definitions/uint32 + + maxim,ovp-uvolt: + description: + OverVoltage Protection Threshold in uV; In an overvoltage condition,= INT + asserts and charging stops. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [6000000, 6500000, 7000000, 7500000] + +required: + - compatible + - maxim,constant-uvolt + - maxim,eoc-uamp + - maxim,fast-charge-uamp + - maxim,ovp-uvolt + +allOf: + - if: + properties: + compatible: + contains: + const: maxim,max14577-charger + then: + properties: + maxim,eoc-uamp: + minimum: 50000 + maximum: 200000 + maxim,fast-charge-uamp: + minimum: 90000 + maximum: 950000 + else: + # max77836 + properties: + maxim,eoc-uamp: + minimum: 5000 + maximum: 100000 + maxim,fast-charge-uamp: + minimum: 45000 + maximum: 475000 + +additionalProperties: false diff --git a/MAINTAINERS b/MAINTAINERS index d1f8f312f322..13e21c229c5d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11681,6 +11681,7 @@ M: Krzysztof Kozlowski M: Bartlomiej Zolnierkiewicz L: linux-pm@vger.kernel.org S: Supported +F: Documentation/devicetree/bindings/power/supply/maxim,max14577.yaml F: Documentation/devicetree/bindings/power/supply/maxim,max77693.yaml F: drivers/power/supply/max14577_charger.c F: drivers/power/supply/max77693_charger.c --=20 2.32.0 From nobody Tue Jun 30 19:08:32 2026 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 F2D31C433F5 for ; Tue, 11 Jan 2022 17:44:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344700AbiAKRoj (ORCPT ); Tue, 11 Jan 2022 12:44:39 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:53516 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344566AbiAKRoW (ORCPT ); Tue, 11 Jan 2022 12:44:22 -0500 Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (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 6B36240A8B 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-f72.google.com with SMTP id m8-20020a056402510800b003f9d22c4d48so13964915edd.21 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=1HdfO54UwBc4GIh3qI6ujWYflFEa1OdzVRItA4i2qNjgF3DAzqfSB4/36TLuXVfMcU B74q2zSzGqjFZdcCb4lDCrlCd22UGubVl9+NFEUXp1XrVu3lkVZkzNQk/XdpT8DmBtXF yV5qa4ktp6/eEDLdan1Ne5WuRKhq51lDtULsFYhmkq9wukweKA+0cZ4jaKxSrSW/+7LX wfEOusSSUDmIoz6AGJevfW+bev13FrCmQSpS7ZJDwQBJgI1O4mDOvmlrgrpQiuEIRJCn 7CAU8Jbrc8mygKMO/am3AUNultwnZUKmIuQNUgLLuEK6FdviP9koCaMU/+3didxDDYZo btnA== X-Gm-Message-State: AOAM531jCtt5y7TWso2ersW11UNXduo4OeZz7z4fKSuFFT4p3cCCNCYE rhlfEDLyptXiwTwN4/hottkU0dKGRtCazcbDoQlkXEW07VmhguU642jH/Yk8RCApaq/k7RHK8pT lAZ2fQVQ3R09XAev+Mj2WjApYwpNR9SVuDTVDZtXNew== X-Received: by 2002:a17:906:38f:: with SMTP id b15mr4584748eja.661.1641923060946; 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 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max14= 577.yaml diff --git a/Documentation/devicetree/bindings/regulator/maxim,max14577.yam= l 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 Micro= USB + 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 --=20 2.32.0 From nobody Tue Jun 30 19:08:32 2026 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 4BC37C433EF for ; Tue, 11 Jan 2022 17:45:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344633AbiAKRpB (ORCPT ); Tue, 11 Jan 2022 12:45:01 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:53556 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344552AbiAKRoY (ORCPT ); Tue, 11 Jan 2022 12:44:24 -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 0838B402FB for ; Tue, 11 Jan 2022 17:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1641923063; bh=C5Z/5mmJVa86bbWXH7aWWh13a2BPlZ660A3xwFOIBp8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XpO7DWHj4ev07CBvlViDhYwx/BVofZMBSLzncg6ifpu3QPx7rBT814ZV9l9+dh5Fg XnQcgucEsfKskQmI/dkBLVKzmrscsjt9q29fEfNDLMnIHnSXE/zlZ6SD1UFehdi/Gj qE4j5hZkAJTV96jpRY6XLfTvjx7OcHvbwdBnP+y7G7A/cqiHRZo2zyqe7OdCqcYcFu kQ25y7BeiUqlVFCivHWPcc+RR11hnrjR/3yFcWy1UNlfs5lknGXtFlcaljNkXYgTk0 jyePJ9G77yKEJUSGA5n9//QvrBu9wZIvR0Ij0rSmULtKrMM4jQLRHb/ew8GEJ3G1MD Lm/PjYxOeuXtg== Received: by mail-ed1-f70.google.com with SMTP id b8-20020a056402350800b003f8f42a883dso13973412edd.16 for ; Tue, 11 Jan 2022 09:44:23 -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=C5Z/5mmJVa86bbWXH7aWWh13a2BPlZ660A3xwFOIBp8=; b=KFAdjETW1JDrL5cUYYGkFiHJjuBVnusNC0npBPyf0AJCpUXqAxGWIRXVEoYI4vKhHV rGLSKgJfxB2hI+nZcTxrWbymxIbD4OE4lvrrVyICXoDt6MO+SNWpiW1YWulwtpM9d0jG vJ+60fBsN0Uco3be/gIkx9EQtS89Ie0mUnQLv1CPR56pQmJ5gEO4v2O3gje8TEoHt0Dq wOi+ftfPaVaP6aL1B7pEeaLY9Bg6I5JlZ0ABE8wt6A0eK+P3LvQalFna07HRQSFF9A/Q 6doUWpBmputCUW+Cw1yznrjXe/7QgXzdsXNnRNWtjxvqngaRxW4d5OnQrZAijwzmVnDw eLEg== X-Gm-Message-State: AOAM53247xgJKOoEiDgM1s+aoyduwGl3o+OoHbUEKBenFw/ec4tQPXX2 FC1SQGayqzB8QGSyUfuFdiiCpPUWOBE1AP3ezLwQucEe89SRWqk/37/ymO6f+87b0eY3ednLi8y 5J8u8vQkyr4msgc5k5shqVF4rAzg+x50UNGG+JmbRaA== X-Received: by 2002:a50:c94b:: with SMTP id p11mr5652987edh.173.1641923062612; Tue, 11 Jan 2022 09:44:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzT30conxvROmZ9oTCV0VED3rO0vjmmaSGHYvu65UkjARLbgyyqQLrWcuvYrKjDy6pm8a2ezw== X-Received: by 2002:a50:c94b:: with SMTP id p11mr5652966edh.173.1641923062398; Tue, 11 Jan 2022 09:44:22 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 09:44:21 -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 Cc: Rob Herring Subject: [PATCH v2 4/4] dt-bindings: mfd: maxim,max14577: convert to dtschema Date: Tue, 11 Jan 2022 18:43:37 +0100 Message-Id: <20220111174337.223320-5-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 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Convert the MFD part of Maxim MAX14577/MAX77836 MUIC to DT schema format. The example DTS was copied from existing DTS (exynos3250-rinato.dts), so keep the license as GPL-2.0-only. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../devicetree/bindings/mfd/max14577.txt | 147 ------------- .../bindings/mfd/maxim,max14577.yaml | 195 ++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 196 insertions(+), 148 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mfd/max14577.txt create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max14577.ya= ml diff --git a/Documentation/devicetree/bindings/mfd/max14577.txt b/Documenta= tion/devicetree/bindings/mfd/max14577.txt deleted file mode 100644 index be11943a0560..000000000000 --- a/Documentation/devicetree/bindings/mfd/max14577.txt +++ /dev/null @@ -1,147 +0,0 @@ -Maxim MAX14577/77836 Multi-Function Device - -MAX14577 is a Multi-Function Device with Micro-USB Interface Circuit, Li+ -Battery Charger and SFOUT LDO output for powering USB devices. It is -interfaced to host controller using I2C. - -MAX77836 additionally contains PMIC (with two LDO regulators) and Fuel Gau= ge. -For the description of Fuel Gauge low SOC alert interrupt see: -../power/supply/max17040_battery.txt - - -Required properties: -- compatible : Must be "maxim,max14577" or "maxim,max77836". -- reg : I2C slave address for the max14577 chip (0x25 for max14577/max7783= 6) -- interrupts : IRQ line for the chip. - - -Required nodes: - - charger : - Node for configuring the charger driver. - Required properties: - - compatible : "maxim,max14577-charger" - or "maxim,max77836-charger" - - maxim,fast-charge-uamp : Current in uA for Fast Charge; - Valid values: - - for max14577: 90000 - 950000; - - for max77836: 45000 - 475000; - - maxim,eoc-uamp : Current in uA for End-Of-Charge mode; - Valid values: - - for max14577: 50000 - 200000; - - for max77836: 5000 - 100000; - - maxim,ovp-uvolt : OverVoltage Protection Threshold in uV; - In an overvoltage condition, INT asserts and charging - stops. Valid values: - - 6000000, 6500000, 7000000, 7500000; - - maxim,constant-uvolt : Battery Constant Voltage in uV; - Valid values: - - 4000000 - 4280000 (step by 20000); - - 4350000; - - -Optional nodes: -- max14577-muic/max77836-muic : - Node used only by extcon consumers. - Required properties: - - compatible : "maxim,max14577-muic" or "maxim,max77836-muic" - -- regulators : - Required properties: - - compatible : "maxim,max14577-regulator" - or "maxim,max77836-regulator" - - May contain a sub-node per regulator from the list below. Each - sub-node should contain the constraints and initialization information - for that regulator. See regulator.txt for a description of standard - properties for these sub-nodes. - - List of valid regulator names: - - for max14577: CHARGER, SAFEOUT. - - for max77836: CHARGER, SAFEOUT, LDO1, LDO2. - - The SAFEOUT is a fixed voltage regulator so there is no need to specify - voltages for it. - - -Example: - -#include - -max14577@25 { - compatible =3D "maxim,max14577"; - reg =3D <0x25>; - interrupt-parent =3D <&gpx1>; - interrupts =3D <5 IRQ_TYPE_LEVEL_LOW>; - - muic: max14577-muic { - compatible =3D "maxim,max14577-muic"; - }; - - regulators { - compatible =3D "maxim,max14577-regulator"; - - SAFEOUT { - regulator-name =3D "SAFEOUT"; - }; - CHARGER { - regulator-name =3D "CHARGER"; - regulator-min-microamp =3D <90000>; - regulator-max-microamp =3D <950000>; - regulator-boot-on; - }; - }; - - charger { - compatible =3D "maxim,max14577-charger"; - - maxim,constant-uvolt =3D <4350000>; - maxim,fast-charge-uamp =3D <450000>; - maxim,eoc-uamp =3D <50000>; - maxim,ovp-uvolt =3D <6500000>; - }; -}; - - -max77836@25 { - compatible =3D "maxim,max77836"; - reg =3D <0x25>; - interrupt-parent =3D <&gpx1>; - interrupts =3D <5 IRQ_TYPE_LEVEL_LOW>; - - muic: max77836-muic { - compatible =3D "maxim,max77836-muic"; - }; - - regulators { - compatible =3D "maxim,max77836-regulator"; - - SAFEOUT { - regulator-name =3D "SAFEOUT"; - }; - CHARGER { - regulator-name =3D "CHARGER"; - regulator-min-microamp =3D <90000>; - regulator-max-microamp =3D <950000>; - regulator-boot-on; - }; - LDO1 { - regulator-name =3D "LDO1"; - regulator-min-microvolt =3D <2700000>; - regulator-max-microvolt =3D <2700000>; - }; - LDO2 { - regulator-name =3D "LDO2"; - regulator-min-microvolt =3D <800000>; - regulator-max-microvolt =3D <3950000>; - }; - }; - - charger { - compatible =3D "maxim,max77836-charger"; - - maxim,constant-uvolt =3D <4350000>; - maxim,fast-charge-uamp =3D <225000>; - maxim,eoc-uamp =3D <7500>; - maxim,ovp-uvolt =3D <6500000>; - }; -}; diff --git a/Documentation/devicetree/bindings/mfd/maxim,max14577.yaml b/Do= cumentation/devicetree/bindings/mfd/maxim,max14577.yaml new file mode 100644 index 000000000000..55ab60750798 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/maxim,max14577.yaml @@ -0,0 +1,195 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/maxim,max14577.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX14577/MAX77836 MicroUSB and Companion Power Management IC + +maintainers: + - Krzysztof Kozlowski + +description: | + This is a part of device tree bindings for Maxim MAX14577/MAX77836 Micro= USB + Integrated Circuit (MUIC). + + The Maxim MAX14577 is a MicroUSB and Companion Power Management IC which + includes voltage safeout regulators, charger and MicroUSB management IC. + + The Maxim MAX77836 is a MicroUSB and Companion Power Management IC which + includes voltage safeout and LDO regulators, charger, fuel-gauge and Mic= roUSB + management IC. + +properties: + compatible: + enum: + - maxim,max14577 + - maxim,max77836 + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + + wakeup-source: true + + charger: + $ref: /schemas/power/supply/maxim,max14577.yaml + + extcon: + type: object + properties: + compatible: + enum: + - maxim,max14577-muic + - maxim,max77836-muic + + required: + - compatible + + regulators: + $ref: /schemas/regulator/maxim,max14577.yaml + +required: + - compatible + - interrupts + - reg + - charger + +allOf: + - if: + properties: + compatible: + contains: + const: maxim,max14577 + then: + properties: + charger: + properties: + compatible: + const: maxim,max14577-charger + extcon: + properties: + compatible: + const: maxim,max14577-muic + regulator: + properties: + compatible: + const: maxim,max14577-regulator + else: + properties: + charger: + properties: + compatible: + const: maxim,max77836-charger + extcon: + properties: + compatible: + const: maxim,max77836-muic + regulator: + properties: + compatible: + const: maxim,max77836-regulator + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + pmic@25 { + compatible =3D "maxim,max14577"; + reg =3D <0x25>; + interrupt-parent =3D <&gpx1>; + interrupts =3D <5 IRQ_TYPE_LEVEL_LOW>; + + extcon { + compatible =3D "maxim,max14577-muic"; + }; + + regulators { + compatible =3D "maxim,max14577-regulator"; + + SAFEOUT { + regulator-name =3D "SAFEOUT"; + }; + + CHARGER { + regulator-name =3D "CHARGER"; + regulator-min-microamp =3D <90000>; + regulator-max-microamp =3D <950000>; + regulator-boot-on; + }; + }; + + charger { + compatible =3D "maxim,max14577-charger"; + + maxim,constant-uvolt =3D <4350000>; + maxim,fast-charge-uamp =3D <450000>; + maxim,eoc-uamp =3D <50000>; + maxim,ovp-uvolt =3D <6500000>; + }; + }; + }; + + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + pmic@25 { + compatible =3D "maxim,max77836"; + interrupt-parent =3D <&gpx1>; + interrupts =3D <5 IRQ_TYPE_NONE>; + reg =3D <0x25>; + wakeup-source; + + extcon { + compatible =3D "maxim,max77836-muic"; + }; + + regulators { + compatible =3D "maxim,max77836-regulator"; + + SAFEOUT { + regulator-name =3D "SAFEOUT"; + }; + + CHARGER { + regulator-name =3D "CHARGER"; + regulator-min-microamp =3D <45000>; + regulator-max-microamp =3D <475000>; + regulator-boot-on; + }; + + LDO1 { + regulator-name =3D "MOT_2.7V"; + regulator-min-microvolt =3D <1100000>; + regulator-max-microvolt =3D <2700000>; + }; + + LDO2 { + regulator-name =3D "UNUSED_LDO2"; + regulator-min-microvolt =3D <800000>; + regulator-max-microvolt =3D <3950000>; + }; + }; + + charger { + compatible =3D "maxim,max77836-charger"; + + maxim,constant-uvolt =3D <4350000>; + maxim,fast-charge-uamp =3D <225000>; + maxim,eoc-uamp =3D <7500>; + maxim,ovp-uvolt =3D <6500000>; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 13e21c229c5d..af392bd04874 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11692,11 +11692,11 @@ M: Krzysztof Kozlowski M: Bartlomiej Zolnierkiewicz L: linux-kernel@vger.kernel.org S: Supported +F: Documentation/devicetree/bindings/*/maxim,max14577.yaml F: Documentation/devicetree/bindings/*/maxim,max77686.yaml F: Documentation/devicetree/bindings/*/maxim,max77693.yaml F: Documentation/devicetree/bindings/*/maxim,max77843.yaml F: Documentation/devicetree/bindings/clock/maxim,max77686.txt -F: Documentation/devicetree/bindings/mfd/max14577.txt F: drivers/*/*max77843.c F: drivers/*/max14577*.c F: drivers/*/max77686*.c --=20 2.32.0