On 28 April 2015 at 16:12, Maxime Ripard
<[email protected]> wrote:
> On Tue, Apr 28, 2015 at 07:03:16AM -0700, Eric D. wrote:
>> Hi,
>>
>> I give Maxime's patch a try and got 4 spidev devices :
>> /dev/spidev32766.[0-3]
>>
>> root@bpi:~# ls -lh /dev/spidev*
>> crw------- 1 root root 153, 0 Apr 28 15:52 /dev/spidev32766.0
>> crw------- 1 root root 153, 1 Apr 28 15:52 /dev/spidev32766.1
>> crw------- 1 root root 153, 2 Apr 28 15:52 /dev/spidev32766.2
>> crw------- 1 root root 153, 3 Apr 28 15:52 /dev/spidev32766.3
>>
>> Shouldn't they be numbered from like spidev0.[0-3].
>> Is this an udev problem ? any clues ?
>
> You're missing an SPI alias in the DT.

Indeed, adding some SPI aliases makes the device nodes tidier:

        aliases {
                serial0 = &uart0;
                serial1 = &uart2;
                serial2 = &uart3;
                spi0 = &spi0;
                spi1 = &spi1;
                spi2 = &spi2;
        };

However, SPI usage examples I have seen showed some random high number.

Thanks

Michal

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to