[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAOMqctSOZ5RoL+fZoywR8JNQx81OxeZw5X9Cy7KUB46nmS2nmw@mail.gmail.com>
Date: Tue, 28 Apr 2015 16:35:02 +0200
From: Michal Suchanek <hramrach@...il.com>
To: Maxime Ripard <maxime.ripard@...e-electrons.com>
Cc: "Eric D." <eric.dillmann@...il.com>,
linux-sunxi <linux-sunxi@...glegroups.com>,
Hans de Goede <hdegoede@...hat.com>,
Jonathan Corbet <corbet@....net>,
Martin Sperl <kernel@...tin.sperl.org>,
Mark Brown <broonie@...nel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-spi <linux-spi@...r.kernel.org>
Subject: Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
On 28 April 2015 at 16:12, Maxime Ripard
<maxime.ripard@...e-electrons.com> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists