imx6q-h100.dts 9.2 KB

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