ls1021a-twr.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright 2013-2014 Freescale Semiconductor, Inc.
  4. * Copyright 2018 NXP
  5. */
  6. /dts-v1/;
  7. #include "ls1021a.dtsi"
  8. / {
  9. model = "LS1021A TWR Board";
  10. compatible = "fsl,ls1021a-twr", "fsl,ls1021a";
  11. aliases {
  12. enet2_rgmii_phy = &rgmii_phy1;
  13. enet0_sgmii_phy = &sgmii_phy2;
  14. enet1_sgmii_phy = &sgmii_phy0;
  15. };
  16. sys_mclk: clock-mclk {
  17. compatible = "fixed-clock";
  18. #clock-cells = <0>;
  19. clock-frequency = <24576000>;
  20. };
  21. reg_3p3v: regulator {
  22. compatible = "regulator-fixed";
  23. regulator-name = "3P3V";
  24. regulator-min-microvolt = <3300000>;
  25. regulator-max-microvolt = <3300000>;
  26. regulator-always-on;
  27. };
  28. sound {
  29. compatible = "simple-audio-card";
  30. simple-audio-card,format = "i2s";
  31. simple-audio-card,widgets =
  32. "Microphone", "Microphone Jack",
  33. "Headphone", "Headphone Jack",
  34. "Speaker", "Speaker Ext",
  35. "Line", "Line In Jack";
  36. simple-audio-card,routing =
  37. "MIC_IN", "Microphone Jack",
  38. "Microphone Jack", "Mic Bias",
  39. "LINE_IN", "Line In Jack",
  40. "Headphone Jack", "HP_OUT",
  41. "Speaker Ext", "LINE_OUT";
  42. simple-audio-card,cpu {
  43. sound-dai = <&sai1>;
  44. frame-master;
  45. bitclock-master;
  46. };
  47. simple-audio-card,codec {
  48. sound-dai = <&codec>;
  49. frame-master;
  50. bitclock-master;
  51. };
  52. };
  53. panel: panel {
  54. compatible = "nec,nl4827hc19-05b";
  55. port {
  56. panel_in: endpoint {
  57. remote-endpoint = <&dcu_out>;
  58. };
  59. };
  60. };
  61. };
  62. &dcu {
  63. status = "okay";
  64. port {
  65. dcu_out: endpoint {
  66. remote-endpoint = <&panel_in>;
  67. };
  68. };
  69. };
  70. &dspi1 {
  71. bus-num = <0>;
  72. status = "okay";
  73. dspiflash: s25fl064k@0 {
  74. #address-cells = <1>;
  75. #size-cells = <1>;
  76. compatible = "spansion,s25fl064k";
  77. spi-max-frequency = <16000000>;
  78. spi-cpol;
  79. spi-cpha;
  80. reg = <0>;
  81. };
  82. };
  83. &enet0 {
  84. tbi-handle = <&tbi0>;
  85. phy-handle = <&sgmii_phy2>;
  86. phy-connection-type = "sgmii";
  87. status = "okay";
  88. };
  89. &enet1 {
  90. tbi-handle = <&tbi1>;
  91. phy-handle = <&sgmii_phy0>;
  92. phy-connection-type = "sgmii";
  93. status = "okay";
  94. };
  95. &enet2 {
  96. phy-handle = <&rgmii_phy1>;
  97. phy-connection-type = "rgmii-id";
  98. status = "okay";
  99. };
  100. &i2c0 {
  101. status = "okay";
  102. ina220@40 {
  103. compatible = "ti,ina220";
  104. reg = <0x40>;
  105. shunt-resistor = <1000>;
  106. };
  107. ina220@41 {
  108. compatible = "ti,ina220";
  109. reg = <0x41>;
  110. shunt-resistor = <1000>;
  111. };
  112. };
  113. &i2c1 {
  114. status = "okay";
  115. codec: sgtl5000@a {
  116. #sound-dai-cells = <0>;
  117. compatible = "fsl,sgtl5000";
  118. reg = <0x0a>;
  119. VDDA-supply = <&reg_3p3v>;
  120. VDDIO-supply = <&reg_3p3v>;
  121. clocks = <&sys_mclk>;
  122. };
  123. };
  124. &ifc {
  125. #address-cells = <2>;
  126. #size-cells = <1>;
  127. /* NOR Flash on board */
  128. ranges = <0x0 0x0 0x0 0x60000000 0x08000000>;
  129. status = "okay";
  130. nor@0,0 {
  131. #address-cells = <1>;
  132. #size-cells = <1>;
  133. compatible = "cfi-flash";
  134. reg = <0x0 0x0 0x8000000>;
  135. big-endian;
  136. bank-width = <2>;
  137. device-width = <1>;
  138. };
  139. };
  140. &lpuart0 {
  141. status = "okay";
  142. };
  143. &mdio0 {
  144. sgmii_phy0: ethernet-phy@0 {
  145. reg = <0x0>;
  146. };
  147. rgmii_phy1: ethernet-phy@1 {
  148. reg = <0x1>;
  149. };
  150. sgmii_phy2: ethernet-phy@2 {
  151. reg = <0x2>;
  152. };
  153. tbi0: tbi-phy@1f {
  154. reg = <0x1f>;
  155. device_type = "tbi-phy";
  156. };
  157. };
  158. &mdio1 {
  159. tbi1: tbi-phy@1f {
  160. reg = <0x1f>;
  161. device_type = "tbi-phy";
  162. };
  163. };
  164. &esdhc {
  165. status = "okay";
  166. };
  167. &qspi {
  168. status = "okay";
  169. n25q128a130: flash@0 {
  170. compatible = "jedec,spi-nor";
  171. #address-cells = <1>;
  172. #size-cells = <1>;
  173. spi-max-frequency = <50000000>;
  174. reg = <0>;
  175. spi-rx-bus-width = <4>;
  176. spi-tx-bus-width = <4>;
  177. };
  178. };
  179. &sai1 {
  180. status = "okay";
  181. };
  182. &sata {
  183. status = "okay";
  184. };
  185. &uart0 {
  186. status = "okay";
  187. };
  188. &uart1 {
  189. status = "okay";
  190. };
  191. &can0 {
  192. status = "okay";
  193. };
  194. &can1 {
  195. status = "okay";
  196. };
  197. &can2 {
  198. status = "disabled";
  199. };
  200. &can3 {
  201. status = "disabled";
  202. };