478: raspberrypi/4: allow pi libs to detect pi 4 r=Mic92 a=illegalprime



Co-authored-by: Michael Eden <themichaeleden@gmail.com>
This commit is contained in:
bors[bot] 2022-10-09 13:16:11 +00:00 committed by GitHub
commit 236ba4df71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 = [
./audio.nix
./cpu-revision.nix
./dwc2.nix
./i2c.nix
./modesetting.nix