uniphier-ld4.dtsi 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. /*
  2. * Device Tree Source for UniPhier LD4 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-ld4";
  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. };
  59. clocks {
  60. arm_timer_clk: arm_timer_clk {
  61. #clock-cells = <0>;
  62. compatible = "fixed-clock";
  63. clock-frequency = <50000000>;
  64. };
  65. };
  66. };
  67. &soc {
  68. l2: l2-cache@500c0000 {
  69. compatible = "socionext,uniphier-system-cache";
  70. reg = <0x500c0000 0x2000>, <0x503c0100 0x4>, <0x506c0000 0x400>;
  71. interrupts = <0 174 4>, <0 175 4>;
  72. cache-unified;
  73. cache-size = <(512 * 1024)>;
  74. cache-sets = <256>;
  75. cache-line-size = <128>;
  76. cache-level = <2>;
  77. };
  78. i2c0: i2c@58400000 {
  79. compatible = "socionext,uniphier-i2c";
  80. status = "disabled";
  81. reg = <0x58400000 0x40>;
  82. #address-cells = <1>;
  83. #size-cells = <0>;
  84. interrupts = <0 41 1>;
  85. pinctrl-names = "default";
  86. pinctrl-0 = <&pinctrl_i2c0>;
  87. clocks = <&peri_clk 4>;
  88. clock-frequency = <100000>;
  89. };
  90. i2c1: i2c@58480000 {
  91. compatible = "socionext,uniphier-i2c";
  92. status = "disabled";
  93. reg = <0x58480000 0x40>;
  94. #address-cells = <1>;
  95. #size-cells = <0>;
  96. interrupts = <0 42 1>;
  97. pinctrl-names = "default";
  98. pinctrl-0 = <&pinctrl_i2c1>;
  99. clocks = <&peri_clk 5>;
  100. clock-frequency = <100000>;
  101. };
  102. /* chip-internal connection for DMD */
  103. i2c2: i2c@58500000 {
  104. compatible = "socionext,uniphier-i2c";
  105. reg = <0x58500000 0x40>;
  106. #address-cells = <1>;
  107. #size-cells = <0>;
  108. interrupts = <0 43 1>;
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&pinctrl_i2c2>;
  111. clocks = <&peri_clk 6>;
  112. clock-frequency = <400000>;
  113. };
  114. i2c3: i2c@58580000 {
  115. compatible = "socionext,uniphier-i2c";
  116. status = "disabled";
  117. reg = <0x58580000 0x40>;
  118. #address-cells = <1>;
  119. #size-cells = <0>;
  120. interrupts = <0 44 1>;
  121. pinctrl-names = "default";
  122. pinctrl-0 = <&pinctrl_i2c3>;
  123. clocks = <&peri_clk 7>;
  124. clock-frequency = <100000>;
  125. };
  126. usb0: usb@5a800100 {
  127. compatible = "socionext,uniphier-ehci", "generic-ehci";
  128. status = "disabled";
  129. reg = <0x5a800100 0x100>;
  130. interrupts = <0 80 4>;
  131. pinctrl-names = "default";
  132. pinctrl-0 = <&pinctrl_usb0>;
  133. clocks = <&mio_clk 7>, <&mio_clk 8>, <&mio_clk 12>;
  134. resets = <&mio_rst 7>, <&mio_rst 8>, <&mio_rst 12>, <&sys_rst 8>;
  135. };
  136. usb1: usb@5a810100 {
  137. compatible = "socionext,uniphier-ehci", "generic-ehci";
  138. status = "disabled";
  139. reg = <0x5a810100 0x100>;
  140. interrupts = <0 81 4>;
  141. pinctrl-names = "default";
  142. pinctrl-0 = <&pinctrl_usb1>;
  143. clocks = <&mio_clk 7>, <&mio_clk 9>, <&mio_clk 13>;
  144. resets = <&mio_rst 7>, <&mio_rst 9>, <&mio_rst 13>, <&sys_rst 8>;
  145. };
  146. usb2: usb@5a820100 {
  147. compatible = "socionext,uniphier-ehci", "generic-ehci";
  148. status = "disabled";
  149. reg = <0x5a820100 0x100>;
  150. interrupts = <0 82 4>;
  151. pinctrl-names = "default";
  152. pinctrl-0 = <&pinctrl_usb2>;
  153. clocks = <&mio_clk 7>, <&mio_clk 10>, <&mio_clk 14>;
  154. resets = <&mio_rst 7>, <&mio_rst 10>, <&mio_rst 14>, <&sys_rst 8>;
  155. };
  156. };
  157. &refclk {
  158. clock-frequency = <24576000>;
  159. };
  160. &serial3 {
  161. interrupts = <0 29 4>;
  162. };
  163. &mio_clk {
  164. compatible = "socionext,uniphier-ld4-mio-clock";
  165. };
  166. &mio_rst {
  167. compatible = "socionext,uniphier-ld4-mio-reset";
  168. resets = <&sys_rst 7>;
  169. };
  170. &peri_clk {
  171. compatible = "socionext,uniphier-ld4-peri-clock";
  172. };
  173. &peri_rst {
  174. compatible = "socionext,uniphier-ld4-peri-reset";
  175. };
  176. &pinctrl {
  177. compatible = "socionext,uniphier-ld4-pinctrl";
  178. };
  179. &sys_clk {
  180. compatible = "socionext,uniphier-ld4-clock";
  181. };
  182. &sys_rst {
  183. compatible = "socionext,uniphier-ld4-reset";
  184. };