diff options
author | Eyal Reizer | 2015-10-21 08:37:11 -0500 |
---|---|---|
committer | Eyal Reizer | 2015-11-03 03:09:40 -0600 |
commit | bd6e6e2a30800492f9ac9904315269552c9cbb62 (patch) | |
tree | 6dea6dca0d46c17519f879ece950dfdb2b1da358 | |
parent | 3cd7740b278ccfd64093e25e794a3b448c1a0e76 (diff) | |
download | wl18xx-wlcore-ti-linux-4.1.y.tar.gz wl18xx-wlcore-ti-linux-4.1.y.tar.xz wl18xx-wlcore-ti-linux-4.1.y.zip |
ARM: dts: am437x-sk-evm: add wilink8 supportwlcore-ti-linux-4.1.y
enable mmc3 used for wlan and uart1 used for bluetooth
configure the gpios used for wlan and bluetooth controls
add fixed voltage regulator used for wlan power control
Signed-off-by: Eyal Reizer <eyalr@ti.com>
-rw-r--r-- | arch/arm/boot/dts/am437x-sk-evm.dts | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am437x-sk-evm.dts b/arch/arm/boot/dts/am437x-sk-evm.dts index 7ae9a17098cf..012287761d90 100644 --- a/arch/arm/boot/dts/am437x-sk-evm.dts +++ b/arch/arm/boot/dts/am437x-sk-evm.dts | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <dt-bindings/pwm/pwm.h> | 15 | #include <dt-bindings/pwm/pwm.h> |
16 | #include <dt-bindings/gpio/gpio.h> | 16 | #include <dt-bindings/gpio/gpio.h> |
17 | #include <dt-bindings/input/input.h> | 17 | #include <dt-bindings/input/input.h> |
18 | #include <dt-bindings/interrupt-controller/irq.h> | ||
18 | 19 | ||
19 | / { | 20 | / { |
20 | model = "TI AM437x SK EVM"; | 21 | model = "TI AM437x SK EVM"; |
@@ -142,6 +143,15 @@ | |||
142 | }; | 143 | }; |
143 | }; | 144 | }; |
144 | }; | 145 | }; |
146 | |||
147 | vmmcwl_fixed: fixedregulator-mmcwl { | ||
148 | compatible = "regulator-fixed"; | ||
149 | regulator-name = "vmmcwl_fixed"; | ||
150 | regulator-min-microvolt = <1800000>; | ||
151 | regulator-max-microvolt = <1800000>; | ||
152 | gpio = <&gpio4 8 GPIO_ACTIVE_HIGH>; | ||
153 | enable-active-high; | ||
154 | }; | ||
145 | }; | 155 | }; |
146 | 156 | ||
147 | &am43xx_pinmux { | 157 | &am43xx_pinmux { |
@@ -399,6 +409,62 @@ | |||
399 | 0x2c4 (PIN_OUTPUT | MUX_MODE0) /* usb0_drvvbus.usb0_drvvbus */ | 409 | 0x2c4 (PIN_OUTPUT | MUX_MODE0) /* usb0_drvvbus.usb0_drvvbus */ |
400 | >; | 410 | >; |
401 | }; | 411 | }; |
412 | |||
413 | mmc3_pins_default: pinmux_mmc3_pins_default { | ||
414 | pinctrl-single,pins = < | ||
415 | 0x1f0 (PIN_INPUT_PULLUP | MUX_MODE3) /* (AD21) cam1_data2.mmc2_clk */ | ||
416 | 0x1f4 (PIN_INPUT_PULLUP | MUX_MODE3) /* (AE22) cam1_data3.mmc2_cmd */ | ||
417 | 0x1f8 (PIN_INPUT_PULLUP | MUX_MODE3) /* (AD22) cam1_data4.mmc2_dat0 */ | ||
418 | 0x1fc (PIN_INPUT_PULLUP | MUX_MODE3) /* (AE23) cam1_data5.mmc2_dat1 */ | ||
419 | 0x200 (PIN_INPUT_PULLUP | MUX_MODE3) /* (AD23) cam1_data6.mmc2_dat2 */ | ||
420 | 0x204 (PIN_INPUT_PULLUP | MUX_MODE3) /* (AE24) cam1_data7.mmc2_dat3 */ | ||
421 | >; | ||
422 | }; | ||
423 | |||
424 | mmc3_pins_sleep: pinmux_mmc3_pins_sleep { | ||
425 | pinctrl-single,pins = < | ||
426 | 0x1f0 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AD21) cam1_data2.mmc2_clk */ | ||
427 | 0x1f4 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AE22) cam1_data3.mmc2_cmd */ | ||
428 | 0x1f8 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AD22) cam1_data4.mmc2_dat0 */ | ||
429 | 0x1fc (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AE23) cam1_data5.mmc2_dat1 */ | ||
430 | 0x200 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AD23) cam1_data6.mmc2_dat2 */ | ||
431 | 0x204 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AE24) cam1_data7.mmc2_dat3 */ | ||
432 | >; | ||
433 | }; | ||
434 | |||
435 | wlan_pins_default: pinmux_wlan_pins_default { | ||
436 | pinctrl-single,pins = < | ||
437 | 0x1d0 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* cam1_data8.gpio4_8 WL_EN */ | ||
438 | 0x1e4 (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* cam1_wen.gpio4_13 WL_IRQ */ | ||
439 | >; | ||
440 | }; | ||
441 | |||
442 | wlan_pins_sleep: pinmux_wlan_pins_sleep { | ||
443 | pinctrl-single,pins = < | ||
444 | 0x1d0 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* cam1_data8.gpio4_8 WL_EN */ | ||
445 | 0x1e4 (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* cam1_wen.gpio4_13 WL_IRQ */ | ||
446 | >; | ||
447 | }; | ||
448 | |||
449 | uart1_bt_pins_default: pinmux_uart1_bt_pins_default { | ||
450 | pinctrl-single,pins = < | ||
451 | 0x180 (PIN_INPUT | MUX_MODE0) /* uart1_rxd.uart1_rxd */ | ||
452 | 0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */ | ||
453 | 0x178 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */ | ||
454 | 0x17c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */ | ||
455 | 0x1cc (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* cam1_data9.gpiop BT_EN */ | ||
456 | >; | ||
457 | }; | ||
458 | |||
459 | uart1_bt_pins_sleep: pinmux_uart1_bt_pins_sleep { | ||
460 | pinctrl-single,pins = < | ||
461 | 0x180 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* uart1_rxd.uart1_rxd */ | ||
462 | 0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* uart1_txd.uart1_txd */ | ||
463 | 0x178 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* uart1_ctsn.uart1_ctsn */ | ||
464 | 0x17c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* uart1_rtsn.uart1_rtsn */ | ||
465 | 0x1cc (PIN_OUTPUT_PULLUP | MUX_MODE7) /* cam1_data9.gpio4_7 BT_EN */ | ||
466 | >; | ||
467 | }; | ||
402 | }; | 468 | }; |
403 | 469 | ||
404 | &i2c0 { | 470 | &i2c0 { |
@@ -588,6 +654,10 @@ | |||
588 | status = "okay"; | 654 | status = "okay"; |
589 | }; | 655 | }; |
590 | 656 | ||
657 | &gpio4 { | ||
658 | status = "okay"; | ||
659 | }; | ||
660 | |||
591 | &gpio5 { | 661 | &gpio5 { |
592 | status = "okay"; | 662 | status = "okay"; |
593 | }; | 663 | }; |
@@ -602,6 +672,47 @@ | |||
602 | cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; | 672 | cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; |
603 | }; | 673 | }; |
604 | 674 | ||
675 | &uart1 { | ||
676 | status = "okay"; | ||
677 | pinctrl-names = "default", "sleep"; | ||
678 | pinctrl-0 = <&uart1_bt_pins_default>; | ||
679 | pinctrl-1 = <&uart1_bt_pins_sleep>; | ||
680 | }; | ||
681 | |||
682 | &mmc3 { | ||
683 | status = "okay"; | ||
684 | /* these are on the crossbar and are outlined in the | ||
685 | xbar-event-map element */ | ||
686 | dmas = <&edma 30 | ||
687 | &edma 31>; | ||
688 | dma-names = "tx", "rx"; | ||
689 | vmmc-supply = <&vmmcwl_fixed>; | ||
690 | bus-width = <4>; | ||
691 | pinctrl-names = "default", "sleep"; | ||
692 | pinctrl-0 = <&mmc3_pins_default>; | ||
693 | pinctrl-1 = <&mmc3_pins_sleep>; | ||
694 | cap-power-off-card; | ||
695 | keep-power-in-suspend; | ||
696 | ti,non-removable; | ||
697 | |||
698 | #address-cells = <1>; | ||
699 | #size-cells = <0>; | ||
700 | wlcore: wlcore@0 { | ||
701 | compatible = "ti,wl1835"; | ||
702 | pinctrl-names = "default", "sleep"; | ||
703 | pinctrl-0 = <&wlan_pins_default>; | ||
704 | pinctrl-1 = <&wlan_pins_sleep>; | ||
705 | reg = <2>; | ||
706 | interrupt-parent = <&gpio4>; | ||
707 | interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; | ||
708 | }; | ||
709 | }; | ||
710 | |||
711 | &edma { | ||
712 | ti,edma-xbar-event-map = /bits/ 16 <1 30 | ||
713 | 2 31>; | ||
714 | }; | ||
715 | |||
605 | &usb2_phy1 { | 716 | &usb2_phy1 { |
606 | status = "okay"; | 717 | status = "okay"; |
607 | }; | 718 | }; |