From patchwork Sat Feb 1 22:23:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Barinov X-Patchwork-Id: 315936 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id AD71E2C009E for ; Sun, 2 Feb 2014 09:23:48 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932417AbaBAWXr (ORCPT ); Sat, 1 Feb 2014 17:23:47 -0500 Received: from mail-la0-f49.google.com ([209.85.215.49]:38995 "EHLO mail-la0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933454AbaBAWXM (ORCPT ); Sat, 1 Feb 2014 17:23:12 -0500 Received: by mail-la0-f49.google.com with SMTP id y1so4454829lam.36 for ; Sat, 01 Feb 2014 14:23:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hjYNP/J2BRcI7+jWnlE60lguevOhRDqV2WWjbxpSxOc=; b=ah8FysoY7sR+0L6Cr4WMHI3aZYr0ouX8qaIPWuyQ1SBj0DmKTESfp/LQJf+yjFhzyw 43kR22qyovWD5eFF5neMvSlS3SK1fSsKNkOydkXUU1aAeo15OvrAkvDXJi3hauGWBxeX K3eRMUGUEjm5+frUcFcmzXqp/jpXgvtDJxPk532FvpfT2cuS6btzU1pX72Vv0S7mflk7 tPoyG2RNtABaO9IOe873TKtHP21zmK5QdHik8mneXgFatTXQBVzjRyGH7BydTio0daaV JA6f2gaLrI1AD9KvjbXFp2C4cnZ5Ad4TnW3lCqkhbTLVRx0DABL/gEn/G6wo8vy+ilFG VcEA== X-Gm-Message-State: ALoCoQlxmPwUQ0k6/Phr7UKjuQKZa+WuilqsK+T+DroO/PwIGO8R9Pl52Cf+7eB1KtG1PS1M7/wY X-Received: by 10.152.170.232 with SMTP id ap8mr2581509lac.40.1391293391265; Sat, 01 Feb 2014 14:23:11 -0800 (PST) Received: from localhost.localdomain ([46.32.73.80]) by mx.google.com with ESMTPSA id t5sm21355609lat.6.2014.02.01.14.23.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 01 Feb 2014 14:23:10 -0800 (PST) From: Vladimir Barinov To: , , , Cc: , k.kozlowski@samsung.com, mark.rutland@arm.com Subject: [PATCH v2 2/3] dt: Document ModelGauge gauge bindings Date: Sun, 2 Feb 2014 02:23:04 +0400 Message-Id: <1391293385-27539-3-git-send-email-vladimir.barinov@cogentembedded.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1391293385-27539-1-git-send-email-vladimir.barinov@cogentembedded.com> References: <1391293385-27539-1-git-send-email-vladimir.barinov@cogentembedded.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org These bindings can be used to register Maxim ModelGauge ICs fuel gauge (MAX17040/41/43/44/48/49/58/59) Signed-off-by: Vladimir Barinov --- Documentation/devicetree/bindings/power_supply/modelgauge_battery.txt | 61 ++++++++++ 1 file changed, 61 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: battery-2.6/Documentation/devicetree/bindings/power_supply/modelgauge_battery.txt =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ battery-2.6/Documentation/devicetree/bindings/power_supply/modelgauge_battery.txt 2014-02-02 01:36:12.638624341 +0400 @@ -0,0 +1,61 @@ +modelgauge_battery +~~~~~~~~~~~~~~~~~~ + +Required properties: + - compatible : should contain one of the following: + - "maxim,max17040" for MAX17040 + - "maxim,max17041" for MAX17041 + - "maxim,max17043" for MAX17043 + - "maxim,max17044" for MAX17044 + - "maxim,max17048" for MAX17048 + - "maxim,max17049" for MAX17049 + - "maxim,max17058" for MAX17058 + - "maxim,max17059" for MAX17059 + +Optional properties: + - maxim,rcomp0 : ModelGauge RCOMP parameter, used for + temperature compensation (u8); + - maxim,temp-co-up : ModelGauge TempCoUp parameter, used for + temperature compensation (signed); + - maxim,temp-co-down : ModelGauge TempCoDown parameter, used for + temperature compensation (signed); + - maxim,ocvtest : ModelGauge OCVTest parameter, used for + verification of Custom Model calibration data + loaded into IC RAM (u16); + - maxim,soc-check-a : ModelGauge SOCCheckA parameter, used for + verification of Custom Model calibration data + loaded into IC RAM (u8); + - maxim,soc-check-b : ModelGauge SOCCheckB parameter, used for + verification of Custom Model calibration data + loaded into IC RAM (u8); + - maxim,bits : ModelGauge Bits parameter, used as + scaling parameter in Custom Model algorithm (u8); + - maxim,model-data : ModelGauge ModelData data, + Custom Model calibration data (array_u8[64]). + +Example: + +modelgauge@36 { + compatible = "maxim,max17058"; + reg = <0x36>; + interrupt-parent = <&msmgpio>; + interrupts = <107 0x2>; + + maxim,rcomp0 = /bits/ 8 <175>; + maxim,temp-co-up = <(-1100)>; + maxim,temp-co-down = <(-4000)>; + maxim,ocvtest = /bits/ 16 <56144>; + maxim,soc-check-a = /bits/ 8 <241>; + maxim,soc-check-b = /bits/ 8 <243>; + maxim,bits = /bits/ 8 <19>; + + maxim,model-data = /bits/ 8 < + 0x9B 0x70 0xAB 0x30 0xB5 0xA0 0xB9 0xD0 + 0xBB 0xA0 0xBC 0x00 0xBC 0xB0 0xBD 0x00 + 0xBD 0x60 0xBE 0x40 0xBF 0x40 0xC1 0xF0 + 0xC5 0x60 0xC8 0xA0 0xCD 0x00 0xD1 0x50 + 0x00 0xE0 0x01 0x80 0x18 0x60 0x1C 0x20 + 0x54 0x00 0x6A 0xC0 0x79 0x20 0x65 0xC0 + 0x0B 0xE0 0x2A 0xC0 0x1D 0x00 0x17 0xE0 + 0x15 0xE0 0x11 0xE0 0x11 0x00 0x11 0x00>; +};