From patchwork Fri Apr 27 16:03:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10369365 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7C589602DC for ; Fri, 27 Apr 2018 16:05:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D9F52940B for ; Fri, 27 Apr 2018 16:05:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6211329483; Fri, 27 Apr 2018 16:05:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 093E42940B for ; Fri, 27 Apr 2018 16:05:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758633AbeD0QFb (ORCPT ); Fri, 27 Apr 2018 12:05:31 -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-Google-Smtp-Source: AB8JxZpPjrjXVhLa7Deajq8l7lAFU3YGLQ5aG+/fG2JTsdkH/i4khqbNmulNWuiVCgFHP7L64ORSoQ== 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 {