Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1246114

Re: [PATCH] rtc: pcf8563: disable CLKOUT

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Alexandre Belloni <alexandre.belloni@free-electrons.com>
Newsgroups linux.kernel
Subject Re: [PATCH] rtc: pcf8563: disable CLKOUT
Date Tue, 13 Oct 2015 22:20:03 +0200
Message-ID <qjedd-o2-21@gated-at.bofh.it> (permalink)
References <qj00x-4Ug-1@gated-at.bofh.it>
X-Original-To Heiko Schocher <hs@denx.de>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.23 (2014-03-12)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 25
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, Georg.Soffel@bosch-si.com, rtc-linux@googlegroups.com, Alessandro Zummo <a.zummo@towertech.it>, devicetree@vger.kernel.org
X-Original-Date Tue, 13 Oct 2015 22:17:03 +0200
X-Original-Message-ID <20151013201703.GA3421@piout.net>
X-Original-References <1444712938-22865-1-git-send-email-hs@denx.de>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1246114

Show key headers only | View raw


Hi,

On 13/10/2015 at 07:08:58 +0200, Heiko Schocher wrote :
> Disable the CLKOUT of the RTC after power-up.
> After power-up/reset of the RTC, CLKOUT is enabled by default,
> with CLKOUT enabled the RTC chip has 2-3 times higher power
> consumption. If you do not need CLKOUT, you can disable the
> CLKOUT with setting "disable-clkout" property.
> 

I think you can simply unconditionally disable clkout. My preferred way
of doing what you suggest is probably to register a clock in the CCF. If
the clock is not used, it will be automatically disabled.
It will also provide a generic way of setting the clkout frequency (some
RTC are able to output 32kHZ, 1kHz and 1Hz).

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] rtc: pcf8563: disable CLKOUT Heiko Schocher <hs@denx.de> - 2015-10-13 07:10 +0200
  Re: [PATCH] rtc: pcf8563: disable CLKOUT Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-10-13 22:20 +0200
    Re: [PATCH] rtc: pcf8563: disable CLKOUT Heiko Schocher <hs@denx.de> - 2015-10-14 06:20 +0200

csiph-web