From patchwork Thu Aug 25 20:21:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl-Heinz Schneider X-Patchwork-Id: 662929 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3sKwd42Nphz9s9x for ; Fri, 26 Aug 2016 06:24:24 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757692AbcHYUYU (ORCPT ); Thu, 25 Aug 2016 16:24:20 -0400 Received: from schneider-inet.de ([85.214.76.205]:58638 "EHLO h1714509.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751590AbcHYUYC (ORCPT ); Thu, 25 Aug 2016 16:24:02 -0400 Received: from p4ff552a1.dip0.t-ipconnect.de ([79.245.82.161]:37518 helo=amnesix.fritz.box) by h1714509.stratoserver.net with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA256:128) (Exim 4.80) (envelope-from ) id 1bd19S-0000zK-HO; Thu, 25 Aug 2016 22:21:27 +0200 From: Karl-Heinz Schneider To: devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, linux-i2c@vger.kernel.org Cc: Rob Herring , Mark Rutland , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , "Rafael J . Wysocki" , Peter Rosin , Phil Reid , Karl-Heinz Schneider Subject: [PATCH v4 1/2] Documentation: Add sbs-manager device tree node documentation Date: Thu, 25 Aug 2016 22:21:00 +0200 Message-Id: <1472156461-25180-2-git-send-email-karl-heinz@schneider-inet.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472156461-25180-1-git-send-email-karl-heinz@schneider-inet.de> References: <1bIiDr-0004G1-0P> <1472156461-25180-1-git-send-email-karl-heinz@schneider-inet.de> X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "h1714509.stratoserver.net", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This patch adds device tree documentation for the sbs-manager Reviewed-by: Phil Reid Signed-off-by: Karl-Heinz Schneider --- .../devicetree/bindings/power/sbs, sbs-manager.txt | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/sbs, sbs-manager.txt [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: schneider-inet.de] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org This patch adds device tree documentation for the sbs-manager Reviewed-by: Phil Reid Signed-off-by: Karl-Heinz Schneider --- .../devicetree/bindings/power/sbs,sbs-manager.txt | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/sbs,sbs-manager.txt diff --git a/Documentation/devicetree/bindings/power/sbs,sbs-manager.txt b/Documentation/devicetree/bindings/power/sbs,sbs-manager.txt new file mode 100644 index 0000000..6b1a87ce --- /dev/null +++ b/Documentation/devicetree/bindings/power/sbs,sbs-manager.txt @@ -0,0 +1,53 @@ +Binding for sbs-manager + +Required properties: +- compatible: should be "lltc,ltc1760" or use "sbs,sbs-manager" as fallback. +- reg: integer, i2c address of the device. Should be <0xa>. + +From OS view the device is basically an i2c-mux used to communicate with up to +four smart battery devices at address 0xb. The driver actually implements this +behaviour. So standard i2c-mux nodes can be used to register up to four slave +batteries. See Documentation/devicetree/bindings/i2c/i2c-mux.txt for more +information on i2c-mux nodes. Channels will be numerated starting from 1 to 4. + +Example: + +batman@0a { + compatible = "lltc,ltc1760"; + reg = <0x0a>; + #address-cells = <1>; + #size-cells = <0>; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + battery@0b { + compatible = "ti,bq2060", "sbs,sbs-battery"; + reg = <0x0b>; + }; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + + battery@0b { + compatible = "ti,bq2060", "sbs,sbs-battery"; + reg = <0x0b>; + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + + battery@0b { + compatible = "ti,bq2060", "sbs,sbs-battery"; + reg = <0x0b>; + }; + }; +};