mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 18:08:38 +08:00
raspberrypi/4: fix many option rendering
This commit is contained in:
@@ -6,24 +6,29 @@ in
|
||||
{
|
||||
options.hardware = {
|
||||
raspberry-pi."4".dwc2 = {
|
||||
enable = lib.mkEnableOption ''
|
||||
Enable the UDC controller to support USB OTG gadget functions.
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = ''
|
||||
Enable the UDC controller to support USB OTG gadget functions.
|
||||
|
||||
In order to verify that this works, connect the Raspberry Pi with
|
||||
another computer via the USB C cable, and then do one of:
|
||||
In order to verify that this works, connect the Raspberry Pi with
|
||||
another computer via the USB C cable, and then do one of:
|
||||
|
||||
- `modprobe g_serial`
|
||||
- `modprobe g_mass_storage file=/path/to/some/iso-file.iso`
|
||||
- `modprobe g_serial`
|
||||
- `modprobe g_mass_storage file=/path/to/some/iso-file.iso`
|
||||
|
||||
On the Raspberry Pi, `dmesg` should then show success-indicating output
|
||||
that is related to the dwc2 and g_serial/g_mass_storage modules.
|
||||
On the other computer, a serial/mass-storage device should pop up in
|
||||
the system logs.
|
||||
On the Raspberry Pi, `dmesg` should then show success-indicating output
|
||||
that is related to the dwc2 and g_serial/g_mass_storage modules.
|
||||
On the other computer, a serial/mass-storage device should pop up in
|
||||
the system logs.
|
||||
|
||||
For more information about what gadget functions exist along with handy
|
||||
guides on how to test them, please refer to:
|
||||
https://www.kernel.org/doc/Documentation/usb/gadget-testing.txt
|
||||
'';
|
||||
For more information about what gadget functions exist along with handy
|
||||
guides on how to test them, please refer to:
|
||||
https://www.kernel.org/doc/Documentation/usb/gadget-testing.txt
|
||||
'';
|
||||
};
|
||||
dr_mode = lib.mkOption {
|
||||
type = lib.types.enum [
|
||||
"host"
|
||||
|
||||
Reference in New Issue
Block a user