imx6q-bx50v3.dtsi 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. /*
  2. * Copyright 2015 Timesys Corporation.
  3. * Copyright 2015 General Electric Company
  4. *
  5. * This file is dual-licensed: you can use it either under the terms
  6. * of the GPL or the X11 license, at your option. Note that this dual
  7. * licensing only applies to this file, and not this project as a
  8. * whole.
  9. *
  10. * a) This file is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License
  12. * version 2 as published by the Free Software Foundation.
  13. *
  14. * This file is distributed in the hope that it will be useful
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * Or, alternatively
  20. *
  21. * b) Permission is hereby granted, free of charge, to any person
  22. * obtaining a copy of this software and associated documentation
  23. * files (the "Software"), to deal in the Software without
  24. * restriction, including without limitation the rights to use
  25. * copy, modify, merge, publish, distribute, sublicense, and/or
  26. * sell copies of the Software, and to permit persons to whom the
  27. * Software is furnished to do so, subject to the following
  28. * conditions:
  29. *
  30. * The above copyright notice and this permission notice shall be
  31. * included in all copies or substantial portions of the Software.
  32. *
  33. * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
  34. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  35. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  36. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  37. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
  38. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  39. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  40. * OTHER DEALINGS IN THE SOFTWARE.
  41. */
  42. #include "imx6q-ba16.dtsi"
  43. / {
  44. clocks {
  45. mclk: clock@0 {
  46. compatible = "fixed-clock";
  47. reg = <0>;
  48. #clock-cells = <0>;
  49. clock-frequency = <22000000>;
  50. };
  51. };
  52. gpio-poweroff {
  53. compatible = "gpio-poweroff";
  54. gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
  55. status = "okay";
  56. };
  57. reg_wl18xx_vmmc: regulator-wl18xx {
  58. compatible = "regulator-fixed";
  59. regulator-name = "vwl1807";
  60. regulator-min-microvolt = <3300000>;
  61. regulator-max-microvolt = <3300000>;
  62. gpio = <&pca9539 3 GPIO_ACTIVE_HIGH>;
  63. startup-delay-us = <70000>;
  64. enable-active-high;
  65. };
  66. reg_wlan: regulator-wlan {
  67. compatible = "regulator-fixed";
  68. regulator-name = "3P3V_wlan";
  69. regulator-min-microvolt = <3300000>;
  70. regulator-max-microvolt = <3300000>;
  71. regulator-always-on;
  72. regulator-boot-on;
  73. gpio = <&gpio6 14 GPIO_ACTIVE_HIGH>;
  74. };
  75. sound {
  76. compatible = "fsl,imx6q-ba16-sgtl5000",
  77. "fsl,imx-audio-sgtl5000";
  78. model = "imx6q-ba16-sgtl5000";
  79. ssi-controller = <&ssi1>;
  80. audio-codec = <&sgtl5000>;
  81. audio-routing =
  82. "MIC_IN", "Mic Jack",
  83. "Mic Jack", "Mic Bias",
  84. "LINE_IN", "Line In Jack",
  85. "Headphone Jack", "HP_OUT";
  86. mux-int-port = <1>;
  87. mux-ext-port = <4>;
  88. };
  89. };
  90. &ecspi5 {
  91. fsl,spi-num-chipselects = <1>;
  92. cs-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
  93. pinctrl-names = "default";
  94. pinctrl-0 = <&pinctrl_ecspi5>;
  95. status = "okay";
  96. m25_eeprom: m25p80@0 {
  97. compatible = "atmel,at25";
  98. spi-max-frequency = <20000000>;
  99. size = <0x8000>;
  100. pagesize = <64>;
  101. reg = <0>;
  102. address-width = <16>;
  103. };
  104. };
  105. &i2c1 {
  106. pca9547: mux@70 {
  107. compatible = "nxp,pca9547";
  108. reg = <0x70>;
  109. #address-cells = <1>;
  110. #size-cells = <0>;
  111. mux1_i2c1: i2c@0 {
  112. #address-cells = <1>;
  113. #size-cells = <0>;
  114. reg = <0x0>;
  115. ads7830: ads7830@48 {
  116. compatible = "ti,ads7830";
  117. reg = <0x48>;
  118. };
  119. mma8453: mma8453@1c {
  120. compatible = "fsl,mma8453";
  121. reg = <0x1c>;
  122. };
  123. };
  124. mux1_i2c2: i2c@1 {
  125. #address-cells = <1>;
  126. #size-cells = <0>;
  127. reg = <0x1>;
  128. eeprom: eeprom@50 {
  129. compatible = "atmel,24c08";
  130. reg = <0x50>;
  131. };
  132. mpl3115: mpl3115@60 {
  133. compatible = "fsl,mpl3115";
  134. reg = <0x60>;
  135. };
  136. };
  137. mux1_i2c3: i2c@2 {
  138. #address-cells = <1>;
  139. #size-cells = <0>;
  140. reg = <0x2>;
  141. };
  142. mux1_i2c4: i2c@3 {
  143. #address-cells = <1>;
  144. #size-cells = <0>;
  145. reg = <0x3>;
  146. sgtl5000: codec@0a {
  147. compatible = "fsl,sgtl5000";
  148. reg = <0x0a>;
  149. clocks = <&mclk>;
  150. VDDA-supply = <&reg_1p8v>;
  151. VDDIO-supply = <&reg_3p3v>;
  152. };
  153. };
  154. mux1_i2c5: i2c@4 {
  155. #address-cells = <1>;
  156. #size-cells = <0>;
  157. reg = <0x4>;
  158. pca9539: pca9539@74 {
  159. compatible = "nxp,pca9539";
  160. reg = <0x74>;
  161. gpio-controller;
  162. #gpio-cells = <2>;
  163. interrupt-controller;
  164. interrupt-parent = <&gpio2>;
  165. interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
  166. P06 {
  167. gpio-hog;
  168. gpios = <6 0>;
  169. output-low;
  170. line-name = "PCA9539-P06";
  171. };
  172. P07 {
  173. gpio-hog;
  174. gpios = <7 0>;
  175. output-low;
  176. line-name = "PCA9539-P07";
  177. };
  178. P10 {
  179. gpio-hog;
  180. gpios = <8 0>;
  181. output-low;
  182. line-name = "PCA9539-P10";
  183. };
  184. P11 {
  185. gpio-hog;
  186. gpios = <9 0>;
  187. output-low;
  188. line-name = "PCA9539-P11";
  189. };
  190. P12 {
  191. gpio-hog;
  192. gpios = <10 0>;
  193. output-low;
  194. line-name = "PCA9539-P12";
  195. };
  196. P13 {
  197. gpio-hog;
  198. gpios = <11 0>;
  199. output-low;
  200. line-name = "PCA9539-P13";
  201. };
  202. P14 {
  203. gpio-hog;
  204. gpios = <12 0>;
  205. output-low;
  206. line-name = "PCA9539-P14";
  207. };
  208. P15 {
  209. gpio-hog;
  210. gpios = <13 0>;
  211. output-low;
  212. line-name = "PCA9539-P15";
  213. };
  214. P16 {
  215. gpio-hog;
  216. gpios = <14 0>;
  217. output-low;
  218. line-name = "PCA9539-P16";
  219. };
  220. P17 {
  221. gpio-hog;
  222. gpios = <15 0>;
  223. output-low;
  224. line-name = "PCA9539-P17";
  225. };
  226. };
  227. };
  228. mux1_i2c6: i2c@5 {
  229. #address-cells = <1>;
  230. #size-cells = <0>;
  231. reg = <0x5>;
  232. };
  233. mux1_i2c7: i2c@6 {
  234. #address-cells = <1>;
  235. #size-cells = <0>;
  236. reg = <0x6>;
  237. };
  238. mux1_i2c8: i2c@7 {
  239. #address-cells = <1>;
  240. #size-cells = <0>;
  241. reg = <0x7>;
  242. };
  243. };
  244. };
  245. &usdhc4 {
  246. pinctrl-names = "default";
  247. pinctrl-0 = <&pinctrl_usdhc4>;
  248. bus-width = <4>;
  249. vmmc-supply = <&reg_wl18xx_vmmc>;
  250. no-1-8-v;
  251. non-removable;
  252. wakeup-source;
  253. keep-power-in-suspend;
  254. cap-power-off-card;
  255. max-frequency = <25000000>;
  256. #address-cells = <1>;
  257. #size-cells = <0>;
  258. status = "okay";
  259. wlcore: wlcore@2 {
  260. compatible = "ti,wl1837";
  261. reg = <2>;
  262. interrupt-parent = <&gpio2>;
  263. interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
  264. tcxo-clock-frequency = <26000000>;
  265. };
  266. };