From mboxrd@z Thu Jan 1 00:00:00 1970 From: robherring2@gmail.com (Rob Herring) Date: Fri, 23 Sep 2011 08:30:36 -0500 Subject: Identifying Primecells In-Reply-To: References: <4E7C7FA2.30404@gmail.com> Message-ID: <4E7C89FC.4090209@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 09/23/2011 08:11 AM, jonsmirl at gmail.com wrote: > On Fri, Sep 23, 2011 at 8:46 AM, Rob Herring wrote: >> On 09/22/2011 01:19 PM, jonsmirl at gmail.com wrote: >>> I'm working on device tree support for the NXP LPC3130. To do this >>> right I need to know what specific Primecells were used in the chip. >>> How do I identify the primecell numbers for the devices? It is a >>> 926ejs core. >>> >> >> I'm not sure I understand the question. >> >> The primecell periph id numbers are only in the DT if they are wrong in >> the h/w for some reason. The compatible property should contain the >> device model number (i.e. "arm,pl011" for the uart). > > So how do I figure out which id numbers to use for the NXP LPC3130? > Is the UART a pl011? > The chip's documentation or ARM's documentation. The existing board code. Read each periph ID register. Or the ones with drivers in the kernel: find drivers -name '*pl[0-3]*' Rob