From patchwork Tue Sep 9 14:32:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 387330 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-wg0-x23f.google.com (mail-wg0-x23f.google.com [IPv6:2a00:1450:400c:c00::23f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C65501401B5 for ; Tue, 9 Sep 2014 23:28:26 +1000 (EST) Received: by mail-wg0-f63.google.com with SMTP id x12sf344930wgg.18 for ; Tue, 09 Sep 2014 06:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:cc:subject:message-id:mime-version:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type :content-disposition; bh=B6pxyWDjs/8tG7r009BFwqEAJ+U/4LNQ1bzZ3yBj3Ug=; b=qLdvT98wfU+ORA+q9p6oYlGXrwFDics3Qygs5etWxf1JtJ2rKj4H0PCLhLVCixlsF1 Y5QzpWQqqoKza29+hhnFkerobE4m8zBu5XshYbKMqCwRkftKPX0xP6fZ3D2fj2XBCfVh 5tGgd8HIw1UKnNg6AnG5SF2eNXEAO2Qjk502iPeWdyYJdRgh0JcYe/lQWbIyXx6ldmke fS4/cVe86WY0GGaw9+QpecOUdLJax34za+dgAbNSHLBuR0zDBixWkk0Wn8+S1y7mO8NV pvN7dD+fC1CGWDhvQCxmN41K/TKiJhtFD9TPrHdFD6xk7WI6aJfQFI3cTvvSh5W37uUn VVOQ== X-Received: by 10.180.104.98 with SMTP id gd2mr71003wib.19.1410269302400; Tue, 09 Sep 2014 06:28:22 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.180.189.144 with SMTP id gi16ls552490wic.40.canary; Tue, 09 Sep 2014 06:28:22 -0700 (PDT) X-Received: by 10.181.8.226 with SMTP id dn2mr2700118wid.4.1410269302027; Tue, 09 Sep 2014 06:28:22 -0700 (PDT) Received: from demumfd002.nsn-inter.net (demumfd002.nsn-inter.net. [93.183.12.31]) by gmr-mx.google.com with ESMTPS id gk5si834220wic.1.2014.09.09.06.28.21 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 09 Sep 2014 06:28:22 -0700 (PDT) Received-SPF: pass (google.com: domain of matti.vaittinen@nsn.com designates 93.183.12.31 as permitted sender) client-ip=93.183.12.31; Received: from demuprx016.emea.nsn-intra.net ([10.150.129.55]) by demumfd002.nsn-inter.net (8.14.3/8.14.3) with ESMTP id s89DSCQn019162 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 9 Sep 2014 13:28:13 GMT Received: from fi-ourus-dhcp00977.emea.nsn-net.net ([10.145.11.157]) by demuprx016.emea.nsn-intra.net (8.12.11.20060308/8.12.11) with SMTP id s89DS941006741; Tue, 9 Sep 2014 15:28:09 +0200 Date: Tue, 9 Sep 2014 17:32:29 +0300 From: Matti Vaittinen To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, "jason@lakedaemon.net" , "linux@roeck-us.net" Cc: a.zummo@towertech.it, "jic23@kernel.org" , "arno@natisbad.org" , jgunthorpe@obsidianresearch.com, san@rosetechnology.dk, hs@denx.de, "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "rtc-linux@googlegroups.com" , Sverdlin Alexander Subject: [rtc-linux] [PATCH v5 1/2] Documentation: dt-bindings: trickle charger dt binding document for ds1339 Message-ID: <20140909143220.GA2164@fi-ourus-dhcp00977.emea.nsn-net.net> MIME-Version: 1.0 User-Agent: Mutt/1.5.21 (2010-09-15) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-size: 2401 X-purgate-ID: 151667::1410269293-00005326-0010A445/0/0 X-Original-Sender: matti.vaittinen@nsn.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of matti.vaittinen@nsn.com designates 93.183.12.31 as permitted sender) smtp.mail=matti.vaittinen@nsn.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Content-Disposition: inline Some DS13XX devices have "trickle chargers". Introduce a device tree binding for the resistor and diode configuration for enabling trickle charger. Signed-off-by: Matti Vaittinen Acked-by: Jason Cooper --- Delta to v4 -This is the correct patch. .../devicetree/bindings/i2c/trivial-devices.txt | 1 - .../devicetree/bindings/rtc/dallas,ds1339.txt | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/rtc/dallas,ds1339.txt diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt index 6af570e..e9206a4 100644 --- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt +++ b/Documentation/devicetree/bindings/i2c/trivial-devices.txt @@ -35,7 +35,6 @@ catalyst,24c32 i2c serial eeprom cirrus,cs42l51 Cirrus Logic CS42L51 audio codec dallas,ds1307 64 x 8, Serial, I2C Real-Time Clock dallas,ds1338 I2C RTC with 56-Byte NV RAM -dallas,ds1339 I2C Serial Real-Time Clock dallas,ds1340 I2C RTC with Trickle Charger dallas,ds1374 I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output dallas,ds1631 High-Precision Digital Thermometer diff --git a/Documentation/devicetree/bindings/rtc/dallas,ds1339.txt b/Documentation/devicetree/bindings/rtc/dallas,ds1339.txt new file mode 100644 index 0000000..916f576 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/dallas,ds1339.txt @@ -0,0 +1,18 @@ +* Dallas DS1339 I2C Serial Real-Time Clock + +Required properties: +- compatible: Should contain "dallas,ds1339". +- reg: I2C address for chip + +Optional properties: +- trickle-resistor-ohms : Selected resistor for trickle charger + Values usable for ds1339 are 250, 2000, 4000 + Should be given if trickle charger should be enabled +- trickle-diode-disable : Do not use internal trickle charger diode + Should be given if internal trickle charger diode should be disabled +Example: + ds1339: rtc@68 { + compatible = "dallas,ds1339"; + trickle-resistor-ohms = <250>; + reg = <0x68>; + };