aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>2015-02-04 10:22:02 -0500
committerKukjin Kim <kgene@kernel.org>2015-02-26 14:44:53 -0500
commitb07a27696bda1d23036b3b018bfd799f93f4e8f0 (patch)
treedb38cfb02c2a9419634da1c6384d0a03c12e4275 /arch/arm
parentc517d838eb7d07bbe9507871fab3931deccff539 (diff)
ARM: dts: Enable wifi power-on for exynos5250-snow
The Snow board has a MMC/SDIO wifi chip that is always powered but it needs a power sequence involving a reset (active low) and an enable (active high) pins. Both pins are marked as active low since the MMC simple power sequence driver asserts the pins prior to the card power up procedure and de-asserts the pins after the card has been powered. So the reset line will be left de-asserted and the enable pin will be left asserted. The chip also needs an external 32kHz reference clock to be operational that is by the MAX77686 PMIC clock. Add a simple MMC power sequence provider for the wifi MMC/SDIO slot. Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> Signed-off-by: Kukjin Kim <kgene@kernel.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/exynos5250-snow.dts25
1 files changed, 24 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts
index b9aeec430527..b78712058903 100644
--- a/arch/arm/boot/dts/exynos5250-snow.dts
+++ b/arch/arm/boot/dts/exynos5250-snow.dts
@@ -229,6 +229,14 @@
229 power-supply = <&fet6>; 229 power-supply = <&fet6>;
230 backlight = <&backlight>; 230 backlight = <&backlight>;
231 }; 231 };
232
233 mmc3_pwrseq: mmc3_pwrseq {
234 compatible = "mmc-pwrseq-simple";
235 reset-gpios = <&gpx0 2 GPIO_ACTIVE_LOW>, /* WIFI_RSTn */
236 <&gpx0 1 GPIO_ACTIVE_LOW>; /* WIFI_EN */
237 clocks = <&max77686 MAX77686_CLK_PMIC>;
238 clock-names = "ext_clock";
239 };
232}; 240};
233 241
234&dp { 242&dp {
@@ -536,12 +544,27 @@
536 samsung,dw-mshc-sdr-timing = <2 3>; 544 samsung,dw-mshc-sdr-timing = <2 3>;
537 samsung,dw-mshc-ddr-timing = <1 2>; 545 samsung,dw-mshc-ddr-timing = <1 2>;
538 pinctrl-names = "default"; 546 pinctrl-names = "default";
539 pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>; 547 pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4 &wifi_en &wifi_rst>;
540 bus-width = <4>; 548 bus-width = <4>;
541 cap-sd-highspeed; 549 cap-sd-highspeed;
550 mmc-pwrseq = <&mmc3_pwrseq>;
542}; 551};
543 552
544&pinctrl_0 { 553&pinctrl_0 {
554 wifi_en: wifi-en {
555 samsung,pins = "gpx0-1";
556 samsung,pin-function = <1>;
557 samsung,pin-pud = <0>;
558 samsung,pin-drv = <0>;
559 };
560
561 wifi_rst: wifi-rst {
562 samsung,pins = "gpx0-2";
563 samsung,pin-function = <1>;
564 samsung,pin-pud = <0>;
565 samsung,pin-drv = <0>;
566 };
567
545 power_key_irq: power-key-irq { 568 power_key_irq: power-key-irq {
546 samsung,pins = "gpx1-3"; 569 samsung,pins = "gpx1-3";
547 samsung,pin-function = <0xf>; 570 samsung,pin-function = <0xf>;