checks: add phandle with arg property checks
Many common bindings follow the same pattern of client properties
containing a phandle and N arg cells where N is defined in the provider
with a '#<specifier>-cells' property such as:
intc0: interrupt-controller@0 {
#interrupt-cells = <3>;
};
intc1: interrupt-controller@1 {
#interrupt-cells = <2>;
};
node {
interrupts-extended = <&intc0 1 2 3>, <&intc1 4 5>;
};
Add checks for properties following this pattern.
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
committed by
David Gibson
parent
fe50bd1ecc
commit
b3bbac02d5
@@ -550,6 +550,7 @@ dtc_tests () {
|
||||
check_tests unit-addr-without-reg.dts unit_address_vs_reg
|
||||
check_tests unit-addr-leading-0x.dts unit_address_format
|
||||
check_tests unit-addr-leading-0s.dts unit_address_format
|
||||
check_tests bad-phandle-cells.dts interrupts_extended_property
|
||||
run_sh_test dtc-checkfails.sh node_name_chars -- -I dtb -O dtb bad_node_char.dtb
|
||||
run_sh_test dtc-checkfails.sh node_name_format -- -I dtb -O dtb bad_node_format.dtb
|
||||
run_sh_test dtc-checkfails.sh prop_name_chars -- -I dtb -O dtb bad_prop_char.dtb
|
||||
|
||||
Reference in New Issue
Block a user