From mboxrd@z Thu Jan 1 00:00:00 1970 From: jchapman@katalix.com (James Chapman) Date: Fri, 30 Jun 2006 08:03:27 +0000 Subject: [lm-sensors] [i2c] RTC + DS1337 Message-Id: <44A4DACF.7010805@katalix.com> List-Id: References: <44A37C0E.3090604@laposte.net> In-Reply-To: <44A37C0E.3090604@laposte.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lm-sensors@vger.kernel.org Hi, there's a new driver in the -mm tree for use with the new RTC core. It's based on the original ds1337/9 driver and now also supports ds1307. It was added in the 2.6.17-rc1 timeframe. Look for drivers/rtc/rtc-ds1307.c. Ben Dooks wrote: > On Thu, Jun 29, 2006 at 09:06:54AM +0200, Matthieu TORRES wrote: > >>Hi, >> >>I faced a problem with DS1337 RTC. I use a pxa255 cpu with 2.6.16 >>kernel. I tried to make a DS1339 chip (real time clock) working with >>hwclock. >>In my config, I selected I2C, DS1337/DS1339 driver, and ehanced RTC >>support to have it working with /dev/rtc as expected by hwclock. That is >>to say the following options: >> >>CONFIG_RTC=y >>CONFIG_I2C=y >>CONFIG_I2C_PXA=y >>CONFIG_SENSORS_DS1337=y >> >>The ioctl() to dev/rtc did not work. While investaigating on that issue, >>I found 2 problems : > > > Look at 2.6.17, which has a new RTC core, and sysfs based interface > which is much cleaner way of dealing with the RTC systems on the many > different systems that there are. >