Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1539193lqs; Sat, 15 Jun 2024 13:34:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyyA4h7hRdGNT1wCSIc8gv9JoeciSN1KylyqNmWEuDxTulGi63iJ0QF/ywy8c4d35DBUfy3iNsPcobt5zPx6fYiHfezdfsxpbocg1uGA== X-Google-Smtp-Source: AGHT+IGffSBZ2WddcqgORTaca8OAnzf9AHOcst8kZbN3BV9+7zM9ZSdVJU/UqZrpyGQBrVi/mKoZ X-Received: by 2002:a05:6a00:21c9:b0:705:a5c1:e519 with SMTP id d2e1a72fcca58-705d71408c9mr7354003b3a.10.1718483672880; Sat, 15 Jun 2024 13:34:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718483672; cv=pass; d=google.com; s=arc-20160816; b=EnM40hg2pdSISFTlhrJ4WLrBCdXfV141/dJ9kKMTpg1dObR4BttQP0B0qb39Th2hrE QnvGNVHIMNN4Z+zKdA95EZ13smqAg8tSYijkCLErgM+zo8e7H1P8U03S2NeBKmWnTLMO rg43HRvKjj+oELT+aPxksFL/zFSix97kjPtKLvP+x4FvEWclg7OdwXtPpuIpg7M+7jfh dKVRP5NEJRZ7DJ+diOnwlhw8bjJvpOCV8PSQWsxKUvhdDbEYk3iN0OgXiSUSpT5O53d6 MhuJTAbi/q8Vq1xbyDez05ZAM+mh9KvRmVkaPaiw+5klZfF6p8I+bCzQ5pXDjyCVbPHD geKw== 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=1M5cJ/M4KwnVOz1MlWuuoLOBNxDn7SClKV6GBN65eLM=; b=GzHABLmrC/WJScrN3BwTV9lB+knK1OzYZSj7svRf/bDrBJeNLrFhPbVIwsNAxaaX38 g4t+AKZIrh3Uc3aAva8MbhhcGTBB5G8zZ3zXHnFgYmoPF4o1iHUnbX5dFnW2PFO387Az TbEff3ZUv8GIhjl9gwLw3k0YOUF2lf7HkUGRGXlVaCrXW8MLkZd87E1PJ4mvUdRbmcGQ 40ZpIwKFanT0d7MxtwT8eupnxGJgPccW8AnM281WSIMdLtnQKtURSpAyfICUULLqRaVB rdOtDb3VjnPfSrcU6klCEYyvuWC6I4kJX9KNmw5q+woQIWZokCJbWj8LlrlimvF/nmmp +8Mw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AFbFaq0U; 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-216009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216009-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee310bd1fsi5279421a12.408.2024.06.15.13.34.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 13:34:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AFbFaq0U; 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-216009-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216009-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4B3B02823D4 for ; Sat, 15 Jun 2024 20:34:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77D486A347; Sat, 15 Jun 2024 20:34:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AFbFaq0U" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 1D7D661FDA; Sat, 15 Jun 2024 20:34:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718483652; cv=none; b=HIHdzTt+IFMueAsFhMi5FzQI0sz4HnxcTChAaeOUdAn33WseoFJr32NaRyKwJf4RUGy8sO+TA3d9xjHvVy/9VQsFIGb8sg81ecR8eXe1P3i3QIvWax96JDD0wf2kmZ8wocF8IBi2O01andM3vzUpeLmHbHVjH8FK+ibjnC32O5M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718483652; c=relaxed/simple; bh=+ZCC1LjssyKOXgoyALPO/y5fpHApzr2s/7Sn8j4wp9s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YtJqjIblN8i3z71x8MBZo+VaYTVK9T+KPOZVGdUjqhTHMrKNpAXlQmRW6mI/UQSBc0Bhm3LQfSyHHs8+Uh+ovNjaLXf5XKKugq53fR2rtTkXPgYrQ0sBPDaUd2ZKl2PYSLZGSG5Cl39rBjzdoJwI3ZkoXsYcJStsegeR01bbrAs= 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=AFbFaq0U; arc=none smtp.client-ip=209.85.221.48 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-wr1-f48.google.com with SMTP id ffacd0b85a97d-35f2c9e23d3so2834599f8f.0; Sat, 15 Jun 2024 13:34:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718483649; x=1719088449; 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=AFbFaq0UkAcXfDS3mEfyQcpYDK5prEo4kHmDnf5e8tPQ6yP7N6L+KIt07iVY0zldfM eSon3jsw1M8HigzrCHaclOMMJPX/9LEmGrzsUTv5RI+pWvN6a5CvoBvMtKwYQu+L+Iwy +7ih8PAE65/04Hx90U8K1E0G6rPs2cOi9siOaWii/saXBUrqzpXyPeMhbU/G6kiQtgQ0 N6KQwm80ZiYK9AGg0IDzHl9utM9z6aT6Oln8kAz5842V47l3egn9HnBOHE47Z2N8AxoA SANAe1FIfC9SMvBD7jZPcSB0ItCtf5AD564mOw8Rq7kmLB3Z7iMX5cUkIwi1ljdc3Dnf uNdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718483649; x=1719088449; 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=pwzEu7ADr31OE846dR7pAtSEdk2qFD+oQj+oZoBF5zAhq07CbSnPHzMpfhisuqBWHW GuQcFY3I1pnSc4WFH+8IRxrIS6JNF1vClbeVQZGQFCT2DETcYPuT2thdVhiwpGxUUucQ NtFn5maeioHc+Mh0a6mFmGUZ8TvTPiDsf+sNSV/QryTnNWMKrh9F5EzEBKwF+sdpjt4s acEfGcZCdojyQL1UlM6Y7wolXlDXVAcG6engr4qJW3mwb+keCSzSFI7//CFpKkfjt/r2 uvcJdsGeVuJ6zSzyJlnFK2HYEHGjIWXVFRYtZATjwDcO/PRu9XGTQL0tW4E929UwzxVr On5Q== X-Forwarded-Encrypted: i=1; AJvYcCUhmfBO3BZbz7Pfy5996190Tu1vpH9pKTPNC1QM74MxwrABDShCsRB3dGMDlq1ztMjmuGm0jb6ShU4A1eLGn2wvYE0fT1WeR0Sac79K/tQiIzzDLzf0Pan6klVYeyCo6QBTJfeVUDgPzFdcxmapI9SYxDLAKuRFX2WMen15jUGxEe2E X-Gm-Message-State: AOJu0YzJNXLjqL6YWENV/xeCJ4vwMDPg3d3QNY6mf2x37B1SPKk61Y8i 1KhG1BvSv2Zwgp9x920eFFGIcioWpOQsYtXHuojVqSgW9kYfy6oeFSXHYg== X-Received: by 2002:adf:f705:0:b0:35f:32af:d79 with SMTP id ffacd0b85a97d-36071901363mr8026686f8f.27.1718483649414; Sat, 15 Jun 2024 13:34:09 -0700 (PDT) Received: from debian.fritz.box ([93.184.186.109]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-360750935f8sm7973510f8f.11.2024.06.15.13.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 13:34:08 -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 v3 1/2] dt-bindings: power: supply: add support for MAX17201/MAX17205 fuel gauge Date: Sat, 15 Jun 2024 22:33:49 +0200 Message-Id: <20240615203352.164234-2-dima.fedrau@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240615203352.164234-1-dima.fedrau@gmail.com> References: <20240615203352.164234-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