mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-11-30 13:03:30 +01:00
raspberry-pi: avoid USB setup and serial-console pins in overlay examples
This commit is contained in:
1 parent
54987e6989
commit
428be44435
1 file changed
+12
-6
+12
-6
@@ -105,13 +105,18 @@ Filters nest the same way, and the leaf is an ordered list where each element na
|
||||
boot.loader.generic-extlinux-compatible.useGenerationDeviceTree = false;
|
||||
|
||||
hardware.raspberry-pi.configtxt.deviceTreeOverlays.pi4 = [
|
||||
{ dwc2.dr_mode = "host"; }
|
||||
{
|
||||
gpio-fan = {
|
||||
gpiopin = 14;
|
||||
gpiopin = 12;
|
||||
temp = 80000;
|
||||
};
|
||||
}
|
||||
{
|
||||
gpio-led = {
|
||||
gpio = 16;
|
||||
label = "status";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
```
|
||||
@@ -121,13 +126,14 @@ This renders after `configtxt.settings` as:
|
||||
```ini
|
||||
[all]
|
||||
[pi4]
|
||||
dtoverlay=dwc2
|
||||
dtparam=dr_mode=host
|
||||
dtoverlay=
|
||||
dtoverlay=gpio-fan
|
||||
dtparam=gpiopin=14
|
||||
dtparam=gpiopin=12
|
||||
dtparam=temp=80000
|
||||
dtoverlay=
|
||||
dtoverlay=gpio-led
|
||||
dtparam=gpio=16
|
||||
dtparam=label=status
|
||||
dtoverlay=
|
||||
```
|
||||
|
||||
A separate option is necessary because `settings` groups values by key.
|
||||
|
||||
Reference in new issue
Block a user