diff mbox

4.6-rc7 no wifi on pandaboard A2

Message ID CAAfyv37FxdV0o8Nb+KsfnqVNEDyspX4cXh8wX42HPNaNf=qd0w@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Belisko Marek May 13, 2016, 9:23 p.m. UTC
Hi,

I'm trying to make wifi working on pandaboard (A2). I'm trying to use
vanilla 4.6-rc7 (omap2plus_defconfig) + device tree. wl21xx seems it's
not probed on sdio due to the missing clk32k. I got some inspiration
from omap5-evm to create simple pwrseq + define clk32k for twl6040.
Not sure if this is right approach but warning about clk32k is gone
with below patch:
[    2.249786] twl6040 0-004b: clk32k is not handled
[    2.258575] of_get_named_gpiod_flags: parsed 'ti,audpwron-gpio'
property of node '/ocp/i2c@48070000/twl@4b[0]' - status (0)
[    2.542816] vwl1271: disabling



after this change wifi it's still not working. Any ideas or anyone has
it working? Many thanks.

BR,

marek

Comments

Tony Lindgren May 17, 2016, 12:02 a.m. UTC | #1
Hi,

* Belisko Marek <marek.belisko@gmail.com> [160513 14:25]:
> I'm trying to make wifi working on pandaboard (A2). I'm trying to use
> vanilla 4.6-rc7 (omap2plus_defconfig) + device tree. wl21xx seems it's
> not probed on sdio due to the missing clk32k. I got some inspiration
> from omap5-evm to create simple pwrseq + define clk32k for twl6040.
> Not sure if this is right approach but warning about clk32k is gone
> with below patch:
> [    2.249786] twl6040 0-004b: clk32k is not handled
> [    2.258575] of_get_named_gpiod_flags: parsed 'ti,audpwron-gpio'
> property of node '/ocp/i2c@48070000/twl@4b[0]' - status (0)
> [    2.542816] vwl1271: disabling

If the warning goes away and the schematics show the clock coming
from clk32kg then it seems your patch is correct :)

I just gave a try here on pandaboard es, and I can iw dev wlan0 scan
just fine. I can also connect to a network, but then it immediately
gets disconnected for some reason. The wl12xx on it used to work
just fine, so there seems to be a regression somewhere.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Tony Lindgren May 31, 2016, 11:07 p.m. UTC | #2
* Tony Lindgren <tony@atomide.com> [160516 17:04]:
> Hi,
> 
> * Belisko Marek <marek.belisko@gmail.com> [160513 14:25]:
> > I'm trying to make wifi working on pandaboard (A2). I'm trying to use
> > vanilla 4.6-rc7 (omap2plus_defconfig) + device tree. wl21xx seems it's
> > not probed on sdio due to the missing clk32k. I got some inspiration
> > from omap5-evm to create simple pwrseq + define clk32k for twl6040.
> > Not sure if this is right approach but warning about clk32k is gone
> > with below patch:
> > [    2.249786] twl6040 0-004b: clk32k is not handled
> > [    2.258575] of_get_named_gpiod_flags: parsed 'ti,audpwron-gpio'
> > property of node '/ocp/i2c@48070000/twl@4b[0]' - status (0)
> > [    2.542816] vwl1271: disabling
> 
> If the warning goes away and the schematics show the clock coming
> from clk32kg then it seems your patch is correct :)
> 
> I just gave a try here on pandaboard es, and I can iw dev wlan0 scan
> just fine. I can also connect to a network, but then it immediately
> gets disconnected for some reason. The wl12xx on it used to work
> just fine, so there seems to be a regression somewhere.

Seems like pandaboard connects to another access point, but not to
another computer running hostapd on wl12xx.. Anyways, I've started
a kernel.org bugzilla page on this, maybe you can add some more
details there:

https://bugzilla.kernel.org/show_bug.cgi?id=119331

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Belisko Marek June 21, 2016, 9:40 p.m. UTC | #3
Hi Tony,

On Wed, Jun 1, 2016 at 1:07 AM, Tony Lindgren <tony@atomide.com> wrote:
> * Tony Lindgren <tony@atomide.com> [160516 17:04]:
>> Hi,
>>
>> * Belisko Marek <marek.belisko@gmail.com> [160513 14:25]:
>> > I'm trying to make wifi working on pandaboard (A2). I'm trying to use
>> > vanilla 4.6-rc7 (omap2plus_defconfig) + device tree. wl21xx seems it's
>> > not probed on sdio due to the missing clk32k. I got some inspiration
>> > from omap5-evm to create simple pwrseq + define clk32k for twl6040.
>> > Not sure if this is right approach but warning about clk32k is gone
>> > with below patch:
>> > [    2.249786] twl6040 0-004b: clk32k is not handled
>> > [    2.258575] of_get_named_gpiod_flags: parsed 'ti,audpwron-gpio'
>> > property of node '/ocp/i2c@48070000/twl@4b[0]' - status (0)
>> > [    2.542816] vwl1271: disabling
>>
>> If the warning goes away and the schematics show the clock coming
>> from clk32kg then it seems your patch is correct :)
>>
>> I just gave a try here on pandaboard es, and I can iw dev wlan0 scan
>> just fine. I can also connect to a network, but then it immediately
>> gets disconnected for some reason. The wl12xx on it used to work
>> just fine, so there seems to be a regression somewhere.
Which u-boot do you use on ES? Maybe it could have some influence.
I suspect that power sequence is not working properly as there is missing
32kHz clock and then after some time regulator for wifi is disabled as
wifi isn't probed on sdio.
What is really strange that why it works on ES and not on A2. I did
check schematics and wifi part is the same :).
>
> Seems like pandaboard connects to another access point, but not to
> another computer running hostapd on wl12xx.. Anyways, I've started
> a kernel.org bugzilla page on this, maybe you can add some more
> details there:
>
> https://bugzilla.kernel.org/show_bug.cgi?id=119331
>
> Regards,
>
> Tony

BR,

marek
Tony Lindgren June 22, 2016, 7:56 a.m. UTC | #4
* Belisko Marek <marek.belisko@gmail.com> [160621 14:42]:
> Hi Tony,
> 
> On Wed, Jun 1, 2016 at 1:07 AM, Tony Lindgren <tony@atomide.com> wrote:
> > * Tony Lindgren <tony@atomide.com> [160516 17:04]:
> >> Hi,
> >>
> >> * Belisko Marek <marek.belisko@gmail.com> [160513 14:25]:
> >> > I'm trying to make wifi working on pandaboard (A2). I'm trying to use
> >> > vanilla 4.6-rc7 (omap2plus_defconfig) + device tree. wl21xx seems it's
> >> > not probed on sdio due to the missing clk32k. I got some inspiration
> >> > from omap5-evm to create simple pwrseq + define clk32k for twl6040.
> >> > Not sure if this is right approach but warning about clk32k is gone
> >> > with below patch:
> >> > [    2.249786] twl6040 0-004b: clk32k is not handled
> >> > [    2.258575] of_get_named_gpiod_flags: parsed 'ti,audpwron-gpio'
> >> > property of node '/ocp/i2c@48070000/twl@4b[0]' - status (0)
> >> > [    2.542816] vwl1271: disabling
> >>
> >> If the warning goes away and the schematics show the clock coming
> >> from clk32kg then it seems your patch is correct :)
> >>
> >> I just gave a try here on pandaboard es, and I can iw dev wlan0 scan
> >> just fine. I can also connect to a network, but then it immediately
> >> gets disconnected for some reason. The wl12xx on it used to work
> >> just fine, so there seems to be a regression somewhere.
> Which u-boot do you use on ES? Maybe it could have some influence.
> I suspect that power sequence is not working properly as there is missing
> 32kHz clock and then after some time regulator for wifi is disabled as
> wifi isn't probed on sdio.
> What is really strange that why it works on ES and not on A2. I did
> check schematics and wifi part is the same :).

Sorry I can't check the u-boot version right now, but yeah that
could be the difference, and specifically it could be the 32kHz
clock.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Tony Lindgren June 23, 2016, 6:59 a.m. UTC | #5
* Tony Lindgren <tony@atomide.com> [160622 01:09]:
> * Belisko Marek <marek.belisko@gmail.com> [160621 14:42]:
> > Which u-boot do you use on ES? Maybe it could have some influence.
>
> Sorry I can't check the u-boot version right now,

Looks like mine is 2016.05 (May 27 2016 - 15:13:50 -0700).

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/boot/dts/omap4-panda-common.dtsi
b/arch/arm/boot/dts/omap4-panda-common.dtsi
index df2e356..502bf95 100644
--- a/arch/arm/boot/dts/omap4-panda-common.dtsi
+++ b/arch/arm/boot/dts/omap4-panda-common.dtsi
@@ -18,6 +18,13 @@ 
                display1 = &hdmi0;
        };

+       mmc5_pwrseq: sdhci0_pwrseq {
+               compatible = "mmc-pwrseq-simple";
+               clocks = <&clk32kg>;
+               clock-names = "ext_clock";
+       };
+
+
        leds: leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
@@ -388,6 +395,10 @@ 
                vio-supply = <&v1v8>;
                v2v1-supply = <&v2v1>;
                enable-active-high;
+
+               clocks = <&clk32kg>;
+               clock-names = "clk32k";
+
        };
 };

@@ -444,6 +455,7 @@ 
 &mmc5 {
        pinctrl-names = "default";
        pinctrl-0 = <&wl12xx_pins>;
+       mmc-pwrseq = <&mmc5_pwrseq>;
        vmmc-supply = <&wl12xx_vmmc>;
        non-removable;
        bus-width = <4>;
@@ -541,3 +553,10 @@ 
                };
        };
 };
+
+&twl6040 {
+       clk32kg: palmas_clk32k@1 {
+               compatible = "ti,palmas-clk32kg";
+               #clock-cells = <0>;
+       };
+};