Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5391

Device Tree • Re: Is it possible to have an override for a cell property?

$
0
0
Is it possible to have an override for this? And what would the dtparam declaration/syntax in config.txt would have to look like?
You have two options - multiple cell assignments or a bytestring:

Code:

the_cell_way = <&node>,"a-cell-property:0=5", <&node>,"a-cell-property:4=6", <&node>,"a-cell-property:8=7", <&node>,"a-cell-property:12=8";the_bytestring_way = <&node>, "a-cell-property[=00000005 00000006 00000007 00000008";
(These should produce the same result but I haven't tried either...)
Note that the bytestring method always overwrites the entire property, whereas the size+offset method allows arbitrary patching.
is it possible to append some cells to a property?
Just assign to an offset beyond the end - any intervening added space will be zeroed:

Code:

add5 = <&node>,"a-cell-property:16=5";
(similarly untested)

Statistics: Posted by PhilE — Thu Jan 04, 2024 9:56 am



Viewing all articles
Browse latest Browse all 5391

Trending Articles