Received: by 10.192.165.148 with SMTP id m20csp5014383imm; Tue, 1 May 2018 07:43:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZormM50WPr9Ze7jjJ+dPU7P7XiEUtQuzzL1oTOKfs1wtDWQn3Dxa1Q/hxj/SAahSnAg1u/m X-Received: by 2002:a63:3d8a:: with SMTP id k132-v6mr6619301pga.11.1525185828082; Tue, 01 May 2018 07:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525185828; cv=none; d=google.com; s=arc-20160816; b=j210XLthvLng2xeSr96WAtEWwrmzAIjR28CagBX/Kb7uo8SEMDNGOpNpkmvubw/ngZ vLhd/P3tw43BZUaLJQ60YwgQDpG1W3koDfmvP36d4BY73HW4bxu/ZBacXSjkoP8JNg8k bOSXNTqHjUbJa0pi+nYA1F4+7PwQRr4RmsrvSoThkvrua86SmCYyWwYkLR7N0dfpNrv+ 2NR/i/cFQowG/wJETYfUZqXHgXOAK/Pkfie50LWRk9r8Whw+fVd91+lFcN359x9FQ/8R 7+io+KCzfT+WWvD+P+GVG2uuFqlibPbHMpI2LPiArpJxNBF3yWdRrR0rbkVtpH0N6B2l c/+w== 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=aVJTGqdhIu2H0QoDBXyW+5TaUBp++wMOfF+t5oAlIyA=; b=LVeJV6wcd1b2UysMnxIWxC1zpgKRhayrmTG5jH93nw6YcpGh6Eg6yut1Fws4vGnHqY +P5kj8JYf7q/suBfTq14j+MgZd6bHP0/azwfnqU5DfohrJmEXz47fAc7FCMfOWQAvotv hPrC7A7AYVEkLCPzMS8IIrxxoz05ky3x2fjd5QpPos89p+CPi+CCqDswYK9oS9kkyH/N C18UNOk3jYhaM50kTpda4zU9whsA71T629wDTyr2Hyi45Zi3aISlCQzOC4hxxJPL0i6U qKNFDn65H30Fba5OECTBEevTDYjDOsZTNJR+Dpuysf8o4SiumC4VNfCyQI2PleTm6kid 45jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NslIDXGT; 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 d12-v6si1386967pgu.288.2018.05.01.07.43.33; Tue, 01 May 2018 07:43:48 -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=NslIDXGT; 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 S1755284AbeEAOnU (ORCPT + 99 others); Tue, 1 May 2018 10:43:20 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:35747 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752182AbeEAOnR (ORCPT ); Tue, 1 May 2018 10:43:17 -0400 Received: by mail-lf0-f65.google.com with SMTP id y72-v6so2802821lfd.2; Tue, 01 May 2018 07:43:13 -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=aVJTGqdhIu2H0QoDBXyW+5TaUBp++wMOfF+t5oAlIyA=; b=NslIDXGT4ohg/JkPNuoHsKSg535USRgwyUsfwrlQ8zZCK1kSqdlfU86w9lFd8AgWEi Klf3iNwzV87/xxEt2GhlQOjWORhlx9fzxZZDL2VE2oLG6dDXxkx+Ur/GDWFkxipMNW/H ZFol8e2/vQS29evzHL08QGBYTzXOjuSYgABLhJNJaQG+6ZgQToWJijwqCfXiSbW55C1N 8LN4DAT24F2BbvyORDljwxIoMDgOSIF+m6ErRNpGdObow9hViZ3BtGSl1xV19bumcjoP wWmhn8JkBJcXpfo109Gjpm5a/3Nqu5KJOnBL0EaYe48w92A0vAmJe7x9IjqKadvCtBBO agxQ== 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=aVJTGqdhIu2H0QoDBXyW+5TaUBp++wMOfF+t5oAlIyA=; b=r4ttJ7H/h0nfIXJwL6HKr4qBdmwETXfXOWfvzUcito2OnN9hwyc5UYl8nQjGF7yNtO vXSml9t8K545nqJd2bsxolDHmHlkFryQI+z215SbQwMwEdEAiEYytKKeCv9XqgD3uK8Z QQUX6XE2u3MxfCra1fYJSjBCUsGcFpHEGrxVChHPv5ck558xwXv6Z15w4Px4uQFGp+p5 x6H7DCwW0lT3Bykq9ENpZommRsj5dC/9iW9unQHEjQmtorYlruIljCviy7ltpKVJ1+u9 gI9LwHLan01uLek5yQQ83m+d76JiiXCRHxqrxMFH1fMyW2yhVs6c/cEWWI0slWUq38IB KK+A== X-Gm-Message-State: ALQs6tCuvjEUhsT7B39ih3aP4D7yRxKSTyAqf1m40TKg46EoGJhCDCux 4dKvIt61JVcQWOzWpcy8uFY= X-Received: by 2002:a19:434c:: with SMTP id m12-v6mr10135449lfj.120.1525185789103; Tue, 01 May 2018 07:43:09 -0700 (PDT) Received: from acerlaptop.localnet (user-94-254-169-47.play-internet.pl. [94.254.169.47]) by smtp.gmail.com with ESMTPSA id k66-v6sm1971968lje.82.2018.05.01.07.43.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 May 2018 07:43:08 -0700 (PDT) From: =?utf-8?B?UGF3ZcWC?= Chmiel To: Sebastian Reichel Cc: lgirdwood@gmail.com, broonie@kernel.org, lee.jones@linaro.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: Tue, 01 May 2018 16:43:07 +0200 Message-ID: <2089055.mctyXeETjz@acerlaptop> User-Agent: KMail/5.1.3 (Linux/4.13.0-39-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20180501124540.3icpjevaxp44ew2e@earth.universe> References: <1524844982-4714-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> <1524844982-4714-5-git-send-email-pawel.mikolaj.chmiel@gmail.com> <20180501124540.3icpjevaxp44ew2e@earth.universe> 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 Tuesday, May 1, 2018 2:45:40 PM CEST Sebastian Reichel wrote: > Hi, >=20 > On Fri, Apr 27, 2018 at 06:03:02PM +0200, Pawe=C5=82 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. > >=20 > > Fixes: ee999fb3f17f ("mfd: max8998: Add support for Device Tree") > > 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 >=20 > What are those values? seconds? >=20 Honestly i don't know. I've just documented values accepted currently by ch= arger driver, so we can use it from devicetree. I couldn't find any max8998 datasheet with this information (units, possibl= e values etc for those properties). If this is not acceptable, i can drop this patch. > > + > > 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