0001-ARM-dts-imx6ul-Add-DTS-for-liteSOM-module.patch 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. From 8cbabc57257bdbf5f1cf039a265c875da8ddc2e9 Mon Sep 17 00:00:00 2001
  2. From: Marcin Niestroj <m.niestroj@grinn-global.com>
  3. Date: Fri, 21 Oct 2016 17:07:16 +0200
  4. Subject: [PATCH 1/2] ARM: dts: imx6ul: Add DTS for liteSOM module
  5. This is a SOM (System on Module), so it will be part of another boards.
  6. Hence, this is a "dtsi" file that will be included from another device
  7. tree files.
  8. Hardware specification:
  9. * Freescale i.MX6UL SoC
  10. * up to 512 MB RAM
  11. * eMMC on uSDHC2
  12. Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
  13. Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
  14. Signed-off-by: Shawn Guo <shawnguo@kernel.org>
  15. ---
  16. arch/arm/boot/dts/imx6ul-litesom.dtsi | 82 +++++++++++++++++++++++++++++++++++
  17. 1 file changed, 82 insertions(+)
  18. create mode 100644 arch/arm/boot/dts/imx6ul-litesom.dtsi
  19. diff --git a/arch/arm/boot/dts/imx6ul-litesom.dtsi b/arch/arm/boot/dts/imx6ul-litesom.dtsi
  20. new file mode 100644
  21. index 000000000000..461292d33417
  22. --- /dev/null
  23. +++ b/arch/arm/boot/dts/imx6ul-litesom.dtsi
  24. @@ -0,0 +1,82 @@
  25. +/*
  26. + * Copyright 2016 Grinn
  27. + *
  28. + * Author: Marcin Niestroj <m.niestroj@grinn-global.com>
  29. + *
  30. + * This file is dual-licensed: you can use it either under the terms
  31. + * of the GPL or the X11 license, at your option. Note that this dual
  32. + * licensing only applies to this file, and not this project as a
  33. + * whole.
  34. + *
  35. + * a) This file is free software; you can redistribute it and/or
  36. + * modify it under the terms of the GNU General Public License
  37. + * version 2 as published by the Free Software Foundation.
  38. + *
  39. + * This file is distributed in the hope that it will be useful
  40. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  41. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  42. + * GNU General Public License for more details.
  43. + *
  44. + * Or, alternatively
  45. + *
  46. + * b) Permission is hereby granted, free of charge, to any person
  47. + * obtaining a copy of this software and associated documentation
  48. + * files (the "Software"), to deal in the Software without
  49. + * restriction, including without limitation the rights to use
  50. + * copy, modify, merge, publish, distribute, sublicense, and/or
  51. + * sell copies of the Software, and to permit persons to whom the
  52. + * Software is furnished to do so, subject to the following
  53. + * conditions:
  54. + *
  55. + * The above copyright notice and this permission notice shall be
  56. + * included in all copies or substantial portions of the Software.
  57. + *
  58. + * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
  59. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  60. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  61. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  62. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
  63. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  64. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  65. + * OTHER DEALINGS IN THE SOFTWARE.
  66. + */
  67. +
  68. +#include "imx6ul.dtsi"
  69. +
  70. +/ {
  71. + model = "Grinn i.MX6UL liteSOM";
  72. + compatible = "grinn,imx6ul-litesom", "fsl,imx6ul";
  73. +
  74. + memory {
  75. + reg = <0x80000000 0x20000000>;
  76. + };
  77. +};
  78. +
  79. +&iomuxc {
  80. + pinctrl_usdhc2: usdhc2grp {
  81. + fsl,pins = <
  82. + MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x10069
  83. + MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x17059
  84. + MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17059
  85. + MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17059
  86. + MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17059
  87. + MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17059
  88. + MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x17059
  89. + MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x17059
  90. + MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x17059
  91. + MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x17059
  92. + MX6UL_PAD_NAND_ALE__USDHC2_RESET_B 0x17059
  93. + >;
  94. + };
  95. +};
  96. +
  97. +&usdhc2 {
  98. + pinctrl-names = "default";
  99. + pinctrl-0 = <&pinctrl_usdhc2>;
  100. + no-1-8-v;
  101. + non-removable;
  102. + keep-power-in-suspend;
  103. + wakeup-source;
  104. + bus-width = <8>;
  105. + status = "okay";
  106. +};
  107. --
  108. 2.11.0