ls1021a-twr.dts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. /*
  2. * Copyright 2013-2014 Freescale Semiconductor, Inc.
  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 as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (at your option) any later version.
  13. *
  14. * This file is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public
  20. * License along with this file; if not, write to the Free
  21. * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
  22. * MA 02110-1301 USA
  23. *
  24. * Or, alternatively,
  25. *
  26. * b) Permission is hereby granted, free of charge, to any person
  27. * obtaining a copy of this software and associated documentation
  28. * files (the "Software"), to deal in the Software without
  29. * restriction, including without limitation the rights to use,
  30. * copy, modify, merge, publish, distribute, sublicense, and/or
  31. * sell copies of the Software, and to permit persons to whom the
  32. * Software is furnished to do so, subject to the following
  33. * conditions:
  34. *
  35. * The above copyright notice and this permission notice shall be
  36. * included in all copies or substantial portions of the Software.
  37. *
  38. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  39. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  40. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  41. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  42. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  43. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  44. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  45. * OTHER DEALINGS IN THE SOFTWARE.
  46. */
  47. /dts-v1/;
  48. #include "ls1021a.dtsi"
  49. / {
  50. model = "LS1021A TWR Board";
  51. aliases {
  52. enet2_rgmii_phy = &rgmii_phy1;
  53. enet0_sgmii_phy = &sgmii_phy2;
  54. enet1_sgmii_phy = &sgmii_phy0;
  55. };
  56. sys_mclk: clock-mclk {
  57. compatible = "fixed-clock";
  58. #clock-cells = <0>;
  59. clock-frequency = <24576000>;
  60. };
  61. regulators {
  62. compatible = "simple-bus";
  63. #address-cells = <1>;
  64. #size-cells = <0>;
  65. reg_3p3v: regulator@0 {
  66. compatible = "regulator-fixed";
  67. reg = <0>;
  68. regulator-name = "3P3V";
  69. regulator-min-microvolt = <3300000>;
  70. regulator-max-microvolt = <3300000>;
  71. regulator-always-on;
  72. };
  73. };
  74. sound {
  75. compatible = "simple-audio-card";
  76. simple-audio-card,format = "i2s";
  77. simple-audio-card,widgets =
  78. "Microphone", "Microphone Jack",
  79. "Headphone", "Headphone Jack",
  80. "Speaker", "Speaker Ext",
  81. "Line", "Line In Jack";
  82. simple-audio-card,routing =
  83. "MIC_IN", "Microphone Jack",
  84. "Microphone Jack", "Mic Bias",
  85. "LINE_IN", "Line In Jack",
  86. "Headphone Jack", "HP_OUT",
  87. "Speaker Ext", "LINE_OUT";
  88. simple-audio-card,cpu {
  89. sound-dai = <&sai1>;
  90. frame-master;
  91. bitclock-master;
  92. };
  93. simple-audio-card,codec {
  94. sound-dai = <&codec>;
  95. frame-master;
  96. bitclock-master;
  97. };
  98. };
  99. panel: panel {
  100. compatible = "nec,nl4827hc19-05b";
  101. port {
  102. panel_in: endpoint {
  103. remote-endpoint = <&dcu_out>;
  104. };
  105. };
  106. };
  107. };
  108. &dcu {
  109. status = "okay";
  110. port {
  111. dcu_out: endpoint {
  112. remote-endpoint = <&panel_in>;
  113. };
  114. };
  115. };
  116. &dspi1 {
  117. bus-num = <0>;
  118. status = "okay";
  119. dspiflash: s25fl064k@0 {
  120. #address-cells = <1>;
  121. #size-cells = <1>;
  122. compatible = "spansion,s25fl064k";
  123. spi-max-frequency = <16000000>;
  124. spi-cpol;
  125. spi-cpha;
  126. reg = <0>;
  127. };
  128. };
  129. &enet0 {
  130. tbi-handle = <&tbi1>;
  131. phy-handle = <&sgmii_phy2>;
  132. phy-connection-type = "sgmii";
  133. status = "okay";
  134. };
  135. &enet1 {
  136. tbi-handle = <&tbi1>;
  137. phy-handle = <&sgmii_phy0>;
  138. phy-connection-type = "sgmii";
  139. status = "okay";
  140. };
  141. &enet2 {
  142. phy-handle = <&rgmii_phy1>;
  143. phy-connection-type = "rgmii-id";
  144. status = "okay";
  145. };
  146. &i2c0 {
  147. status = "okay";
  148. ina220@40 {
  149. compatible = "ti,ina220";
  150. reg = <0x40>;
  151. shunt-resistor = <1000>;
  152. };
  153. ina220@41 {
  154. compatible = "ti,ina220";
  155. reg = <0x41>;
  156. shunt-resistor = <1000>;
  157. };
  158. };
  159. &i2c1 {
  160. status = "okay";
  161. codec: sgtl5000@a {
  162. #sound-dai-cells = <0>;
  163. compatible = "fsl,sgtl5000";
  164. reg = <0x0a>;
  165. VDDA-supply = <&reg_3p3v>;
  166. VDDIO-supply = <&reg_3p3v>;
  167. clocks = <&sys_mclk>;
  168. };
  169. };
  170. &ifc {
  171. #address-cells = <2>;
  172. #size-cells = <1>;
  173. /* NOR Flash on board */
  174. ranges = <0x0 0x0 0x0 0x60000000 0x08000000>;
  175. status = "okay";
  176. nor@0,0 {
  177. #address-cells = <1>;
  178. #size-cells = <1>;
  179. compatible = "cfi-flash";
  180. reg = <0x0 0x0 0x8000000>;
  181. bank-width = <2>;
  182. device-width = <1>;
  183. };
  184. };
  185. &lpuart0 {
  186. status = "okay";
  187. };
  188. &mdio0 {
  189. sgmii_phy0: ethernet-phy@0 {
  190. reg = <0x0>;
  191. };
  192. rgmii_phy1: ethernet-phy@1 {
  193. reg = <0x1>;
  194. };
  195. sgmii_phy2: ethernet-phy@2 {
  196. reg = <0x2>;
  197. };
  198. tbi1: tbi-phy@1f {
  199. reg = <0x1f>;
  200. device_type = "tbi-phy";
  201. };
  202. };
  203. &sai1 {
  204. status = "okay";
  205. };
  206. &sata {
  207. status = "okay";
  208. };
  209. &uart0 {
  210. status = "okay";
  211. };
  212. &uart1 {
  213. status = "okay";
  214. };