Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1532645lqs; Sat, 15 Jun 2024 13:10:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNViaS/BhZRbCsusZuOYk6CEzJhyZRfjd47JFPOr5D7jHPrWA+gneO3093lvFlSaEVnog1YCgCDAoavFsMi7qqSjoUeeG5lPr+M/jLow== X-Google-Smtp-Source: AGHT+IGynGCzfzaeEPhNFZFlO0A/8yUiZvqy67rkk09ZMko4BExeNW/jWa1PzckeI/JOO+SwGfGM X-Received: by 2002:a05:6808:1911:b0:3d2:21a5:d3bd with SMTP id 5614622812f47-3d24e9d88edmr7240722b6e.52.1718482214370; Sat, 15 Jun 2024 13:10:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718482214; cv=pass; d=google.com; s=arc-20160816; b=dp0ia8lIZdlaxwFO7E1oWWW9+ZCBDs1yqlAEh1w8f+u6y2p5QooOIK3zfKuHVexxdZ C5rB5HMcMUlM5qKTdUmgE5frkRfR/76DPIje3Z2qy6IYyJN6rnieedl5GEl+faEumlaD 75ZPF9g4CchrWWHvGgceiTq1b3vq+UcQrheqioX2J+g6oNXB0PIsijjqM0mBQ/XAHDyU 3vsZQVNyhoGqiFY5RIceF7sohRjmXCab69vaVCnwyMcbnYfULAMtUd1ev3D3WkDq47JC W5Id8kBtaOWszGq1KX8Jyx6Alt1cOCw89nT+4mx9iHmUGKv12AZzHl+KRV4zs17OIB3F BvDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=YEsbeDNGK/vB8KJ4o8p9x15wpBpC+5Utf0VzUSNFjJE=; fh=ZyK3seGsTQwRVDvdXZeAdNbLw3Z7VpdlHGMoY8bDfWU=; b=EHDshvvlk9XksJBPflBP2CSUUthM6ICxPmXtEqpCpxFh1hPFxP+Hhlfo/WUIFxoZ0B nM0EkzTlIIljjfWBnuRjPjcicK0AP3ZSGB4Z/klQS6wV4qyazRRtGHppZw984SV8PV+e BEe2odgOd4ldAgSdmwu3ePoCA0foP4gzhn8zVJAHXe66ILvBMlWaUc1HHtAtJ6Y5JPUt TcE70x9Dmhe+/6rWNWSHdf7M382j9ke8A8r9x0rDxwq5vomVDJrmUf+Nc+6JUl8tjfkq PY6vbBbT5Yj0zbuO18Qf6tHlQLzthCrNM5SXIaPTYZiYdMjxV58+UaNyJE56fwVy3qN6 /I8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gUK7lec6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-216000-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216000-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-798abd1ddd6si651509585a.460.2024.06.15.13.10.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 13:10:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216000-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gUK7lec6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-216000-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216000-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1A1791C20F06 for ; Sat, 15 Jun 2024 20:10:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65DD961FF1; Sat, 15 Jun 2024 20:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gUK7lec6" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDD3161FC7; Sat, 15 Jun 2024 20:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718482193; cv=none; b=hRD1MOV68VS4rJbJMe9Nc6jbF/Kid8rr9hdbEhvLvlIH1uVbwUTSnLSagGZ8QJsi5Mlk2iVinYNSrzxZNQSqlENLj9xNFTIZygBrnMl4jdso2Bx4fQJU18Z7zsoqomzTQczXyG0hMmsGJy0ESsyIDMWQKhz7witQt62Zo6DbdoI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718482193; c=relaxed/simple; bh=+ZCC1LjssyKOXgoyALPO/y5fpHApzr2s/7Sn8j4wp9s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mFqi2+jrWV7a83Oc1nB2HRNODWoJA3kKFWSmIdTpu/SF5FIfoWkIU4VA2gZt9zVcXZkUdj+JeHiJmmpj4sK336Czsl7x+n4tpKDy2JKpBVttCR7/hMkoREaUgFlVjF7qmKFiFUKRxPDyLfF4wAVdwyCGxv+zloJv9HBxiz7G9cM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gUK7lec6; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2eaafda3b5cso39664571fa.3; Sat, 15 Jun 2024 13:09:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718482190; x=1719086990; darn=vger.kernel.org; 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=YEsbeDNGK/vB8KJ4o8p9x15wpBpC+5Utf0VzUSNFjJE=; b=gUK7lec6jc1itWIv/ciEhBBtNYvUuq+N8V4QrxWD5mErB5AF34rKhr1ZF+s5MdLc1W XJ2pipiQRku7g7P3BBsvW5aanBlhBNmxGJqliVm98RGMWUTi5RRiqWdVB+WZD1lfp+R6 xsDPvVY+2mXUDDdUSixtSXf7DuYxBiU/i2Wox8c68Nk3fEN7PtfkZiqIsZWGqCP+cGCR mTVVSYs5f85HJ+mSJJfAj53b2pan2B/qqcKYpfxuNjWMB44M/LZDqAE286/su2PWya5n vInz2vlADZhA5Ebo18CJAd6dbcjDE+8MElKERKZisB9eNVU8JZmtVbAzombf3ziSj7ck TMFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718482190; x=1719086990; 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=YEsbeDNGK/vB8KJ4o8p9x15wpBpC+5Utf0VzUSNFjJE=; b=vbXXMDUC+Rp3vykYJ/s22NZmCR1TVKR7MdL5UTxxWhjpZ3m7e+Ep6PGinkNd07Q9DQ 1zSYxT1QRC/y0jpBsKn0p6FTjdaF3asQrBUZCbgRPxhjQ6Edire0uIq8sHrzaXy6IkJK RM7HrxTbXJSDPVqMleFOB3KiBKzKBMxmtq9J7DDp44kf6TRItp+OA7XKZ2SmQFfgyFbE brihzjpND0mj0339P0GSGLEYWxNEsJo4Hj97jyHvUWrsh2AoqIQ2oADtxjswEmof4kNX 3ivltl3CCEwTiau6mf/KayieEdYiWUjUipWW/bWBGMKtYzqOOukRgv/cd1tRjnlWE4w0 Awtw== X-Forwarded-Encrypted: i=1; AJvYcCWPNN6E4pdZheMHov5oaTget/jRFvuJEMAcJbv7lW8vB5mZjwhdyMMc8JxvviM+IozUM3EOZuoQu9SnPfnjo4kaPpZHkl8scw3vy/aj3ciU2ddCymP3RMBp56h7vFNDun/lZQaBHDdZJ+RKHtzOi1n2/UTqokKafiHu4SQ/5ihhEqw8 X-Gm-Message-State: AOJu0YwlVHivSiidU81rTBSkg528Q5lVbd+jflfyZVlZmYxb1h78kskr syy6ZkQmxWfnnkXCIa9CFAwxOfqf6qSrTvZfeF2Vz80f+rCoCOKL X-Received: by 2002:a2e:99c8:0:b0:2ec:1f9f:215a with SMTP id 38308e7fff4ca-2ec1f9f2405mr13768011fa.34.1718482189706; Sat, 15 Jun 2024 13:09:49 -0700 (PDT) Received: from debian.fritz.box ([93.184.186.109]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-422f641a666sm108510915e9.45.2024.06.15.13.09.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 13:09:49 -0700 (PDT) From: Dimitri Fedrau To: Cc: Dimitri Fedrau , Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: power: supply: add support for MAX17201/MAX17205 fuel gauge Date: Sat, 15 Jun 2024 22:09:31 +0200 Message-Id: <20240615200933.162394-2-dima.fedrau@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240615200933.162394-1-dima.fedrau@gmail.com> References: <20240615200933.162394-1-dima.fedrau@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Adding documentation for MAXIMs MAX17201/MAX17205 fuel gauge. Signed-off-by: Dimitri Fedrau --- .../bindings/power/supply/maxim,max1720x.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/maxim,max1720x.yaml diff --git a/Documentation/devicetree/bindings/power/supply/maxim,max1720x.yaml b/Documentation/devicetree/bindings/power/supply/maxim,max1720x.yaml new file mode 100644 index 000000000000..4414bc6f214f --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/maxim,max1720x.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/maxim,max1720x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX1720x fuel gauge + +maintainers: + - Dimitri Fedrau + +properties: + compatible: + const: maxim,max1720x + + reg: + items: + - description: ModelGauge m5 registers + - description: Nonvolatile registers + + reg-names: + items: + - const: m5 + - const: nvmem + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + max17201@36 { + compatible = "maxim,max1720x"; + reg = <0x36>, <0xb>; + reg-names = "m5", "nvmem"; + interrupt-parent = <&gpio0>; + interrupts = <31 IRQ_TYPE_LEVEL_LOW>; + status = "okay"; + }; + }; -- 2.39.2