From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stuart Yoder Subject: Re: Displaying procs device tree properties Date: Fri, 11 May 2012 15:15:04 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Kevin Wilson Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org On Tue, May 8, 2012 at 10:32 AM, Kevin Wilson wrote: > Hi, > I have added some device tree properties for testing device tree in a > kernel module. > Some are with regular, generic device tree names (like "interrupts", "reg") > and some are with my unique names which are not inherent to generic device tree. > I do have success with reading the correct values for my entries with OF > (OpenFirmware) API. (like with of of_get_property() and of_find_property() and > the other of_... methods. > > I had set CONFIG_PROC_DEVICETREE to y. > > When I try to print properties from under the folder that was > generated by my dts, from under /proc/device-tree/mysoc..., (by "cat" command). > some of them are shown and some are not. There are cases in which I see garbage. > > The permission of **all** properties under > proc/device-tree/mysoc... is > -r--r--r-- > > It **does** show "compatible" properties > It **does** show "device_type" properties > It **does** show "name" properties > It **does not** show "interrupts" properties. > It **does not** show other properties > there are cases it shows garbage , like "reg" properties > > Is there a way to enable that it will display all properties which I > added ? Try using dtc: dtc -I fs -O dts /proc/device-tree The "garbage" is there because what you are seeing is the actual binary values, not the ascii values. Stuart