950-am335x-evmsk-wilink-dts.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --- a/arch/arm/boot/dts/am335x-evmsk.dts
  2. +++ b/arch/arm/boot/dts/am335x-evmsk.dts
  3. @@ -14,6 +14,7 @@
  4. /dts-v1/;
  5. #include "am33xx.dtsi"
  6. +#include <dt-bindings/interrupt-controller/irq.h>
  7. #include <dt-bindings/pwm/pwm.h>
  8. #include <dt-bindings/interrupt-controller/irq.h>
  9. @@ -27,6 +28,13 @@
  10. };
  11. };
  12. + wlan {
  13. + compatible = "wlcore";
  14. +
  15. + gpio = <31>;
  16. + board-ref-clock = <4>;
  17. + };
  18. +
  19. memory {
  20. device_type = "memory";
  21. reg = <0x80000000 0x10000000>; /* 256 MB */
  22. @@ -69,6 +77,16 @@
  23. enable-active-high;
  24. };
  25. + vmmc_wl: fixedregulator@2 {
  26. + compatible = "regulator-fixed";
  27. + regulator-name = "vmmc-wl";
  28. + regulator-min-microvolt = <1800000>;
  29. + regulator-max-microvolt = <1800000>;
  30. + gpio = <&gpio1 29 0>;
  31. + startup-delay-us = <70000>;
  32. + enable-active-high;
  33. + };
  34. +
  35. leds {
  36. pinctrl-names = "default";
  37. pinctrl-0 = <&user_leds_s0>;
  38. @@ -446,6 +464,20 @@
  39. 0x7c (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_csn0.gpio1_29 */
  40. >;
  41. };
  42. +
  43. + wilink_pins: pinmux_wilink_pins {
  44. + pinctrl-single,pins = <
  45. + 0x74 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */
  46. + 0x7c (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_csn0.gpio1_29 */
  47. + 0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
  48. + 0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
  49. + 0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
  50. + 0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
  51. + 0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
  52. + 0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
  53. + >;
  54. + };
  55. +
  56. };
  57. &uart0 {
  58. @@ -693,6 +725,16 @@
  59. };
  60. };
  61. +&mmc2 {
  62. + status = "okay";
  63. + vmmc-supply = <&vmmc_wl>;
  64. + bus-width = <4>;
  65. + pinctrl-names = "default";
  66. + pinctrl-0 = <&wilink_pins>;
  67. + ti,non-removable;
  68. + keep-power-in-suspend;
  69. +};
  70. +
  71. &mcasp1 {
  72. pinctrl-names = "default";
  73. pinctrl-0 = <&mcasp1_pins>;