From patchwork Tue Jan 11 17:43:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12710187 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 B45E6C433F5 for ; Tue, 11 Jan 2022 17:45:43 +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=PE9XyiFtcZUTb1zEUPcU9b/tgfKOSuhjx+KYqwQDKYQ=; b=S5SB+b/ni22j9O Costmniv0C0nFT0NhYur+BSMtrvqmgZ7LpISeUwxj+hA4LkEn8y4B2gSOd8OwgLh1LagD7nVMuUJb QSWWjYohyIeU2ucE8FfbK/RKfLLQ96UZ1WYAAG/CJfxcltbNugAf9YLUIDj1FauCBJBs1hosm6mFR nBu+142xQaPV8L/veYLETaE2mVY2Mn3lDpM4f5P4w82KInHPf2MYIs3bIafU8SRsr8DeGyq5x0UFI J/sniGMJul+nSkKQuIGLvdHg9q7WR0+Dj1T/HEBDaBK8Nz9QIojZi9IvcHkjMNSoELRNqHDIBobtl m0qJ7EXcQYjCC4wguchA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7LC7-00H5gP-3s; Tue, 11 Jan 2022 17:44:27 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7LC3-00H5eN-RI for linux-arm-kernel@lists.infradead.org; Tue, 11 Jan 2022 17:44:25 +0000 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 232F640703 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-f71.google.com with SMTP id eg24-20020a056402289800b003fe7f91df01so4989131edb.6 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=a8hymz6uXoapKeWLNrqtGct5elVoUSGepsju7R4w4tiKpzKdR8ajVTPReuagDviYdN zTPKwi5rzFS4v3p4WHrimelFn+tDrxyK5Rxr4CzPFi4rtswh1bSogDZxUV6S4F8OSjiG N781HzSsuyhyBQS1hATQsBOyDNyAkjv2ixsS1h91ePoCHJZqawVCLAf3TAe+qaK3IKTZ kev/OkhCiQPGXDmYZsoo4PatWijU3raX1KOnlGbFwSxgnbsbD3zYf/FP9L6ZCT+0npm6 YVe7977vQUlZS8BLswTbtxKam9xfJGi5iuk+D7Z73BH07t08qSJGC/3hGgu10jzEt9/z 4CZA== X-Gm-Message-State: AOAM531uMC3+4o/vzmgNlTzcPSGrTrlUIwd/NZA8xCLTc4dRughwp9KW 1URgy0dLAv+SkBnM7vt8nHIVWP4iA/nd0ds+piXr1Zy4SxJit/2FxGu87UXd4t9lskWfBYotgz1 sB2rxaXpoeI9Tx3QMdiBT1Xu1E91X5fgpQrgAOll+DwaBj9V5GDFz X-Received: by 2002:a17:906:b00c:: with SMTP id v12mr4393052ejy.543.1641923057863; 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_094424_045494_D52E3588 X-CRM114-Status: GOOD ( 16.91 ) 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 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/exynos3250-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 = <0x25>; wakeup-source; - muic: max77836-muic { + extcon { compatible = "maxim,max77836-muic"; }; diff --git a/arch/arm/boot/dts/exynos3250-rinato.dts b/arch/arm/boot/dts/exynos3250-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 = <0x25>; wakeup-source; - muic: max77836-muic { + extcon { compatible = "maxim,max77836-muic"; }; From patchwork Tue Jan 11 17:43:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12710189 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 0ECDDC433F5 for ; Tue, 11 Jan 2022 17:45:58 +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:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cyha14sM1Viwib8p9bBXCderO5DYBXotYj9qmSPMFr0=; b=INJ+bXdOX1dfwS fnO8DJ0DTVttKz+UePBpOiBNgEiaTDGlRPSqCjiVWljgg8R0yw7lyGzTZ2Ww/Tve8d6dbvn+XXS6Q 3oTxW90SMfHmknFXcpBnD/G3T3PFyZzzX2DELlVZtnLaDsqJWMR6e5uMZttgBUArzK8ZfiMOWsStz lNJD81WCYF3xcDHh3YTX9K8dDU0uGbMwc052G3GwlnDuPTclSalguRMevuxr+yWj4AN1F97L4FhEc 26spLu+a/WawAJEeRrTExWJHip95NVQnndOuuiA79UPtlP7EiKimOaaxYImTPm9EV1OplX5uka62Y gjmSmHyE94DCRoOemuVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7LCQ-00H5jh-ND; Tue, 11 Jan 2022 17:44:46 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7LC3-00H5eM-RJ for linux-arm-kernel@lists.infradead.org; Tue, 11 Jan 2022 17:44:26 +0000 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 A36294076E for ; Tue, 11 Jan 2022 17:44:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1641923059; bh=UwxCg/3JRxb+xIwzo2AXdt3q4ESk3LoFT4Bw/xZKpww=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=G/IWgjy8LnH2wcKp9OU1SQ9c5hSjINIppzT+uuEKR67jH94b6ZkUhwo7FO6xNssIH 8BFlzL48Yvn19gFBbkXzS69yMB8rXEtwZcStPRgPP+FmKp9b0my7p87rRIgefW4NQc BftvFrsisDe95A2HT9OGyKsPyesqh9XT/OzL4kqdE3zjZUCZbKKLQkQ76CIsxe52et OIezSlx/GvPPOvcnkjioTAK83YaixJY2fLjsvmc2o1ziJs1KvpAhqiafUy4xM/d2qI DVaFoT1H1+X27AokujnBTTKucUlZdve3mE2bUjz/hC3LclK7OeRRz9yCP23b+n6UXf YTRnfa4RNOeMw== Received: by mail-ed1-f72.google.com with SMTP id r8-20020a05640251c800b003f9a52daa3fso13958683edd.22 for ; Tue, 11 Jan 2022 09:44:19 -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=yHYMt1WPLdmLAmMUWBPf9vKJ9NJ2x+6Bgi7+CQFr0L1sVmWibeG54ZwmRAtziUfqF1 +dKVOgoCK9tPiEXGv1Jn63lZHfsLL1QkV9AkmfFhCqmnxxpF0gqJE5AH8vimLHaFajhe eQda1STGzvQg5+Sn4F5nbQfQiqnxECpI2Lm8H3qik5keHFv9wug/2tcZ16yLak0IMV4+ b2kAB3Df55WZAT6H0J/VCqYV3vslxP3qt+9JvyOvknSHW9Nb+Sk5SyfoyJXRgN+hAmVL xOwXgE54rVRFOLbUHN/veJY8a5h1NTAYAXqC/KVaGE4Zh63KxHtlpkLQuVwKZ5OAysIO oJwA== X-Gm-Message-State: AOAM530MAKr4Bs4Luq+wKvZIIFBj64HCC29qrmAsVpJzROe1+ebVRw1H mB2dXGWv+9PMHzWvKfT7/QC87lv7wx9Z2BrOAlx9LtELX+l8dwNyDZfpyOkAANPcrEqdjF9s2fi UX/ect6RoT1PmEfCmUOw4xu2BF3hh6nGH6bBSk3sMiFYvBiRAZjBe X-Received: by 2002:a05:6402:1c08:: with SMTP id ck8mr5463531edb.406.1641923059345; 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_094424_045611_73C56E13 X-CRM114-Status: GOOD ( 18.18 ) 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 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,max14577.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 MicroUSB + 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 From patchwork Tue Jan 11 17:43:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12710190 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 5684EC433EF for ; Tue, 11 Jan 2022 17:46:11 +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=f8K2i/CR1mlLGdO+ElFLWZY2U+9kda0sLRJT+9k/1Zg=; b=Z9oZM0Bnao8Ckh d9gOZSZs9DyqBUxUcqyyb9ZCELNOT7M/zx++SrBz+5QeG9xgZf1S3Tl7H3tj4VgwYCI/UakPzJTAX 4e1APaS28nHCKtNgNjlONXx0izoQheKYpNNW68U654htMck8kYFRV1sMxR7dyMe4Thk4cp8G6PNaV z5n5ridYcUFKnGoikMShB0Nu5ApR9d9xq/ebNWg4b68EeDQ/vEIJdnkboPi/ubc+uhEIVeWMJ4LmV JSJtAa0BgModVqgaEny2YOsxjPoszDdxvEf1+X06uTaq6sXzBr2Yu943ppC6OVxIYd8NIgD6e+4X7 3T3nM3tIX4rMXiKV7rlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7LCa-00H5lv-RP; Tue, 11 Jan 2022 17:44:57 +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 1n7LC4-00H5eO-AF for linux-arm-kernel@lists.infradead.org; Tue, 11 Jan 2022 17:44:27 +0000 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 497BE40044 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-f69.google.com with SMTP id i9-20020a05640242c900b003fe97faab62so4143296edc.9 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=fugmzI1JCUiCtJFy4b8QCOfoLF9ewEsUcNI6ZS4ZL9YQ73fGxx61fHfaPB9DPaZMff RlZetIdkSNMywgxem7KC99E4lwLoxfbg1jgTQnPkfsmzUak8TWJAxreEG82k205CsFkK B6ZoINgVlOMtQaauNG0of6HqfYrJBeJKeAGXRdZTJxgeK8H9SRbx2MMEYh8jqrJzRlOm FOT/+VhxD/l+oRqOEqrCV75UQ53Gu4o1nSUUxt5SPXt78gt+oSxoINUXNvhkpcOMgml/ ex3i1auFzFKyhyK5qkce5NiWzfpgMrBhCNl45WBgnKW7lj38LYkareKS3pHGrAlosB5U 8KKA== X-Gm-Message-State: AOAM533ujeKUD/R4HroAKTza4L//52KIbYR4O+kqgmiBuJjVdln+Aesb jLi0wbM+EK2AYfmfj5rKJ+uQlYO/s/QC60KkusJ5pedcf2xi+b95Ixzc1Wiv314i1ODUBqIvUjI 2gZFjLLNat2Bc7UZKi1TrFHyIbh78Xm/scL0BPtHrqcBCnD9uO6hz X-Received: by 2002:a17:906:38f:: with SMTP id b15mr4584738eja.661.1641923060944; 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_094424_510688_9DC1E144 X-CRM114-Status: GOOD ( 16.40 ) 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 Reviewed-by: Rob Herring --- .../bindings/regulator/maxim,max14577.yaml | 92 +++++++++++++++++++ 1 file changed, 92 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..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 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 + + 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 From patchwork Tue Jan 11 17:43:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12710191 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 B147DC433EF for ; Tue, 11 Jan 2022 17:46:19 +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:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eeiWuv0Ptku64HzOSf6qJLacG2wg3TGYtdf5+JJz4vU=; b=pGRN36r1QCK/M2 6A3XT3fOpkIJeQZVJhPBhSHbjTPLKGUEULjt3xADQev9R21pKIrPPbTAk8Kg2hPdw7QohkImuN7ZF C+DcuRb/27KYb+YHYyGxP6Sn1Lu42ima9gP2YNxvV/sEoOW2G4s5xQXYSt4aDez5tWfqIB6Inkkok WELauIedeK3G6zXhuuCwCsoOfpfxx/cA4h6Cz1dpYUQm6nOVfEC8icA8u1KWkxWWq/dbUN6gIf5SF 6tBq4hhCWIga1Gdq1hgQZ6qpsNXXP0dFydaHPZcydg3xhAZflGSiaTS/r2QkdmKsUXVg13NK75cY8 7bCCbRh2FMqGj5DizGwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7LCm-00H5rT-K2; Tue, 11 Jan 2022 17:45:08 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7LC4-00H5eb-BW for linux-arm-kernel@lists.infradead.org; Tue, 11 Jan 2022 17:44:27 +0000 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 10328406EA 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-f71.google.com with SMTP id g11-20020a056402090b00b003f8fd1ac475so13996329edz.1 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=W7Gqn+z31IsjgtSifAbiwIeEH8KFIUJHc+MrlBbI4oRbLrLat453Dw0z1vkjKHBgIx SMqPqfqZD8aVgE/VB3/oA0PgGrT98BrbieJctL7FbL25NDz0TnQy8OAqOJF4XqC9hcf7 osoHeliRlYIKmWTcXL/LIwwU8vXiqkvAis4HEL//BUbLqeRkmK45oiR7kODU8hBtmoXy 2syRAcd99ihk97N8uqNqsRwUnlSeOe13nPSlC8/PW7IYa/eTNl09frceRX6q74azO1bp 0S7F0ITraa8lWHMUt3+PrBV6hPjyNfD3wO52uRaJiVFCz7sq/f0YGV54gphf1sHN7zd7 2FTA== X-Gm-Message-State: AOAM531R7A6Cg3jiexjPQ+DX1exmOScu8NvFVSojclsggsWmaP+502BO vW2fWL6OandZen5v9geWYZZt19GtusYaomp2na6zbo6kHKI7kw3x/91uRKYr7nBPN5w8+7qeQIF YOvR0sLcQmCOdGWZuxr+bDZzgtu3L2yW7Apo8TkrwFtAYsXtwlTjx X-Received: by 2002:a50:c94b:: with SMTP id p11mr5652981edh.173.1641923062611; 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_094424_692625_FFAB3555 X-CRM114-Status: GOOD ( 24.79 ) 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 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.yaml diff --git a/Documentation/devicetree/bindings/mfd/max14577.txt b/Documentation/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 Gauge. -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/max77836) -- 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 = "maxim,max14577"; - reg = <0x25>; - interrupt-parent = <&gpx1>; - interrupts = <5 IRQ_TYPE_LEVEL_LOW>; - - muic: max14577-muic { - compatible = "maxim,max14577-muic"; - }; - - regulators { - compatible = "maxim,max14577-regulator"; - - SAFEOUT { - regulator-name = "SAFEOUT"; - }; - CHARGER { - regulator-name = "CHARGER"; - regulator-min-microamp = <90000>; - regulator-max-microamp = <950000>; - regulator-boot-on; - }; - }; - - charger { - compatible = "maxim,max14577-charger"; - - maxim,constant-uvolt = <4350000>; - maxim,fast-charge-uamp = <450000>; - maxim,eoc-uamp = <50000>; - maxim,ovp-uvolt = <6500000>; - }; -}; - - -max77836@25 { - compatible = "maxim,max77836"; - reg = <0x25>; - interrupt-parent = <&gpx1>; - interrupts = <5 IRQ_TYPE_LEVEL_LOW>; - - muic: max77836-muic { - compatible = "maxim,max77836-muic"; - }; - - regulators { - compatible = "maxim,max77836-regulator"; - - SAFEOUT { - regulator-name = "SAFEOUT"; - }; - CHARGER { - regulator-name = "CHARGER"; - regulator-min-microamp = <90000>; - regulator-max-microamp = <950000>; - regulator-boot-on; - }; - LDO1 { - regulator-name = "LDO1"; - regulator-min-microvolt = <2700000>; - regulator-max-microvolt = <2700000>; - }; - LDO2 { - regulator-name = "LDO2"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <3950000>; - }; - }; - - charger { - compatible = "maxim,max77836-charger"; - - maxim,constant-uvolt = <4350000>; - maxim,fast-charge-uamp = <225000>; - maxim,eoc-uamp = <7500>; - maxim,ovp-uvolt = <6500000>; - }; -}; diff --git a/Documentation/devicetree/bindings/mfd/maxim,max14577.yaml b/Documentation/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 MicroUSB + 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 MicroUSB + 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 = <1>; + #size-cells = <0>; + + pmic@25 { + compatible = "maxim,max14577"; + reg = <0x25>; + interrupt-parent = <&gpx1>; + interrupts = <5 IRQ_TYPE_LEVEL_LOW>; + + extcon { + compatible = "maxim,max14577-muic"; + }; + + regulators { + compatible = "maxim,max14577-regulator"; + + SAFEOUT { + regulator-name = "SAFEOUT"; + }; + + CHARGER { + regulator-name = "CHARGER"; + regulator-min-microamp = <90000>; + regulator-max-microamp = <950000>; + regulator-boot-on; + }; + }; + + charger { + compatible = "maxim,max14577-charger"; + + maxim,constant-uvolt = <4350000>; + maxim,fast-charge-uamp = <450000>; + maxim,eoc-uamp = <50000>; + maxim,ovp-uvolt = <6500000>; + }; + }; + }; + + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@25 { + compatible = "maxim,max77836"; + interrupt-parent = <&gpx1>; + interrupts = <5 IRQ_TYPE_NONE>; + reg = <0x25>; + wakeup-source; + + extcon { + compatible = "maxim,max77836-muic"; + }; + + regulators { + compatible = "maxim,max77836-regulator"; + + SAFEOUT { + regulator-name = "SAFEOUT"; + }; + + CHARGER { + regulator-name = "CHARGER"; + regulator-min-microamp = <45000>; + regulator-max-microamp = <475000>; + regulator-boot-on; + }; + + LDO1 { + regulator-name = "MOT_2.7V"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <2700000>; + }; + + LDO2 { + regulator-name = "UNUSED_LDO2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3950000>; + }; + }; + + charger { + compatible = "maxim,max77836-charger"; + + maxim,constant-uvolt = <4350000>; + maxim,fast-charge-uamp = <225000>; + maxim,eoc-uamp = <7500>; + maxim,ovp-uvolt = <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