Thread (11 messages) 11 messages, 4 authors, 2012-07-23

Re: [RFC][PATCH V2 3/3] tegra: add pwm backlight device tree nodes

From: Stephen Warren <hidden>
Date: 2012-07-23 20:38:20
Also in: linux-fbdev, linux-tegra, lkml

On 07/12/2012 11:32 PM, Alex Courbot wrote:
On 07/12/2012 11:27 PM, Simon Glass wrote
...
quoted
 From my understanding mixing strings and numbers in a property is
frowned on though.
But doesn't it make sense in the current case? The power sequence is
basically a program that is run by an interpreter. From this
perspective, it makes more sense to me to have it as a binary field
rather than a hierarchy of nodes and properties that will be harder to
parse and will make error detection more complicated. I don't really see
any practical benefit from turning the steps into sub-nodes, but then
again I am not so familiar with the DT.
Mixing strings and integers in a property isn't "allowed" (by convention
of DT bindings reviewers - as you noticed, dtc will happily compile it);
there are practical issues with attempting to do so, such as causing the
integer values to be unaligned, and thus causing the current integer
parsing code to fail, etc.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help