> -----Original Message----- > From: linuxppc-dev-bounces+priyanka.jain=freescale....@lists.ozlabs.org > [mailto:linuxppc-dev- > bounces+priyanka.jain=freescale....@lists.ozlabs.org] On Behalf Of > Wolfram Sang > Sent: Thursday, May 26, 2011 2:40 PM > To: Jain Priyanka-B32167 > Cc: a.zu...@towertech.it; a...@linux-foundation.org; linuxppc- > d...@lists.ozlabs.org; rtc-li...@googlegroups.com; p_gortma...@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.j...@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/ > | _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev