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:
On Mon, Feb 21, 2011 at 2:46 AM, Shawn Guo shawn.guo@linaro.org wrote:
[...]
- };
- };
- 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.