From: Sebastian Reichel <sre@kernel.org>
To: "Tony Lindgren" <tony@atomide.com>,
"Benoît Cousson" <bcousson@baylibre.com>
Cc: Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
linux-omap@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Sebastian Reichel <sre@kernel.org>
Subject: [PATCH] ARM: dts: N950: Add wlan support
Date: Sat, 9 Jan 2016 04:19:34 +0100 [thread overview]
Message-ID: <1452309574-12921-1-git-send-email-sre@kernel.org> (raw)
In-Reply-To: <1451482533-8624-4-git-send-email-uri.mashiach@compulab.co.il>
Add support for the wl1271 wlan chip. As far as I can see N9 uses the
same chip with the same enable and irq gpio, but they use the mmc
interface instead of the spi interface.
Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
Hi,
I got working Wifi on Nokia N950 with this patch and the following
patches from Uri Mashiach (using 4.4-rc8 as base):
* wlcore/wl12xx: spi: add power operation function
* wlcore/wl12xx: spi: add device tree support
* wlcore/wl12xx: spi: fix oops on firmware load
-- Sebastian
---
arch/arm/boot/dts/omap3-n950-n9.dtsi | 15 +++++++++++++++
arch/arm/boot/dts/omap3-n950.dts | 29 +++++++++++++++++++++++++++++
2 files changed, 44 insertions(+)
diff --git a/arch/arm/boot/dts/omap3-n950-n9.dtsi b/arch/arm/boot/dts/omap3-n950-n9.dtsi
index e9ee1df0e467..655deb99010a 100644
--- a/arch/arm/boot/dts/omap3-n950-n9.dtsi
+++ b/arch/arm/boot/dts/omap3-n950-n9.dtsi
@@ -31,6 +31,14 @@
startup-delay-us = <150>;
enable-active-high;
};
+
+ vwlan_fixed: fixedregulator@2 {
+ compatible = "regulator-fixed";
+ regulator-name = "VWLAN";
+ gpio = <&gpio2 3 GPIO_ACTIVE_HIGH>; /* gpio 35 */
+ enable-active-high;
+ regulator-boot-off;
+ };
};
&omap3_pmx_core {
@@ -44,6 +52,13 @@
0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */
>;
};
+
+ wlan_pins: pinmux_wlan_pins {
+ pinctrl-single,pins = <
+ OMAP3_CORE1_IOPAD(0x207c, PIN_OUTPUT | MUX_MODE4) /* gpio 35 - wlan enable */
+ OMAP3_CORE1_IOPAD(0x208a, PIN_INPUT | MUX_MODE4) /* gpio 42 - wlan irq */
+ >;
+ };
};
&i2c1 {
diff --git a/arch/arm/boot/dts/omap3-n950.dts b/arch/arm/boot/dts/omap3-n950.dts
index 0885b34d5d7d..e5967262f28b 100644
--- a/arch/arm/boot/dts/omap3-n950.dts
+++ b/arch/arm/boot/dts/omap3-n950.dts
@@ -17,6 +17,17 @@
compatible = "nokia,omap3-n950", "ti,omap36xx", "ti,omap3";
};
+&omap3_pmx_core {
+ spi4_pins: pinmux_spi4_pins {
+ pinctrl-single,pins = <
+ OMAP3_CORE1_IOPAD(0x218c, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_clk */
+ OMAP3_CORE1_IOPAD(0x2190, PIN_OUTPUT | MUX_MODE1) /* mcspi4_simo */
+ OMAP3_CORE1_IOPAD(0x2192, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_somi */
+ OMAP3_CORE1_IOPAD(0x2196, PIN_OUTPUT | MUX_MODE1) /* mcspi4_cs0 */
+ >;
+ };
+};
+
&i2c2 {
smia_1: camera@10 {
compatible = "nokia,smia";
@@ -53,3 +64,21 @@
};
};
};
+
+&mcspi4 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi4_pins>;
+
+ wlcore: wlcore@0 {
+ compatible = "ti,wl1271";
+ pinctrl-names = "default";
+ pinctrl-0 = <&wlan_pins>;
+ reg = <0>;
+ spi-max-frequency = <48000000>;
+ clock-xtal;
+ ref-clock-frequency = <38400000>;
+ interrupts-extended = <&gpio2 10 IRQ_TYPE_LEVEL_HIGH>; /* gpio 42 */
+ vwlan-supply = <&vwlan_fixed>;
+ };
+};
--
2.6.4
next prev parent reply other threads:[~2016-01-09 3:19 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-30 13:35 [PATCH v4 0/3] wlcore/wl12xx: spi: add wifi support to cm-t335 Uri Mashiach
2015-12-30 13:35 ` Uri Mashiach
2015-12-30 13:35 ` Uri Mashiach
[not found] ` <1451482533-8624-1-git-send-email-uri.mashiach-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
2015-12-30 13:35 ` [PATCH v4 1/3] wlcore/wl12xx: spi: add power operation function Uri Mashiach
2015-12-30 13:35 ` Uri Mashiach
2015-12-30 13:35 ` Uri Mashiach
[not found] ` <1451482533-8624-2-git-send-email-uri.mashiach-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
2016-01-09 2:53 ` Sebastian Reichel
2016-01-09 2:53 ` Sebastian Reichel
2016-01-09 2:53 ` Sebastian Reichel
2016-01-12 11:21 ` Grygorii Strashko
2016-01-12 11:21 ` Grygorii Strashko
2016-01-12 11:21 ` Grygorii Strashko
2016-01-13 6:03 ` Igor Grinberg
2016-01-13 6:03 ` Igor Grinberg
2016-01-13 6:03 ` Igor Grinberg
2016-01-29 9:11 ` [v4,1/3] " Kalle Valo
2016-01-29 9:11 ` Kalle Valo
2016-01-29 9:11 ` Kalle Valo
2016-01-29 9:11 ` Kalle Valo
2016-01-29 9:11 ` Kalle Valo
2015-12-30 13:35 ` [PATCH v4 2/3] wlcore/wl12xx: spi: add device tree support Uri Mashiach
2015-12-30 13:35 ` Uri Mashiach
2015-12-30 13:35 ` Uri Mashiach
[not found] ` <1451482533-8624-3-git-send-email-uri.mashiach-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
2016-01-09 2:56 ` Sebastian Reichel
2016-01-09 2:56 ` Sebastian Reichel
2016-01-09 2:56 ` Sebastian Reichel
2016-01-12 11:24 ` Grygorii Strashko
2016-01-12 11:24 ` Grygorii Strashko
2016-01-12 11:24 ` Grygorii Strashko
2016-01-13 6:05 ` Igor Grinberg
2016-01-13 6:05 ` Igor Grinberg
2016-01-13 6:05 ` Igor Grinberg
2015-12-30 13:35 ` [PATCH v4 3/3] wlcore/wl12xx: spi: add wifi support to cm-t335 Uri Mashiach
2015-12-30 13:35 ` Uri Mashiach
2015-12-30 13:35 ` Uri Mashiach
2016-01-09 3:19 ` Sebastian Reichel [this message]
[not found] ` <1451482533-8624-4-git-send-email-uri.mashiach-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
2016-01-07 9:02 ` Kalle Valo
2016-01-07 9:02 ` Kalle Valo
2016-01-07 9:02 ` Kalle Valo
[not found] ` <87io35lq2p.fsf-HodKDYzPHsUD5k0oWYwrnHL1okKdlPRT@public.gmane.org>
2016-01-07 11:20 ` Uri Mashiach
2016-01-07 11:20 ` Uri Mashiach
2016-01-07 11:20 ` Uri Mashiach
2016-01-13 6:00 ` Igor Grinberg
2016-01-13 6:00 ` Igor Grinberg
2016-01-13 6:00 ` Igor Grinberg
[not found] ` <5695E802.7050909-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
2016-01-13 17:27 ` Tony Lindgren
2016-01-13 17:27 ` Tony Lindgren
2016-01-13 17:27 ` Tony Lindgren
[not found] ` <20160113172712.GI12777-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-01-14 7:05 ` Kalle Valo
2016-01-14 7:05 ` Kalle Valo
2016-01-14 7:05 ` Kalle Valo
2016-01-14 9:08 ` Arend van Spriel
2016-01-14 9:08 ` Arend van Spriel
2016-01-14 9:08 ` Arend van Spriel
[not found] ` <56976588.3060707-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2016-01-14 9:11 ` Kalle Valo
2016-01-14 9:11 ` Kalle Valo
2016-01-14 9:11 ` Kalle Valo
2016-01-27 18:40 ` Tony Lindgren
2016-01-27 18:40 ` Tony Lindgren
2016-01-27 18:40 ` Tony Lindgren
2016-01-13 6:09 ` Igor Grinberg
2016-01-13 6:09 ` Igor Grinberg
2016-01-13 6:09 ` Igor Grinberg
[not found] ` <5695EA06.5020801-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
2016-01-27 18:41 ` Tony Lindgren
2016-01-27 18:41 ` Tony Lindgren
2016-01-27 18:41 ` Tony Lindgren
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=1452309574-12921-1-git-send-email-sre@kernel.org \
--to=sre@kernel.org \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=tony@atomide.com \
/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.