imx6q-h100.dts 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. /*
  2. * Copyright (C) 2015 Lucas Stach <kernel@pengutronix.de>
  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 , 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. /dts-v1/;
  42. #include "imx6q.dtsi"
  43. #include "imx6qdl-microsom.dtsi"
  44. #include "imx6qdl-microsom-ar8035.dtsi"
  45. / {
  46. model = "Auvidea H100";
  47. compatible = "auvidea,h100", "fsl,imx6q";
  48. aliases {
  49. rtc0 = &rtc;
  50. rtc1 = &snvs_rtc;
  51. };
  52. chosen {
  53. stdout-path = &uart2;
  54. };
  55. hdmi_osc: hdmi-osc {
  56. compatible = "fixed-clock";
  57. clock-output-names = "hdmi-osc";
  58. clock-frequency = <27000000>;
  59. #clock-cells = <0>;
  60. };
  61. leds {
  62. compatible = "gpio-leds";
  63. pinctrl-names = "default";
  64. pinctrl-0 = <&pinctrl_h100_leds>;
  65. led0: power {
  66. label = "power";
  67. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  68. default-state = "on";
  69. };
  70. led1: stream {
  71. label = "stream";
  72. gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
  73. default-state = "off";
  74. };
  75. led2: rec {
  76. label = "rec";
  77. gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
  78. default-state = "off";
  79. };
  80. };
  81. reg_3p3v: regulator-3p3v {
  82. compatible = "regulator-fixed";
  83. regulator-name = "3P3V";
  84. regulator-min-microvolt = <3300000>;
  85. regulator-max-microvolt = <3300000>;
  86. };
  87. reg_hdmi: regulator-hdmi {
  88. pinctrl-names = "default";
  89. pinctrl-0 = <&pinctrl_h100_reg_hdmi>;
  90. compatible = "regulator-fixed";
  91. enable-active-high;
  92. gpio = <&gpio2 20 GPIO_ACTIVE_HIGH>;
  93. regulator-name = "V_HDMI";
  94. regulator-min-microvolt = <5000000>;
  95. regulator-max-microvolt = <5000000>;
  96. regulator-always-on;
  97. };
  98. reg_nvcc_sd2: regulator-nvcc-sd2 {
  99. pinctrl-names = "default";
  100. pinctrl-0 = <&pinctrl_h100_reg_nvcc_sd2>;
  101. compatible = "regulator-gpio";
  102. regulator-name = "NVCC_SD2";
  103. regulator-min-microvolt = <1800000>;
  104. regulator-max-microvolt = <3300000>;
  105. regulator-type = "voltage";
  106. regulator-boot-on;
  107. regulator-always-on;
  108. gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>;
  109. states = <1800000 0x1
  110. 3300000 0x0>;
  111. };
  112. reg_usbh1_vbus: regulator-usb-h1-vbus {
  113. compatible = "regulator-fixed";
  114. enable-active-high;
  115. gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
  116. pinctrl-names = "default";
  117. pinctrl-0 = <&pinctrl_h100_usbh1_vbus>;
  118. regulator-name = "USB_H1_VBUS";
  119. regulator-min-microvolt = <5000000>;
  120. regulator-max-microvolt = <5000000>;
  121. };
  122. reg_usbotg_vbus: regulator-usb-otg-vbus {
  123. compatible = "regulator-fixed";
  124. enable-active-high;
  125. gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
  126. pinctrl-names = "default";
  127. pinctrl-0 = <&pinctrl_h100_usbotg_vbus>;
  128. regulator-name = "USB_OTG_VBUS";
  129. regulator-min-microvolt = <5000000>;
  130. regulator-max-microvolt = <5000000>;
  131. };
  132. sound-sgtl5000 {
  133. compatible = "fsl,imx-audio-sgtl5000";
  134. model = "H100 on-board codec";
  135. audio-codec = <&sgtl5000>;
  136. audio-routing =
  137. "MIC_IN", "Mic Jack",
  138. "Mic Jack", "Mic Bias",
  139. "Headphone Jack", "HP_OUT";
  140. mux-ext-port = <5>;
  141. mux-int-port = <1>;
  142. ssi-controller = <&ssi1>;
  143. };
  144. };
  145. &audmux {
  146. status = "okay";
  147. };
  148. &hdmi {
  149. pinctrl-names = "default";
  150. pinctrl-0 = <&pinctrl_h100_hdmi>;
  151. ddc-i2c-bus = <&i2c2>;
  152. status = "okay";
  153. };
  154. &i2c1 {
  155. pinctrl-names = "default";
  156. pinctrl-0 = <&pinctrl_h100_i2c1>;
  157. status = "okay";
  158. eeprom: 24c02@51 {
  159. compatible = "microchip,24c02", "at24";
  160. reg = <0x51>;
  161. };
  162. rtc: pcf8523@68 {
  163. compatible = "nxp,pcf8523";
  164. reg = <0x68>;
  165. };
  166. sgtl5000: sgtl5000@0a {
  167. compatible = "fsl,sgtl5000";
  168. reg = <0x0a>;
  169. pinctrl-names = "default";
  170. pinctrl-0 = <&pinctrl_h100_sgtl5000>;
  171. clocks = <&clks IMX6QDL_CLK_CKO>;
  172. VDDA-supply = <&reg_3p3v>;
  173. VDDIO-supply = <&reg_3p3v>;
  174. };
  175. tc358743: tc358743@0f {
  176. compatible = "toshiba,tc358743";
  177. reg = <0x0f>;
  178. pinctrl-names = "default";
  179. pinctrl-0 = <&pinctrl_h100_tc358743>;
  180. clocks = <&hdmi_osc>;
  181. clock-names = "refclk";
  182. reset-gpios = <&gpio6 15 GPIO_ACTIVE_LOW>;
  183. /* IRQ has a wrong pull resistor which renders it useless */
  184. port@0 {
  185. tc358743_out: endpoint {
  186. remote-endpoint = <&mipi_csi2_in>;
  187. data-lanes = <1 2 3 4>;
  188. clock-lanes = <0>;
  189. clock-noncontinuous;
  190. link-frequencies = /bits/ 64 <297000000>;
  191. };
  192. };
  193. };
  194. };
  195. &i2c2 {
  196. clock-frequency = <100000>;
  197. pinctrl-names = "default";
  198. pinctrl-0 = <&pinctrl_h100_i2c2>;
  199. status = "okay";
  200. };
  201. &iomuxc {
  202. h100 {
  203. pinctrl_h100_hdmi: h100-hdmi {
  204. fsl,pins = <
  205. MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0
  206. >;
  207. };
  208. pinctrl_h100_i2c1: h100-i2c1 {
  209. fsl,pins = <
  210. MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
  211. MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
  212. >;
  213. };
  214. pinctrl_h100_i2c2: h100-i2c2 {
  215. fsl,pins = <
  216. MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
  217. MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
  218. >;
  219. };
  220. pinctrl_h100_leds: pinctrl-h100-leds {
  221. fsl,pins = <
  222. MX6QDL_PAD_EIM_DA0__GPIO3_IO00 0x1b0b0
  223. MX6QDL_PAD_EIM_EB1__GPIO2_IO29 0x1b0b0
  224. MX6QDL_PAD_EIM_EB0__GPIO2_IO28 0x1b0b0
  225. >;
  226. };
  227. pinctrl_h100_reg_hdmi: h100-reg-hdmi {
  228. fsl,pins = <
  229. MX6QDL_PAD_EIM_A18__GPIO2_IO20 0x1b0b0
  230. >;
  231. };
  232. pinctrl_h100_reg_nvcc_sd2: h100-reg-nvcc-sd2 {
  233. fsl,pins = <
  234. MX6QDL_PAD_KEY_ROW1__GPIO4_IO09 0x1b0b0
  235. >;
  236. };
  237. pinctrl_h100_sgtl5000: h100-sgtl5000 {
  238. fsl,pins = <
  239. MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0
  240. MX6QDL_PAD_KEY_COL0__AUD5_TXC 0x130b0
  241. MX6QDL_PAD_KEY_ROW0__AUD5_TXD 0x110b0
  242. MX6QDL_PAD_KEY_COL1__AUD5_TXFS 0x130b0
  243. MX6QDL_PAD_GPIO_5__CCM_CLKO1 0x130b0
  244. >;
  245. };
  246. pinctrl_h100_tc358743: h100-tc358743 {
  247. fsl,pins = <
  248. MX6QDL_PAD_NANDF_CS2__GPIO6_IO15 0x1b0b0
  249. >;
  250. };
  251. pinctrl_h100_uart2: h100-uart2 {
  252. fsl,pins = <
  253. MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
  254. MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
  255. >;
  256. };
  257. pinctrl_h100_usbh1_vbus: hummingboard-usbh1-vbus {
  258. fsl,pins = <
  259. MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0
  260. >;
  261. };
  262. pinctrl_h100_usbotg_id: hummingboard-usbotg-id {
  263. fsl,pins = <
  264. MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x13059
  265. >;
  266. };
  267. pinctrl_h100_usbotg_vbus: hummingboard-usbotg-vbus {
  268. fsl,pins = <
  269. MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0
  270. >;
  271. };
  272. pinctrl_h100_usdhc2: h100-usdhc2 {
  273. fsl,pins = <
  274. MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071
  275. MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059
  276. MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059
  277. MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059
  278. MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059
  279. MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059
  280. MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
  281. >;
  282. };
  283. pinctrl_h100_usdhc2_100mhz: h100-usdhc2-100mhz {
  284. fsl,pins = <
  285. MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071
  286. MX6QDL_PAD_SD2_CMD__SD2_CMD 0x170b9
  287. MX6QDL_PAD_SD2_CLK__SD2_CLK 0x100b9
  288. MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x170b9
  289. MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x170b9
  290. MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x170b9
  291. MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x170b9
  292. >;
  293. };
  294. pinctrl_h100_usdhc2_200mhz: h100-usdhc2-200mhz {
  295. fsl,pins = <
  296. MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1f071
  297. MX6QDL_PAD_SD2_CMD__SD2_CMD 0x170f9
  298. MX6QDL_PAD_SD2_CLK__SD2_CLK 0x100f9
  299. MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x170f9
  300. MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x170f9
  301. MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x170f9
  302. MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x170f9
  303. >;
  304. };
  305. };
  306. };
  307. &mipi_csi {
  308. status = "okay";
  309. port@0 {
  310. mipi_csi2_in: endpoint {
  311. remote-endpoint = <&tc358743_out>;
  312. data-lanes = <1 2 3 4>;
  313. clock-lanes = <0>;
  314. clock-noncontinuous;
  315. link-frequencies = /bits/ 64 <297000000>;
  316. };
  317. };
  318. };
  319. &ssi1 {
  320. status = "okay";
  321. };
  322. &uart2 {
  323. pinctrl-names = "default";
  324. pinctrl-0 = <&pinctrl_h100_uart2>;
  325. status = "okay";
  326. };
  327. &usbh1 {
  328. disable-over-current;
  329. vbus-supply = <&reg_usbh1_vbus>;
  330. status = "okay";
  331. };
  332. &usbotg {
  333. disable-over-current;
  334. pinctrl-names = "default";
  335. pinctrl-0 = <&pinctrl_h100_usbotg_id>;
  336. vbus-supply = <&reg_usbotg_vbus>;
  337. status = "okay";
  338. };
  339. &usdhc2 {
  340. pinctrl-names = "default", "state_100mhz", "state_200mhz";
  341. pinctrl-0 = <&pinctrl_h100_usdhc2>;
  342. pinctrl-1 = <&pinctrl_h100_usdhc2_100mhz>;
  343. pinctrl-2 = <&pinctrl_h100_usdhc2_200mhz>;
  344. vmmc-supply = <&reg_3p3v>;
  345. vqmmc-supply = <&reg_nvcc_sd2>;
  346. cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  347. status = "okay";
  348. };