imx6qdl-sabresd.dtsi 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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_usb_h1_vbus: usb_h1_vbus {
  27. compatible = "regulator-fixed";
  28. regulator-name = "usb_h1_vbus";
  29. regulator-min-microvolt = <5000000>;
  30. regulator-max-microvolt = <5000000>;
  31. gpio = <&gpio1 29 0>;
  32. enable-active-high;
  33. };
  34. reg_audio: wm8962_supply {
  35. compatible = "regulator-fixed";
  36. regulator-name = "wm8962-supply";
  37. gpio = <&gpio4 10 0>;
  38. enable-active-high;
  39. };
  40. };
  41. gpio-keys {
  42. compatible = "gpio-keys";
  43. volume-up {
  44. label = "Volume Up";
  45. gpios = <&gpio1 4 0>;
  46. gpio-key,wakeup;
  47. linux,code = <115>; /* KEY_VOLUMEUP */
  48. };
  49. volume-down {
  50. label = "Volume Down";
  51. gpios = <&gpio1 5 0>;
  52. gpio-key,wakeup;
  53. linux,code = <114>; /* KEY_VOLUMEDOWN */
  54. };
  55. };
  56. sound {
  57. compatible = "fsl,imx6q-sabresd-wm8962",
  58. "fsl,imx-audio-wm8962";
  59. model = "wm8962-audio";
  60. ssi-controller = <&ssi2>;
  61. audio-codec = <&codec>;
  62. audio-routing =
  63. "Headphone Jack", "HPOUTL",
  64. "Headphone Jack", "HPOUTR",
  65. "Ext Spk", "SPKOUTL",
  66. "Ext Spk", "SPKOUTR",
  67. "MICBIAS", "AMIC",
  68. "IN3R", "MICBIAS",
  69. "DMIC", "MICBIAS",
  70. "DMICDAT", "DMIC";
  71. mux-int-port = <2>;
  72. mux-ext-port = <3>;
  73. };
  74. backlight {
  75. compatible = "pwm-backlight";
  76. pwms = <&pwm1 0 5000000>;
  77. brightness-levels = <0 4 8 16 32 64 128 255>;
  78. default-brightness-level = <7>;
  79. status = "okay";
  80. };
  81. };
  82. &audmux {
  83. pinctrl-names = "default";
  84. pinctrl-0 = <&pinctrl_audmux_2>;
  85. status = "okay";
  86. };
  87. &ecspi1 {
  88. fsl,spi-num-chipselects = <1>;
  89. cs-gpios = <&gpio4 9 0>;
  90. pinctrl-names = "default";
  91. pinctrl-0 = <&pinctrl_ecspi1_2>;
  92. status = "okay";
  93. flash: m25p80@0 {
  94. #address-cells = <1>;
  95. #size-cells = <1>;
  96. compatible = "st,m25p32";
  97. spi-max-frequency = <20000000>;
  98. reg = <0>;
  99. };
  100. };
  101. &fec {
  102. pinctrl-names = "default";
  103. pinctrl-0 = <&pinctrl_enet_1>;
  104. phy-mode = "rgmii";
  105. phy-reset-gpios = <&gpio1 25 0>;
  106. status = "okay";
  107. };
  108. &i2c1 {
  109. clock-frequency = <100000>;
  110. pinctrl-names = "default";
  111. pinctrl-0 = <&pinctrl_i2c1_2>;
  112. status = "okay";
  113. codec: wm8962@1a {
  114. compatible = "wlf,wm8962";
  115. reg = <0x1a>;
  116. clocks = <&clks 201>;
  117. DCVDD-supply = <&reg_audio>;
  118. DBVDD-supply = <&reg_audio>;
  119. AVDD-supply = <&reg_audio>;
  120. CPVDD-supply = <&reg_audio>;
  121. MICVDD-supply = <&reg_audio>;
  122. PLLVDD-supply = <&reg_audio>;
  123. SPKVDD1-supply = <&reg_audio>;
  124. SPKVDD2-supply = <&reg_audio>;
  125. gpio-cfg = <
  126. 0x0000 /* 0:Default */
  127. 0x0000 /* 1:Default */
  128. 0x0013 /* 2:FN_DMICCLK */
  129. 0x0000 /* 3:Default */
  130. 0x8014 /* 4:FN_DMICCDAT */
  131. 0x0000 /* 5:Default */
  132. >;
  133. };
  134. };
  135. &i2c3 {
  136. clock-frequency = <100000>;
  137. pinctrl-names = "default";
  138. pinctrl-0 = <&pinctrl_i2c3_2>;
  139. status = "okay";
  140. egalax_ts@04 {
  141. compatible = "eeti,egalax_ts";
  142. reg = <0x04>;
  143. interrupt-parent = <&gpio6>;
  144. interrupts = <7 2>;
  145. wakeup-gpios = <&gpio6 7 0>;
  146. };
  147. };
  148. &iomuxc {
  149. pinctrl-names = "default";
  150. pinctrl-0 = <&pinctrl_hog>;
  151. hog {
  152. pinctrl_hog: hoggrp {
  153. fsl,pins = <
  154. MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x80000000
  155. MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x80000000
  156. MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x80000000
  157. MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x80000000
  158. MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x80000000
  159. MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x80000000
  160. MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0
  161. MX6QDL_PAD_NANDF_CLE__GPIO6_IO07 0x80000000
  162. MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x80000000
  163. MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x80000000
  164. MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25 0x80000000
  165. >;
  166. };
  167. };
  168. };
  169. &ldb {
  170. status = "okay";
  171. lvds-channel@1 {
  172. fsl,data-mapping = "spwg";
  173. fsl,data-width = <18>;
  174. status = "okay";
  175. display-timings {
  176. native-mode = <&timing0>;
  177. timing0: hsd100pxn1 {
  178. clock-frequency = <65000000>;
  179. hactive = <1024>;
  180. vactive = <768>;
  181. hback-porch = <220>;
  182. hfront-porch = <40>;
  183. vback-porch = <21>;
  184. vfront-porch = <7>;
  185. hsync-len = <60>;
  186. vsync-len = <10>;
  187. };
  188. };
  189. };
  190. };
  191. &pwm1 {
  192. pinctrl-names = "default";
  193. pinctrl-0 = <&pinctrl_pwm0_1>;
  194. status = "okay";
  195. };
  196. &ssi2 {
  197. fsl,mode = "i2s-slave";
  198. status = "okay";
  199. };
  200. &uart1 {
  201. pinctrl-names = "default";
  202. pinctrl-0 = <&pinctrl_uart1_1>;
  203. status = "okay";
  204. };
  205. &usbh1 {
  206. vbus-supply = <&reg_usb_h1_vbus>;
  207. status = "okay";
  208. };
  209. &usbotg {
  210. vbus-supply = <&reg_usb_otg_vbus>;
  211. pinctrl-names = "default";
  212. pinctrl-0 = <&pinctrl_usbotg_2>;
  213. disable-over-current;
  214. status = "okay";
  215. };
  216. &usdhc2 {
  217. pinctrl-names = "default";
  218. pinctrl-0 = <&pinctrl_usdhc2_1>;
  219. bus-width = <8>;
  220. cd-gpios = <&gpio2 2 0>;
  221. wp-gpios = <&gpio2 3 0>;
  222. status = "okay";
  223. };
  224. &usdhc3 {
  225. pinctrl-names = "default";
  226. pinctrl-0 = <&pinctrl_usdhc3_1>;
  227. bus-width = <8>;
  228. cd-gpios = <&gpio2 0 0>;
  229. wp-gpios = <&gpio2 1 0>;
  230. status = "okay";
  231. };