imx6qdl-hummingboard.dtsi 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. /*
  2. * Copyright (C) 2013,2014 Russell King
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. * a) This file is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * version 2 as published by the Free Software Foundation.
  12. *
  13. * This file is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * Or, alternatively,
  19. *
  20. * b) Permission is hereby granted, free of charge, to any person
  21. * obtaining a copy of this software and associated documentation
  22. * files (the "Software"), to deal in the Software without
  23. * restriction, including without limitation the rights to use,
  24. * copy, modify, merge, publish, distribute, sublicense, and/or
  25. * sell copies of the Software, and to permit persons to whom the
  26. * Software is furnished to do so, subject to the following
  27. * conditions:
  28. *
  29. * The above copyright notice and this permission notice shall be
  30. * included in all copies or substantial portions of the Software.
  31. *
  32. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  33. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  34. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  35. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  36. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  37. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  38. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  39. * OTHER DEALINGS IN THE SOFTWARE.
  40. */
  41. #include <dt-bindings/sound/fsl-imx-audmux.h>
  42. / {
  43. /* Will be filled by the bootloader */
  44. memory@10000000 {
  45. device_type = "memory";
  46. reg = <0x10000000 0>;
  47. };
  48. chosen {
  49. stdout-path = &uart1;
  50. };
  51. ir_recv: ir-receiver {
  52. compatible = "gpio-ir-receiver";
  53. gpios = <&gpio3 5 GPIO_ACTIVE_LOW>;
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&pinctrl_hummingboard_gpio3_5>;
  56. };
  57. v_3v2: regulator-v-3v2 {
  58. compatible = "regulator-fixed";
  59. regulator-always-on;
  60. regulator-max-microvolt = <3300000>;
  61. regulator-min-microvolt = <3300000>;
  62. regulator-name = "v_3v2";
  63. vin-supply = <&v_5v0>;
  64. };
  65. v_5v0: regulator-v-5v0 {
  66. compatible = "regulator-fixed";
  67. regulator-always-on;
  68. regulator-max-microvolt = <5000000>;
  69. regulator-min-microvolt = <5000000>;
  70. regulator-name = "v_5v0";
  71. };
  72. v_sd: regulator-v-sd {
  73. compatible = "regulator-fixed";
  74. gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>;
  75. pinctrl-names = "default";
  76. pinctrl-0 = <&pinctrl_hummingboard_vmmc>;
  77. regulator-boot-on;
  78. regulator-max-microvolt = <3300000>;
  79. regulator-min-microvolt = <3300000>;
  80. regulator-name = "v_sd";
  81. startup-delay-us = <1000>;
  82. vin-supply = <&v_3v2>;
  83. };
  84. v_usb2: regulator-v-usb2 {
  85. compatible = "regulator-fixed";
  86. enable-active-high;
  87. gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
  88. pinctrl-names = "default";
  89. pinctrl-0 = <&pinctrl_hummingboard_usbh1_vbus>;
  90. regulator-max-microvolt = <5000000>;
  91. regulator-min-microvolt = <5000000>;
  92. regulator-name = "v_usb2";
  93. vin-supply = <&v_5v0>;
  94. };
  95. v_usb1: regulator-v-usb1 {
  96. compatible = "regulator-fixed";
  97. enable-active-high;
  98. gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
  99. pinctrl-names = "default";
  100. pinctrl-0 = <&pinctrl_hummingboard_usbotg_vbus>;
  101. regulator-max-microvolt = <5000000>;
  102. regulator-min-microvolt = <5000000>;
  103. regulator-name = "v_usb1";
  104. vin-supply = <&v_5v0>;
  105. };
  106. audio: sound-sgtl5000 {
  107. compatible = "simple-audio-card";
  108. simple-audio-card,name = "On-board Codec";
  109. simple-audio-card,format = "i2s";
  110. simple-audio-card,bitclock-master = <&sound_codec>;
  111. simple-audio-card,frame-master = <&sound_codec>;
  112. simple-audio-card,widgets =
  113. "Microphone", "Headphone Jack",
  114. "Headphone", "Headphone Jack";
  115. simple-audio-card,routing =
  116. "MIC_IN", "Headphone Jack",
  117. "Headphone Jack", "Mic Bias",
  118. "Headphone Jack", "HP_OUT";
  119. sound_cpu: simple-audio-card,cpu {
  120. sound-dai = <&ssi1>;
  121. };
  122. sound_codec: simple-audio-card,codec {
  123. sound-dai = <&sgtl5000>;
  124. };
  125. };
  126. sound-spdif {
  127. compatible = "fsl,imx-audio-spdif";
  128. model = "On-board SPDIF";
  129. /* IMX6 doesn't implement this yet */
  130. spdif-controller = <&spdif>;
  131. spdif-out;
  132. };
  133. };
  134. &audmux {
  135. status = "okay";
  136. ssi1 {
  137. fsl,audmux-port = <0>;
  138. fsl,port-config = <
  139. (IMX_AUDMUX_V2_PTCR_SYN |
  140. IMX_AUDMUX_V2_PTCR_TFSEL(4) |
  141. IMX_AUDMUX_V2_PTCR_TCSEL(4) |
  142. IMX_AUDMUX_V2_PTCR_TFSDIR |
  143. IMX_AUDMUX_V2_PTCR_TCLKDIR)
  144. IMX_AUDMUX_V2_PDCR_RXDSEL(4)
  145. >;
  146. };
  147. pins5 {
  148. fsl,audmux-port = <4>;
  149. fsl,port-config = <
  150. IMX_AUDMUX_V2_PTCR_SYN
  151. IMX_AUDMUX_V2_PDCR_RXDSEL(0)
  152. >;
  153. };
  154. };
  155. &can1 {
  156. pinctrl-names = "default";
  157. pinctrl-0 = <&pinctrl_hummingboard_flexcan1>;
  158. status = "okay";
  159. };
  160. &hdmi {
  161. pinctrl-names = "default";
  162. pinctrl-0 = <&pinctrl_hummingboard_hdmi>;
  163. ddc-i2c-bus = <&i2c2>;
  164. status = "okay";
  165. };
  166. &i2c1 {
  167. pinctrl-names = "default";
  168. pinctrl-0 = <&pinctrl_hummingboard_i2c1>;
  169. status = "okay";
  170. /* Pro baseboard model */
  171. rtc@68 {
  172. compatible = "nxp,pcf8523";
  173. reg = <0x68>;
  174. };
  175. /* Pro baseboard model */
  176. sgtl5000: codec@a {
  177. clocks = <&clks IMX6QDL_CLK_CKO>;
  178. compatible = "fsl,sgtl5000";
  179. pinctrl-names = "default";
  180. pinctrl-0 = <&pinctrl_hummingboard_sgtl5000>;
  181. #sound-dai-cells = <0>;
  182. reg = <0x0a>;
  183. VDDA-supply = <&v_3v2>;
  184. VDDIO-supply = <&v_3v2>;
  185. };
  186. };
  187. &i2c2 {
  188. clock-frequency = <100000>;
  189. pinctrl-names = "default";
  190. pinctrl-0 = <&pinctrl_hummingboard_i2c2>;
  191. status = "okay";
  192. };
  193. &iomuxc {
  194. hummingboard {
  195. pinctrl_hummingboard_flexcan1: hummingboard-flexcan1 {
  196. fsl,pins = <
  197. MX6QDL_PAD_SD3_CLK__FLEXCAN1_RX 0x80000000
  198. MX6QDL_PAD_SD3_CMD__FLEXCAN1_TX 0x80000000
  199. >;
  200. };
  201. pinctrl_hummingboard_gpio3_5: hummingboard-gpio3_5 {
  202. fsl,pins = <
  203. MX6QDL_PAD_EIM_DA5__GPIO3_IO05 0x1b0b1
  204. >;
  205. };
  206. pinctrl_hummingboard_hdmi: hummingboard-hdmi {
  207. fsl,pins = <
  208. MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0
  209. >;
  210. };
  211. pinctrl_hummingboard_i2c1: hummingboard-i2c1 {
  212. fsl,pins = <
  213. MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
  214. MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
  215. >;
  216. };
  217. pinctrl_hummingboard_i2c2: hummingboard-i2c2 {
  218. fsl,pins = <
  219. MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
  220. MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
  221. >;
  222. };
  223. pinctrl_hummingboard_pcie_reset: hummingboard-pcie-reset {
  224. fsl,pins = <
  225. MX6QDL_PAD_EIM_DA4__GPIO3_IO04 0x1b0b1
  226. >;
  227. };
  228. pinctrl_hummingboard_pwm1: pwm1grp {
  229. fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b1>;
  230. };
  231. pinctrl_hummingboard_sgtl5000: hummingboard-sgtl5000 {
  232. fsl,pins = <
  233. MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0
  234. MX6QDL_PAD_KEY_COL0__AUD5_TXC 0x130b0
  235. MX6QDL_PAD_KEY_ROW0__AUD5_TXD 0x110b0
  236. MX6QDL_PAD_KEY_COL1__AUD5_TXFS 0x130b0
  237. MX6QDL_PAD_GPIO_5__CCM_CLKO1 0x130b0
  238. >;
  239. };
  240. pinctrl_hummingboard_spdif: hummingboard-spdif {
  241. fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>;
  242. };
  243. pinctrl_hummingboard_usbh1_vbus: hummingboard-usbh1-vbus {
  244. fsl,pins = <MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0>;
  245. };
  246. pinctrl_hummingboard_usbotg_id: hummingboard-usbotg-id {
  247. /*
  248. * We want it pulled down for a fixed host connection.
  249. */
  250. fsl,pins = <MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x13059>;
  251. };
  252. pinctrl_hummingboard_usbotg_vbus: hummingboard-usbotg-vbus {
  253. fsl,pins = <MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0>;
  254. };
  255. pinctrl_hummingboard_usdhc2_aux: hummingboard-usdhc2-aux {
  256. fsl,pins = <
  257. MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071
  258. >;
  259. };
  260. pinctrl_hummingboard_usdhc2: hummingboard-usdhc2 {
  261. fsl,pins = <
  262. MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059
  263. MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059
  264. MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
  265. MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
  266. MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
  267. MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
  268. >;
  269. };
  270. pinctrl_hummingboard_vmmc: hummingboard-vmmc {
  271. fsl,pins = <
  272. MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x1b0b0
  273. >;
  274. };
  275. };
  276. };
  277. &pcie {
  278. pinctrl-names = "default";
  279. pinctrl-0 = <&pinctrl_hummingboard_pcie_reset>;
  280. reset-gpio = <&gpio3 4 GPIO_ACTIVE_LOW>;
  281. status = "okay";
  282. };
  283. &pwm1 {
  284. pinctrl-names = "default";
  285. pinctrl-0 = <&pinctrl_hummingboard_pwm1>;
  286. status = "okay";
  287. };
  288. &pwm2 {
  289. pinctrl-names = "default";
  290. status = "okay";
  291. };
  292. &spdif {
  293. pinctrl-names = "default";
  294. pinctrl-0 = <&pinctrl_hummingboard_spdif>;
  295. status = "okay";
  296. };
  297. &ssi1 {
  298. status = "okay";
  299. };
  300. &usbh1 {
  301. disable-over-current;
  302. vbus-supply = <&v_usb2>;
  303. status = "okay";
  304. };
  305. &usbotg {
  306. disable-over-current;
  307. pinctrl-names = "default";
  308. pinctrl-0 = <&pinctrl_hummingboard_usbotg_id>;
  309. vbus-supply = <&v_usb1>;
  310. status = "okay";
  311. };
  312. &usdhc2 {
  313. pinctrl-names = "default";
  314. pinctrl-0 = <
  315. &pinctrl_hummingboard_usdhc2_aux
  316. &pinctrl_hummingboard_usdhc2
  317. >;
  318. vmmc-supply = <&v_sd>;
  319. cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  320. status = "okay";
  321. };
  322. &vcc_3v3 {
  323. vin-supply = <&v_3v2>;
  324. };