From patchwork Mon May 25 10:22:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anda-Maria Nicolae X-Patchwork-Id: 6473171 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 608809F399 for ; Mon, 25 May 2015 10:20:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4BE8E203EC for ; Mon, 25 May 2015 10:20:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F22B4203F4 for ; Mon, 25 May 2015 10:20:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752273AbbEYKTd (ORCPT ); Mon, 25 May 2015 06:19:33 -0400 Received: from mga02.intel.com ([134.134.136.20]:11747 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752252AbbEYKTb (ORCPT ); Mon, 25 May 2015 06:19:31 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 25 May 2015 03:19:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,491,1427785200"; d="scan'208";a="734852205" Received: from anda-hp-z230-tower-workstation.rb.intel.com ([10.237.104.174]) by orsmga002.jf.intel.com with ESMTP; 25 May 2015 03:19:26 -0700 From: Anda-Maria Nicolae To: sre@kernel.org, dbaryshkov@gmail.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, dwmw2@infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] Documentation: devicetree: Add Richtek RT9455 bindings Date: Mon, 25 May 2015 13:22:22 +0300 Message-Id: <1432549343-5756-3-git-send-email-anda-maria.nicolae@intel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1432549343-5756-1-git-send-email-anda-maria.nicolae@intel.com> References: <1432549343-5756-1-git-send-email-anda-maria.nicolae@intel.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Anda-Maria Nicolae --- .../devicetree/bindings/power/rt9455_charger.txt | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/rt9455_charger.txt diff --git a/Documentation/devicetree/bindings/power/rt9455_charger.txt b/Documentation/devicetree/bindings/power/rt9455_charger.txt new file mode 100644 index 0000000..bb46842 --- /dev/null +++ b/Documentation/devicetree/bindings/power/rt9455_charger.txt @@ -0,0 +1,46 @@ +Binding for Richtek rt9455 battery charger + +Required properties: +- compatible: Should contain one of the following: + * "richtek,rt9455" + +- reg: integer, i2c address of the device. +- richtek,output-charge-current: integer, output current in uA, from the + charger to the battery. +- richtek,end-of-charge-percentage: integer, percent of the output charge current. + When the current in constant-voltage phase drops + below output_charge_current x end-of-charge-percentage, + charge is terminated. +- richtek,battery-regulation-voltage: integer, maximum battery voltage in uV. +- richtek,boost-output-voltage: integer, maximum voltage in uV, provided to consumer + devices, when the charger is in boost mode. + +Optional properties: +- richtek,min-input-voltage-regulation: integer, input voltage threshold in uA, used to + determine when to decrease voltage level when + the over current of the input power source occurs. + This prevents input voltage drop due to insufficient + current provided by the power source. +- richtek,avg-input-current-regulation: integer, input current in uA, the charger should + drain from the power source. + +Example: + +rt9455@22 { + compatible = "richtek,rt9455"; + reg = <0x22>; + + interrupt-parent = <&gpio1>; + interrupts = <0 1>; + + interrupt-gpio = <&gpio1 0 1>; + reset-gpio = <&gpio1 1 1>; + + richtek,output-charge-current = <500000>; + richtek,end-of-charge-percentage = <10>; + richtek,battery-regulation-voltage = <4200000>; + richtek,boost-output-voltage = <5050000>; + + richtek,min-input-voltage-regulation = <4500000>; + richtek,avg-input-current-regulation = <500000>; +};