imx8mm-venice-gw71xx.dtsi 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright 2020 Gateworks Corporation
  4. */
  5. #include <dt-bindings/gpio/gpio.h>
  6. #include <dt-bindings/leds/common.h>
  7. #include <dt-bindings/phy/phy-imx8-pcie.h>
  8. / {
  9. aliases {
  10. usb0 = &usbotg1;
  11. usb1 = &usbotg2;
  12. };
  13. led-controller {
  14. compatible = "gpio-leds";
  15. pinctrl-names = "default";
  16. pinctrl-0 = <&pinctrl_gpio_leds>;
  17. led-0 {
  18. function = LED_FUNCTION_STATUS;
  19. color = <LED_COLOR_ID_GREEN>;
  20. gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
  21. default-state = "on";
  22. linux,default-trigger = "heartbeat";
  23. };
  24. led-1 {
  25. function = LED_FUNCTION_STATUS;
  26. color = <LED_COLOR_ID_RED>;
  27. gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>;
  28. default-state = "off";
  29. };
  30. };
  31. pcie0_refclk: pcie0-refclk {
  32. compatible = "fixed-clock";
  33. #clock-cells = <0>;
  34. clock-frequency = <100000000>;
  35. };
  36. pps {
  37. compatible = "pps-gpio";
  38. pinctrl-names = "default";
  39. pinctrl-0 = <&pinctrl_pps>;
  40. gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
  41. status = "okay";
  42. };
  43. reg_usb_otg1_vbus: regulator-usb-otg1 {
  44. pinctrl-names = "default";
  45. pinctrl-0 = <&pinctrl_reg_usb1_en>;
  46. compatible = "regulator-fixed";
  47. regulator-name = "usb_otg1_vbus";
  48. gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
  49. enable-active-high;
  50. regulator-min-microvolt = <5000000>;
  51. regulator-max-microvolt = <5000000>;
  52. };
  53. };
  54. /* off-board header */
  55. &ecspi2 {
  56. pinctrl-names = "default";
  57. pinctrl-0 = <&pinctrl_spi2>;
  58. cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
  59. status = "okay";
  60. };
  61. &gpio1 {
  62. gpio-line-names = "", "", "", "", "", "", "pci_usb_sel", "dio0",
  63. "", "dio1", "", "", "", "", "", "",
  64. "", "", "", "", "", "", "", "",
  65. "", "", "", "", "", "", "", "";
  66. };
  67. &gpio4 {
  68. gpio-line-names = "", "", "", "dio2", "dio3", "", "", "pci_wdis#",
  69. "", "", "", "", "", "", "", "",
  70. "", "", "", "", "", "", "", "",
  71. "", "", "", "", "", "", "", "";
  72. };
  73. &i2c2 {
  74. clock-frequency = <400000>;
  75. pinctrl-names = "default";
  76. pinctrl-0 = <&pinctrl_i2c2>;
  77. status = "okay";
  78. accelerometer@19 {
  79. pinctrl-names = "default";
  80. pinctrl-0 = <&pinctrl_accel>;
  81. compatible = "st,lis2de12";
  82. reg = <0x19>;
  83. st,drdy-int-pin = <1>;
  84. interrupt-parent = <&gpio4>;
  85. interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
  86. interrupt-names = "INT1";
  87. };
  88. };
  89. /* off-board header */
  90. &i2c3 {
  91. clock-frequency = <400000>;
  92. pinctrl-names = "default";
  93. pinctrl-0 = <&pinctrl_i2c3>;
  94. status = "okay";
  95. };
  96. &pcie_phy {
  97. fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
  98. fsl,clkreq-unsupported;
  99. clocks = <&pcie0_refclk>;
  100. clock-names = "ref";
  101. status = "okay";
  102. };
  103. &pcie0 {
  104. pinctrl-names = "default";
  105. pinctrl-0 = <&pinctrl_pcie0>;
  106. reset-gpio = <&gpio4 6 GPIO_ACTIVE_LOW>;
  107. clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&clk IMX8MM_CLK_PCIE1_AUX>,
  108. <&pcie0_refclk>;
  109. clock-names = "pcie", "pcie_aux", "pcie_bus";
  110. assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
  111. <&clk IMX8MM_CLK_PCIE1_CTRL>;
  112. assigned-clock-rates = <10000000>, <250000000>;
  113. assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
  114. <&clk IMX8MM_SYS_PLL2_250M>;
  115. status = "okay";
  116. };
  117. /* GPS */
  118. &uart1 {
  119. pinctrl-names = "default";
  120. pinctrl-0 = <&pinctrl_uart1>;
  121. status = "okay";
  122. };
  123. /* off-board header */
  124. &uart3 {
  125. pinctrl-names = "default";
  126. pinctrl-0 = <&pinctrl_uart3>;
  127. status = "okay";
  128. };
  129. &usbotg1 {
  130. dr_mode = "otg";
  131. over-current-active-low;
  132. vbus-supply = <&reg_usb_otg1_vbus>;
  133. status = "okay";
  134. };
  135. &usbotg2 {
  136. dr_mode = "host";
  137. disable-over-current;
  138. status = "okay";
  139. };
  140. &iomuxc {
  141. pinctrl-names = "default";
  142. pinctrl-0 = <&pinctrl_hog>;
  143. pinctrl_hog: hoggrp {
  144. fsl,pins = <
  145. MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3 0x40000041 /* PLUG_TEST */
  146. MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x40000041 /* PCI_USBSEL */
  147. MX8MM_IOMUXC_SAI1_RXD5_GPIO4_IO7 0x40000041 /* PCIE_WDIS# */
  148. MX8MM_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x40000041 /* DIO0 */
  149. MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x40000041 /* DIO1 */
  150. MX8MM_IOMUXC_SAI1_RXD1_GPIO4_IO3 0x40000041 /* DIO2 */
  151. MX8MM_IOMUXC_SAI1_RXD2_GPIO4_IO4 0x40000041 /* DIO2 */
  152. >;
  153. };
  154. pinctrl_accel: accelgrp {
  155. fsl,pins = <
  156. MX8MM_IOMUXC_SAI1_RXD3_GPIO4_IO5 0x159
  157. >;
  158. };
  159. pinctrl_gpio_leds: gpioledgrp {
  160. fsl,pins = <
  161. MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0x19
  162. MX8MM_IOMUXC_SPDIF_RX_GPIO5_IO4 0x19
  163. >;
  164. };
  165. pinctrl_i2c3: i2c3grp {
  166. fsl,pins = <
  167. MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3
  168. MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3
  169. >;
  170. };
  171. pinctrl_pcie0: pcie0grp {
  172. fsl,pins = <
  173. MX8MM_IOMUXC_SAI1_RXD4_GPIO4_IO6 0x41
  174. >;
  175. };
  176. pinctrl_pps: ppsgrp {
  177. fsl,pins = <
  178. MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15 0x41
  179. >;
  180. };
  181. pinctrl_reg_usb1_en: regusb1grp {
  182. fsl,pins = <
  183. MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x41
  184. MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141
  185. MX8MM_IOMUXC_GPIO1_IO13_USB1_OTG_OC 0x41
  186. >;
  187. };
  188. pinctrl_spi2: spi2grp {
  189. fsl,pins = <
  190. MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0xd6
  191. MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0xd6
  192. MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0xd6
  193. MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0xd6
  194. >;
  195. };
  196. pinctrl_uart1: uart1grp {
  197. fsl,pins = <
  198. MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
  199. MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140
  200. >;
  201. };
  202. pinctrl_uart3: uart3grp {
  203. fsl,pins = <
  204. MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140
  205. MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140
  206. >;
  207. };
  208. };