- */
- static int spidev_of_check(struct device *dev)
- {
- if (device_property_match_string(dev, "compatible", "spidev") < 0)
- return 0;
- dev_err(dev, "spidev listed directly in DT is not supported\n");
- return -EINVAL;
- }
- static const struct of_device_id spidev_dt_ids[] = {
- { .compatible = "cisco,spi-petra", .data = &spidev_of_check },
- { .compatible = "dh,dhcom-board", .data = &spidev_of_check },
- { .compatible = "lineartechnology,ltc2488", .data = &spidev_of_check },
- { .compatible = "lwn,bk4", .data = &spidev_of_check },
- { .compatible = "menlo,m53cpld", .data = &spidev_of_check },
- { .compatible = "micron,spi-authenta", .data = &spidev_of_check },
- { .compatible = "rohm,dh2228fv", .data = &spidev_of_check },
- { .compatible = "semtech,sx1301", .data = &spidev_of_check },
- { .compatible = "silabs,em3581", .data = &spidev_of_check },
- { .compatible = "silabs,si3210", .data = &spidev_of_check },