a04f690250
Add new methods to handle decoding of int32, uint32, int64 and uint64 arrays. Also add tests for the new methods. Signed-off-by: Luca Weiss <luca@z3ntu.xyz> Message-Id: <20211225132558.167123-3-luca@z3ntu.xyz> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
15 lines
484 B
Text
15 lines
484 B
Text
/dts-v1/;
|
|
|
|
/ {
|
|
compatible = "test_props";
|
|
prop-hex32 = <0xdeadbeef>;
|
|
prop-uint32 = <123>;
|
|
prop-int32 = <0xfffffffe>;
|
|
prop-hex64 = /bits/ 64 <0xdeadbeef01abcdef>;
|
|
prop-uint64 = /bits/ 64 <9223372036854775807>;
|
|
prop-int64 = /bits/ 64 <0xfffffffffffffffe>;
|
|
prop-int32-array = <128>, <(-16)>, <0xfffffffe>;
|
|
prop-uint32-array = <0x1>, <0x98765432>, <0xdeadbeef>;
|
|
prop-int64-array = /bits/ 64 <0x100000000 0xfffffffffffffffe>;
|
|
prop-uint64-array = /bits/ 64 <0x100000000 0x1>;
|
|
};
|