1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

raspberrypi/4: allow pi libs to detect pi 4

This commit is contained in:
Michael Eden 2022-10-07 10:59:54 -04:00
parent 47fd702894
commit 18c0cbb6b4
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ ... }:
{
hardware.deviceTree.overlays = [
{
name = "rpi4-cpu-revision";
dtsText = ''
/dts-v1/;
/plugin/;
/ {
compatible = "raspberrypi,4-model-b";
fragment@0 {
target-path = "/";
__overlay__ {
system {
linux,revision = <0x00d03114>;
};
};
};
};
'';
}
];
}

View file

@ -3,6 +3,7 @@
{ {
imports = [ imports = [
./audio.nix ./audio.nix
./cpu-revision.nix
./dwc2.nix ./dwc2.nix
./i2c.nix ./i2c.nix
./modesetting.nix ./modesetting.nix