Received: by 10.192.165.148 with SMTP id m20csp3883623imm; Mon, 30 Apr 2018 08:00:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpWF8eKZHnhDdzubgJnUWwYlrrmsOUOevCHkZkxNDVB/+l79NhFHnkuf+sm1Mkv1V3dP8bg X-Received: by 2002:a17:902:ba87:: with SMTP id k7-v6mr4649083pls.193.1525100458020; Mon, 30 Apr 2018 08:00:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525100457; cv=none; d=google.com; s=arc-20160816; b=s4cE4hrRFBofaAys2NkJjX1y0iB3V8wQF7AWEku0DwnBWJdtsSGcPjfNL40CqElAMm 4CrDUP8WItFEaac7fE/1Z94beJ/TNJb8+Wtafm8WgBifUl3ok9//83tleASKL51p2wsZ zNTSbw9iM9VBgXEDcyENABbHjOeRYFebSzVhsE+N0lWYkgcMO/mlJX8IyFIqwA8bXa9Q tarfU0htjaXb+B4lyDEjHNgi+RDoQ4iF4nGgIJKV8Mx7quMJtSQn89/MU6cdJdlWY622 kA4dLwlsOpU+wt/kSPYhqhwrf/DnXAIU8hm+vRDdmW7s87ZidQ7m96OoL/KSBf0PYkzs rtEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:user-agent:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=bZt16a9aeFtdHdXkJZ1fj6R18+DvY+EKPVKTRNq+wBU=; b=PrpWxcYV287KcyaK4osGROHeOMqhK2r5e1ZdghGHMl3YES1c8V2B1ocjqsV61xHBJO k6uNTMlp+Ja6dGt5v9MDLgpiK8P6ao4ZW6o36w72yP9yfTpMVTjXbt2JXb//pKpEeV7a CthQpeM5ep6Z21XvrlZAaQr/iH9d2UkpwFnZIIyk1f43Hsoop+X7MXpyOCo6d9vBSSCm s20X4ERENqCT0RV0kxxbVMCIn356C+NoQvfyji3mb0MEmFt9SteW0kWalF1PZtfqKFSh byZAQ5ojQ/IbsQrXR3PKaCfmrkkrCECsXuUvgfzyPJKfkb6/T9qbd/SNPRCWLzvopUc1 Eifg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gF7hB10u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e68si7615984pfl.132.2018.04.30.08.00.41; Mon, 30 Apr 2018 08:00:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gF7hB10u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754763AbeD3O7z (ORCPT + 99 others); Mon, 30 Apr 2018 10:59:55 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:39493 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754674AbeD3O7w (ORCPT ); Mon, 30 Apr 2018 10:59:52 -0400 Received: by mail-lf0-f65.google.com with SMTP id j193-v6so12532220lfg.6; Mon, 30 Apr 2018 07:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=bZt16a9aeFtdHdXkJZ1fj6R18+DvY+EKPVKTRNq+wBU=; b=gF7hB10uFbHzvSPMqOxdoPj/kozgL+bAUtv2+Mj1iKBMqLQZ5acaX7uX2qId3hr6JS nExNcDCRMAh/dEmS9KlMZ84isyJAAJdcYOLt/zlFAU/Z9srkPNuuIJYPhuiZweojjnZb w9GiH7sBSNY7cuDA8IKV+kvvdaCjd6nMNdkevaCxmJ9pDELUlVV3YiY3SVJCxPD8WAkL 6iES1iPFmPRiMAytomD/ea7xHNUBaBAcHt7F0ikmE2aN0K5Ga8JrtWz4lbNhV7T2ogqc r0Vt5e6ffpVNcAolLxmOuywVXoyKLMZCPbHxWimc+30a48x4UbA7gSY3AvxQRiz27gsS 2slw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=bZt16a9aeFtdHdXkJZ1fj6R18+DvY+EKPVKTRNq+wBU=; b=Aeg3vcT8roZlTG67TpfTlMup7javi/6yRy3YXI5ycdjL6hI2Hdma+T+u2TIGiEukWY O2FFQeBZJvcicDilDj0QiXbDSLlOhIjUBreuKwF4BD7mt7XKBpSQ3JpZzypJTw9OSqzX JCzQ/w5wp38qoA1eX9mMjs3MvU6q604kmnHNlcAoXIRIg8u3IcVvWoauDriqhzzw0joP vRKJAwdPD+kEQ8aPjOPpLJrUMq9Y6gA2aot8nqZU0EfT6yupoaCnr6kuJBZMBbF1HwDL BdiQy30esOPritVcQrjGxTC7oo6pqYLd08UZwwsxpR7onBtz+LIUA0FaJsZ9QKP/kWdv eOSw== X-Gm-Message-State: ALQs6tApa9uWUsOmoxp13vG0pua2+yrKiP8vNsSX/pULAuYSEhUYVK4c 3iHJ0IVJKx2Puij4Dj28N6g= X-Received: by 2002:a2e:c41:: with SMTP id o1-v6mr8119725ljd.87.1525100390057; Mon, 30 Apr 2018 07:59:50 -0700 (PDT) Received: from acerlaptop.localnet (user-94-254-173-44.play-internet.pl. [94.254.173.44]) by smtp.gmail.com with ESMTPSA id c79-v6sm1538256ljd.47.2018.04.30.07.59.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Apr 2018 07:59:49 -0700 (PDT) From: =?utf-8?B?UGF3ZcWC?= Chmiel To: Lee Jones Cc: lgirdwood@gmail.com, broonie@kernel.org, sre@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 4/4] dt-bindings: mfd: max8998: Add charger subnode binding Date: Mon, 30 Apr 2018 16:59:48 +0200 Message-ID: <2163655.V5BWH1NDss@acerlaptop> User-Agent: KMail/5.1.3 (Linux/4.13.0-39-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20180430123036.GH5147@dell> References: <1524844982-4714-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> <1524844982-4714-5-git-send-email-pawel.mikolaj.chmiel@gmail.com> <20180430123036.GH5147@dell> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, April 30, 2018 1:30:36 PM CEST Lee Jones wrote: > On Fri, 27 Apr 2018, Pawe=C5=82 Chmiel wrote: >=20 > > This patch adds devicetree bindings documentation for > > battery charging controller as the subnode of MAX8998 PMIC. > > It's based on current behavior of driver. > >=20 > > Fixes: ee999fb3f17f ("mfd: max8998: Add support for Device Tree") >=20 > Why is this here? This patch doesn't look like a fix to me. Hi I though that if previous patch, which is adding missing device tree parsin= g into charger driver, has fixes tag, this patch (which is documenting it), should also contain th= at tag. If it shouldn't be here, i can fix this in v2. Thanks for feedback (this is my second patchset for Linux Kernel) >=20 > > Signed-off-by: Pawe=C5=82 Chmiel > > --- > > Documentation/devicetree/bindings/mfd/max8998.txt | 22 +++++++++++++++= +++++++ > > 1 file changed, 22 insertions(+) > >=20 > > diff --git a/Documentation/devicetree/bindings/mfd/max8998.txt b/Docume= ntation/devicetree/bindings/mfd/max8998.txt > > index 23a3650ff2a2..f95610afb57f 100644 > > --- a/Documentation/devicetree/bindings/mfd/max8998.txt > > +++ b/Documentation/devicetree/bindings/mfd/max8998.txt > > @@ -50,6 +50,21 @@ Additional properties required if max8998,pmic-buck2= =2Ddvs-gpio is defined: > > - max8998,pmic-buck2-dvs-voltage: An array of 2 voltage values in micr= ovolts > > for buck2 regulator that can be selected using dvs gpio. > > =20 > > +Charger: Configuration for battery charging controller should be added > > +inside a child node named 'charger'. > > + Required properties: > > + - max8998,charge-eoc: Setup "End of Charge". If value equals 0, > > + remain value set from bootloader or default value will be used. > > + Valid values: 0, 10 - 45 > > + > > + - max8998,charge-restart: Setup "Charge Restart Level". If value equ= als 0, > > + remain value set from bootloader or default value will be used. > > + Valid values: -1, 0, 100, 150, 200 > > + > > + - max8998,charge-timeout: Setup "Charge Full Timeout". If value equa= ls 0, > > + remain value set from bootloader or default value will be used. > > + Valid values: -1, 0, 5, 6, 7 > > + > > Regulators: All the regulators of MAX8998 to be instantiated shall be > > listed in a child node named 'regulators'. Each regulator is represent= ed > > by a child node of the 'regulators' node. > > @@ -99,6 +114,13 @@ Example: > > max8998,pmic-buck2-dvs-gpio =3D <&gpx0 0 3 0 0>; /* SET3 */ > > max8998,pmic-buck2-dvs-voltage =3D <1350000>, <1300000>; > > =20 > > + /* Charger configuration */ > > + charger { > > + max8998,charge-eoc =3D <0>; > > + max8998,charge-restart =3D <(-1)>; > > + max8998,charge-timeout =3D <7>; > > + }; > > + > > /* Regulators to instantiate */ > > regulators { > > ldo2_reg: LDO2 { >=20 >=20