imx6q-cm-fx6.dts 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. /*
  2. * Copyright 2013 CompuLab Ltd.
  3. *
  4. * Author: Valentin Raevsky <valentin@compulab.co.il>
  5. *
  6. * This file is dual-licensed: you can use it either under the terms
  7. * of the GPL or the X11 license, at your option. Note that this dual
  8. * licensing only applies to this file, and not this project as a
  9. * whole.
  10. *
  11. * a) This file is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License
  13. * version 2 as published by the Free Software Foundation.
  14. *
  15. * This file is distributed in the hope that it will be useful
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * Or, alternatively
  21. *
  22. * b) Permission is hereby granted, free of charge, to any person
  23. * obtaining a copy of this software and associated documentation
  24. * files (the "Software"), to deal in the Software without
  25. * restriction, including without limitation the rights to use
  26. * copy, modify, merge, publish, distribute, sublicense, and/or
  27. * sell copies of the Software, and to permit persons to whom the
  28. * Software is furnished to do so, subject to the following
  29. * conditions:
  30. *
  31. * The above copyright notice and this permission notice shall be
  32. * included in all copies or substantial portions of the Software.
  33. *
  34. * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
  35. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  36. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  37. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  38. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
  39. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  40. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  41. * OTHER DEALINGS IN THE SOFTWARE.
  42. */
  43. /dts-v1/;
  44. #include <dt-bindings/gpio/gpio.h>
  45. #include "imx6q.dtsi"
  46. / {
  47. model = "CompuLab CM-FX6";
  48. compatible = "compulab,cm-fx6", "fsl,imx6q";
  49. memory {
  50. reg = <0x10000000 0x80000000>;
  51. };
  52. leds {
  53. compatible = "gpio-leds";
  54. heartbeat-led {
  55. label = "Heartbeat";
  56. gpios = <&gpio2 31 0>;
  57. linux,default-trigger = "heartbeat";
  58. };
  59. };
  60. reg_pcie_power_on_gpio: regulator-pcie-power-on-gpio {
  61. compatible = "regulator-fixed";
  62. regulator-name = "regulator-pcie-power-on-gpio";
  63. regulator-min-microvolt = <3300000>;
  64. regulator-max-microvolt = <3300000>;
  65. gpio = <&gpio2 24 GPIO_ACTIVE_HIGH>;
  66. enable-active-high;
  67. };
  68. reg_usb_h1_vbus: usb_h1_vbus {
  69. compatible = "regulator-fixed";
  70. regulator-name = "usb_h1_vbus";
  71. regulator-min-microvolt = <5000000>;
  72. regulator-max-microvolt = <5000000>;
  73. gpio = <&gpio7 8 GPIO_ACTIVE_HIGH>;
  74. enable-active-high;
  75. };
  76. reg_usb_otg_vbus: usb_otg_vbus {
  77. compatible = "regulator-fixed";
  78. regulator-name = "usb_otg_vbus";
  79. regulator-min-microvolt = <5000000>;
  80. regulator-max-microvolt = <5000000>;
  81. gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
  82. enable-active-high;
  83. };
  84. };
  85. &cpu0 {
  86. /*
  87. * Although the imx6q fuse indicates that 1.2GHz operation is possible,
  88. * the module behaves unstable at this frequency. Hence, remove the
  89. * 1.2GHz operation point here.
  90. */
  91. operating-points = <
  92. /* kHz uV */
  93. 996000 1250000
  94. 852000 1250000
  95. 792000 1175000
  96. 396000 975000
  97. >;
  98. fsl,soc-operating-points = <
  99. /* ARM kHz SOC-PU uV */
  100. 996000 1250000
  101. 852000 1250000
  102. 792000 1175000
  103. 396000 1175000
  104. >;
  105. };
  106. &ecspi1 {
  107. fsl,spi-num-chipselects = <2>;
  108. cs-gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>, <&gpio3 19 GPIO_ACTIVE_HIGH>;
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&pinctrl_ecspi1>;
  111. status = "okay";
  112. m25p80@0 {
  113. #address-cells = <1>;
  114. #size-cells = <1>;
  115. compatible = "st,m25p", "jedec,spi-nor";
  116. spi-max-frequency = <20000000>;
  117. reg = <0>;
  118. };
  119. };
  120. &fec {
  121. pinctrl-names = "default";
  122. pinctrl-0 = <&pinctrl_enet>;
  123. phy-mode = "rgmii";
  124. status = "okay";
  125. };
  126. &gpmi {
  127. pinctrl-names = "default";
  128. pinctrl-0 = <&pinctrl_gpmi_nand>;
  129. status = "okay";
  130. };
  131. &i2c3 {
  132. pinctrl-names = "default";
  133. pinctrl-0 = <&pinctrl_i2c3>;
  134. status = "okay";
  135. clock-frequency = <100000>;
  136. eeprom@50 {
  137. compatible = "at24,24c02";
  138. reg = <0x50>;
  139. pagesize = <16>;
  140. };
  141. };
  142. &iomuxc {
  143. pinctrl_ecspi1: ecspi1grp {
  144. fsl,pins = <
  145. MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
  146. MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
  147. MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
  148. MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x100b1
  149. MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x100b1
  150. >;
  151. };
  152. pinctrl_enet: enetgrp {
  153. fsl,pins = <
  154. MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
  155. MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
  156. MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
  157. MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
  158. MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
  159. MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
  160. MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
  161. MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
  162. MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
  163. MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
  164. MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
  165. MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
  166. MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
  167. MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
  168. MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
  169. >;
  170. };
  171. pinctrl_gpmi_nand: gpminandgrp {
  172. fsl,pins = <
  173. MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1
  174. MX6QDL_PAD_NANDF_ALE__NAND_ALE 0xb0b1
  175. MX6QDL_PAD_NANDF_WP_B__NAND_WP_B 0xb0b1
  176. MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0xb000
  177. MX6QDL_PAD_NANDF_CS0__NAND_CE0_B 0xb0b1
  178. MX6QDL_PAD_NANDF_CS1__NAND_CE1_B 0xb0b1
  179. MX6QDL_PAD_SD4_CMD__NAND_RE_B 0xb0b1
  180. MX6QDL_PAD_SD4_CLK__NAND_WE_B 0xb0b1
  181. MX6QDL_PAD_NANDF_D0__NAND_DATA00 0xb0b1
  182. MX6QDL_PAD_NANDF_D1__NAND_DATA01 0xb0b1
  183. MX6QDL_PAD_NANDF_D2__NAND_DATA02 0xb0b1
  184. MX6QDL_PAD_NANDF_D3__NAND_DATA03 0xb0b1
  185. MX6QDL_PAD_NANDF_D4__NAND_DATA04 0xb0b1
  186. MX6QDL_PAD_NANDF_D5__NAND_DATA05 0xb0b1
  187. MX6QDL_PAD_NANDF_D6__NAND_DATA06 0xb0b1
  188. MX6QDL_PAD_NANDF_D7__NAND_DATA07 0xb0b1
  189. MX6QDL_PAD_SD4_DAT0__NAND_DQS 0x00b1
  190. >;
  191. };
  192. pinctrl_i2c3: i2c3grp {
  193. fsl,pins = <
  194. MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
  195. MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
  196. >;
  197. };
  198. pinctrl_pcie: pciegrp {
  199. fsl,pins = <
  200. MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b0b1
  201. MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x1b0b1
  202. >;
  203. };
  204. pinctrl_uart4: uart4grp {
  205. fsl,pins = <
  206. MX6QDL_PAD_KEY_COL0__UART4_TX_DATA 0x1b0b1
  207. MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA 0x1b0b1
  208. >;
  209. };
  210. pinctrl_usbh1: usbh1grp {
  211. fsl,pins = <
  212. MX6QDL_PAD_SD3_RST__GPIO7_IO08 0x1b0b1
  213. >;
  214. };
  215. pinctrl_usbotg: usbotggrp {
  216. fsl,pins = <
  217. MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x17059
  218. MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x130b0
  219. >;
  220. };
  221. };
  222. &pcie {
  223. pinctrl-names = "default";
  224. pinctrl-0 = <&pinctrl_pcie>;
  225. reset-gpio = <&gpio1 26 GPIO_ACTIVE_LOW>;
  226. vdd-supply = <&reg_pcie_power_on_gpio>;
  227. status = "okay";
  228. };
  229. &sata {
  230. status = "okay";
  231. };
  232. &snvs_poweroff {
  233. status = "okay";
  234. };
  235. &uart4 {
  236. pinctrl-names = "default";
  237. pinctrl-0 = <&pinctrl_uart4>;
  238. status = "okay";
  239. };
  240. &usbh1 {
  241. vbus-supply = <&reg_usb_h1_vbus>;
  242. pinctrl-names = "default";
  243. pinctrl-0 = <&pinctrl_usbh1>;
  244. status = "okay";
  245. };
  246. &usbotg {
  247. vbus-supply = <&reg_usb_otg_vbus>;
  248. pinctrl-names = "default";
  249. pinctrl-0 = <&pinctrl_usbotg>;
  250. dr_mode = "otg";
  251. status = "okay";
  252. };