Received: by 10.192.165.148 with SMTP id m20csp890264imm; Fri, 27 Apr 2018 09:07:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpXE8DvDsaX8Hhh6feFZrjlELqzz0JWzaWqBIoxL6YI4bBDEsf1w2T0joOa2q95B1J+oOpv X-Received: by 2002:a17:902:1007:: with SMTP id b7-v6mr2797122pla.205.1524845224695; Fri, 27 Apr 2018 09:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524845224; cv=none; d=google.com; s=arc-20160816; b=UmuwmZqoUz8ity8nP+4LdSk3IkSXEO7qoRAYn0fYmWCkJZh8z5DnmQw6zazYHxqdbQ f3YsXNNhRtaNoCsht8gWiGiBEJZ3hqkB0mR3eFlGDYZzslzoBVgGCftsYbpors2qgsMd atE0l84UAc37MtGAnhkE0hK/0KZtBa0+tiBB4U1MH/TMTV+xSQQb+3nYoUjHkBkTd3La chAcz8EQglVxhOnuZqvcOrABlRYDPgCCO7hk9Sci1Ed9gzRDmmCXmFDysgB/DBms7mLG WVuO191BzVcPyKLwB7sL0ZiS79wfAhFSn3HMl+iAMnqxA/aXMGxFsw/No167adyC/rXt SCIg== 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=xQIdF6hAOISzYmxUgnkDuO9G0+EostEMe58hf7QvY6M=; b=Eji0wL8ZT5f1HgMTF4j0xK08mjpV+nuyW5jrSSu1nZTtiu8lgf7cDeqoxRP+9VJH+l QlgFK2QSFZ8FRzABnBAsqZktW1NmCe/4ezLQ3CPc4iYtnYUjNFCk2qie/s6BfbXnTYt7 Qk5jtMP/j7lY1Y7EACMYuY+mFJ5olWMgi0Uch9NKX3EFaWfb0WYEH7zzMNEe+U7FbxRC pHC7bI1Q9Avcl1vbMneeYfHzpfLrZTofm2/dExzx48urSXuehffVaJLPz5S30duzesQa CbCS2Ez4KZn5DNK5EDaneKFu52ZBUsbV9mIhpyEDpEqZirGljyV6/XCXz0Q7zkcQ0ER4 d/Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KWbb65Iq; 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 s6-v6si1652465plp.18.2018.04.27.09.06.50; Fri, 27 Apr 2018 09:07:04 -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=KWbb65Iq; 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 S1758684AbeD0QFc (ORCPT + 99 others); Fri, 27 Apr 2018 12:05:32 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:34900 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758654AbeD0QF2 (ORCPT ); Fri, 27 Apr 2018 12:05:28 -0400 Received: by mail-lf0-f66.google.com with SMTP id r125-v6so3443462lfe.2; Fri, 27 Apr 2018 09:05:27 -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=xQIdF6hAOISzYmxUgnkDuO9G0+EostEMe58hf7QvY6M=; b=KWbb65IqaERKdfMiE+Ao8G3TOUyTniHNTq97L3bllbgpgk6kAHjmyvkGgvMKRScuD1 8JPy3+gtRCSK7y5QIrlcqioCZvsUkderQ22KrQv9YQlGoD9Pd6/J+pMFDeKGt5dnV53K DTFB/sXucDisq0EhqvWcsz3lHwCiF6cZ9y3KeUYtByP10wMmKvWzoirhqFrz4I+ftBIN 2QlUiPBq8BzDTFfn0FpV8yqSBn7ObZpTYXXWOk68sgokPxGiDUFh0TDSB+4qek4t45S0 9Mvv/beg8wxNYIlwYIIUAbfXG0zSTAP1HQp6U2i4ovR4n+oFzmkJ1ekBkfFQE+O+cqkG 669w== 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=xQIdF6hAOISzYmxUgnkDuO9G0+EostEMe58hf7QvY6M=; b=NuPxgK1AiVFd2B8MpX2iIb1ft7S7Qz3P1ET9wBNrLuSAZ4TnaIOroFVNbMQJttQa1f HnedHC6cf3jWDMzDulSLw4T3Ez0tRdDAdIx0VzIoCUOKqn/mdR2xpP4aAbHLgJYN65pK rMoVIn6pwPWneQCKCb7o+UtsO0PwaBE/0c68h6UAbXXnZD31aQMLMxEd7hjAEWAkEs5K /qGAauHt0vPg1r+kEztNr1bL6k13nOngRZ5xFJVk+Zp9wZLZ1hVVAs+kdmhcLqYk7hdc 9VFBo0hkHIkZQ2+UyImlb4SNlgMaxrwBbwt8/Uip97Ik+UU67We9NwVZ8o+owlKhXXA8 32uQ== X-Gm-Message-State: ALQs6tCQwaWvqwBRRTtayvr2VVWneRz6rLYupniitu63WaDSPfSorUKa zQ73MpQAt2R05fFn73AvAFY= X-Received: by 2002:a2e:9e82:: with SMTP id f2-v6mr2219949ljk.3.1524845127248; Fri, 27 Apr 2018 09:05:27 -0700 (PDT) Received: from localhost.localdomain (user-94-254-173-44.play-internet.pl. [94.254.173.44]) by smtp.googlemail.com with ESMTPSA id j85-v6sm324083lfh.5.2018.04.27.09.05.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Apr 2018 09:05:26 -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 4/4] dt-bindings: mfd: max8998: Add charger subnode binding Date: Fri, 27 Apr 2018 18:03:02 +0200 Message-Id: <1524844982-4714-5-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524844982-4714-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1524844982-4714-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. It's based on current behavior of driver. Fixes: ee999fb3f17f ("mfd: max8998: Add support for Device Tree") 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 { -- 2.7.4