[PATCH] Add support for pt7c4338 (rtc device) in rtc-ds1307 driver

Jain Priyanka-B32167 B32167 at freescale.com
Mon May 30 14:47:26 EST 2011



> -----Original Message-----
> From: linuxppc-dev-bounces+priyanka.jain=freescale.com at lists.ozlabs.org
> [mailto:linuxppc-dev-
> bounces+priyanka.jain=freescale.com at lists.ozlabs.org] On Behalf Of
> Wolfram Sang
> Sent: Thursday, May 26, 2011 2:40 PM
> To: Jain Priyanka-B32167
> Cc: a.zummo at towertech.it; akpm at linux-foundation.org; linuxppc-
> dev at lists.ozlabs.org; rtc-linux at googlegroups.com; p_gortmaker at yahoo.com
> Subject: Re: [PATCH] Add support for pt7c4338 (rtc device) in rtc-ds1307
> driver
> 
> On Thu, May 26, 2011 at 12:33:29PM +0530, Priyanka Jain wrote:
> 
> > PT7C4338 chip is being manufactured by Pericom Technology Inc.
> > It is a serial real-time clock which provides:
> > 1)Low-power clock/calendar.
> > 2)Programmable square-wave output.
> > It has 56 bytes of nonvolatile RAM.
> > Its register set is same as that of rtc device: DS1307.
> >
> > Signed-off-by: Priyanka Jain <Priyanka.Jain at freescale.com>
> 
> So it is identical to ds1307? Then why not name your platform_device
> simply 'ds1307'?
Yes, It is possible to directly use platform device 'ds1307' in device tree. 
But I have one query of how to capture the information that pericom, pt7c4338 device is compatible with dallas, ds1307. Can it be done in somewhere in some document or some code. Actually for pt7c4338 device driver, I actually started by asking if there is any already existing rtc device driver which is compatible with pericom pt7c4338 device on mailing list and as there was no answer or help then, I actually ended up writing device driver for that and then on the suggestion using ds1307 device driver for this.

Thanks
Priyanka
> 
> Regards,
> 
>    Wolfram
> 
> --
> Pengutronix e.K.                           | Wolfram Sang
> |
> Industrial Linux Solutions                 | http://www.pengutronix.de/
> |



More information about the Linuxppc-dev mailing list