Commit f92bce2
Sven Van Asbroeck
bcm2835_rng_rust: add devicetree matching
Devices described in the devicetree with the following `compatible`
string will now match:
`brcm,bcm2835-rng`
Example devicetree .dts:
```dts
&some_bus {
rng@7e104000 {
compatible = "brcm,bcm2835-rng";
reg = <0x7e104000 0x10>;
};
rng@7e104040 {
compatible = "brcm,bcm2835-rng";
reg = <0x7e104040 0x10>;
};
};
```
This will instantiate two hardware random-number generator devices.
Signed-off-by: Sven Van Asbroeck <[email protected]>1 parent a2bbb25 commit f92bce2
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
0 commit comments