All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arend van Spriel <arend-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
To: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>,
	linux-sunxi <linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Firmware for Bluetooth (and wifi)
Date: Sun, 26 Jan 2014 22:39:52 +0100	[thread overview]
Message-ID: <52E580A8.4060600@broadcom.com> (raw)
In-Reply-To: <CAGb2v6594vsKCd9E8apojQXE8h6WJj4-doJ8wa85Nt3EFZhXHA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 01/26/2014 05:58 PM, Chen-Yu Tsai wrote:
> Hi,
> 
> On Mon, Jan 27, 2014 at 12:34 AM, Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> Hi,
>>
>> On 01/24/2014 04:38 AM, Chen-Yu Tsai wrote:
>>
>> <snip>
>>
>>
>>>> Quick update, I've just tested:
>>>> https://github.com/wens/linux/commits/wip/sunxi-next-wifi
>>>
>>>
>>> About this, I would like to move WiFi power control to a regulator,
>>> and controlled by sunxi-mci via vmmc-supply (not supported ATM)
>>
>>
>> Actually the sunxi-mci.c driver already has support for an optional
>> regulator called vmmc.
>>
>> I like this idea, I've done a version of the dt patch using a regulator
>> instead of rfkill here:
>> https://github.com/jwrdegoede/linux-sunxi/commit/8d200113b573549cdcdc1b2d5a5a1cad15cfbe07
>>
>> This works as advertised and IMHO is the better solution.
> 
> I have a version in another branch I haven't pushed. I had it using an
> always-on regulator. I can adjust it to use vmmc.
> 
> BTW, I'd like to do a patch for sunxi-mci to use the DT parsing code
> in mmc core.
> We should re-use code if possible, wouldn't you agree?
> 
>>>> About the oob interrupt stuff not working, AFAIK you should set a pinctrl
>>>> function (not input, but a function like mmc is a function) on the pin in
>>>> question
>>>> for it to work as external interrupt, I believe you're not doing so in
>>>> your
>>>> dts.
>>>
>>>
>>> The pinctrl driver seems to set the function when the interrupt is
>>> enabled.
>>> Unfortunately we don't have any documentation/examples on how to use them.
>>> I will look into that later.
>>
>>
>> Hmm, but you also have a pinctrl entry in the dts setting it up as
>> gpio-input,
>> maybe that conflicts ?
> 
> I made a version with pinctrl entry setup as "irq", got an interrupt,
> but then the whole thing hung. Looks like pinctrl irqchip was not
> properly handling chained interrupts. I have done a simple fix, and I
> hope to test it tomorrow. Then I'll do some more testing with different
> configurations and hopefully write some documents.

Hi Chen-Yu,

I had a look at github tree from Hans with your DT support patch for
brcmfmac. I applied it to my 3.14 tree and modified it a little. I guess
the bindings are still experimental, but I would prefer you to use brcm
instead of broadcom in the 'compatible' entry as found in
Documentation/devicetree/bindings/vendor-prefixes.txt. There is an
exception to this rule in the bindings (in net/broadcom-bcm87xx.txt),
but I guess that train has left and it is tricky to change it now.
In the brcmfmac patch you also use multiple of_device ids. Could we make
it more generic, ie. compatible = "brcm,brcmfmac" or "brcm,wifi-fullmac"
or whatever...

Regards,
Arend

  parent reply	other threads:[~2014-01-26 21:39 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <52A040CE.5040706@schinagl.nl>
     [not found] ` <CAFXj5xjJ0DTa0Qo1avLboQF-e3TFv3aEr_jjkuZjinwuTzXykQ@mail.gmail.com>
     [not found]   ` <52A09B5B.70800@schinagl.nl>
2013-12-05 21:46     ` [linux-sunxi] Firmware for Bluetooth (and wifi) Julian Calaby
2013-12-06  9:00       ` Arend van Spriel
2013-12-18 10:31       ` Arend van Spriel
2013-12-18 13:12         ` Hans de Goede
2013-12-18 16:16           ` Arend van Spriel
2013-12-18 16:39             ` Chen-Yu Tsai
2013-12-19 10:12               ` Chen-Yu Tsai
2013-12-26 16:13                 ` Chen-Yu Tsai
2013-12-26 20:29                   ` Hans de Goede
2013-12-27 11:47                   ` Arend van Spriel
2013-12-27 12:36                     ` Chen-Yu Tsai
2014-01-02 13:59                       ` Arend van Spriel
2014-01-02 17:09                         ` Chen-Yu Tsai
     [not found]                           ` <5ce9ab14-5794-4c0d-a859-7a158655f58e@googlegroups.com>
2014-01-02 19:26                             ` Michal Suchanek
2014-01-02 20:29                             ` Arend van Spriel
2014-01-02 21:03                           ` Arend van Spriel
2014-01-03  3:02                             ` Chen-Yu Tsai
2014-01-08  8:56                       ` Arend van Spriel
2014-01-08  9:23                         ` Chen-Yu Tsai
2014-01-08  9:33                           ` Arend van Spriel
2014-01-08 10:17                             ` Chen-Yu Tsai
2014-01-23 22:39                           ` Hans de Goede
2014-01-24 10:25                             ` Arend van Spriel
2014-01-24 16:34                               ` Hans de Goede
2014-01-26  8:53                                 ` Arend van Spriel
2014-01-26  8:56                                   ` Arend van Spriel
2014-01-26 10:23                                   ` Hans de Goede
2014-01-26 12:58                                     ` Arend van Spriel
2014-01-26 13:19                                       ` Hans de Goede
2014-01-26 12:07                                   ` Hans de Goede
2014-01-26 15:49                                   ` Hans de Goede
2014-01-26 11:04                                 ` Arend van Spriel
2014-01-26 12:09                                   ` Hans de Goede
2014-01-26 12:50                                     ` Arend van Spriel
     [not found]                             ` <52E19E1C.1010402@redhat.com>
     [not found]                               ` <CAGb2v66KhGoGmoFkTw9PQYBtX 9YQbmxk4oy_tM4LM_UhZMkcZg@mail.gmail.com>
     [not found]                                 ` <52E5392B.80605@redhat.com>
     [not found]                                   ` <CAGb2v6594vsKCd9E8apojQXE8h6WJj4-doJ8wa85Nt3EFZhXHA@mail.gmail.com>
     [not found]                                     ` <CAGb2v6594vsKCd9E8apojQXE8h6WJj4-doJ8wa85Nt3EFZhXHA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-26 21:39                                       ` Arend van Spriel [this message]
     [not found]                                         ` <52E580A8.4060600-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-01-27  0:20                                           ` Tomasz Figa
     [not found]                                             ` <52E5A631.4030204-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-27  4:09                                               ` Chen-Yu Tsai
2014-01-27  9:21                                               ` Arend van Spriel
     [not found]                                                 ` <52E62510.5090103-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-01-27 10:12                                                   ` Tomasz Figa
     [not found]                                                 ` <52E630F4.8090805@gmail.com >
     [not found]                                                   ` <52E630F4.8090805-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-28 10:11                                                     ` Arend van Spriel
     [not found]                                                   ` <52E78236.50702@broadcom.! com>
     [not found]                                                     ` <52E78236.50702-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2014-01-28 10:41                                                       ` Hans de Goede
2014-01-02 16:52                 ` [linux-sunxi] " Michal Suchanek
2014-01-02 17:11                   ` Chen-Yu Tsai

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=52E580A8.4060600@broadcom.com \
    --to=arend-dy08kvg/lbpwk0htik3j/w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=wens-jdAy2FN1RRM@public.gmane.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.