Received: by 10.192.165.148 with SMTP id m20csp3728241imm; Mon, 30 Apr 2018 05:31:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqEEvJ+R9LF2hPJmtUzwiUbxYrp8Uw4CFy6mwLehMLdsK6ponx5jTD6+vBLJIZzMEfyR5IL X-Received: by 2002:a17:902:9a04:: with SMTP id v4-v6mr12271371plp.21.1525091466919; Mon, 30 Apr 2018 05:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525091466; cv=none; d=google.com; s=arc-20160816; b=UG0YQ/fHpguW6fqmCHXBOjsiww2EginOk0w0WH56rUT6SlPzeAJyi+AJ/fhiekQ5/f lvSUgJR2P18h0HvGprmdygq+HX+xYejOMknjFpaY79QQTgfeQW6JEeAmzv7PGgBnWVCt ADvgL8iZ7fN17uE1Xd41A5KEqp1+yPCZ4HXhE9E5lGGEim+RAe7/2wTmvp1drsaA+kwa RVUq8zk+f+o+qmje3SK/O02KU9p3E9yyJ264theCHUzhUgPeXKYa0tX/Rp39u4PIZwpK GTzcEypsFkk9B5eRZ0CeSRhS9mds99Gav20REMXy1dYbilKbyWhGFnXKss0LfBi4SZxG 2dcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=apw+UvlCBiT/rVdXVnbotxtSnEGA706kZfQrUISfAt8=; b=kHddebhzzQlB8v/gB/C2AzS0hzxPAmKw1gJmFKR7REHy1n29V+SNy8A2Yf/7TTg/Wn Nhi9fVGvMLBfPaBKsr4HXq55IbyRDSmGi4L7OuIvnaPBMiDzpMu6ilvMNTezS922itMB eYPaRlTS0J5kN+MblZrO4hgwp20y35XUBw1fawr4aJcssjrY7TMCZZ7zjM6k8ZnUmlgX r9sdoMaKNzaE7Mia6jqjdQOdCZKLhof9CJIcku38jeG2zG43WKmTjYkxSzMlFrEshjXz ZBNaHKCya5Ld6r38iNFoYQzjXaJUcHhthkE1lvbR8mCjhDGlnwWijPu0wSXYbigywYKR mFFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PAqK959c; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3-v6si6023309pgs.449.2018.04.30.05.30.51; Mon, 30 Apr 2018 05:31:06 -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=@linaro.org header.s=google header.b=PAqK959c; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753172AbeD3Mam (ORCPT + 99 others); Mon, 30 Apr 2018 08:30:42 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:53552 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752521AbeD3Maj (ORCPT ); Mon, 30 Apr 2018 08:30:39 -0400 Received: by mail-wm0-f66.google.com with SMTP id a67so5276187wmf.3 for ; Mon, 30 Apr 2018 05:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=apw+UvlCBiT/rVdXVnbotxtSnEGA706kZfQrUISfAt8=; b=PAqK959cG78RZF+PK502uSB+hoAj5fXqF5Tsn8A0lQ2WCIn+KJKTSl8Dg+57Xx/wM0 BmH+I/rfL/MBB5TJLyA/KnFK0hTZjy5SMkHdLAnrN4IM/+uKMDcuT4qh5qOmBxHgxMZi 7euP+EmBh3q2sIvCnGLxZBCJa2KgZX4rYDGOE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=apw+UvlCBiT/rVdXVnbotxtSnEGA706kZfQrUISfAt8=; b=Q+LDsXH0tSM4Xoe19mp3MwJaPiMa2krelcbtNlcn+nFB7knxNR3YyUwTwJKg6OLu01 Y4VWcnJvhfQrty4R3g1mpnVKtjFGMJ98CmE/OpfiPSPpG3yvscm6Y5WyKtxeaMLbdScx 4UIzNoFtRHMgqcNxS/1gROj8hMhCDwEoJm/odOmOdcE/lA3xqgUjc4Uk20cr7ib+U88l kfJDrWRLVECP9RYhJv841SIJhABItcoV1pqHzLNobvN/T29V374cZRtujrveKEzYDRtI B13RbGNPJuIX2t2VILac+IDArH2dB95XJdiTnqXihNeGnSKbRV3FO52ingLu1rncNqcn y7QQ== X-Gm-Message-State: ALQs6tBD7Icxi5l6ts826Gb3oMhyay3N/HNKLDPgqZwH1OIZlt2K3KN8 cuyBz8RRg4cubt3UNqlzAeE9Pw== X-Received: by 10.28.218.19 with SMTP id r19mr7981243wmg.2.1525091438751; Mon, 30 Apr 2018 05:30:38 -0700 (PDT) Received: from dell ([2.27.167.55]) by smtp.gmail.com with ESMTPSA id 12sm10835806wmn.27.2018.04.30.05.30.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 05:30:38 -0700 (PDT) Date: Mon, 30 Apr 2018 13:30:36 +0100 From: Lee Jones To: =?utf-8?B?UGF3ZcWC?= Chmiel 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 Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1524844982-4714-5-git-send-email-pawel.mikolaj.chmiel@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 27 Apr 2018, Paweł Chmiel wrote: > This patch adds devicetree bindings documentation for > battery charging controller as the subnode of MAX8998 PMIC. > It's based on current behavior of driver. > > Fixes: ee999fb3f17f ("mfd: max8998: Add support for Device Tree") Why is this here? This patch doesn't look like a fix to me. > Signed-off-by: Paweł Chmiel > --- > Documentation/devicetree/bindings/mfd/max8998.txt | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mfd/max8998.txt b/Documentation/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-dvs-gpio is defined: > - max8998,pmic-buck2-dvs-voltage: An array of 2 voltage values in microvolts > for buck2 regulator that can be selected using dvs gpio. > > +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 equals 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 equals 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 represented > by a child node of the 'regulators' node. > @@ -99,6 +114,13 @@ Example: > max8998,pmic-buck2-dvs-gpio = <&gpx0 0 3 0 0>; /* SET3 */ > max8998,pmic-buck2-dvs-voltage = <1350000>, <1300000>; > > + /* Charger configuration */ > + charger { > + max8998,charge-eoc = <0>; > + max8998,charge-restart = <(-1)>; > + max8998,charge-timeout = <7>; > + }; > + > /* Regulators to instantiate */ > regulators { > ldo2_reg: LDO2 { -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog