imx6qdl-sr-som.dtsi 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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/gpio/gpio.h>
  42. / {
  43. vcc_3v3: regulator-vcc-3v3 {
  44. compatible = "regulator-fixed";
  45. regulator-always-on;
  46. regulator-name = "vcc_3v3";
  47. regulator-min-microvolt = <3300000>;
  48. regulator-max-microvolt = <3300000>;
  49. };
  50. };
  51. &fec {
  52. pinctrl-names = "default";
  53. pinctrl-0 = <&pinctrl_microsom_enet_ar8035>;
  54. phy-mode = "rgmii-id";
  55. /*
  56. * The PHY seems to require a long-enough reset duration to avoid
  57. * some rare issues where the PHY gets stuck in an inconsistent and
  58. * non-functional state at boot-up. 10ms proved to be fine .
  59. */
  60. phy-reset-duration = <10>;
  61. phy-reset-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
  62. status = "okay";
  63. mdio {
  64. #address-cells = <1>;
  65. #size-cells = <0>;
  66. /*
  67. * The PHY can appear at either address 0 or 4 due to the
  68. * configuration (LED) pin not being pulled sufficiently.
  69. */
  70. ethernet-phy@0 {
  71. reg = <0>;
  72. qca,clk-out-frequency = <125000000>;
  73. qca,smarteee-tw-us-1g = <24>;
  74. };
  75. ethernet-phy@4 {
  76. reg = <4>;
  77. qca,clk-out-frequency = <125000000>;
  78. qca,smarteee-tw-us-1g = <24>;
  79. };
  80. /*
  81. * ADIN1300 (som rev 1.9 or later) is always at address 1. It
  82. * will be enabled automatically by U-Boot if detected.
  83. */
  84. ethernet-phy@1 {
  85. reg = <1>;
  86. adi,phy-output-clock = "125mhz-free-running";
  87. status = "disabled";
  88. };
  89. };
  90. };
  91. &iomuxc {
  92. microsom {
  93. pinctrl_microsom_enet_ar8035: microsom-enet-ar8035 {
  94. fsl,pins = <
  95. MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b8b0
  96. MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
  97. /* AR8035 reset */
  98. MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x130b0
  99. /* AR8035 interrupt */
  100. MX6QDL_PAD_DI0_PIN2__GPIO4_IO18 0x1b0b0
  101. /* GPIO16 -> AR8035 25MHz */
  102. MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0b0
  103. MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x13030
  104. MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
  105. MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
  106. MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
  107. MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
  108. MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
  109. /* AR8035 CLK_25M --> ENET_REF_CLK (V22) */
  110. MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x0a0b1
  111. /* AR8035 pin strapping: IO voltage: pull up */
  112. MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
  113. /* AR8035 pin strapping: PHYADDR#0: pull down */
  114. MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x13030
  115. /* AR8035 pin strapping: PHYADDR#1: pull down */
  116. MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x13030
  117. /* AR8035 pin strapping: MODE#1: pull up */
  118. MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
  119. /* AR8035 pin strapping: MODE#3: pull up */
  120. MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
  121. /* AR8035 pin strapping: MODE#0: pull down */
  122. MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x13030
  123. /*
  124. * As the RMII pins are also connected to RGMII
  125. * so that an AR8030 can be placed, set these
  126. * to high-z with the same pulls as above.
  127. * Use the GPIO settings to avoid changing the
  128. * input select registers.
  129. */
  130. MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25 0x03000
  131. MX6QDL_PAD_ENET_RXD0__GPIO1_IO27 0x03000
  132. MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x03000
  133. >;
  134. };
  135. pinctrl_microsom_uart1: microsom-uart1 {
  136. fsl,pins = <
  137. MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1
  138. MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
  139. >;
  140. };
  141. };
  142. };
  143. &uart1 {
  144. pinctrl-names = "default";
  145. pinctrl-0 = <&pinctrl_microsom_uart1>;
  146. status = "okay";
  147. };