* Displaying procs device tree properties
@ 2012-05-08 15:32 Kevin Wilson
[not found] ` <CAGXs5wXYwBAVjcUE8c8m7L0URR_CXNFQnHPWpzRPug_an0ij1g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Wilson @ 2012-05-08 15:32 UTC (permalink / raw)
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
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 ?
regards,
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Displaying procs device tree properties
[not found] ` <CAGXs5wXYwBAVjcUE8c8m7L0URR_CXNFQnHPWpzRPug_an0ij1g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-05-11 20:15 ` Stuart Yoder
0 siblings, 0 replies; 2+ messages in thread
From: Stuart Yoder @ 2012-05-11 20:15 UTC (permalink / raw)
To: Kevin Wilson; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
On Tue, May 8, 2012 at 10:32 AM, Kevin Wilson <wkevils-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-11 20:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-08 15:32 Displaying procs device tree properties Kevin Wilson
[not found] ` <CAGXs5wXYwBAVjcUE8c8m7L0URR_CXNFQnHPWpzRPug_an0ij1g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-05-11 20:15 ` Stuart Yoder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).