Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
From: Mark Brown
Date: Mon Apr 27 2015 - 06:46:28 EST
On Sun, Apr 26, 2015 at 08:53:16PM +0200, Michal Suchanek wrote:
> Do you have to describe a modem or terminal emulator in DT to connect
> it to your serial port? You just describe the port. So here you have a
> SPI port and it should be described in the DT as faithfully as the
> serial port.
Serial ports have runtime mechanisms defined for connecting devices to
them (opening the device or attaching a line discipline).
> Or do you suggest that I patch the compatible into spidev, write a
> driver for it, and then back out the compatible from spidev and check
> in the compatible again with the driver?
Until someone provides a way of binding spidev to otherwise unbound
devices that's exactly what is being suggested; if your main purpose in
this is to write a kernel driver for the device then that would be a
local modification to add the compatible (or you could just ignore the
warning) until you get something in kernel space, no need to upstream.
Attachment:
signature.asc
Description: Digital signature