imx6ul-liteboard.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /*
  2. * Copyright 2016 Grinn
  3. *
  4. * Author: Marcin Niestroj <[email protected]>
  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 "AS IS", 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 "imx6ul-litesom.dtsi"
  45. / {
  46. model = "Grinn i.MX6UL liteBoard";
  47. compatible = "grinn,imx6ul-liteboard", "grinn,imx6ul-litesom",
  48. "fsl,imx6ul";
  49. chosen {
  50. stdout-path = &uart1;
  51. };
  52. reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
  53. compatible = "regulator-fixed";
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&pinctrl_usb_otg1_vbus>;
  56. regulator-name = "usb_otg1_vbus";
  57. regulator-min-microvolt = <5000000>;
  58. regulator-max-microvolt = <5000000>;
  59. gpio = <&gpio2 8 GPIO_ACTIVE_LOW>;
  60. };
  61. };
  62. &iomuxc {
  63. pinctrl_enet1: enet1grp {
  64. fsl,pins = <
  65. MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x1b0b0
  66. MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x1b0b0
  67. MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0
  68. MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0
  69. MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0
  70. MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0
  71. MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0
  72. MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0
  73. MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0
  74. MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031
  75. >;
  76. };
  77. pinctrl_uart1: uart1grp {
  78. fsl,pins = <
  79. MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1
  80. MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1
  81. >;
  82. };
  83. pinctrl_usdhc1: usdhc1grp {
  84. fsl,pins = <
  85. MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x17059
  86. MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059
  87. MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10071
  88. MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059
  89. MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059
  90. MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059
  91. MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059
  92. >;
  93. };
  94. pinctrl_usb_otg1_vbus: usb-otg1-vbus {
  95. fsl,pins = <
  96. MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08 0x79
  97. >;
  98. };
  99. };
  100. &fec1 {
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&pinctrl_enet1>;
  103. phy-mode = "rmii";
  104. phy-handle = <&ethphy0>;
  105. status = "okay";
  106. mdio {
  107. #address-cells = <1>;
  108. #size-cells = <0>;
  109. ethphy0: ethernet-phy@0 {
  110. reg = <0>;
  111. };
  112. };
  113. };
  114. &snvs_poweroff {
  115. status = "okay";
  116. };
  117. &uart1 {
  118. pinctrl-names = "default";
  119. pinctrl-0 = <&pinctrl_uart1>;
  120. status = "okay";
  121. };
  122. &usbotg1 {
  123. vbus-supply = <&reg_usb_otg1_vbus>;
  124. dr_mode = "host";
  125. status = "okay";
  126. };
  127. &usdhc1 {
  128. pinctrl-names = "default";
  129. pinctrl-0 = <&pinctrl_usdhc1>;
  130. cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
  131. no-1-8-v;
  132. keep-power-in-suspend;
  133. wakeup-source;
  134. status = "okay";
  135. };