diff --git a/Software/Development/OperatingSystem/Linux/Kernel/Modules/SPI/Linux_Spidev_与_DeviceTree.md b/Software/Development/OperatingSystem/Linux/Kernel/Modules/SPI/Linux_Spidev_与_DeviceTree.md index 691e0ca..7801d62 100644 --- a/Software/Development/OperatingSystem/Linux/Kernel/Modules/SPI/Linux_Spidev_与_DeviceTree.md +++ b/Software/Development/OperatingSystem/Linux/Kernel/Modules/SPI/Linux_Spidev_与_DeviceTree.md @@ -103,6 +103,20 @@ Since spidev is a detail of how Linux controls a device rather than a descriptio spidev 除了出现在 spi 节点下意外,还有可能出现在 spi gpio 节点下,spi gpio 是 Linux 下使用 gpio 模拟 spi 控制器的一种方法。若想使用 spi gpio,需要设置 CONFIG_SPI_GPIO=y。 +### 3.3.spidev buffer size + +spidev 的 rx 和 tx buffer 大小可调(默认为 4K),如果是系统模块,可在加载模块时增加参数: + +```bash +insmod spidev.ko bufsiz= +``` + +或通过 boot cmdline 来调整: + +```bash +spidev.bufsiz= +``` + ## 4.内部参考关键字 1. SPI