compatible 使用spidev的话/dev目录下不会生成对应的设备节点,必须使用下面的compatible属性
{ .compatible = "rohm,dh2228fv", .data = &spidev_of_check },
{ .compatible = "lineartechnology,ltc2488", .data = &spidev_of_check },
{ .compatible = "semtech,sx1301", .data = &spidev_of_check },
{ .compatible = "lwn,bk4", .data = &spidev_of_check },
{ .compatible = "dh,dhcom-board", .data = &spidev_of_check },
{ .compatible = "menlo,m53cpld", .data = &spidev_of_check },
{ .compatible = "cisco,spi-petra", .data = &spidev_of_check },
{ .compatible = "micron,spi-authenta", .data = &spidev_of_check },
{ .compatible = "adi,swspi", .data = &spidev_of_check },
设备树节点示例
&spi1 {
status = "okay";
oled@0 {
compatible = "adi,swspi";
reg = <0>;
spi-max-frequency = <10000000>;
};
};