Changes between Version 25 and Version 26 of SPI


Ignore:
Timestamp:
09/24/2026 06:55:07 PM (23 hours ago)
Author:
Ryan Erb
Comment:

add notes for compat strings

Legend:

Unmodified
Added
Removed
Modified
  • SPI

    v25 v26  
    180180An application using {{{spidev}}} would include the {{{<linux/spi/spidev.h>}}} header file.
    181181
     182The compatible string doesn't actually do anything but must match one that the linux drivers/spi/spidev.c module binds to:
     183{{{
     184static const struct of_device_id spidev_dt_ids[] = {
     185        { .compatible = "abb,spi-sensor", .data = &spidev_of_check },
     186        { .compatible = "cisco,spi-petra", .data = &spidev_of_check },
     187        { .compatible = "dh,dhcom-board", .data = &spidev_of_check },
     188        { .compatible = "elgin,jg10309-01", .data = &spidev_of_check },
     189        { .compatible = "gocontroll,moduline-module-slot", .data = &spidev_of_check},
     190        { .compatible = "lineartechnology,ltc2488", .data = &spidev_of_check },
     191        { .compatible = "lwn,bk4", .data = &spidev_of_check },
     192        { .compatible = "lwn,bk4-spi", .data = &spidev_of_check },
     193        { .compatible = "menlo,m53cpld", .data = &spidev_of_check },
     194        { .compatible = "micron,spi-authenta", .data = &spidev_of_check },
     195        { .compatible = "rohm,bh2228fv", .data = &spidev_of_check },
     196        { .compatible = "rohm,dh2228fv", .data = &spidev_of_check },
     197        { .compatible = "semtech,sx1301", .data = &spidev_of_check },
     198        { .compatible = "silabs,em3581", .data = &spidev_of_check },
     199        { .compatible = "silabs,si3210", .data = &spidev_of_check },
     200        {},
     201};
     202}}}
    182203For more info see:
    183204* [https://www.kernel.org/doc/Documentation/spi/spidev Kernel Documentation]