mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 17:38:41 +08:00
raspberry-pi/4/i2c1: factor out easy dts into helper, add i2c0
This commit is contained in:
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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user