dtc: Migrate "one cell" checks to new framework

This patch converts to the new tree checking framework those checks
which verify that certain properties (#address-cells and #size-cells)
are exactly one cell in size, when present.

We also drop the old-style check for "linux,phandle" being one cell,
since that is already implied in the the existing new-style checks on
the linux,phandle property.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2007-12-06 16:59:45 +11:00 committed by Jon Loeliger
parent 5ba0086bfd
commit c21acabc40
3 changed files with 35 additions and 14 deletions

7
tests/bad-ncells.dts Normal file
View file

@ -0,0 +1,7 @@
/dts-v1/;
/ {
#address-cells = "badthing";
#size-cells = "badthing";
#interrupt-cells = "badthing";
};