uniphier-pro4.dtsi 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. /*
  2. * Device Tree Source for UniPhier Pro4 SoC
  3. *
  4. * Copyright (C) 2015-2016 Socionext Inc.
  5. * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  6. *
  7. * This file is dual-licensed: you can use it either under the terms
  8. * of the GPL or the X11 license, at your option. Note that this dual
  9. * licensing only applies to this file, and not this project as a
  10. * whole.
  11. *
  12. * a) This file is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU General Public License as
  14. * published by the Free Software Foundation; either version 2 of the
  15. * License, or (at your option) any later version.
  16. *
  17. * This file is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * Or, alternatively,
  23. *
  24. * b) Permission is hereby granted, free of charge, to any person
  25. * obtaining a copy of this software and associated documentation
  26. * files (the "Software"), to deal in the Software without
  27. * restriction, including without limitation the rights to use,
  28. * copy, modify, merge, publish, distribute, sublicense, and/or
  29. * sell copies of the Software, and to permit persons to whom the
  30. * Software is furnished to do so, subject to the following
  31. * conditions:
  32. *
  33. * The above copyright notice and this permission notice shall be
  34. * included in all copies or substantial portions of the Software.
  35. *
  36. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  37. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  38. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  39. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  40. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  41. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  42. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  43. * OTHER DEALINGS IN THE SOFTWARE.
  44. */
  45. /include/ "uniphier-common32.dtsi"
  46. / {
  47. compatible = "socionext,uniphier-pro4";
  48. cpus {
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. cpu@0 {
  52. device_type = "cpu";
  53. compatible = "arm,cortex-a9";
  54. reg = <0>;
  55. enable-method = "psci";
  56. next-level-cache = <&l2>;
  57. };
  58. cpu@1 {
  59. device_type = "cpu";
  60. compatible = "arm,cortex-a9";
  61. reg = <1>;
  62. enable-method = "psci";
  63. next-level-cache = <&l2>;
  64. };
  65. };
  66. clocks {
  67. arm_timer_clk: arm_timer_clk {
  68. #clock-cells = <0>;
  69. compatible = "fixed-clock";
  70. clock-frequency = <50000000>;
  71. };
  72. };
  73. };
  74. &soc {
  75. l2: l2-cache@500c0000 {
  76. compatible = "socionext,uniphier-system-cache";
  77. reg = <0x500c0000 0x2000>, <0x503c0100 0x4>, <0x506c0000 0x400>;
  78. interrupts = <0 174 4>, <0 175 4>;
  79. cache-unified;
  80. cache-size = <(768 * 1024)>;
  81. cache-sets = <256>;
  82. cache-line-size = <128>;
  83. cache-level = <2>;
  84. };
  85. i2c0: i2c@58780000 {
  86. compatible = "socionext,uniphier-fi2c";
  87. status = "disabled";
  88. reg = <0x58780000 0x80>;
  89. #address-cells = <1>;
  90. #size-cells = <0>;
  91. interrupts = <0 41 4>;
  92. pinctrl-names = "default";
  93. pinctrl-0 = <&pinctrl_i2c0>;
  94. clocks = <&peri_clk 4>;
  95. clock-frequency = <100000>;
  96. };
  97. i2c1: i2c@58781000 {
  98. compatible = "socionext,uniphier-fi2c";
  99. status = "disabled";
  100. reg = <0x58781000 0x80>;
  101. #address-cells = <1>;
  102. #size-cells = <0>;
  103. interrupts = <0 42 4>;
  104. pinctrl-names = "default";
  105. pinctrl-0 = <&pinctrl_i2c1>;
  106. clocks = <&peri_clk 5>;
  107. clock-frequency = <100000>;
  108. };
  109. i2c2: i2c@58782000 {
  110. compatible = "socionext,uniphier-fi2c";
  111. status = "disabled";
  112. reg = <0x58782000 0x80>;
  113. #address-cells = <1>;
  114. #size-cells = <0>;
  115. interrupts = <0 43 4>;
  116. pinctrl-names = "default";
  117. pinctrl-0 = <&pinctrl_i2c2>;
  118. clocks = <&peri_clk 6>;
  119. clock-frequency = <100000>;
  120. };
  121. i2c3: i2c@58783000 {
  122. compatible = "socionext,uniphier-fi2c";
  123. status = "disabled";
  124. reg = <0x58783000 0x80>;
  125. #address-cells = <1>;
  126. #size-cells = <0>;
  127. interrupts = <0 44 4>;
  128. pinctrl-names = "default";
  129. pinctrl-0 = <&pinctrl_i2c3>;
  130. clocks = <&peri_clk 7>;
  131. clock-frequency = <100000>;
  132. };
  133. /* i2c4 does not exist */
  134. /* chip-internal connection for DMD */
  135. i2c5: i2c@58785000 {
  136. compatible = "socionext,uniphier-fi2c";
  137. reg = <0x58785000 0x80>;
  138. #address-cells = <1>;
  139. #size-cells = <0>;
  140. interrupts = <0 25 4>;
  141. clocks = <&peri_clk 9>;
  142. clock-frequency = <400000>;
  143. };
  144. /* chip-internal connection for HDMI */
  145. i2c6: i2c@58786000 {
  146. compatible = "socionext,uniphier-fi2c";
  147. reg = <0x58786000 0x80>;
  148. #address-cells = <1>;
  149. #size-cells = <0>;
  150. interrupts = <0 26 4>;
  151. clocks = <&peri_clk 10>;
  152. clock-frequency = <400000>;
  153. };
  154. usb2: usb@5a800100 {
  155. compatible = "socionext,uniphier-ehci", "generic-ehci";
  156. status = "disabled";
  157. reg = <0x5a800100 0x100>;
  158. interrupts = <0 80 4>;
  159. pinctrl-names = "default";
  160. pinctrl-0 = <&pinctrl_usb2>;
  161. clocks = <&mio_clk 7>, <&mio_clk 8>, <&mio_clk 12>;
  162. resets = <&mio_rst 7>, <&mio_rst 8>, <&mio_rst 12>, <&sys_rst 8>;
  163. };
  164. usb3: usb@5a810100 {
  165. compatible = "socionext,uniphier-ehci", "generic-ehci";
  166. status = "disabled";
  167. reg = <0x5a810100 0x100>;
  168. interrupts = <0 81 4>;
  169. pinctrl-names = "default";
  170. pinctrl-0 = <&pinctrl_usb3>;
  171. clocks = <&mio_clk 7>, <&mio_clk 9>, <&mio_clk 13>;
  172. resets = <&mio_rst 7>, <&mio_rst 9>, <&mio_rst 13>, <&sys_rst 8>;
  173. };
  174. };
  175. &refclk {
  176. clock-frequency = <25000000>;
  177. };
  178. &mio_clk {
  179. compatible = "socionext,uniphier-pro4-mio-clock";
  180. };
  181. &mio_rst {
  182. compatible = "socionext,uniphier-pro4-mio-reset";
  183. resets = <&sys_rst 7>;
  184. };
  185. &peri_clk {
  186. compatible = "socionext,uniphier-pro4-peri-clock";
  187. };
  188. &peri_rst {
  189. compatible = "socionext,uniphier-pro4-peri-reset";
  190. };
  191. &pinctrl {
  192. compatible = "socionext,uniphier-pro4-pinctrl";
  193. };
  194. &sys_clk {
  195. compatible = "socionext,uniphier-pro4-clock";
  196. };
  197. &sys_rst {
  198. compatible = "socionext,uniphier-pro4-reset";
  199. };