From nobody Thu Apr 9 01:42: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 1D919C43219 for ; Thu, 24 Nov 2022 11:02:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229947AbiKXLCm (ORCPT ); Thu, 24 Nov 2022 06:02:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229917AbiKXLCd (ORCPT ); Thu, 24 Nov 2022 06:02:33 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2706065E3 for ; Thu, 24 Nov 2022 03:02:32 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id c65-20020a1c3544000000b003cfffd00fc0so3680246wma.1 for ; Thu, 24 Nov 2022 03:02:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=f8coExvmph2ieHx+r6auMeG+A0vCLB4yeE2ROT1XoWQ=; b=UDaS5NZLYRelwrcYVBVKfmucds9sHpPmbhNjW9juztwgpB4SD06xUOvQ4iLHZaCd/d bCCFKpNJi+Ee/hbB7ZsBzLAQSqtjcSwcUIZinCvDYUksDVSQCbLo2oDu0JiLq7j7UXvV +v6hshdPgNjCk7A43uSRMIbNxVRZw91Nph8Sfi18HontitSfeJS3e4dJDZqRD0wgbbiJ g49MQEEdCVloRH4i4ftENycHxrS13E78DrSoaKojRkRmAkLApAIN5IMyeT2Ixf+56gQO lSOxkmM1Rg9bwcdh2RNS1R18hUeivNgIavtIfLBZt/Iyyay5BTvS1Y8GjMb9uv85vBe/ GOhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f8coExvmph2ieHx+r6auMeG+A0vCLB4yeE2ROT1XoWQ=; b=CqCIthvYq0kArSduAD1XO50Ekhi/LZqlhJ1H1GoQXhxjLOPBrzmlUdW5RZmIU0AI0/ 53b18lrlHEAoYzUW7sXPv3DMtF+Mdh6yQFMzX2UD9EHiAZfN2J4uq/+9YtjUmxq7Z8Qs ZtXUrGSmbVNPO94fp5fjJCjgN6erI6/VfHmjZVVZmdfrwOQfAeobRFwlohbz8fsaz3lb pGw6tzez81KeGDLDc+UT7wH75D0xHlDkNnvvulxleWcoyKuQPx9IGcL7JrVK2PVoAxYL 6Aff40eiIaW/FQZUbxTAD/YsC+JFLhjnv5sLIDXcbyMyNhNzjRGo+OWJ8ZIYPd2WEbQw CuWg== X-Gm-Message-State: ANoB5pn4t2bt292Fu51KPfm+Q1WWBEMNesBTP3x+pI39I9p5xSmOapgR s/4UkJir1sKfr1+MPBEhhRsXIP35j/12fOdo X-Google-Smtp-Source: AA0mqf4Wc5CHiKyNpvBLJ8dGF0rEfOf5fE/tyVxTc97CIZyX9XdUlR9DLtfutgPL4MGpoH74qFudGw== X-Received: by 2002:a05:600c:4f92:b0:3cf:e87a:8068 with SMTP id n18-20020a05600c4f9200b003cfe87a8068mr17151633wmq.3.1669287750432; Thu, 24 Nov 2022 03:02:30 -0800 (PST) Received: from stroh80.sec.9e.network (ip-078-094-000-051.um19.pools.vodafone-ip.de. [78.94.0.51]) by smtp.gmail.com with ESMTPSA id s10-20020a1cf20a000000b003cfe1376f68sm1332732wmc.9.2022.11.24.03.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 03:02:30 -0800 (PST) From: Naresh Solanki X-Google-Original-From: Naresh Solanki To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Marcello Sylvester Bauer , Patrick Rudolph , Naresh Solanki Subject: [RESEND PATCH v11 1/2] dt-bindings: mfd: Add MAX5970 and MAX5978 Date: Thu, 24 Nov 2022 12:02:08 +0100 Message-Id: <20221124110210.3905092-2-Naresh.Solanki@9elements.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221124110210.3905092-1-Naresh.Solanki@9elements.com> References: <20221124110210.3905092-1-Naresh.Solanki@9elements.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" From: Marcello Sylvester Bauer The MAX597x is a hot swap controller with configurable fault protection. It also has 10bit ADC for current & voltage measurements. Signed-off-by: Marcello Sylvester Bauer Co-developed-by: Patrick Rudolph Signed-off-by: Patrick Rudolph Co-developed-by: Naresh Solanki Signed-off-by: Naresh Solanki Reviewed-by: Krzysztof Kozlowski --- .../bindings/mfd/maxim,max5970.yaml | 151 ++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max5970.yaml diff --git a/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml b/Doc= umentation/devicetree/bindings/mfd/maxim,max5970.yaml new file mode 100644 index 000000000000..6ee269afdab2 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml @@ -0,0 +1,151 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/maxim,max5970.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Regulator for MAX5970 smart switch from Maxim Integrated. + +maintainers: + - Patrick Rudolph + +description: | + The smart switch provides no output regulation, but independent fault pr= otection + and voltage and current sensing. + Programming is done through I2C bus. + + Datasheets: + https://datasheets.maximintegrated.com/en/ds/MAX5970.pdf + https://datasheets.maximintegrated.com/en/ds/MAX5978.pdf + +properties: + compatible: + enum: + - maxim,max5970 + - maxim,max5978 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + leds: + type: object + description: + Properties for four LEDS. + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + "^led@[0-3]$": + $ref: /schemas/leds/common.yaml# + type: object + + additionalProperties: false + + vss1-supply: + description: Supply of the first channel. + + vss2-supply: + description: Supply of the second channel. + + regulators: + type: object + description: + Properties for both hot swap control/switch. + + patternProperties: + "^sw[0-1]$": + $ref: /schemas/regulator/regulator.yaml# + type: object + properties: + shunt-resistor-micro-ohms: + description: | + The value of current sense resistor in microohms. + + required: + - shunt-resistor-micro-ohms + + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - regulators + - vss1-supply + +allOf: + - if: + properties: + compatible: + enum: + - maxim,max5970 + then: + required: + - vss2-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + regulator@3a { + compatible =3D "maxim,max5978"; + reg =3D <0x3a>; + vss1-supply =3D <&p3v3>; + + regulators { + sw0_ref_0: sw0 { + shunt-resistor-micro-ohms =3D <12000>; + }; + }; + + leds { + #address-cells =3D <1>; + #size-cells =3D <0>; + led@0 { + reg =3D <0>; + label =3D "led0"; + default-state =3D "on"; + }; + led@1 { + reg =3D <1>; + label =3D "led1"; + default-state =3D "on"; + }; + }; + }; + }; + + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + regulator@3a { + compatible =3D "maxim,max5970"; + reg =3D <0x3a>; + vss1-supply =3D <&p3v3>; + vss2-supply =3D <&p5v>; + + regulators { + sw0_ref_1: sw0 { + shunt-resistor-micro-ohms =3D <12000>; + }; + sw1_ref_1: sw1 { + shunt-resistor-micro-ohms =3D <10000>; + }; + }; + }; + }; +... --=20 2.37.3