omap4-var-som-om44-wlan.dtsi 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (C) 2014 Joachim Eastwood <manabian@gmail.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. / {
  9. /* regulator for wl12xx on sdio4 */
  10. wl12xx_vmmc: wl12xx_vmmc {
  11. pinctrl-names = "default";
  12. pinctrl-0 = <&wl12xx_ctrl_pins>;
  13. compatible = "regulator-fixed";
  14. regulator-name = "vwl1271";
  15. regulator-min-microvolt = <1800000>;
  16. regulator-max-microvolt = <1800000>;
  17. gpio = <&gpio2 11 GPIO_ACTIVE_HIGH>; /* gpio 43 */
  18. startup-delay-us = <70000>;
  19. enable-active-high;
  20. };
  21. };
  22. &omap4_pmx_core {
  23. uart2_pins: pinmux_uart2_pins {
  24. pinctrl-single,pins = <
  25. OMAP4_IOPAD(0x118, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_cts.uart2_cts */
  26. OMAP4_IOPAD(0x11a, PIN_OUTPUT | MUX_MODE0) /* uart2_rts.uart2_rts */
  27. OMAP4_IOPAD(0x11c, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_rx.uart2_rx */
  28. OMAP4_IOPAD(0x11e, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
  29. >;
  30. };
  31. wl12xx_ctrl_pins: pinmux_wl12xx_ctrl_pins {
  32. pinctrl-single,pins = <
  33. OMAP4_IOPAD(0x062, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a17.gpio_41 (WLAN_IRQ) */
  34. OMAP4_IOPAD(0x064, PIN_OUTPUT | MUX_MODE3) /* gpmc_a18.gpio_42 (BT_EN) */
  35. OMAP4_IOPAD(0x066, PIN_OUTPUT | MUX_MODE3) /* gpmc_a19.gpio_43 (WLAN_EN) */
  36. >;
  37. };
  38. mmc4_pins: pinmux_mmc4_pins {
  39. pinctrl-single,pins = <
  40. OMAP4_IOPAD(0x154, PIN_INPUT_PULLUP | MUX_MODE1) /* mcspi4_clk.sdmmc4_clk */
  41. OMAP4_IOPAD(0x156, PIN_INPUT_PULLUP | MUX_MODE1) /* mcspi4_simo.sdmmc4_cmd */
  42. OMAP4_IOPAD(0x158, PIN_INPUT_PULLUP | MUX_MODE1) /* mcspi4_somi.sdmmc4_dat0 */
  43. OMAP4_IOPAD(0x15e, PIN_INPUT_PULLUP | MUX_MODE1) /* uart4_tx.sdmmc4_dat1 */
  44. OMAP4_IOPAD(0x15c, PIN_INPUT_PULLUP | MUX_MODE1) /* uart4_rx.sdmmc4_dat2 */
  45. OMAP4_IOPAD(0x15a, PIN_INPUT_PULLUP | MUX_MODE1) /* mcspi4_cs0.sdmmc4_dat3 */
  46. >;
  47. };
  48. };
  49. &uart2 {
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&uart2_pins>;
  52. status = "okay";
  53. };
  54. &mmc4 {
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&mmc4_pins>;
  57. vmmc-supply = <&wl12xx_vmmc>;
  58. non-removable;
  59. bus-width = <4>;
  60. cap-power-off-card;
  61. status = "okay";
  62. #address-cells = <1>;
  63. #size-cells = <0>;
  64. wlcore: wlcore@2 {
  65. compatible = "ti,wl1271";
  66. reg = <2>;
  67. interrupt-parent = <&gpio2>;
  68. interrupts = <9 IRQ_TYPE_LEVEL_HIGH>; /* gpio 41 */
  69. ref-clock-frequency = <38400000>;
  70. };
  71. };