All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Ivan Drobyshevskyi <drobyshevskyi@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: HCI over SPI support
Date: Wed, 9 Aug 2017 13:45:36 +0300	[thread overview]
Message-ID: <20170809104536.GA984@x1c.lan> (raw)
In-Reply-To: <CADAXeK1oW65U=mm_SdcahhkRM_Njc9QdUZmg1AejbsgtGcNAoA@mail.gmail.com>

Hi Ivan,

On Tue, Aug 08, 2017, Ivan Drobyshevskyi wrote:
> I need to get BlueZ working with KW30Z chip on a custom ARM board.
> It's strongly preferred to use SPI for HCI, since UART is needed for
> another purpose, but it looks HCI over SPI is not implemented in
> kernel. After some digging, it seems like the following options might
> work:
> 
> 1) Implement HCI over SPI in drivers/bluetooth, similarly to hci_uart.
> 2) use hci_vhci and make a (userspace) bridge app that would forward
> traffic between vhci and spi device. I found a python example for some
> unsupported chip connected over UART.
> 3) Implement some kind of adapter between UART and SPI (fake UART
> device), and use hci_uart.
> 
> What is the best/recommended way? It looks like the first option is
> the cleanest one, with some upstreaming potential, but it might
> involve much more work than the second one.

I'd go for proper kernel-side driver.

> On a related note, why is SPI is rarely, if at all, used for HCI?

Because SPI is not a standard HCI transport (something specified as part
of the Bluetooth Core Specification). So if you make a kernel-side
driver you need to be aware that it may not become the only SPI HCI
driver as the implementation will be vendor-specific rather than
standard.

Johan

      reply	other threads:[~2017-08-09 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-08 13:09 HCI over SPI support Ivan Drobyshevskyi
2017-08-09 10:45 ` Johan Hedberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170809104536.GA984@x1c.lan \
    --to=johan.hedberg@gmail.com \
    --cc=drobyshevskyi@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.