From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4F676DB4.1080705@freescale.com> Date: Mon, 19 Mar 2012 12:32:36 -0500 From: Scott Wood MIME-Version: 1.0 To: Aggrwal Poonam-B10812 Subject: Re: [PATCH] Device Tree Bindings for Freescale TDM controller References: <1331861451-15427-1-git-send-email-poonam.aggrwal@freescale.com> <4F63868D.1030507@freescale.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Cc: Wood Scott-B07421 , "devicetree-discuss@lists.ozlabs.org" , "linuxppc-dev@lists.ozlabs.org" , Singh Sandeep-B37400 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 03/17/2012 02:33 AM, Aggrwal Poonam-B10812 wrote: >>> + - compatible >>> + Usage: required >>> + Value type: >>> + Definition: Should contain "fsl,mpc8315-tdm". >>> + So mpc8313 will have compatible = "fsl,mpc8315-tdm"; >>> + p1010 will have compatible "fsl,p1010-tdm", "fsl,mpc8315-tdm"; >> >> Shouldn't mpc8313 have: >> compatible = "fsl,mpc8313-tdm", "fsl,mpc8315-tdm"? >> >> I thought we were going to use 8313 as the canonical implementation, not >> 8315. > MPC8315 was the first FSL platform to have this controller. > MPC8313 does not have TDM. OK, so no example for mpc8313 then. :-) >> Will this frequency ever need to be > 4GHz? > Don't think so, at max this will be CCB, not sure if CCB on our platforms may get bigger than 4G ever. Still, I think we should always make clock-frequency properties be 32/64 as the ePAPR describes, just in case. >> Might want to specify as u32 or u64, as ePAPR suggests. > Means Value type: ? Yes. > In this case the driver must always use 64bit data structure to read this. Is this correct? No, you'd use of_read_number(). Maybe factor out an of_get_frequency(). -Scott