diff options
author | Florian Vaussard <florian.vaussard@epfl.ch> | 2014-03-07 14:22:14 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-03-12 13:17:27 -0400 |
commit | 94647a30124e2c7243ffcd780862ed591ae36450 (patch) | |
tree | 8dc79b0cb842a274e52b642bfd945cee1cd0412e /arch/arm/boot/dts | |
parent | fc1772262a84fe5069aebb9a91f9e2997951dec6 (diff) |
ARM: dts: omap3-overo: Enable WiFi/BT combo
MMC2 is used by the on-board WiFi module populated on some boards
(based on Marvell Libertas 8688 SDIO). The Bluetooth is connected
to UART2.
Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts')
-rw-r--r-- | arch/arm/boot/dts/omap3-overo-base.dtsi | 72 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap3-overo-storm.dtsi | 8 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap3-overo.dtsi | 8 |
3 files changed, 88 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap3-overo-base.dtsi b/arch/arm/boot/dts/omap3-overo-base.dtsi index aea64c09d02b..edac70e9204c 100644 --- a/arch/arm/boot/dts/omap3-overo-base.dtsi +++ b/arch/arm/boot/dts/omap3-overo-base.dtsi | |||
@@ -29,9 +29,50 @@ | |||
29 | ti,mcbsp = <&mcbsp2>; | 29 | ti,mcbsp = <&mcbsp2>; |
30 | ti,codec = <&twl_audio>; | 30 | ti,codec = <&twl_audio>; |
31 | }; | 31 | }; |
32 | |||
33 | /* Regulator to trigger the nPoweron signal of the Wifi module */ | ||
34 | w3cbw003c_npoweron: regulator-w3cbw003c-npoweron { | ||
35 | compatible = "regulator-fixed"; | ||
36 | regulator-name = "regulator-w3cbw003c-npoweron"; | ||
37 | regulator-min-microvolt = <3300000>; | ||
38 | regulator-max-microvolt = <3300000>; | ||
39 | gpio = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* gpio_54: nPoweron */ | ||
40 | enable-active-high; | ||
41 | }; | ||
42 | |||
43 | /* Regulator to trigger the nReset signal of the Wifi module */ | ||
44 | w3cbw003c_wifi_nreset: regulator-w3cbw003c-wifi-nreset { | ||
45 | pinctrl-names = "default"; | ||
46 | pinctrl-0 = <&w3cbw003c_pins &w3cbw003c_2_pins>; | ||
47 | compatible = "regulator-fixed"; | ||
48 | regulator-name = "regulator-w3cbw003c-wifi-nreset"; | ||
49 | regulator-min-microvolt = <3300000>; | ||
50 | regulator-max-microvolt = <3300000>; | ||
51 | gpio = <&gpio1 16 GPIO_ACTIVE_HIGH>; /* gpio_16: WiFi nReset */ | ||
52 | startup-delay-us = <10000>; | ||
53 | }; | ||
54 | |||
55 | /* Regulator to trigger the nReset signal of the Bluetooth module */ | ||
56 | w3cbw003c_bt_nreset: regulator-w3cbw003c-bt-nreset { | ||
57 | compatible = "regulator-fixed"; | ||
58 | regulator-name = "regulator-w3cbw003c-bt-nreset"; | ||
59 | regulator-min-microvolt = <3300000>; | ||
60 | regulator-max-microvolt = <3300000>; | ||
61 | gpio = <&gpio6 4 GPIO_ACTIVE_HIGH>; /* gpio_164: BT nReset */ | ||
62 | startup-delay-us = <10000>; | ||
63 | }; | ||
32 | }; | 64 | }; |
33 | 65 | ||
34 | &omap3_pmx_core { | 66 | &omap3_pmx_core { |
67 | uart2_pins: pinmux_uart2_pins { | ||
68 | pinctrl-single,pins = < | ||
69 | OMAP3_CORE1_IOPAD(0x216c, PIN_INPUT | MUX_MODE1) /* mcbsp3_dx.uart2_cts */ | ||
70 | OMAP3_CORE1_IOPAD(0x216e, PIN_OUTPUT | MUX_MODE1) /* mcbsp3_dr.uart2_rts */ | ||
71 | OMAP3_CORE1_IOPAD(0x2170, PIN_OUTPUT | MUX_MODE1) /* mcbsp3_clk.uart2_tx */ | ||
72 | OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE1) /* mcbsp3_fsx.uart2_rx */ | ||
73 | >; | ||
74 | }; | ||
75 | |||
35 | uart3_pins: pinmux_uart3_pins { | 76 | uart3_pins: pinmux_uart3_pins { |
36 | pinctrl-single,pins = < | 77 | pinctrl-single,pins = < |
37 | OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */ | 78 | OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */ |
@@ -56,6 +97,25 @@ | |||
56 | OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */ | 97 | OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */ |
57 | >; | 98 | >; |
58 | }; | 99 | }; |
100 | |||
101 | mmc2_pins: pinmux_mmc2_pins { | ||
102 | pinctrl-single,pins = < | ||
103 | OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */ | ||
104 | OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */ | ||
105 | OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */ | ||
106 | OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */ | ||
107 | OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */ | ||
108 | OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */ | ||
109 | >; | ||
110 | }; | ||
111 | |||
112 | /* WiFi/BT combo */ | ||
113 | w3cbw003c_pins: pinmux_w3cbw003c_pins { | ||
114 | pinctrl-single,pins = < | ||
115 | OMAP3_CORE1_IOPAD(0x20b4, PIN_OUTPUT | MUX_MODE4) /* gpmc_ncs3.gpio_54 */ | ||
116 | OMAP3_CORE1_IOPAD(0x219c, PIN_OUTPUT | MUX_MODE4) /* uart3_rts_sd.gpio_164 */ | ||
117 | >; | ||
118 | }; | ||
59 | }; | 119 | }; |
60 | 120 | ||
61 | &i2c1 { | 121 | &i2c1 { |
@@ -94,7 +154,14 @@ | |||
94 | 154 | ||
95 | /* optional on board WiFi */ | 155 | /* optional on board WiFi */ |
96 | &mmc2 { | 156 | &mmc2 { |
157 | pinctrl-names = "default"; | ||
158 | pinctrl-0 = <&mmc2_pins>; | ||
159 | vmmc-supply = <&w3cbw003c_npoweron>; | ||
160 | vqmmc-supply = <&w3cbw003c_bt_nreset>; | ||
161 | vmmc_aux-supply = <&w3cbw003c_wifi_nreset>; | ||
97 | bus-width = <4>; | 162 | bus-width = <4>; |
163 | cap-sdio-irq; | ||
164 | non-removable; | ||
98 | }; | 165 | }; |
99 | 166 | ||
100 | &twl_gpio { | 167 | &twl_gpio { |
@@ -110,6 +177,11 @@ | |||
110 | power = <50>; | 177 | power = <50>; |
111 | }; | 178 | }; |
112 | 179 | ||
180 | &uart2 { | ||
181 | pinctrl-names = "default"; | ||
182 | pinctrl-0 = <&uart2_pins>; | ||
183 | }; | ||
184 | |||
113 | &uart3 { | 185 | &uart3 { |
114 | pinctrl-names = "default"; | 186 | pinctrl-names = "default"; |
115 | pinctrl-0 = <&uart3_pins>; | 187 | pinctrl-0 = <&uart3_pins>; |
diff --git a/arch/arm/boot/dts/omap3-overo-storm.dtsi b/arch/arm/boot/dts/omap3-overo-storm.dtsi index c30efb30f829..c235ae8780c1 100644 --- a/arch/arm/boot/dts/omap3-overo-storm.dtsi +++ b/arch/arm/boot/dts/omap3-overo-storm.dtsi | |||
@@ -9,3 +9,11 @@ | |||
9 | #include "omap36xx.dtsi" | 9 | #include "omap36xx.dtsi" |
10 | #include "omap3-overo-base.dtsi" | 10 | #include "omap3-overo-base.dtsi" |
11 | 11 | ||
12 | &omap3_pmx_core2 { | ||
13 | w3cbw003c_2_pins: pinmux_w3cbw003c_2_pins { | ||
14 | pinctrl-single,pins = < | ||
15 | OMAP3630_CORE2_IOPAD(0x25e0, PIN_OUTPUT | MUX_MODE4) /* etk_d2.gpio_16 */ | ||
16 | >; | ||
17 | }; | ||
18 | }; | ||
19 | |||
diff --git a/arch/arm/boot/dts/omap3-overo.dtsi b/arch/arm/boot/dts/omap3-overo.dtsi index 7bbda683ee0a..95c59b21b4f6 100644 --- a/arch/arm/boot/dts/omap3-overo.dtsi +++ b/arch/arm/boot/dts/omap3-overo.dtsi | |||
@@ -9,3 +9,11 @@ | |||
9 | #include "omap34xx.dtsi" | 9 | #include "omap34xx.dtsi" |
10 | #include "omap3-overo-base.dtsi" | 10 | #include "omap3-overo-base.dtsi" |
11 | 11 | ||
12 | &omap3_pmx_core2 { | ||
13 | w3cbw003c_2_pins: pinmux_w3cbw003c_2_pins { | ||
14 | pinctrl-single,pins = < | ||
15 | OMAP3430_CORE2_IOPAD(0x25e0, PIN_OUTPUT | MUX_MODE4) /* etk_d2.gpio_16 */ | ||
16 | >; | ||
17 | }; | ||
18 | }; | ||
19 | |||