From patchwork Mon Jul 23 04:08:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matheus Castello X-Patchwork-Id: 10539627 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7C7D91823 for ; Mon, 23 Jul 2018 04:59:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 693F427853 for ; Mon, 23 Jul 2018 04:59:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DC0C28517; Mon, 23 Jul 2018 04:59:25 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham 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 0CF5C28518 for ; Mon, 23 Jul 2018 04:59:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387712AbeGWF6o (ORCPT ); Mon, 23 Jul 2018 01:58:44 -0400 Received: from gateway20.websitewelcome.com ([192.185.59.4]:22685 "EHLO gateway20.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbeGWF6n (ORCPT ); Mon, 23 Jul 2018 01:58:43 -0400 X-Greylist: delayed 1504 seconds by postgrey-1.27 at vger.kernel.org; Mon, 23 Jul 2018 01:58:43 EDT Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway20.websitewelcome.com (Postfix) with ESMTP id 3068E400C74A4 for ; Sun, 22 Jul 2018 23:09:38 -0500 (CDT) Received: from br164.hostgator.com.br ([192.185.176.180]) by cmsmtp with SMTP id hSAEfi6eeRPojhSAEfFD05; Sun, 22 Jul 2018 23:09:38 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=castello.eng.br; s=default; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EnsQVUYtm0+DsogU7q/hOj4wINGmftqfl6hUQBV9EH0=; b=bqj6Xi0NOdTPSN7bfdLRzVLZq mNvH77TI9coUYuuksFUq31ND4dD4t+X8WELGDzQ4oHQXpt6NUbE9eA+N2AbfSOA/eQ1JO88uBfJfi MOW/WsYTkwpY9V84kY9R6HtKCKWtGXVSikCGM8euUSLE1SIpDVtiWS1367C6ghvdrIScZOBA21Ogp ORHthREa3ub+kMYJw3CV2dtk0GNOEQLFbO1oneUWGx4WzgPi2bRMJFLy8IdYyLpJr5lxoOgrfp8o/ ZCU/Kytgk8+iglei+GSa1ox1B0qSV+gZaEX0tr5Q9xj6nlCrA1LDXpCUNeGRQOyWryKFnvdYJN7lx s4JdrK/Pg==; Received: from [191.189.20.114] (port=7927 helo=localhost.localdomain) by br164.hostgator.com.br with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1fhSAD-001oyu-7r; Mon, 23 Jul 2018 01:09:37 -0300 From: Matheus Castello To: sre@kernel.org Cc: robh+dt@kernel.org, mark.rutland@arm.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Matheus Castello Subject: [PATCH 3/4] dt-bindings: power: supply: Max17040: Add low level SOC alert threshold Date: Mon, 23 Jul 2018 00:08:15 -0400 Message-Id: <20180723040816.19455-4-matheus@castello.eng.br> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20180723040816.19455-1-matheus@castello.eng.br> References: <20180723040816.19455-1-matheus@castello.eng.br> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - br164.hostgator.com.br X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - castello.eng.br X-BWhitelist: no X-Source-IP: 191.189.20.114 X-Source-L: No X-Exim-ID: 1fhSAD-001oyu-7r X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (localhost.localdomain) [191.189.20.114]:7927 X-Source-Auth: matheus@castello.eng.br X-Email-Count: 24 X-Source-Cap: Y2FzdGUyNDg7Y2FzdGUyNDg7YnIxNjQuaG9zdGdhdG9yLmNvbS5icg== X-Local-Domain: yes 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 For configure low level state of charge threshold alert signaled from max17040 we add "maxim,alert-soc-level" property. Signed-off-by: Matheus Castello --- .../bindings/power/supply/max17040_battery.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/max17040_battery.txt diff --git a/Documentation/devicetree/bindings/power/supply/max17040_battery.txt b/Documentation/devicetree/bindings/power/supply/max17040_battery.txt new file mode 100644 index 000000000000..e6e4e46c03c4 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/max17040_battery.txt @@ -0,0 +1,24 @@ +max17040_battery +~~~~~~~~~~~~~~~~ + +Required properties : + - compatible : "maxim,max17040" + +Optional threshold properties : + If skipped the power up default value will be used + - maxim,alert-soc-level : The alert threshold that sets the state of + charge level where an interrupt is generated. + max17040 can be configured from 1 up to 32. + +Remembering that for the interrupt to be handled it must also be described the +information of the interruption in the node. + +Example: + + battery-charger@36 { + compatible = "maxim,max17040"; + reg = <0x36>; + maxim,alert-soc-level = <10>; + interrupt-parent = <&gpio>; + interrupts = <18 IRQ_TYPE_EDGE_FALLING>; + };