3002-dts-ls1043a-add-LS1043ARDB-board-support.patch 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. From 57d949256241fb79b669bbca0426c2d74a3dfc6e Mon Sep 17 00:00:00 2001
  2. From: Shaohui Xie <Shaohui.Xie@freescale.com>
  3. Date: Fri, 8 Jul 2016 10:27:39 +0800
  4. Subject: [PATCH 02/70] dts/ls1043a: add LS1043ARDB board support
  5. commit 9a6fce16a82d3412c9350b9f08eacebaa81c0a3d
  6. [context adjustment]
  7. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
  8. Signed-off-by: Mingkai Hu <Mingkai.Hu@freescale.com>
  9. Signed-off-by: Wenbin Song <Wenbin.Song@freescale.com>
  10. Signed-off-by: Hou Zhiqiang <B48286@freescale.com>
  11. Signed-off-by: Mingkai Hu <mingkai.hu@nxp.com>
  12. Integrated-by: Zhao Qiang <qiang.zhao@nxp.com>
  13. ---
  14. arch/arm64/boot/dts/freescale/Makefile | 1 +
  15. arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 117 +++++++++++++++++++++
  16. 2 files changed, 118 insertions(+)
  17. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts
  18. --- a/arch/arm64/boot/dts/freescale/Makefile
  19. +++ b/arch/arm64/boot/dts/freescale/Makefile
  20. @@ -1,6 +1,7 @@
  21. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-qds.dtb
  22. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-rdb.dtb
  23. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-simu.dtb
  24. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb
  25. always := $(dtb-y)
  26. subdir-y := $(dts-dirs)
  27. --- /dev/null
  28. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts
  29. @@ -0,0 +1,117 @@
  30. +/*
  31. + * Device Tree Include file for Freescale Layerscape-1043A family SoC.
  32. + *
  33. + * Copyright 2014-2015, Freescale Semiconductor
  34. + *
  35. + * Mingkai Hu <Mingkai.hu@freescale.com>
  36. + *
  37. + * This file is dual-licensed: you can use it either under the terms
  38. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  39. + * licensing only applies to this file, and not this project as a
  40. + * whole.
  41. + *
  42. + * a) This library is free software; you can redistribute it and/or
  43. + * modify it under the terms of the GNU General Public License as
  44. + * published by the Free Software Foundation; either version 2 of the
  45. + * License, or (at your option) any later version.
  46. + *
  47. + * This library is distributed in the hope that it will be useful,
  48. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  49. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  50. + * GNU General Public License for more details.
  51. + *
  52. + * Or, alternatively,
  53. + *
  54. + * b) Permission is hereby granted, free of charge, to any person
  55. + * obtaining a copy of this software and associated documentation
  56. + * files (the "Software"), to deal in the Software without
  57. + * restriction, including without limitation the rights to use,
  58. + * copy, modify, merge, publish, distribute, sublicense, and/or
  59. + * sell copies of the Software, and to permit persons to whom the
  60. + * Software is furnished to do so, subject to the following
  61. + * conditions:
  62. + *
  63. + * The above copyright notice and this permission notice shall be
  64. + * included in all copies or substantial portions of the Software.
  65. + *
  66. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  67. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  68. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  69. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  70. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  71. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  72. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  73. + * OTHER DEALINGS IN THE SOFTWARE.
  74. + */
  75. +
  76. +/dts-v1/;
  77. +#include "fsl-ls1043a.dtsi"
  78. +
  79. +/ {
  80. + model = "LS1043A RDB Board";
  81. + compatible = "fsl,ls1043a-rdb", "fsl,ls1043a";
  82. +};
  83. +
  84. +&i2c0 {
  85. + status = "okay";
  86. + ina220@40 {
  87. + compatible = "ti,ina220";
  88. + reg = <0x40>;
  89. + shunt-resistor = <1000>;
  90. + };
  91. + adt7461a@4c {
  92. + compatible = "adi,adt7461";
  93. + reg = <0x4c>;
  94. + };
  95. + eeprom@56 {
  96. + compatible = "at24,24c512";
  97. + reg = <0x52>;
  98. + };
  99. + eeprom@57 {
  100. + compatible = "at24,24c512";
  101. + reg = <0x53>;
  102. + };
  103. + rtc@68 {
  104. + compatible = "pericom,pt7c4338";
  105. + reg = <0x68>;
  106. + };
  107. +};
  108. +
  109. +&ifc {
  110. + status = "okay";
  111. + #address-cells = <2>;
  112. + #size-cells = <1>;
  113. + /* NOR, NAND Flashes and FPGA on board */
  114. + ranges = <0x0 0x0 0x0 0x60000000 0x08000000
  115. + 0x1 0x0 0x0 0x7e800000 0x00010000
  116. + 0x2 0x0 0x0 0x7fb00000 0x00000100>;
  117. +
  118. + nor@0,0 {
  119. + compatible = "cfi-flash";
  120. + #address-cells = <1>;
  121. + #size-cells = <1>;
  122. + reg = <0x0 0x0 0x8000000>;
  123. + bank-width = <2>;
  124. + device-width = <1>;
  125. + };
  126. +
  127. + nand@1,0 {
  128. + compatible = "fsl,ifc-nand";
  129. + #address-cells = <1>;
  130. + #size-cells = <1>;
  131. + reg = <0x1 0x0 0x10000>;
  132. + };
  133. +
  134. + cpld: board-control@2,0 {
  135. + compatible = "fsl,ls1043ardb-cpld";
  136. + reg = <0x2 0x0 0x0000100>;
  137. + };
  138. +};
  139. +
  140. +&duart0 {
  141. + status = "okay";
  142. +};
  143. +
  144. +&duart1 {
  145. + status = "okay";
  146. +};