Created
May 26, 2021 11:55
-
-
Save tfc/646a9853ee3d84dc17daf4100875882f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, config, ... }: | |
{ | |
hardware.deviceTree.overlays = [ | |
{ name = "dwc2"; dtboFile = /nix/store/6fanghkkwfa8wrcq0khhc0fvm7dym2w3-linux-5.10.17-1.20210303/dtbs/overlays/dwc2.dtbo; } | |
{ | |
name = "dwc2-overlay"; | |
dtsText = '' | |
/dts-v1/; | |
/plugin/; | |
/{ | |
compatible = "brcm,bcm2835"; | |
fragment@0 { | |
target = <&usb>; | |
dwc2_usb: __overlay__ { | |
compatible = "brcm,bcm2835-usb"; | |
dr_mode = "otg"; | |
g-np-tx-fifo-size = <32>; | |
g-rx-fifo-size = <558>; | |
g-tx-fifo-size = <512 512 512 512 512 256 256>; | |
status = "okay"; | |
}; | |
}; | |
}; | |
''; | |
} | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment