Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1704135lqs; Sun, 16 Jun 2024 00:27:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdLBkD3OGK3jV44zryd0VUhG0Cv5KgqmR0OAl45aCdoRU5CLcFNDwVXeywVx5LgjfOGfs5xuAAtZrPA7n8Qdiw0T9k1TMbLlrRmeGcng== X-Google-Smtp-Source: AGHT+IE+gZzbUOGhiNOxa3DuMpqG6G06WryBtSCDHng2qBnA/yufQ3jPV2GPc6jZuXftYBqWdSnw X-Received: by 2002:a05:6e02:1c4c:b0:375:8a51:6c65 with SMTP id e9e14a558f8ab-375e0e2554fmr78927175ab.13.1718522857167; Sun, 16 Jun 2024 00:27:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718522857; cv=pass; d=google.com; s=arc-20160816; b=c6lVvw0HY1noVsWZqtfhwy/TOpuWAJsaHh4qT2av5Z4/FqUMcGnFaPhvk3h4q/VZef jehKeUH2yqEybEERf2PzH1UPd5rZMb31I8ijWmkm+7/8ZRO9cHOXZqTs5GRebNHuQoXM VX3ns9DRX9qZcR3yRwoIFgI0rKnFdw5LlSDPkzETOo8fBVq7bALx5Xc9JXuEeO5QlnAG 0L/MY3FI0Pbu3gO2Pzv45VzDtdybTnFEJXFfgUxcDhmQaZYidwMGvch0hKrF1cNQiVlS qpCwD4ldrHfHvt5iMa6zxteTJ1o31kbNhAdOLkey/UV4UtS2DgmzxiZ8S7iiafCB4dgF iSNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Wm423PHA97jqFkwO6IIVDVituZs8/QAPxo/ElnWslR4=; fh=6yDfUC1a7eR260Cw2IsuqcP7c9AJMFbVGoeGoTLCc24=; b=tHqUdEDTRzs10SyoBkxG1p95G4EFD5sULAVhTCL9Tmp+m8vHEBLBnX01APz1oVL+xm v/vkMcWl3SUH5Kl9K45VhoOdl6LOJ8eM7QlK+NETHPHX+loNmbvfO08YQtJ8JnK9PkYN uMMPnS1fuiM2cWnuDL2V/B5fw9SDOUVbji/GvpOX3o9ivQ5pH9MSGVaXYHMlDXXf3+sc 7tHmER9BfYdwygXio16yjhNwd0KQ39SnBOzZRiC6TEpT2C8qTYKljqecGjCuXb6ejRdV 32e648VwJSiXLhn++FxBvTsFXflIDNaGsF2kN6yNsIVTyaz6pG9qKyJQVuiaVaWQKy7o +b/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nOOEEfm5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-216158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216158-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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-6fee5c3d6casi4517382a12.772.2024.06.16.00.27.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 00:27:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216158-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=@kernel.org header.s=k20201202 header.b=nOOEEfm5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-216158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216158-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 BE26C2814F5 for ; Sun, 16 Jun 2024 07:27:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9DE8178CE2; Sun, 16 Jun 2024 07:27:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nOOEEfm5" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6F1916DEB4; Sun, 16 Jun 2024 07:27:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718522846; cv=none; b=ZdWIpxekeP5vDzNUrlvrQUkEaFg0WEVFYd3HS3VWIvRLk8CoxJx/IQZ0/qjp44WudK8f5rQZxlJgoFaEZuv8BA9UGQmq2MCHoIPatQ/vGhVwOffR7shyfl5U8p/aKWUXnkbqZ3ppQ9TfSgAd6G5w+NWTZh2Y9edYQzCGPuswtRU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718522846; c=relaxed/simple; bh=FjDsLsQwyUjZvEGR1oYiWuxX3oroRTwk3tBNVXECc14=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JQ0Y5CfkPK0IzWjfs1FGNY7xkjBrVtI6bqWDB2cFPP+hSVQm7hLn4+Ao2n0tUPDUzaOjldq5yOYEd6VDq2gfpSXwzrLw3wStBo4oEsK6cReJD2sEJxuefQfTG2K6FG4W76MGO3XIAmEnREqpLA6enkIS4i7tPb/32kbLkX15RXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nOOEEfm5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05D5FC2BBFC; Sun, 16 Jun 2024 07:27:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718522846; bh=FjDsLsQwyUjZvEGR1oYiWuxX3oroRTwk3tBNVXECc14=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=nOOEEfm54Md7UjVMe47LM2kZRyPLdnCmWXaYMGy+8Ymv3MIgNZO+NU6sGhM5aj4ri aFAkAr8eglJ4wcumSTAMun6PuJIf96E9aKCn+zcG03Uv0GLpOMEoMtoGkQ6l+KJIF2 4bhGYhglKqdQMW3mapyBro0oCL2Uz/15mnVY8OzZoBpNxhvNH2L+8Wit1dLBUlzZn3 z35bya0SxnBH2OnjPjN2sfbtfWBIFuKF13kqw0dp9Nono/Ssohvlbuua2gNGmZuGj8 x/jFwMdXGuFarqGVAgujmHPkEir+tPUp4XEKg+1ymt+KNbNkZ4OgMHh5rOtFZlH6i2 ZaKvppWmEThog== Message-ID: Date: Sun, 16 Jun 2024 09:27:21 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/2] dt-bindings: power: supply: add support for MAX17201/MAX17205 fuel gauge To: Dimitri Fedrau Cc: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240615203352.164234-1-dima.fedrau@gmail.com> <20240615203352.164234-2-dima.fedrau@gmail.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyDsuZjHvj+FRP+ gZaEIYSw2Yf0e91U9H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BSOIpeMtfgb/Pfe/a1WJ/GgaIRIBE+NUqckM+3zJHGmVPqJP/h2Iwv6nw8U+7Yyl6gU BLHFTg2hYnLFJI4Xjg+AX1hHFVKmvl3VBHIsBv0oDcsQWXqY+NaFahT0lRPjYtrTa1v3tem/ JoFzZ4B0p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240615203352.164234-2-dima.fedrau@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 15/06/2024 22:33, Dimitri Fedrau wrote: > Adding documentation for MAXIMs MAX17201/MAX17205 fuel gauge. > Three patchsets within 30 minutes. No changelog et all. Slow down (one posting per 24h) to give people chances to review. Then provide changelog under --- and describe what happened. > 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 Nope, this must be specific. Filename follows compatible then. > + > + reg: > + items: > + - description: ModelGauge m5 registers > + - description: Nonvolatile registers > + > + reg-names: > + items: > + - const: m5 > + - const: nvmem > + > + interrupts: > + maxItems: 1 This is incomplete. Missing battery and probably more... Look how other bindings are written. > + > +required: > + - compatible > + - reg > + - reg-names > + > +additionalProperties: false > + > +examples: > + - | > + #include > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + max17201@36 { Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "maxim,max1720x"; > + reg = <0x36>, <0xb>; > + reg-names = "m5", "nvmem"; > + interrupt-parent = <&gpio0>; > + interrupts = <31 IRQ_TYPE_LEVEL_LOW>; > + status = "okay"; Drop Best regards, Krzysztof