Hello!
I work with custom board on iMX287 CPU and linux-fscl 4.1.3.
Board have slave SPI device, I describe it in dt-file:
ssp2: ssp@80014000 {
..................
dm631@0 {
reg = <1>;
compatible = "spidev";
spi-max-frequency = <10000000>;
};
};
After booting I found follow message in linux log:
| [ | 1.087049] spidev spi1.1: buggy DT: spidev listed directly in DT |
| [ | 1.093503] ------------[ cut here ]------------ |
| [ | 1.098231] WARNING: CPU: 0 PID: 1 at drivers/spi/spidev.c:730 spidev_probe+0x184/0x1c8() |
| [ | 1.106572] Modules linked in: |
| [ | 1.109723] CPU: 0 PID: 1 Comm: swapper Not tainted 4.1.3+ #1 |
| [ | 1.115623] Hardware name: Freescale MXS (Device Tree) |
For fix this message I modify spidev_dt_ids in driver/spi/spidev.c and change compatible string in dt-file.
After this boot log is clear, but I think my method is not very correct.
How can solve this problem without modify driver/spi/spidev.c? Now I see one way - write driver for device, may be I have another way?
Thank you and excuse my bad english.