]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: ARM: dts: Fix omap5 SDIO dat1 interrupt
authorTony Lindgren <tony@atomide.com>
Mon, 12 Sep 2016 04:01:02 +0000 (21:01 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 13 Sep 2016 21:56:30 +0000 (14:56 -0700)
Few changes to fix issues I've noticed while debugging omap5-uevm
wl18xx issues:

1. Move wlcore irq pin muxing under wlcore. This irq could be
   different from gpio_wk14 on some board variants

2. Don't configure pull on wlcore irq pin. There is a 10k
   pull up resistor R105 on the device to VDDS_1v8_MAIN

3. The padconf register for wlsdio_data1 is wrong, it's really
   at 0x1a8 + 2 - 0x40 = 0x16a offset, not at 0x168 as that's
   for wlsdio_data0

4. Mark the omap5-uevm wlan as compatible with ti,wl1837 as
   that's what the TDK R078 part seems to be

5. The MMC interrupt for WLAN musb be wakeupgen, not gic

Looks like omap5-uevm WLAN behaves better now, but I still seem
to have issues with some access points.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap5-board-common.dtsi
arch/arm/boot/dts/omap5-uevm.dts

index d1f5ce3d36519844a81c021f040b69b89213167e..cb3247f19b9f416272a869facec19594eff01843 100644 (file)
@@ -332,7 +332,7 @@ OMAP5_IOPAD(0x05a, PIN_OUTPUT | MUX_MODE0) /* fref_clk1_out, USB hub clk */
 
        wlcore_irq_pin: pinmux_wlcore_irq_pin {
                pinctrl-single,pins = <
-                       OMAP5_IOPAD(0x40, PIN_INPUT_PULLUP | MUX_MODE6) /* llia_wakereqin.gpio1_wk14 */
+                       OMAP5_IOPAD(0x40, PIN_INPUT | MUX_MODE6)        /* llia_wakereqin.gpio1_wk14 */
                >;
        };
 };
@@ -355,15 +355,17 @@ &mmc3 {
        non-removable;
        cap-power-off-card;
        pinctrl-names = "default";
-       pinctrl-0 = <&mmc3_pins &wlcore_irq_pin>;
-       interrupts-extended = <&gic GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
-                              &omap5_pmx_core 0x168>;
+       pinctrl-0 = <&mmc3_pins>;
+       interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
+                              &omap5_pmx_core 0x16a>;
 
        #address-cells = <1>;
        #size-cells = <0>;
        wlcore: wlcore@2 {
                compatible = "ti,wl1271";
                reg = <2>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&wlcore_irq_pin>;
                interrupt-parent = <&gpio1>;
                interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;  /* gpio 14 */
                ref-clock-frequency = <26000000>;
index 5230ca00913aa27e63a4c1c753be656576e9c517..17704479f618201c68154307dffa246c7565b72f 100644 (file)
@@ -61,3 +61,7 @@ &twl6040_pins {
                OMAP5_IOPAD(0x1be, PIN_OUTPUT | MUX_MODE6)      /* mcspi1_somi.gpio5_141 */
        >;
 };
+
+&wlcore {
+       compatible = "ti,wl1837";
+};