* [PATCH 1/3] ARM: OMAP2+: Legacy support for wl12xx when booted with devicetree
[not found] <20130426034858.26065.65118.stgit@muffinssi.local>
@ 2013-04-26 3:52 ` Tony Lindgren
2013-04-26 6:32 ` Luciano Coelho
2013-04-26 9:33 ` Koen Kooi
2013-04-26 3:52 ` [PATCH 2/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for pandaboard Tony Lindgren
2013-04-26 3:52 ` [PATCH 3/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for blaze Tony Lindgren
2 siblings, 2 replies; 11+ messages in thread
From: Tony Lindgren @ 2013-04-26 3:52 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Luciano Coelho, devicetree-discuss, linux-omap, Benoit Cousson,
Rajendra Nayak
Without WLAN we cannot switch omap4 to use device tree
only booting. This patch can be reverted when the
binding for wl12xx is added.
Cc: Luciano Coelho <coelho@ti.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: devicetree-discuss@lists.ozlabs.org
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/mach-omap2/devices.c | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index 73762ac..69c520e 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -15,6 +15,7 @@
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/err.h>
+#include <linux/gpio.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/pinctrl/machine.h>
@@ -22,6 +23,7 @@
#include <linux/platform_data/omap_ocp2scp.h>
#include <linux/platform_data/mailbox-omap.h>
#include <linux/usb/omap_control_usb.h>
+#include <linux/wl12xx.h>
#include <asm/mach-types.h>
#include <asm/mach/map.h>
@@ -640,6 +642,40 @@ static void __init omap_init_ocp2scp(void)
static inline void omap_init_ocp2scp(void) { }
#endif
+#if IS_ENABLED(CONFIG_WL12XX)
+
+static struct wl12xx_platform_data wl12xx __initdata;
+
+void __init omap_init_wl12xx_of(void)
+{
+ int ret;
+
+ if (!of_have_populated_dt())
+ return;
+
+ if (of_machine_is_compatible("ti,omap4-sdp")) {
+ wl12xx.board_ref_clock = WL12XX_REFCLOCK_26;
+ wl12xx.board_tcxo_clock = WL12XX_TCXOCLOCK_26;
+ wl12xx.irq = gpio_to_irq(53);
+ } else if (of_machine_is_compatible("ti,omap4-panda")) {
+ wl12xx.board_ref_clock = WL12XX_REFCLOCK_38;
+ wl12xx.irq = gpio_to_irq(53);
+ } else {
+ return;
+ }
+
+ ret = wl12xx_set_platform_data(&wl12xx);
+ if (ret) {
+ pr_err("error setting wl12xx data: %d\n", ret);
+ return;
+ }
+}
+#else
+static inline omap_init_wl12xx_of(void)
+{
+}
+#endif
+
/*-------------------------------------------------------------------------*/
static int __init omap2_init_devices(void)
@@ -664,6 +700,9 @@ static int __init omap2_init_devices(void)
omap_init_mcspi();
omap_init_sham();
omap_init_aes();
+ } else {
+ /* These can be removed when bindings are done */
+ omap_init_wl12xx_of();
}
omap_init_sti();
omap_init_rng();
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for pandaboard
[not found] <20130426034858.26065.65118.stgit@muffinssi.local>
2013-04-26 3:52 ` [PATCH 1/3] ARM: OMAP2+: Legacy support for wl12xx when booted with devicetree Tony Lindgren
@ 2013-04-26 3:52 ` Tony Lindgren
2013-04-26 13:23 ` Luciano Coelho
2013-04-26 3:52 ` [PATCH 3/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for blaze Tony Lindgren
2 siblings, 1 reply; 11+ messages in thread
From: Tony Lindgren @ 2013-04-26 3:52 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Luciano Coelho, devicetree-discuss, linux-omap, Benoit Cousson,
Rajendra Nayak
This is needed to get wl12xx working with device tree based
booting.
Note that we claim the various GPIO inputs in the regulator
as the proper muxing is needed to enable and disable the
regulator.
Also, we want to use non-removable instead of ti,non-removable
as the ti,non-removable also sets no_regulator_off_init which
is really not what we want as then wl12xx won't get powered
up and down which is needed for resetting it.
Cc: Luciano Coelho <coelho@ti.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: devicetree-discuss@lists.ozlabs.org
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/boot/dts/omap4-panda-common.dtsi | 43 ++++++++++++++++++++++++++++-
1 file changed, 42 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/omap4-panda-common.dtsi b/arch/arm/boot/dts/omap4-panda-common.dtsi
index 628f744..16b23bf 100644
--- a/arch/arm/boot/dts/omap4-panda-common.dtsi
+++ b/arch/arm/boot/dts/omap4-panda-common.dtsi
@@ -86,6 +86,19 @@
clock-names = "main_clk";
clock-frequency = <19200000>;
};
+
+ /* regulator for wl12xx on sdio5 */
+ wl12xx_vmmc: wl12xx_vmmc {
+ pinctrl-names = "default";
+ pinctrl-0 = <&wl12xx_gpio>;
+ compatible = "regulator-fixed";
+ regulator-name = "vwl1271";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ gpio = <&gpio2 11 0>;
+ startup-delay-us = <70000>;
+ enable-active-high;
+ };
};
&omap4_pmx_core {
@@ -185,6 +198,30 @@
0xf0 0x118 /* i2c4_sda PULLUP | INPUTENABLE | MODE0 */
>;
};
+
+ /* wl12xx GPIO outputs for WLAN_EN, BT_EN, FM_EN, BT_WAKEUP */
+ wl12xx_gpio: pinmux_wl12xx_gpio {
+ pinctrl-single,pins = <
+ 0x26 0x3 /* gpmc_a19.gpio_43 OUTPUT | MODE3 */
+ 0x2c 0x3 /* gpmc_a22.gpio_46 OUTPUT | MODE3 */
+ 0x30 0xb /* gpmc_a24.gpio_48 OUTPUT | MODE3 */
+ 0x32 0xb /* gpmc_a25.gpio_49 OUTPUT | MODE3 */
+ >;
+ };
+
+ /* wl12xx GPIO inputs and SDIO pins */
+ wl12xx_pins: pinmux_wl12xx_pins {
+ pinctrl-single,pins = <
+ 0x38 0x103 /* gpmc_ncs2.gpio_52 INPUT | MODE3 */
+ 0x3a 0x103 /* gpmc_ncs3.gpio_53 INPUT | MODE3 */
+ 0x108 0x118 /* sdmmc5_clk.sdmmc5_clk INPUT_PULLUP | MODE0 */
+ 0x10a 0x118 /* sdmmc5_cmd.sdmmc5_cmd INPUT_PULLUP | MODE0 */
+ 0x10c 0x118 /* sdmmc5_dat0.sdmmc5_dat0 INPUT_PULLUP | MODE0 */
+ 0x10e 0x118 /* sdmmc5_dat1.sdmmc5_dat1 INPUT_PULLUP | MODE0 */
+ 0x110 0x118 /* sdmmc5_dat2.sdmmc5_dat2 INPUT_PULLUP | MODE0 */
+ 0x112 0x118 /* sdmmc5_dat3.sdmmc5_dat3 INPUT_PULLUP | MODE0 */
+ >;
+ };
};
&i2c1 {
@@ -264,8 +301,12 @@
};
&mmc5 {
- ti,non-removable;
+ pinctrl-names = "default";
+ pinctrl-0 = <&wl12xx_pins>;
+ vmmc-supply = <&wl12xx_vmmc>;
+ non-removable;
bus-width = <4>;
+ cap-power-off-card;
};
&emif1 {
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for blaze
[not found] <20130426034858.26065.65118.stgit@muffinssi.local>
2013-04-26 3:52 ` [PATCH 1/3] ARM: OMAP2+: Legacy support for wl12xx when booted with devicetree Tony Lindgren
2013-04-26 3:52 ` [PATCH 2/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for pandaboard Tony Lindgren
@ 2013-04-26 3:52 ` Tony Lindgren
2013-04-26 6:32 ` Luciano Coelho
2 siblings, 1 reply; 11+ messages in thread
From: Tony Lindgren @ 2013-04-26 3:52 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Luciano Coelho, Benoit Cousson, devicetree-discuss,
Ruslan Bilovol, Rajendra Nayak, linux-omap
This should work assuming the board-4430sdp.c works, but it seems
that I don't have the "1283 PG 2.21 connectivity device" on
my blaze. Anybody got a spare connectivity device for blaze?
Also, if somebody has the schematics, please provide a patch
for the missing GPIO muxes for blaze, see the the panda for
what's currently missing.
Cc: Luciano Coelho <coelho@ti.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Ruslan Bilovol <ruslan.bilovol@ti.com>
Cc: devicetree-discuss@lists.ozlabs.org
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
arch/arm/boot/dts/omap4-sdp.dts | 39 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/omap4-sdp.dts b/arch/arm/boot/dts/omap4-sdp.dts
index a35d9cd..c13c483 100644
--- a/arch/arm/boot/dts/omap4-sdp.dts
+++ b/arch/arm/boot/dts/omap4-sdp.dts
@@ -140,6 +140,19 @@
"DMic", "Digital Mic",
"Digital Mic", "Digital Mic1 Bias";
};
+
+ /* regulator for wl12xx on sdio5 */
+ wl12xx_vmmc: wl12xx_vmmc {
+ pinctrl-names = "default";
+ pinctrl-0 = <&wl12xx_gpio>;
+ compatible = "regulator-fixed";
+ regulator-name = "vwl1271";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ gpio = <&gpio2 22 0>;
+ startup-delay-us = <70000>;
+ enable-active-high;
+ };
};
&omap4_pmx_core {
@@ -275,6 +288,26 @@
0xf0 0x118 /* i2c4_sda PULLUP | INPUTENABLE | MODE0 */
>;
};
+
+ /* wl12xx GPIO output for WLAN_EN */
+ wl12xx_gpio: pinmux_wl12xx_gpio {
+ pinctrl-single,pins = <
+ 0x3c 0x3 /* gpmc_nwp.gpio_54 OUTPUT | MODE3 */
+ >;
+ };
+
+ /* wl12xx GPIO inputs and SDIO pins */
+ wl12xx_pins: pinmux_wl12xx_pins {
+ pinctrl-single,pins = <
+ 0x3a 0x103 /* gpmc_ncs3.gpio_53 INPUT | MODE3 */
+ 0x108 0x118 /* sdmmc5_clk.sdmmc5_clk INPUT_PULLUP | MODE0 */
+ 0x10a 0x118 /* sdmmc5_cmd.sdmmc5_cmd INPUT_PULLUP | MODE0 */
+ 0x10c 0x118 /* sdmmc5_dat0.sdmmc5_dat0 INPUT_PULLUP | MODE0 */
+ 0x10e 0x118 /* sdmmc5_dat1.sdmmc5_dat1 INPUT_PULLUP | MODE0 */
+ 0x110 0x118 /* sdmmc5_dat2.sdmmc5_dat2 INPUT_PULLUP | MODE0 */
+ 0x112 0x118 /* sdmmc5_dat3.sdmmc5_dat3 INPUT_PULLUP | MODE0 */
+ >;
+ };
};
&i2c1 {
@@ -400,8 +433,12 @@
};
&mmc5 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&wl12xx_pins>;
+ vmmc-supply = <&wl12xx_vmmc>;
+ non-removable;
bus-width = <4>;
- ti,non-removable;
+ cap-power-off-card;
};
&emif1 {
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 1/3] ARM: OMAP2+: Legacy support for wl12xx when booted with devicetree
2013-04-26 3:52 ` [PATCH 1/3] ARM: OMAP2+: Legacy support for wl12xx when booted with devicetree Tony Lindgren
@ 2013-04-26 6:32 ` Luciano Coelho
2013-04-26 9:33 ` Koen Kooi
1 sibling, 0 replies; 11+ messages in thread
From: Luciano Coelho @ 2013-04-26 6:32 UTC (permalink / raw)
To: Tony Lindgren
Cc: linux-arm-kernel, devicetree-discuss, linux-omap, Benoit Cousson,
Rajendra Nayak
On Thu, 2013-04-25 at 20:52 -0700, Tony Lindgren wrote:
> Without WLAN we cannot switch omap4 to use device tree
> only booting. This patch can be reverted when the
> binding for wl12xx is added.
>
> Cc: Luciano Coelho <coelho@ti.com>
> Cc: Benoit Cousson <b-cousson@ti.com>
> Cc: Rajendra Nayak <rnayak@ti.com>
> Cc: devicetree-discuss@lists.ozlabs.org
> Signed-off-by: Tony Lindgren <tony@atomide.com>
> ---
Tested-by: Luciano Coelho <coelho@ti.com>
--
Luca.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 3/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for blaze
2013-04-26 3:52 ` [PATCH 3/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for blaze Tony Lindgren
@ 2013-04-26 6:32 ` Luciano Coelho
0 siblings, 0 replies; 11+ messages in thread
From: Luciano Coelho @ 2013-04-26 6:32 UTC (permalink / raw)
To: Tony Lindgren
Cc: linux-arm-kernel, Benoit Cousson, devicetree-discuss,
Ruslan Bilovol, Rajendra Nayak, linux-omap
On Thu, 2013-04-25 at 20:52 -0700, Tony Lindgren wrote:
> This should work assuming the board-4430sdp.c works, but it seems
> that I don't have the "1283 PG 2.21 connectivity device" on
> my blaze. Anybody got a spare connectivity device for blaze?
>
> Also, if somebody has the schematics, please provide a patch
> for the missing GPIO muxes for blaze, see the the panda for
> what's currently missing.
>
> Cc: Luciano Coelho <coelho@ti.com>
> Cc: Benoit Cousson <b-cousson@ti.com>
> Cc: Rajendra Nayak <rnayak@ti.com>
> Cc: Ruslan Bilovol <ruslan.bilovol@ti.com>
> Cc: devicetree-discuss@lists.ozlabs.org
> Signed-off-by: Tony Lindgren <tony@atomide.com>
> ---
Tested-by: Luciano Coelho <coelho@ti.com>
--
Luca.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/3] ARM: OMAP2+: Legacy support for wl12xx when booted with devicetree
2013-04-26 3:52 ` [PATCH 1/3] ARM: OMAP2+: Legacy support for wl12xx when booted with devicetree Tony Lindgren
2013-04-26 6:32 ` Luciano Coelho
@ 2013-04-26 9:33 ` Koen Kooi
2013-04-26 11:00 ` Luciano Coelho
2013-04-26 15:51 ` Tony Lindgren
1 sibling, 2 replies; 11+ messages in thread
From: Koen Kooi @ 2013-04-26 9:33 UTC (permalink / raw)
To: Tony Lindgren
Cc: linux-arm-kernel, Luciano Coelho, devicetree-discuss,
linux-omap@vger.kernel.org List, Benoit Cousson, Rajendra Nayak,
Pantelis Antoniou, Jason Kridner
Op 26 apr. 2013, om 05:52 heeft Tony Lindgren <tony@atomide.com> het volgende geschreven:
> Without WLAN we cannot switch omap4 to use device tree
> only booting. This patch can be reverted when the
> binding for wl12xx is added.
How much boards am I allowed to add to this? I need to get the wl12xx wifi expansionboards for beagleboard, beagleboard xM and beaglebone working with DT :)
regards,
Koen
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/3] ARM: OMAP2+: Legacy support for wl12xx when booted with devicetree
2013-04-26 9:33 ` Koen Kooi
@ 2013-04-26 11:00 ` Luciano Coelho
2013-04-26 11:16 ` Luciano Coelho
2013-04-26 15:51 ` Tony Lindgren
1 sibling, 1 reply; 11+ messages in thread
From: Luciano Coelho @ 2013-04-26 11:00 UTC (permalink / raw)
To: Koen Kooi
Cc: Tony Lindgren, linux-arm-kernel, devicetree-discuss,
linux-omap@vger.kernel.org List, Benoit Cousson, Rajendra Nayak,
Pantelis Antoniou, Jason Kridner
Hi Koen,
On Fri, 2013-04-26 at 11:33 +0200, Koen Kooi wrote:
> Op 26 apr. 2013, om 05:52 heeft Tony Lindgren <tony@atomide.com> het volgende geschreven:
>
> > Without WLAN we cannot switch omap4 to use device tree
> > only booting. This patch can be reverted when the
> > binding for wl12xx is added.
>
> How much boards am I allowed to add to this? I need to get the wl12xx wifi expansionboards for beagleboard, beagleboard xM and beaglebone working with DT :)
Do you know where I can get a wl12xx wifi expansion board for
beaglebone?
--
Luca.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/3] ARM: OMAP2+: Legacy support for wl12xx when booted with devicetree
2013-04-26 11:00 ` Luciano Coelho
@ 2013-04-26 11:16 ` Luciano Coelho
0 siblings, 0 replies; 11+ messages in thread
From: Luciano Coelho @ 2013-04-26 11:16 UTC (permalink / raw)
To: Koen Kooi
Cc: Tony Lindgren, linux-arm-kernel, devicetree-discuss,
linux-omap@vger.kernel.org List, Benoit Cousson, Rajendra Nayak,
Pantelis Antoniou, Jason Kridner
On Fri, 2013-04-26 at 14:00 +0300, Luciano Coelho wrote:
> Hi Koen,
>
> On Fri, 2013-04-26 at 11:33 +0200, Koen Kooi wrote:
> > Op 26 apr. 2013, om 05:52 heeft Tony Lindgren <tony@atomide.com> het volgende geschreven:
> >
> > > Without WLAN we cannot switch omap4 to use device tree
> > > only booting. This patch can be reverted when the
> > > binding for wl12xx is added.
> >
> > How much boards am I allowed to add to this? I need to get the wl12xx wifi expansionboards for beagleboard, beagleboard xM and beaglebone working with DT :)
>
> Do you know where I can get a wl12xx wifi expansion board for
> beaglebone?
Uhmmm, never mind. I somehow thought this was with the WiLink 8 chip,
but you said wl12xx, so it's not. ;)
--
Luca.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for pandaboard
2013-04-26 3:52 ` [PATCH 2/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for pandaboard Tony Lindgren
@ 2013-04-26 13:23 ` Luciano Coelho
2013-04-26 15:58 ` Tony Lindgren
0 siblings, 1 reply; 11+ messages in thread
From: Luciano Coelho @ 2013-04-26 13:23 UTC (permalink / raw)
To: Tony Lindgren
Cc: linux-arm-kernel, devicetree-discuss, linux-omap, Benoit Cousson,
Rajendra Nayak
On Thu, 2013-04-25 at 20:52 -0700, Tony Lindgren wrote:
> This is needed to get wl12xx working with device tree based
> booting.
>
> Note that we claim the various GPIO inputs in the regulator
> as the proper muxing is needed to enable and disable the
> regulator.
>
> Also, we want to use non-removable instead of ti,non-removable
> as the ti,non-removable also sets no_regulator_off_init which
> is really not what we want as then wl12xx won't get powered
> up and down which is needed for resetting it.
>
> Cc: Luciano Coelho <coelho@ti.com>
> Cc: Benoit Cousson <b-cousson@ti.com>
> Cc: Rajendra Nayak <rnayak@ti.com>
> Cc: devicetree-discuss@lists.ozlabs.org
> Signed-off-by: Tony Lindgren <tony@atomide.com>
> ---
I tried this now and it seems to work fine too. So:
Tested-by: Luciano Coelho <coelho@ti.com>
Except that with linux-next I'm getting some problems with the
interrupts when trying to use wl12xx. It's not related to this patch
though, and I'm investigating it right now.
Also, I found one small whitespace problem in this patch:
[...]
> + /* wl12xx GPIO inputs and SDIO pins */
> + wl12xx_pins: pinmux_wl12xx_pins {
> + pinctrl-single,pins = <
> + 0x38 0x103 /* gpmc_ncs2.gpio_52 INPUT | MODE3 */
> + 0x3a 0x103 /* gpmc_ncs3.gpio_53 INPUT | MODE3 */
> + 0x108 0x118 /* sdmmc5_clk.sdmmc5_clk INPUT_PULLUP | MODE0 */
> + 0x10a 0x118 /* sdmmc5_cmd.sdmmc5_cmd INPUT_PULLUP | MODE0 */
> + 0x10c 0x118 /* sdmmc5_dat0.sdmmc5_dat0 INPUT_PULLUP | MODE0 */
> + 0x10e 0x118 /* sdmmc5_dat1.sdmmc5_dat1 INPUT_PULLUP | MODE0 */
> + 0x110 0x118 /* sdmmc5_dat2.sdmmc5_dat2 INPUT_PULLUP | MODE0 */
> + 0x112 0x118 /* sdmmc5_dat3.sdmmc5_dat3 INPUT_PULLUP | MODE0 */
> + >;
git am reports a "space before tab in indent" here.
--
Luca.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/3] ARM: OMAP2+: Legacy support for wl12xx when booted with devicetree
2013-04-26 9:33 ` Koen Kooi
2013-04-26 11:00 ` Luciano Coelho
@ 2013-04-26 15:51 ` Tony Lindgren
1 sibling, 0 replies; 11+ messages in thread
From: Tony Lindgren @ 2013-04-26 15:51 UTC (permalink / raw)
To: Koen Kooi
Cc: linux-arm-kernel, Luciano Coelho, devicetree-discuss,
linux-omap@vger.kernel.org List, Benoit Cousson, Rajendra Nayak,
Pantelis Antoniou, Jason Kridner
* Koen Kooi <koen@dominion.thruhere.net> [130426 02:39]:
>
> Op 26 apr. 2013, om 05:52 heeft Tony Lindgren <tony@atomide.com> het volgende geschreven:
>
> > Without WLAN we cannot switch omap4 to use device tree
> > only booting. This patch can be reverted when the
> > binding for wl12xx is added.
>
> How much boards am I allowed to add to this? I need to get the wl12xx wifi expansionboards for beagleboard, beagleboard xM and beaglebone working with DT :)
As long as it's trivial changes, go for it. It will be
gone after we have the binding for wl12xx.
But let's not add the bluetooth serial port hack.. And
let's not churn the board-*.c files, at this point pretty
much the next step is to start dropping the board-*.c
files.
Regards,
Tony
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for pandaboard
2013-04-26 13:23 ` Luciano Coelho
@ 2013-04-26 15:58 ` Tony Lindgren
0 siblings, 0 replies; 11+ messages in thread
From: Tony Lindgren @ 2013-04-26 15:58 UTC (permalink / raw)
To: Luciano Coelho
Cc: linux-arm-kernel, devicetree-discuss, linux-omap, Benoit Cousson,
Rajendra Nayak
* Luciano Coelho <coelho@ti.com> [130426 06:29]:
> On Thu, 2013-04-25 at 20:52 -0700, Tony Lindgren wrote:
> > This is needed to get wl12xx working with device tree based
> > booting.
> >
> > Note that we claim the various GPIO inputs in the regulator
> > as the proper muxing is needed to enable and disable the
> > regulator.
> >
> > Also, we want to use non-removable instead of ti,non-removable
> > as the ti,non-removable also sets no_regulator_off_init which
> > is really not what we want as then wl12xx won't get powered
> > up and down which is needed for resetting it.
> >
> > Cc: Luciano Coelho <coelho@ti.com>
> > Cc: Benoit Cousson <b-cousson@ti.com>
> > Cc: Rajendra Nayak <rnayak@ti.com>
> > Cc: devicetree-discuss@lists.ozlabs.org
> > Signed-off-by: Tony Lindgren <tony@atomide.com>
> > ---
>
> I tried this now and it seems to work fine too. So:
>
> Tested-by: Luciano Coelho <coelho@ti.com>
>
> Except that with linux-next I'm getting some problems with the
> interrupts when trying to use wl12xx. It's not related to this patch
> though, and I'm investigating it right now.
One thing I was worried is the early use of gpio_to_irq()
that's probably not safe always. We could fix that by moving the
gpio_to_irq() call to the driver if that's a problem.
But if the gpio_to_irq() is not the issue, can you please just
add a minimal binding to the wl12xx code so we can get rid of the
pdata init for the DT booting?
We can pass the clock reference the same way as we've discussed
already regarding the USB transceiver patch. Or you might be able
to find it out in the driver probe just by doing clk_get() and
clk_get_rate() on the source clock.
And the GPIO is just a standard resource that already has a
binding.
> Also, I found one small whitespace problem in this patch:
>
> [...]
> > + /* wl12xx GPIO inputs and SDIO pins */
> > + wl12xx_pins: pinmux_wl12xx_pins {
> > + pinctrl-single,pins = <
> > + 0x38 0x103 /* gpmc_ncs2.gpio_52 INPUT | MODE3 */
> > + 0x3a 0x103 /* gpmc_ncs3.gpio_53 INPUT | MODE3 */
> > + 0x108 0x118 /* sdmmc5_clk.sdmmc5_clk INPUT_PULLUP | MODE0 */
> > + 0x10a 0x118 /* sdmmc5_cmd.sdmmc5_cmd INPUT_PULLUP | MODE0 */
> > + 0x10c 0x118 /* sdmmc5_dat0.sdmmc5_dat0 INPUT_PULLUP | MODE0 */
> > + 0x10e 0x118 /* sdmmc5_dat1.sdmmc5_dat1 INPUT_PULLUP | MODE0 */
> > + 0x110 0x118 /* sdmmc5_dat2.sdmmc5_dat2 INPUT_PULLUP | MODE0 */
> > + 0x112 0x118 /* sdmmc5_dat3.sdmmc5_dat3 INPUT_PULLUP | MODE0 */
> > + >;
>
> git am reports a "space before tab in indent" here.
OK thanks, will fix.
Regards,
Tony
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-04-26 15:58 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20130426034858.26065.65118.stgit@muffinssi.local>
2013-04-26 3:52 ` [PATCH 1/3] ARM: OMAP2+: Legacy support for wl12xx when booted with devicetree Tony Lindgren
2013-04-26 6:32 ` Luciano Coelho
2013-04-26 9:33 ` Koen Kooi
2013-04-26 11:00 ` Luciano Coelho
2013-04-26 11:16 ` Luciano Coelho
2013-04-26 15:51 ` Tony Lindgren
2013-04-26 3:52 ` [PATCH 2/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for pandaboard Tony Lindgren
2013-04-26 13:23 ` Luciano Coelho
2013-04-26 15:58 ` Tony Lindgren
2013-04-26 3:52 ` [PATCH 3/3] ARM: dts: Add muxing for wl12xx on the SDIO bus for blaze Tony Lindgren
2013-04-26 6:32 ` Luciano Coelho
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).