Thread (1 message) 1 message, 1 author, 2011-02-23

Re: [PATCH 2/3] arm/dt: add very basic dts file for babbage board

From: Grant Likely <hidden>
Date: 2011-02-23 18:59:57

Possibly related (same subject, not in this thread)

On Tue, Feb 22, 2011 at 10:13:10PM +0800, Shawn Guo wrote:
Hi Grant,

Thanks for the explanation in details.

One more minor doubt below ...

On Mon, Feb 21, 2011 at 10:10:24AM -0700, Grant Likely wrote:
quoted
On Mon, Feb 21, 2011 at 2:46 AM, Shawn Guo [off-list ref] wrote:
[...]
quoted
quoted
quoted
+               };
+       };
+
+       clocks {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
Can we use hex value here to keep the consistency throughout the file?
For #address-cells and #size-cells use decimal integers.
If I run 'dtc -I dts -O dts -o babbage-dtc.dts babbage.dts', I see
babbage-dtc.dts have these two decimal values written into the hex.
Property values don't have any inherent type checking.  Once it is in
internal form, dtc has no way of knowing the preferred representation
and it just makes a guess.

When it comes to maintaining .dts files; humans like looking at
decimal numbers, so we use decimal for #address/#size-cells.

g.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help