Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3713911imm; Tue, 17 Jul 2018 09:07:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpetEbS8rYz54t8aqhUhhJ9whD4GzZRHkJ5b+dbAhL3I5itPOF4/n8i66ZSnIKR5MbD5KXbs X-Received: by 2002:a62:998:: with SMTP id 24-v6mr1265573pfj.99.1531843627584; Tue, 17 Jul 2018 09:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531843627; cv=none; d=google.com; s=arc-20160816; b=vbD05QbLEOHE37CD1fehr+1LcDZJcslz64wfkWFfc+mu7u7phJRFewylAzkQPz8fS1 bli+4NZR0rT/TWPCmPMCqvb2stYBxZ3d3WDNLp4Z4BIwxY+rN1LuRnnbkPomUHEmiCSY 2Ja0XIqt6vrLjtzLS0EVUtOjkq0XWIUTs0vAJNC0DruQ99BKjXeRQ6I0WByz+4VbzaeI HfHs0HKMjRAn9UT0C0iRhIDit2m4s1AjExy+Mg0baktrOzOdqGmrIng8nHqDuty9YE2h xHQsbVZXYx9zGuQ12v7gZt2bwaYfsqxqk8cdUob5q4gyT1FFmIsVSnxbTHx02WqaUV0P DRnA== 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:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ievmCPOfA2lYaLJg84mR/nisVBqFLbu512+iDeovEK4=; b=z4nbWWu3zMuJG1MROl2muTBODiHnotrPrgRjwpIUueKTpCnRzrocHHpnSF8EBu7uAI rN3f+LbvU538SotkcDSXDKPNUMwtZZa+l7LSjYGHJAjXBiSyJwzDFf1cFSKngJvhE9S5 9IEB9GOsiAna+2VLEvrl+cgv1mJNU+lzRr/1oglK1zmhLPmYEOyk+ixxkF3RDicqq47z jsuzOK7prTjtKctdFuX4zZ19zegwRPu9tnD6Gee28XjYrTQ7MrDhpJ4nbzDE7OnSsfuM E8hlL5CLXzx2scvUPth/mdl5BPCl6BiaPJgXVbJDFSULVQZqFDVfg4on/Hu/rE91N07P UV1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ik7O0BqE; 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 n125-v6si1312597pga.376.2018.07.17.09.06.52; Tue, 17 Jul 2018 09:07:07 -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=ik7O0BqE; 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 S1730238AbeGQQir (ORCPT + 99 others); Tue, 17 Jul 2018 12:38:47 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:41686 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729659AbeGQQiq (ORCPT ); Tue, 17 Jul 2018 12:38:46 -0400 Received: by mail-lf0-f65.google.com with SMTP id v22-v6so1238306lfe.8; Tue, 17 Jul 2018 09:05:24 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=ievmCPOfA2lYaLJg84mR/nisVBqFLbu512+iDeovEK4=; b=ik7O0BqEa8/N10RKWJ3YhChRdBTiyZm4gb22FWCHQrQP2deRWHcoUuFcV3zrS47O/1 4Hpwj1A51xo8IkqlIeuKZ6ioEF3F5fiuhI6+AP6LxsugwYQlUrTLIhRlmoyj1zZNPERz SCps54mpTxtdbwoyfSeZCyyA9q4uKU8YLYEc50sjKSNzhMLet88U5a7hjSZRR/We0cAY yrGVtVhzBgF823pOep8VIEuHmYMdjeP/KW7e//5pEgu/yi6uxBYZHVtU0uuB76lczuMH t7+Nuyr8mGoSFT2EWD/FofpKTjGad8BxJOxSZY6/ZfkI9GGA2xAJutjjNOv80Sx7iKWG P5ng== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ievmCPOfA2lYaLJg84mR/nisVBqFLbu512+iDeovEK4=; b=Mey/bu+fCzhgvX2TPefC0stIjnw8Ldg5iKZctV6oVhHOQgf8/rMH0nLgTFULINYHib pSULm6K1QSu2VkjA7gsUr71BUka5NOCLIR9WsgFDD1YAAN7O1tAhP+UMIYhvtZEc/TOS WPGbNtkDhTjTjM6P9Ey6cpDNlqejtDgS6gCopmk7PBaU0dLocCcyyjcjNvQqNDuxj3v0 6LqJwxq13lBI7FblomR/CQOKX+Z3H6Xj9s6WekhzClYOnqeyniShmzEeR6qZhCMmWTd5 SI9dU8gcYlIoRbkwaHcMhGPlDf1SUqJp28XUUU/Ru9NzIMzjr7NlCHNliwSMxxDNqwas Im7g== X-Gm-Message-State: AOUpUlEMi/WBFPPvvcqqqgLG+zNl0yIP0XuT2grrxSQdF0NmJL7XIZDS 6YfK0DZxz68NwWAlcySq3V0= X-Received: by 2002:a19:db44:: with SMTP id s65-v6mr1602235lfg.109.1531843523864; Tue, 17 Jul 2018 09:05:23 -0700 (PDT) Received: from localhost.localdomain (user-94-254-174-73.play-internet.pl. [94.254.174.73]) by smtp.googlemail.com with ESMTPSA id d23-v6sm229861ljg.17.2018.07.17.09.05.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jul 2018 09:05:23 -0700 (PDT) From: =?UTF-8?q?Pawe=C5=82=20Chmiel?= To: lgirdwood@gmail.com, broonie@kernel.org, sre@kernel.org, lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, =?UTF-8?q?Pawe=C5=82=20Chmiel?= Subject: [PATCH v3 3/3] dt-bindings: mfd: max8998: Add charger subnode binding Date: Tue, 17 Jul 2018 18:05:09 +0200 Message-Id: <1531843509-3533-4-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531843509-3533-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1531843509-3533-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds devicetree bindings documentation for battery charging controller as the subnode of MAX8998 PMIC. Signed-off-by: Paweł Chmiel --- Changes from v2: - Make charge-restart-level-microvolt optional. - Make charge-timeout-hours optional. Changes from v1: - Removed unneeded Fixes tag - Correct description of all charger values - Added missing property unit --- Documentation/devicetree/bindings/mfd/max8998.txt | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/max8998.txt b/Documentation/devicetree/bindings/mfd/max8998.txt index 23a3650ff2a2..264040f4ad15 100644 --- a/Documentation/devicetree/bindings/mfd/max8998.txt +++ b/Documentation/devicetree/bindings/mfd/max8998.txt @@ -50,6 +50,24 @@ 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-percent: Setup End of Charge Level. + If value equals 0, leave it unchanged. + Otherwise it should be value from 10 to 45 by 5 step. + + Optional properties: + - max8998,charge-restart-level-microvolt: Setup Charge Restart Level. + If property is not present, this will be disabled. + If value equals 0, leave it unchanged. + Otherwise it should be one of following values: 100, 150, 200. + + - max8998,charge-timeout-hours: Setup Charge Full Timeout. + If property is not present, this will be disabled. + If value equals 0, leave it unchanged. + Otherwise it should be one of following values: 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 +117,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-percent = <0>; + max8998,charge-restart-level-microvolt = <100>; + max8998,charge-timeout-hours = <7>; + }; + /* Regulators to instantiate */ regulators { ldo2_reg: LDO2 { -- 2.7.4