Re: [PATCH 2/3] spidev: Add DT binding example.

Michal Suchanek
2015-04-26T11:26:53Z

On 26 April 2015 at 13:01, Mark Brown <broonie@kernel.org> wrote:
> On Sun, Apr 26, 2015 at 12:54:36PM +0200, Michal Suchanek wrote:
>> On 26 April 2015 at 12:32, Mark Brown <broonie@kernel.org> wrote:
>
>> > No, this is broken - nothing should ever bind to spidev as spidev. The
>> > fact that we have a binding document at all is a bug.
>
>> And how do you get spidev if nothing binds to it?
>
>> When you boot without the binding no device is created.
>
> Describe your actual hardware in the DT then add the relevant device ID
> to spidev.

My hardware is a sunxi SPI controller and it is described in the DT. I
have pins on the board which I want to use for connecting arbitrary
devices. How do I add those to spidev other than creating a subnode of
the spi controller and binding that to spidev?

Thanks

Michal