linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arend van Spriel <arend@broadcom.com>
To: Ilya Faenson <ifaenson@broadcom.com>,
	Loic Poulain <loic.poulain@intel.com>,
	"marcel@holtmann.org" <marcel@holtmann.org>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH] Bluetooth: hci_intel: Add platform driver
Date: Thu, 20 Aug 2015 18:11:55 +0200	[thread overview]
Message-ID: <55D5FC4B.6070003@broadcom.com> (raw)
In-Reply-To: <E0D3336E15B58B4294723AC879BA5E94282F3E@IRVEXCHMB15.corp.ad.broadcom.com>

On 08/20/2015 02:42 PM, Ilya Faenson wrote:
> Hi Loic,
>
> -----Original Message-----
> From: Loic Poulain [mailto:loic.poulain@intel.com]
> Sent: Thursday, August 20, 2015 4:58 AM
> To: Ilya Faenson; marcel@holtmann.org
> Cc: linux-bluetooth@vger.kernel.org
> Subject: Re: [PATCH] Bluetooth: hci_intel: Add platform driver
>
> Thanks Ilya,
>
>> Is there a patch with the DT documentation? It would be interesting to see what DT maintainers think of this approach.
> I don't have any documentation for now.
>
>> That allows you to run with a single device per platform only. Meanwhile, you could have something in the DT parameters identifying the UART. You would then be able to retrieve that parameter and match it against the tty in the BT protocol. Multiple devices per platform would then be supported.
> Actually It supports multiple chips but takes them in the registered order.
> But, I agree, it's not a correct way to do that.
> I'm not a DT expert but I think we can do this match in the same way as
> acpi.
> It just requires to make the Bluetooth entry a child of the serial port
> entry.
>
> for example:
>
> In dtsi you could have the usual uart description:
> uart1: serial@1 {
>           compatible = "vendor,vendor-uart";
>           reg = <0x4806a000 0x100>;
>           interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
>           clock-frequency = <48000000>;
>           ...
> };
>
> And in the dts overlay, just add the device as a child node:
> uart1: serial@1 {
>           bt-vendor {
>                   compatible = "vendor,bt-vendor";
>                   reset-gpio = <&pmx_gpio 77 0 >;
>                   interrupts = < 2 VENDOR_IRQ_TYPE_EDGE_FALLING >;
>                   ...
>           }
> }
>
> I think it's a good way to link the tty with the pdev and there is no
> specific label to add and document.
>
> What do you think about this?
>
> I'm not specially against adding a parameter (vendor,tty = "ttys1").
> But it means that you need to be sure that your serial will be always
> named "ttys1", if someone remove/disable/add a serial port in a dts/dtsi, it
> can shift the tty number assigned by the driver.
>
> IF: All good ideas, Loic. I initially wanted BT DT configuration to be "like ACPI" too. The response from the DT maintainer was "DT's not ACPI". He essentially wanted us to describe the whole combo chip as a device with BT being one of the sub-devices. The point was that BT/WiFi/GPS/NFC/FM/whatever are dependent on each other and on some properties of the whole chip, say on power or clock. There is some truth to that but I believe the BT relationship to the UART is of more relevance to its driver than to the rest of the overall chip. In any case, we were not able to find common ground (no response to my last couple of messages) resulting in a customer not using bluetooth-next for that BT device integration. I guess DT has its own interests and seems to care little about BlueZ. I hope therefore that the second similar request from the major hardware vendor (you guys) will make DT more cooperative. All hardware vendors will then be able to benefit from whatever scheme gets ac
 cepted. T
o
>    make a long story short, I encourage you to start including DT in your patches. :-)

Hi Ilya,

Based on DT maintainer (Rob Herring?) I sent a couple of proposals after 
which we ended up with the second option as shown above or at least that 
was my understanding (see [1]).

Regards,
Arend

[1] http://article.gmane.org/gmane.linux.bluez.kernel/63216

> Regards,
> Loic
>

      reply	other threads:[~2015-08-20 16:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-19 17:11 [PATCH] Bluetooth: hci_intel: Add platform driver Loic Poulain
2015-08-19 17:13 ` Loic Poulain
2015-08-19 21:17   ` Ilya Faenson
2015-08-20  8:58     ` Loic Poulain
2015-08-20 12:42       ` Ilya Faenson
2015-08-20 16:11         ` Arend van Spriel [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=55D5FC4B.6070003@broadcom.com \
    --to=arend@broadcom.com \
    --cc=ifaenson@broadcom.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=loic.poulain@intel.com \
    --cc=marcel@holtmann.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 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).