Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp484739imm; Sat, 14 Jul 2018 05:27:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdz8TKUm0fkwRm/jAbezqC1o/nSgs8wJJAVhmKUm5s5zIK37TLsdLbh/Okfurqpx9RjchD+ X-Received: by 2002:a62:642:: with SMTP id 63-v6mr11024129pfg.222.1531571277803; Sat, 14 Jul 2018 05:27:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531571277; cv=none; d=google.com; s=arc-20160816; b=FWnTEbcswobvwZKKcCqT1sbXX1BT3/A07eR65lhL76su71T9BEj3t1Bhmjk3w1yvT4 4oKsE9Qmlt+uZ5GP7JiYIKP7au2JIn+tA6oH8Qm3yYU6T/A+DbgR7Yzo3IPis2bXLqTY H1FzvyBvff4yqNoeySZG/j7WBroyndvTOrpa2GRYWpa4olsSO68aCytXFI/jRTYzPctb GjXcnbkPLCvGERg9C8rbiBDY1L0kx4QZR3LCuwHDhb5HGdMVkeg6qQVL4G0gc45oYRC4 /3iHvYR/HUNjBTp1x5IuqgYzP4FiLHLt4o25Afu8F63Tl0SkZzzmB6fJhKYSj88XSMk6 rtCg== 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=Wh7GzlNbA4xHoPdoWLkTmb0jFMR0vUEuUFJC+vi/QOs=; b=Tt/opGawep4+kvRZAyX40x4Lmv90aL5W4MaY1+w7wkWg7ngDGqkTtPDW7x3K3zmiTC uhcyzO657a2qMLyxoHq6E5/GK9Ffp6ltZQnGVmOKKCu2YtS9EcdzODeURLEwQsVJjfBx lXbk1HEbnIfEOuDjlVIHAvwz7aUf4aNOVBsbWg/OckPZzXn8QwSECGMIQSqI6wggKfWZ 0JzFJ2LMfHrgnYy3TzYZFeu8bVKCFbd675WkIf5tUC+3Nyebwv9dTkW/F5+WZV0/V4AI VNGDMSTjBdvTrBBOUhr+4Ig2z1mxfm1tWaF5a538A3KBhH49Ut+ppt7EtOnqpW5qnKhW rcvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="m0S/L33b"; 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 p77-v6si27278395pfj.294.2018.07.14.05.27.43; Sat, 14 Jul 2018 05:27: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="m0S/L33b"; 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 S1729595AbeGNMqC (ORCPT + 99 others); Sat, 14 Jul 2018 08:46:02 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:39914 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbeGNMqB (ORCPT ); Sat, 14 Jul 2018 08:46:01 -0400 Received: by mail-lj1-f193.google.com with SMTP id l15-v6so6241609lji.6; Sat, 14 Jul 2018 05:27:04 -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=Wh7GzlNbA4xHoPdoWLkTmb0jFMR0vUEuUFJC+vi/QOs=; b=m0S/L33bo9+n9BI9dOGkKYo2jG+70/RLfuu3ZwRGqP0UwpluDsIlovWvWr9vPlqGSj LB16piiWX467RR4VfxCtt5Y2KPnPjeLErzF60d+AZ+3khTmfcrQD9Z69HHf7vdbnGMjv Pn+M7Vbcv3xDROXZJ5Ryun6K2CpNfc/ahkT+i+tjrsHVqj+9im8PAczAEQukuSs1oCEy oPSlBlzRERzmGV1BtP+T1uVb27ID3WTHQbTaqd7HsnVBYaWZbBNJtCmiHNms1+Hr+F5s JjxLWRqPbVrXVxo6I/kooHw9eFpU8C/KYmIuFoSPZOPOzYgyAhJbVvOEIiJPp4NTOTBz cATw== 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=Wh7GzlNbA4xHoPdoWLkTmb0jFMR0vUEuUFJC+vi/QOs=; b=s1lJGHyOmNnZj2gQuuluySAxP6IO55u7lopZw4SvuejuQaEuEcLeFz/RskjTDVSiPR tA5MoVkCcRDvymuhDx5r1oY5OR6CTGEFrC91GPblDHX9PkXlUPImcIMcQyUU1jR1vcZu I1mAOO8Xpvua7A0JKkMksJZb7HcmMWY82aX94hQaXMdqVVughhYa+dkyK079oUDkhOQA V1OnLlkP6MKou9nyYR309dNeHvaLuYDLHFhSVasp2pUn0zeuBtWJ1DhUzt0At/K7LDIg GoQHw9kjOshgmKOBMItOk9kWXlxE2elVqeTFQV4FaoyOgP26/9/S9vobgyzth/qHmI3M blpQ== X-Gm-Message-State: AOUpUlHzz3cMlWLGc2kltxBZlUn7ZF4fe/DT58xsEASV2goImN2Dihte MHm3btbB3IikOsXDeR5PwFs= X-Received: by 2002:a2e:2d11:: with SMTP id t17-v6mr5747469ljt.145.1531571223508; Sat, 14 Jul 2018 05:27:03 -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 l3-v6sm5860732lfi.36.2018.07.14.05.27.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 14 Jul 2018 05:27:02 -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 v2 3/3] dt-bindings: mfd: max8998: Add charger subnode binding Date: Sat, 14 Jul 2018 14:26:53 +0200 Message-Id: <1531571213-30593-4-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531571213-30593-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1531571213-30593-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 v1: - Removed unneeded Fixes tag - Correct description of all charger values - Added missing property unit --- Documentation/devicetree/bindings/mfd/max8998.txt | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/max8998.txt b/Documentation/devicetree/bindings/mfd/max8998.txt index 23a3650ff2a2..196e50097a36 100644 --- a/Documentation/devicetree/bindings/mfd/max8998.txt +++ b/Documentation/devicetree/bindings/mfd/max8998.txt @@ -50,6 +50,23 @@ 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. + + - max8998,charge-restart-level-microvolt: Setup Charge Restart Level. + If value equals 0, leave it unchanged. + If value equals -1, it will be disabled. + Otherwise it should be one of following values: 100, 150, 200. + + - max8998,charge-timeout-hours: Setup Charge Full Timeout. + If value equals 0, leave it unchanged. + If value equals -1, it will be disabled. + 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 +116,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 = <(-1)>; + max8998,charge-timeout-hours = <7>; + }; + /* Regulators to instantiate */ regulators { ldo2_reg: LDO2 { -- 2.7.4