0002-ARM-dts-imx6ul-Add-DTS-for-liteBoard.patch 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. From 35a8bca870bedebb9d37ad58b905863cba780f9f Mon Sep 17 00:00:00 2001
  2. From: Marcin Niestroj <m.niestroj@grinn-global.com>
  3. Date: Fri, 21 Oct 2016 17:07:17 +0200
  4. Subject: [PATCH 2/2] ARM: dts: imx6ul: Add DTS for liteBoard
  5. liteBoard is a development board which uses liteSOM as its base.
  6. Hardware specification:
  7. * liteSOM (i.MX6UL, DRAM, eMMC)
  8. * Ethernet PHY (id 0)
  9. * USB host (usb_otg1)
  10. * MicroSD slot (uSDHC1)
  11. Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
  12. Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
  13. Signed-off-by: Shawn Guo <shawnguo@kernel.org>
  14. ---
  15. arch/arm/boot/dts/Makefile | 1 +
  16. arch/arm/boot/dts/imx6ul-liteboard.dts | 147 +++++++++++++++++++++++++++++++++
  17. 2 files changed, 148 insertions(+)
  18. create mode 100644 arch/arm/boot/dts/imx6ul-liteboard.dts
  19. diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
  20. index c558ba75cbcc..a587ce231f83 100644
  21. --- a/arch/arm/boot/dts/Makefile
  22. +++ b/arch/arm/boot/dts/Makefile
  23. @@ -420,6 +420,7 @@ dtb-$(CONFIG_SOC_IMX6SX) += \
  24. dtb-$(CONFIG_SOC_IMX6UL) += \
  25. imx6ul-14x14-evk.dtb \
  26. imx6ul-geam-kit.dtb \
  27. + imx6ul-liteboard.dtb \
  28. imx6ul-pico-hobbit.dtb \
  29. imx6ul-tx6ul-0010.dtb \
  30. imx6ul-tx6ul-0011.dtb \
  31. diff --git a/arch/arm/boot/dts/imx6ul-liteboard.dts b/arch/arm/boot/dts/imx6ul-liteboard.dts
  32. new file mode 100644
  33. index 000000000000..6e04cb9202f4
  34. --- /dev/null
  35. +++ b/arch/arm/boot/dts/imx6ul-liteboard.dts
  36. @@ -0,0 +1,147 @@
  37. +/*
  38. + * Copyright 2016 Grinn
  39. + *
  40. + * Author: Marcin Niestroj <m.niestroj@grinn-global.com>
  41. + *
  42. + * This file is dual-licensed: you can use it either under the terms
  43. + * of the GPL or the X11 license, at your option. Note that this dual
  44. + * licensing only applies to this file, and not this project as a
  45. + * whole.
  46. + *
  47. + * a) This file is free software; you can redistribute it and/or
  48. + * modify it under the terms of the GNU General Public License
  49. + * version 2 as published by the Free Software Foundation.
  50. + *
  51. + * This file is distributed in the hope that it will be useful
  52. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  53. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  54. + * GNU General Public License for more details.
  55. + *
  56. + * Or, alternatively
  57. + *
  58. + * b) Permission is hereby granted, free of charge, to any person
  59. + * obtaining a copy of this software and associated documentation
  60. + * files (the "Software"), to deal in the Software without
  61. + * restriction, including without limitation the rights to use
  62. + * copy, modify, merge, publish, distribute, sublicense, and/or
  63. + * sell copies of the Software, and to permit persons to whom the
  64. + * Software is furnished to do so, subject to the following
  65. + * conditions:
  66. + *
  67. + * The above copyright notice and this permission notice shall be
  68. + * included in all copies or substantial portions of the Software.
  69. + *
  70. + * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
  71. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  72. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  73. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  74. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
  75. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  76. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  77. + * OTHER DEALINGS IN THE SOFTWARE.
  78. + */
  79. +
  80. +/dts-v1/;
  81. +
  82. +#include "imx6ul-litesom.dtsi"
  83. +
  84. +/ {
  85. + model = "Grinn i.MX6UL liteBoard";
  86. + compatible = "grinn,imx6ul-liteboard", "grinn,imx6ul-litesom",
  87. + "fsl,imx6ul";
  88. +
  89. + chosen {
  90. + stdout-path = &uart1;
  91. + };
  92. +
  93. + reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
  94. + compatible = "regulator-fixed";
  95. + pinctrl-names = "default";
  96. + pinctrl-0 = <&pinctrl_usb_otg1_vbus>;
  97. + regulator-name = "usb_otg1_vbus";
  98. + regulator-min-microvolt = <5000000>;
  99. + regulator-max-microvolt = <5000000>;
  100. + gpio = <&gpio2 8 GPIO_ACTIVE_LOW>;
  101. + };
  102. +};
  103. +
  104. +&iomuxc {
  105. + pinctrl_enet1: enet1grp {
  106. + fsl,pins = <
  107. + MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x1b0b0
  108. + MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x1b0b0
  109. + MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0
  110. + MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0
  111. + MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0
  112. + MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0
  113. + MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0
  114. + MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0
  115. + MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0
  116. + MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031
  117. + >;
  118. + };
  119. +
  120. + pinctrl_uart1: uart1grp {
  121. + fsl,pins = <
  122. + MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1
  123. + MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1
  124. + >;
  125. + };
  126. +
  127. + pinctrl_usdhc1: usdhc1grp {
  128. + fsl,pins = <
  129. + MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x17059
  130. + MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059
  131. + MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10071
  132. + MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059
  133. + MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059
  134. + MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059
  135. + MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059
  136. + >;
  137. + };
  138. +
  139. + pinctrl_usb_otg1_vbus: usb-otg1-vbus {
  140. + fsl,pins = <
  141. + MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08 0x79
  142. + >;
  143. + };
  144. +};
  145. +
  146. +&fec1 {
  147. + pinctrl-names = "default";
  148. + pinctrl-0 = <&pinctrl_enet1>;
  149. + phy-mode = "rmii";
  150. + phy-handle = <&ethphy0>;
  151. + status = "okay";
  152. +
  153. + mdio {
  154. + #address-cells = <1>;
  155. + #size-cells = <0>;
  156. +
  157. + ethphy0: ethernet-phy@0 {
  158. + reg = <0>;
  159. + };
  160. + };
  161. +};
  162. +
  163. +&uart1 {
  164. + pinctrl-names = "default";
  165. + pinctrl-0 = <&pinctrl_uart1>;
  166. + status = "okay";
  167. +};
  168. +
  169. +&usbotg1 {
  170. + vbus-supply = <&reg_usb_otg1_vbus>;
  171. + dr_mode = "host";
  172. + status = "okay";
  173. +};
  174. +
  175. +&usdhc1 {
  176. + pinctrl-names = "default";
  177. + pinctrl-0 = <&pinctrl_usdhc1>;
  178. + cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
  179. + no-1-8-v;
  180. + keep-power-in-suspend;
  181. + wakeup-source;
  182. + status = "okay";
  183. +};
  184. --
  185. 2.11.0