r8a7795-salvator-xs.dts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the Salvator-X 2nd version board with R-Car H3 ES2.0
  4. *
  5. * Copyright (C) 2015-2017 Renesas Electronics Corp.
  6. */
  7. /dts-v1/;
  8. #include "r8a7795.dtsi"
  9. #include "salvator-xs.dtsi"
  10. / {
  11. model = "Renesas Salvator-X 2nd version board based on r8a7795 ES2.0+";
  12. compatible = "renesas,salvator-xs", "renesas,r8a7795";
  13. memory@48000000 {
  14. device_type = "memory";
  15. /* first 128MB is reserved for secure area. */
  16. reg = <0x0 0x48000000 0x0 0x38000000>;
  17. };
  18. memory@500000000 {
  19. device_type = "memory";
  20. reg = <0x5 0x00000000 0x0 0x40000000>;
  21. };
  22. memory@600000000 {
  23. device_type = "memory";
  24. reg = <0x6 0x00000000 0x0 0x40000000>;
  25. };
  26. memory@700000000 {
  27. device_type = "memory";
  28. reg = <0x7 0x00000000 0x0 0x40000000>;
  29. };
  30. };
  31. &du {
  32. clocks = <&cpg CPG_MOD 724>,
  33. <&cpg CPG_MOD 723>,
  34. <&cpg CPG_MOD 722>,
  35. <&cpg CPG_MOD 721>,
  36. <&cpg CPG_MOD 727>,
  37. <&versaclock6 1>,
  38. <&x21_clk>,
  39. <&x22_clk>,
  40. <&versaclock6 2>;
  41. clock-names = "du.0", "du.1", "du.2", "du.3", "lvds.0",
  42. "dclkin.0", "dclkin.1", "dclkin.2", "dclkin.3";
  43. };
  44. &ehci2 {
  45. status = "okay";
  46. };
  47. &ehci3 {
  48. dr_mode = "otg";
  49. status = "okay";
  50. };
  51. &hsusb3 {
  52. dr_mode = "otg";
  53. status = "okay";
  54. };
  55. &sound_card {
  56. dais = <&rsnd_port0 /* ak4613 */
  57. &rsnd_port1 /* HDMI0 */
  58. &rsnd_port2>; /* HDMI1 */
  59. };
  60. &hdmi0 {
  61. status = "okay";
  62. ports {
  63. port@1 {
  64. reg = <1>;
  65. rcar_dw_hdmi0_out: endpoint {
  66. remote-endpoint = <&hdmi0_con>;
  67. };
  68. };
  69. port@2 {
  70. reg = <2>;
  71. dw_hdmi0_snd_in: endpoint {
  72. remote-endpoint = <&rsnd_endpoint1>;
  73. };
  74. };
  75. };
  76. };
  77. &hdmi0_con {
  78. remote-endpoint = <&rcar_dw_hdmi0_out>;
  79. };
  80. &hdmi1 {
  81. status = "okay";
  82. ports {
  83. port@1 {
  84. reg = <1>;
  85. rcar_dw_hdmi1_out: endpoint {
  86. remote-endpoint = <&hdmi1_con>;
  87. };
  88. };
  89. port@2 {
  90. reg = <2>;
  91. dw_hdmi1_snd_in: endpoint {
  92. remote-endpoint = <&rsnd_endpoint2>;
  93. };
  94. };
  95. };
  96. };
  97. &hdmi1_con {
  98. remote-endpoint = <&rcar_dw_hdmi1_out>;
  99. };
  100. &ohci2 {
  101. status = "okay";
  102. };
  103. &ohci3 {
  104. dr_mode = "otg";
  105. status = "okay";
  106. };
  107. &rcar_sound {
  108. ports {
  109. /* rsnd_port0 is on salvator-common */
  110. rsnd_port1: port@1 {
  111. rsnd_endpoint1: endpoint {
  112. remote-endpoint = <&dw_hdmi0_snd_in>;
  113. dai-format = "i2s";
  114. bitclock-master = <&rsnd_endpoint1>;
  115. frame-master = <&rsnd_endpoint1>;
  116. playback = <&ssi2>;
  117. };
  118. };
  119. rsnd_port2: port@2 {
  120. rsnd_endpoint2: endpoint {
  121. remote-endpoint = <&dw_hdmi1_snd_in>;
  122. dai-format = "i2s";
  123. bitclock-master = <&rsnd_endpoint2>;
  124. frame-master = <&rsnd_endpoint2>;
  125. playback = <&ssi3>;
  126. };
  127. };
  128. };
  129. };
  130. &pfc {
  131. usb2_pins: usb2 {
  132. groups = "usb2";
  133. function = "usb2";
  134. };
  135. /*
  136. * - On Salvator-X[S], GP6_3[01] are connected to ADV7482 as irq pins
  137. * (when SW31 is the default setting on Salvator-XS).
  138. * - If SW31 is the default setting, you cannot use USB2.0 ch3 on
  139. * r8a7795 with Salvator-XS.
  140. * Hence the SW31 setting must be changed like 2) below.
  141. * 1) Default setting of SW31: ON-ON-OFF-OFF-OFF-OFF:
  142. * - Connect GP6_3[01] to ADV7842.
  143. * 2) Changed setting of SW31: OFF-OFF-ON-ON-ON-ON:
  144. * - Connect GP6_3[01] to BD082065 (USB2.0 ch3's host power).
  145. * - Connect GP6_{04,21} to ADV7842.
  146. */
  147. usb2_ch3_pins: usb2_ch3 {
  148. groups = "usb2_ch3";
  149. function = "usb2_ch3";
  150. };
  151. };
  152. &usb2_phy2 {
  153. pinctrl-0 = <&usb2_pins>;
  154. pinctrl-names = "default";
  155. status = "okay";
  156. };
  157. &usb2_phy3 {
  158. pinctrl-0 = <&usb2_ch3_pins>;
  159. pinctrl-names = "default";
  160. status = "okay";
  161. };