All of lore.kernel.org
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij@linaro.org>
To: Stephan Gerhold <stephan@gerhold.net>
Cc: Linux ARM <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v2] ARM: dts: ux500: Fix BT+WLAN on Samsung phones
Date: Thu, 18 Mar 2021 00:32:04 +0100	[thread overview]
Message-ID: <CACRpkda+HVf_2Xn976iWZhkT+vfwEhZj7H2isYtHmyo7tNbBFA@mail.gmail.com> (raw)
In-Reply-To: <YFIrcnbEu0HDcDiF@gerhold.net>

On Wed, Mar 17, 2021 at 5:17 PM Stephan Gerhold <stephan@gerhold.net> wrote:
> On Wed, Mar 17, 2021 at 04:53:58PM +0100, Linus Walleij wrote:
> > On Wed, Mar 17, 2021 at 4:28 PM Stephan Gerhold <stephan@gerhold.net> wrote:
> >
> > > According to the schematics for samsung-golden:
> > >   - GPIO215 goes to WL_REG_ON of BCM4334
> > >   - GPIO222 goes to BT_REG_ON of BCM4334
> >
> > Yes it appears you are right...
> >
> > This is in conflict with the source code in the vendor tree:
> > board-golden-pins.c:
> >
> >         GPIO215_GPIO            | PIN_OUTPUT_LOW,       /* WLAN_RST_N */
> >         GPIO222_GPIO            | PIN_OUTPUT_LOW,       /* BT_VREG_EN */
> >
> > However the BCM4334 does not have appear to have
> > any signal named WLAN_RST_N.
> >
> > So I suspect a copy/paste error from Janice, which might
> > need this because of differences between BCM4330 and
> > BCM4334.
> >
>
> Huh, so it gets more confusing: unlike BCM4334, the BCM4330 datasheet [2]
> mentions a BT_RST_N but not a WLAN_RST_N... :O

Yeah. BT_RST_N exists on 4330 and is gone on BCM4334.

I'll think of something.

> > However another part of the patch is still needed because
> > GPIO215 is default initilized as low:
> >
> >                 wlan_en_default: wlan_en_default {
> >                         golden_cfg1 {
> >                                 pins = "GPIO215_AH13";  /* WLAN_EN */
> >                                 ste,config = <&gpio_out_lo>;
> >                         };
> >                 };
> >
> > It needs to be high, or the SDIO will not enumerate unless
> > someone powers on the Bluetooth by chance. (The driver
> > probes after the SDIO card is detected ... catch 22.)
>
> At least on samsung-golden, GPIO215 belongs to the regulator-wl-reg-on,
> which is the vmmc-supply for the SDIO card. I would expect the MMC core
> to power that up before scanning for SDIO cards.

Hm, makes sense. But this got it working for me :/
I'll investigate.

> > Also IMO GPIO 222 should be modeled as a regulator and
> > not assigned to "shutdown-gpios", which could be a separate
> > patch. The whole notion of "shutdown-gpios" seems backward
> > as the driver handles regulators just fine.
> >
>
> Yeah I suppose it might be better modelled as a regulator. But I guess
> in that case we would need support for another regulator.
> The "vbat" and "vddio" are likely supposed to point to the "BT_VDDBAT"
> and "VDDIO" input pins of the BCM4334.

We seldom model VBAT supplies since it is always on and can't
be turned off/on or done much with. The only time we do that is
when we need to know the voltage.

Yours,
Linus Walleij

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

      reply	other threads:[~2021-03-17 23:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-15 11:07 [PATCH v2] ARM: dts: ux500: Fix BT+WLAN on Samsung phones Linus Walleij
2021-03-17 15:27 ` Stephan Gerhold
2021-03-17 15:53   ` Linus Walleij
2021-03-17 16:16     ` Stephan Gerhold
2021-03-17 23:32       ` Linus Walleij [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=CACRpkda+HVf_2Xn976iWZhkT+vfwEhZj7H2isYtHmyo7tNbBFA@mail.gmail.com \
    --to=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=stephan@gerhold.net \
    /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.