imx6qdl-sabresd.dtsi 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /*
  2. * Copyright 2012 Freescale Semiconductor, Inc.
  3. * Copyright 2011 Linaro Ltd.
  4. *
  5. * The code contained herein is licensed under the GNU General Public
  6. * License. You may obtain a copy of the GNU General Public License
  7. * Version 2 or later at the following locations:
  8. *
  9. * http://www.opensource.org/licenses/gpl-license.html
  10. * http://www.gnu.org/copyleft/gpl.html
  11. */
  12. / {
  13. memory {
  14. reg = <0x10000000 0x40000000>;
  15. };
  16. regulators {
  17. compatible = "simple-bus";
  18. reg_usb_otg_vbus: usb_otg_vbus {
  19. compatible = "regulator-fixed";
  20. regulator-name = "usb_otg_vbus";
  21. regulator-min-microvolt = <5000000>;
  22. regulator-max-microvolt = <5000000>;
  23. gpio = <&gpio3 22 0>;
  24. enable-active-high;
  25. };
  26. reg_audio: wm8962_supply {
  27. compatible = "regulator-fixed";
  28. regulator-name = "wm8962-supply";
  29. gpio = <&gpio4 10 0>;
  30. enable-active-high;
  31. };
  32. };
  33. gpio-keys {
  34. compatible = "gpio-keys";
  35. volume-up {
  36. label = "Volume Up";
  37. gpios = <&gpio1 4 0>;
  38. linux,code = <115>; /* KEY_VOLUMEUP */
  39. };
  40. volume-down {
  41. label = "Volume Down";
  42. gpios = <&gpio1 5 0>;
  43. linux,code = <114>; /* KEY_VOLUMEDOWN */
  44. };
  45. };
  46. sound {
  47. compatible = "fsl,imx6q-sabresd-wm8962",
  48. "fsl,imx-audio-wm8962";
  49. model = "wm8962-audio";
  50. ssi-controller = <&ssi2>;
  51. audio-codec = <&codec>;
  52. audio-routing =
  53. "Headphone Jack", "HPOUTL",
  54. "Headphone Jack", "HPOUTR",
  55. "Ext Spk", "SPKOUTL",
  56. "Ext Spk", "SPKOUTR",
  57. "MICBIAS", "AMIC",
  58. "IN3R", "MICBIAS",
  59. "DMIC", "MICBIAS",
  60. "DMICDAT", "DMIC";
  61. mux-int-port = <2>;
  62. mux-ext-port = <3>;
  63. };
  64. };
  65. &audmux {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&pinctrl_audmux_2>;
  68. status = "okay";
  69. };
  70. &fec {
  71. pinctrl-names = "default";
  72. pinctrl-0 = <&pinctrl_enet_1>;
  73. phy-mode = "rgmii";
  74. status = "okay";
  75. };
  76. &i2c1 {
  77. clock-frequency = <100000>;
  78. pinctrl-names = "default";
  79. pinctrl-0 = <&pinctrl_i2c1_2>;
  80. status = "okay";
  81. codec: wm8962@1a {
  82. compatible = "wlf,wm8962";
  83. reg = <0x1a>;
  84. clocks = <&clks 169>;
  85. DCVDD-supply = <&reg_audio>;
  86. DBVDD-supply = <&reg_audio>;
  87. AVDD-supply = <&reg_audio>;
  88. CPVDD-supply = <&reg_audio>;
  89. MICVDD-supply = <&reg_audio>;
  90. PLLVDD-supply = <&reg_audio>;
  91. SPKVDD1-supply = <&reg_audio>;
  92. SPKVDD2-supply = <&reg_audio>;
  93. gpio-cfg = <
  94. 0x0000 /* 0:Default */
  95. 0x0000 /* 1:Default */
  96. 0x0013 /* 2:FN_DMICCLK */
  97. 0x0000 /* 3:Default */
  98. 0x8014 /* 4:FN_DMICCDAT */
  99. 0x0000 /* 5:Default */
  100. >;
  101. };
  102. };
  103. &ssi2 {
  104. fsl,mode = "i2s-slave";
  105. status = "okay";
  106. };
  107. &uart1 {
  108. pinctrl-names = "default";
  109. pinctrl-0 = <&pinctrl_uart1_1>;
  110. status = "okay";
  111. };
  112. &usbh1 {
  113. status = "okay";
  114. };
  115. &usbotg {
  116. vbus-supply = <&reg_usb_otg_vbus>;
  117. pinctrl-names = "default";
  118. pinctrl-0 = <&pinctrl_usbotg_2>;
  119. disable-over-current;
  120. status = "okay";
  121. };
  122. &usdhc2 {
  123. pinctrl-names = "default";
  124. pinctrl-0 = <&pinctrl_usdhc2_1>;
  125. cd-gpios = <&gpio2 2 0>;
  126. wp-gpios = <&gpio2 3 0>;
  127. status = "okay";
  128. };
  129. &usdhc3 {
  130. pinctrl-names = "default";
  131. pinctrl-0 = <&pinctrl_usdhc3_1>;
  132. cd-gpios = <&gpio2 0 0>;
  133. wp-gpios = <&gpio2 1 0>;
  134. status = "okay";
  135. };