imx6q-bx50v3.dtsi 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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 "AS IS", 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. mclk: clock-mclk {
  45. compatible = "fixed-clock";
  46. #clock-cells = <0>;
  47. clock-frequency = <22000000>;
  48. };
  49. gpio-poweroff {
  50. compatible = "gpio-poweroff";
  51. gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
  52. status = "okay";
  53. };
  54. reg_wl18xx_vmmc: regulator-wl18xx {
  55. compatible = "regulator-fixed";
  56. regulator-name = "vwl1807";
  57. regulator-min-microvolt = <3300000>;
  58. regulator-max-microvolt = <3300000>;
  59. gpio = <&pca9539 3 GPIO_ACTIVE_HIGH>;
  60. startup-delay-us = <70000>;
  61. enable-active-high;
  62. };
  63. reg_wlan: regulator-wlan {
  64. compatible = "regulator-fixed";
  65. regulator-name = "3P3V_wlan";
  66. regulator-min-microvolt = <3300000>;
  67. regulator-max-microvolt = <3300000>;
  68. regulator-always-on;
  69. regulator-boot-on;
  70. gpio = <&gpio6 14 GPIO_ACTIVE_HIGH>;
  71. };
  72. sound {
  73. compatible = "fsl,imx6q-ba16-sgtl5000",
  74. "fsl,imx-audio-sgtl5000";
  75. model = "imx6q-ba16-sgtl5000";
  76. ssi-controller = <&ssi1>;
  77. audio-codec = <&sgtl5000>;
  78. audio-routing =
  79. "MIC_IN", "Mic Jack",
  80. "Mic Jack", "Mic Bias",
  81. "LINE_IN", "Line In Jack",
  82. "Headphone Jack", "HP_OUT";
  83. mux-int-port = <1>;
  84. mux-ext-port = <4>;
  85. };
  86. aliases {
  87. mdio-gpio0 = &mdio0;
  88. };
  89. mdio0: mdio-gpio {
  90. compatible = "virtual,mdio-gpio";
  91. gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>, /* mdc */
  92. <&gpio2 7 GPIO_ACTIVE_HIGH>; /* mdio */
  93. #address-cells = <1>;
  94. #size-cells = <0>;
  95. switch: switch@0 {
  96. compatible = "marvell,mv88e6085"; /* 88e6240*/
  97. reg = <0>;
  98. interrupt-parent = <&gpio2>;
  99. interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
  100. interrupt-controller;
  101. #interrupt-cells = <2>;
  102. switch_ports: ports {
  103. #address-cells = <1>;
  104. #size-cells = <0>;
  105. };
  106. mdio {
  107. #address-cells = <1>;
  108. #size-cells = <0>;
  109. switchphy0: switchphy@0 {
  110. reg = <0>;
  111. interrupt-parent = <&switch>;
  112. interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
  113. };
  114. switchphy1: switchphy@1 {
  115. reg = <1>;
  116. interrupt-parent = <&switch>;
  117. interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
  118. };
  119. switchphy2: switchphy@2 {
  120. reg = <2>;
  121. interrupt-parent = <&switch>;
  122. interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
  123. };
  124. switchphy3: switchphy@3 {
  125. reg = <3>;
  126. interrupt-parent = <&switch>;
  127. interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
  128. };
  129. switchphy4: switchphy@4 {
  130. reg = <4>;
  131. interrupt-parent = <&switch>;
  132. interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
  133. };
  134. };
  135. };
  136. };
  137. };
  138. &ecspi5 {
  139. cs-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
  140. pinctrl-names = "default";
  141. pinctrl-0 = <&pinctrl_ecspi5>;
  142. status = "okay";
  143. m25_eeprom: flash@0 {
  144. compatible = "atmel,at25";
  145. spi-max-frequency = <10000000>;
  146. size = <0x8000>;
  147. pagesize = <64>;
  148. reg = <0>;
  149. address-width = <16>;
  150. };
  151. };
  152. &i2c1 {
  153. pinctrl-names = "default", "gpio";
  154. pinctrl-1 = <&pinctrl_i2c1_gpio>;
  155. sda-gpios = <&gpio5 26 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  156. scl-gpios = <&gpio5 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  157. pca9547: mux@70 {
  158. compatible = "nxp,pca9547";
  159. reg = <0x70>;
  160. #address-cells = <1>;
  161. #size-cells = <0>;
  162. mux1_i2c1: i2c@0 {
  163. #address-cells = <1>;
  164. #size-cells = <0>;
  165. reg = <0x0>;
  166. ads7830: ads7830@48 {
  167. compatible = "ti,ads7830";
  168. reg = <0x48>;
  169. };
  170. mma8453: mma8453@1c {
  171. compatible = "fsl,mma8453";
  172. reg = <0x1c>;
  173. };
  174. };
  175. mux1_i2c2: i2c@1 {
  176. #address-cells = <1>;
  177. #size-cells = <0>;
  178. reg = <0x1>;
  179. eeprom: eeprom@50 {
  180. compatible = "atmel,24c08";
  181. reg = <0x50>;
  182. };
  183. mpl3115: mpl3115@60 {
  184. compatible = "fsl,mpl3115";
  185. reg = <0x60>;
  186. };
  187. };
  188. mux1_i2c3: i2c@2 {
  189. #address-cells = <1>;
  190. #size-cells = <0>;
  191. reg = <0x2>;
  192. };
  193. mux1_i2c4: i2c@3 {
  194. #address-cells = <1>;
  195. #size-cells = <0>;
  196. reg = <0x3>;
  197. sgtl5000: codec@a {
  198. compatible = "fsl,sgtl5000";
  199. reg = <0x0a>;
  200. clocks = <&mclk>;
  201. VDDA-supply = <&reg_1p8v>;
  202. VDDIO-supply = <&reg_3p3v>;
  203. };
  204. };
  205. mux1_i2c5: i2c@4 {
  206. #address-cells = <1>;
  207. #size-cells = <0>;
  208. reg = <0x4>;
  209. pca9539: pca9539@74 {
  210. compatible = "nxp,pca9539";
  211. reg = <0x74>;
  212. gpio-controller;
  213. #gpio-cells = <2>;
  214. interrupt-controller;
  215. interrupt-parent = <&gpio2>;
  216. interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
  217. P12-hog {
  218. gpio-hog;
  219. gpios = <10 0>;
  220. output-low;
  221. line-name = "PCA9539-P12";
  222. };
  223. P13-hog {
  224. gpio-hog;
  225. gpios = <11 0>;
  226. output-low;
  227. line-name = "PCA9539-P13";
  228. };
  229. P14-hog {
  230. gpio-hog;
  231. gpios = <12 0>;
  232. output-low;
  233. line-name = "PCA9539-P14";
  234. };
  235. P15-hog {
  236. gpio-hog;
  237. gpios = <13 0>;
  238. output-low;
  239. line-name = "PCA9539-P15";
  240. };
  241. P16-hog {
  242. gpio-hog;
  243. gpios = <14 0>;
  244. output-low;
  245. line-name = "PCA9539-P16";
  246. };
  247. P17-hog {
  248. gpio-hog;
  249. gpios = <15 0>;
  250. output-low;
  251. line-name = "PCA9539-P17";
  252. };
  253. };
  254. };
  255. mux1_i2c6: i2c@5 {
  256. #address-cells = <1>;
  257. #size-cells = <0>;
  258. reg = <0x5>;
  259. };
  260. mux1_i2c7: i2c@6 {
  261. #address-cells = <1>;
  262. #size-cells = <0>;
  263. reg = <0x6>;
  264. };
  265. mux1_i2c8: i2c@7 {
  266. #address-cells = <1>;
  267. #size-cells = <0>;
  268. reg = <0x7>;
  269. };
  270. };
  271. };
  272. &i2c2 {
  273. pinctrl-names = "default", "gpio";
  274. pinctrl-1 = <&pinctrl_i2c2_gpio>;
  275. sda-gpios = <&gpio4 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  276. scl-gpios = <&gpio4 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  277. };
  278. &i2c3 {
  279. pinctrl-names = "default", "gpio";
  280. pinctrl-1 = <&pinctrl_i2c3_gpio>;
  281. sda-gpios = <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  282. scl-gpios = <&gpio1 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  283. };
  284. &iomuxc {
  285. pinctrl_i2c1_gpio: i2c1gpiogrp {
  286. fsl,pins = <
  287. MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26 0x1b0b0
  288. MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27 0x1b0b0
  289. >;
  290. };
  291. pinctrl_i2c2_gpio: i2c2gpiogrp {
  292. fsl,pins = <
  293. MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x1b0b0
  294. MX6QDL_PAD_KEY_ROW3__GPIO4_IO13 0x1b0b0
  295. >;
  296. };
  297. pinctrl_i2c3_gpio: i2c3gpiogrp {
  298. fsl,pins = <
  299. MX6QDL_PAD_GPIO_3__GPIO1_IO03 0x1b0b0
  300. MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x1b0b0
  301. >;
  302. };
  303. };
  304. &pmu {
  305. secure-reg-access;
  306. };
  307. &usdhc2 {
  308. status = "disabled";
  309. };
  310. &usdhc4 {
  311. pinctrl-names = "default";
  312. pinctrl-0 = <&pinctrl_usdhc4>;
  313. bus-width = <4>;
  314. vmmc-supply = <&reg_wl18xx_vmmc>;
  315. no-1-8-v;
  316. non-removable;
  317. wakeup-source;
  318. keep-power-in-suspend;
  319. cap-power-off-card;
  320. max-frequency = <25000000>;
  321. #address-cells = <1>;
  322. #size-cells = <0>;
  323. status = "okay";
  324. wlcore: wlcore@2 {
  325. compatible = "ti,wl1837";
  326. reg = <2>;
  327. interrupt-parent = <&gpio2>;
  328. interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
  329. tcxo-clock-frequency = <26000000>;
  330. };
  331. };
  332. &pcie {
  333. /* Synopsys, Inc. Device */
  334. pci_root: root@0,0 {
  335. compatible = "pci16c3,abcd";
  336. reg = <0x00000000 0 0 0 0>;
  337. #address-cells = <3>;
  338. #size-cells = <2>;
  339. #interrupt-cells = <1>;
  340. };
  341. };
  342. &clks {
  343. assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
  344. <&clks IMX6QDL_CLK_LDB_DI1_SEL>,
  345. <&clks IMX6QDL_CLK_IPU1_DI0_PRE_SEL>,
  346. <&clks IMX6QDL_CLK_IPU1_DI1_PRE_SEL>,
  347. <&clks IMX6QDL_CLK_IPU2_DI0_PRE_SEL>,
  348. <&clks IMX6QDL_CLK_IPU2_DI1_PRE_SEL>;
  349. assigned-clock-parents = <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
  350. <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
  351. <&clks IMX6QDL_CLK_PLL2_PFD0_352M>,
  352. <&clks IMX6QDL_CLK_PLL2_PFD0_352M>,
  353. <&clks IMX6QDL_CLK_PLL2_PFD0_352M>,
  354. <&clks IMX6QDL_CLK_PLL2_PFD0_352M>;
  355. };