mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-24 09:51:04 +01:00
raspberry-pi/4/i2c1: factor out easy dts into helper, add i2c0
This commit is contained in:
parent
e81c9aed16
commit
41c4e294f4
4 changed files with 47 additions and 22 deletions
18
raspberry-pi/4/overlay.nix
Normal file
18
raspberry-pi/4/overlay.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
simple-pi4-overlay = { target, status }: {
|
||||
name = "${target}-${status}-overlay";
|
||||
dtsText = ''
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
/ {
|
||||
compatible = "brcm,bcm2711";
|
||||
fragment@0 {
|
||||
target = <&${target}>;
|
||||
__overlay__ {
|
||||
status = "${status}";
|
||||
};
|
||||
};
|
||||
};
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue