linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* spi-sun4i: how/where to set the bus number of spi_master ?
@ 2017-03-07 18:21 Frank Schäfer
       [not found] ` <d8190d82-c2bc-2ed0-79d6-d326248944aa-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Schäfer @ 2017-03-07 18:21 UTC (permalink / raw)
  To: linux-spi-u79uwXL29TY76Z2rM5mHXA,
	maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8


Hi,

trying to get a TFT display working on a Banana Pi M1 board, I noticed 
that the spi-sun4i driver doesn't set the bus number of the spi_master 
(which leaves it at its default value -1).
fbtft_device driver fails to load for that reason.
What's the right fix for this ? Is this something that needs to be added 
to the boards device tree file ?

Regards,
Frank
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: spi-sun4i: how/where to set the bus number of spi_master ?
       [not found] ` <d8190d82-c2bc-2ed0-79d6-d326248944aa-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
@ 2017-03-08  7:16   ` Maxime Ripard
  0 siblings, 0 replies; 2+ messages in thread
From: Maxime Ripard @ 2017-03-08  7:16 UTC (permalink / raw)
  To: Frank Schäfer; +Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 648 bytes --]

On Tue, Mar 07, 2017 at 07:21:14PM +0100, Frank Schäfer wrote:
> trying to get a TFT display working on a Banana Pi M1 board, I noticed that
> the spi-sun4i driver doesn't set the bus number of the spi_master (which
> leaves it at its default value -1).
> fbtft_device driver fails to load for that reason.
> What's the right fix for this ? Is this something that needs to be added to
> the boards device tree file ?

Yes, you need to set an alias.
https://linux-sunxi.org/SPIdev#Configuring_your_device-tree_.28mainline.29

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-08  7:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-07 18:21 spi-sun4i: how/where to set the bus number of spi_master ? Frank Schäfer
     [not found] ` <d8190d82-c2bc-2ed0-79d6-d326248944aa-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-03-08  7:16   ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).