emev2.dtsi 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the Emma Mobile EV2 SoC
  4. *
  5. * Copyright (C) 2012 Renesas Solutions Corp.
  6. */
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. #include <dt-bindings/interrupt-controller/irq.h>
  9. / {
  10. compatible = "renesas,emev2";
  11. interrupt-parent = <&gic>;
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. aliases {
  15. gpio0 = &gpio0;
  16. gpio1 = &gpio1;
  17. gpio2 = &gpio2;
  18. gpio3 = &gpio3;
  19. gpio4 = &gpio4;
  20. i2c0 = &iic0;
  21. i2c1 = &iic1;
  22. };
  23. cpus {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. cpu0: cpu@0 {
  27. device_type = "cpu";
  28. compatible = "arm,cortex-a9";
  29. reg = <0>;
  30. clock-frequency = <533000000>;
  31. };
  32. cpu1: cpu@1 {
  33. device_type = "cpu";
  34. compatible = "arm,cortex-a9";
  35. reg = <1>;
  36. clock-frequency = <533000000>;
  37. };
  38. };
  39. gic: interrupt-controller@e0020000 {
  40. compatible = "arm,pl390";
  41. interrupt-controller;
  42. #interrupt-cells = <3>;
  43. reg = <0xe0028000 0x1000>,
  44. <0xe0020000 0x0100>;
  45. };
  46. pmu {
  47. compatible = "arm,cortex-a9-pmu";
  48. interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
  49. <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
  50. interrupt-affinity = <&cpu0>, <&cpu1>;
  51. };
  52. clocks@e0110000 {
  53. compatible = "renesas,emev2-smu";
  54. reg = <0xe0110000 0x10000>;
  55. #address-cells = <2>;
  56. #size-cells = <0>;
  57. c32ki: c32ki {
  58. compatible = "fixed-clock";
  59. clock-frequency = <32768>;
  60. #clock-cells = <0>;
  61. };
  62. iic0_sclkdiv: iic0_sclkdiv@624,0 {
  63. compatible = "renesas,emev2-smu-clkdiv";
  64. reg = <0x624 0>;
  65. clocks = <&pll3_fo>;
  66. #clock-cells = <0>;
  67. };
  68. iic0_sclk: iic0_sclk@48c,1 {
  69. compatible = "renesas,emev2-smu-gclk";
  70. reg = <0x48c 1>;
  71. clocks = <&iic0_sclkdiv>;
  72. #clock-cells = <0>;
  73. };
  74. iic1_sclkdiv: iic1_sclkdiv@624,16 {
  75. compatible = "renesas,emev2-smu-clkdiv";
  76. reg = <0x624 16>;
  77. clocks = <&pll3_fo>;
  78. #clock-cells = <0>;
  79. };
  80. iic1_sclk: iic1_sclk@490,1 {
  81. compatible = "renesas,emev2-smu-gclk";
  82. reg = <0x490 1>;
  83. clocks = <&iic1_sclkdiv>;
  84. #clock-cells = <0>;
  85. };
  86. pll3_fo: pll3_fo {
  87. compatible = "fixed-factor-clock";
  88. clocks = <&c32ki>;
  89. clock-div = <1>;
  90. clock-mult = <7000>;
  91. #clock-cells = <0>;
  92. };
  93. usia_u0_sclkdiv: usia_u0_sclkdiv@610,0 {
  94. compatible = "renesas,emev2-smu-clkdiv";
  95. reg = <0x610 0>;
  96. clocks = <&pll3_fo>;
  97. #clock-cells = <0>;
  98. };
  99. usib_u1_sclkdiv: usib_u1_sclkdiv@65c,0 {
  100. compatible = "renesas,emev2-smu-clkdiv";
  101. reg = <0x65c 0>;
  102. clocks = <&pll3_fo>;
  103. #clock-cells = <0>;
  104. };
  105. usib_u2_sclkdiv: usib_u2_sclkdiv@65c,16 {
  106. compatible = "renesas,emev2-smu-clkdiv";
  107. reg = <0x65c 16>;
  108. clocks = <&pll3_fo>;
  109. #clock-cells = <0>;
  110. };
  111. usib_u3_sclkdiv: usib_u3_sclkdiv@660,0 {
  112. compatible = "renesas,emev2-smu-clkdiv";
  113. reg = <0x660 0>;
  114. clocks = <&pll3_fo>;
  115. #clock-cells = <0>;
  116. };
  117. usia_u0_sclk: usia_u0_sclk@4a0,1 {
  118. compatible = "renesas,emev2-smu-gclk";
  119. reg = <0x4a0 1>;
  120. clocks = <&usia_u0_sclkdiv>;
  121. #clock-cells = <0>;
  122. };
  123. usib_u1_sclk: usib_u1_sclk@4b8,1 {
  124. compatible = "renesas,emev2-smu-gclk";
  125. reg = <0x4b8 1>;
  126. clocks = <&usib_u1_sclkdiv>;
  127. #clock-cells = <0>;
  128. };
  129. usib_u2_sclk: usib_u2_sclk@4bc,1 {
  130. compatible = "renesas,emev2-smu-gclk";
  131. reg = <0x4bc 1>;
  132. clocks = <&usib_u2_sclkdiv>;
  133. #clock-cells = <0>;
  134. };
  135. usib_u3_sclk: usib_u3_sclk@4c0,1 {
  136. compatible = "renesas,emev2-smu-gclk";
  137. reg = <0x4c0 1>;
  138. clocks = <&usib_u3_sclkdiv>;
  139. #clock-cells = <0>;
  140. };
  141. sti_sclk: sti_sclk@528,1 {
  142. compatible = "renesas,emev2-smu-gclk";
  143. reg = <0x528 1>;
  144. clocks = <&c32ki>;
  145. #clock-cells = <0>;
  146. };
  147. };
  148. timer@e0180000 {
  149. compatible = "renesas,em-sti";
  150. reg = <0xe0180000 0x54>;
  151. interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
  152. clocks = <&sti_sclk>;
  153. clock-names = "sclk";
  154. };
  155. uart0: serial@e1020000 {
  156. compatible = "renesas,em-uart";
  157. reg = <0xe1020000 0x38>;
  158. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  159. clocks = <&usia_u0_sclk>;
  160. clock-names = "sclk";
  161. };
  162. uart1: serial@e1030000 {
  163. compatible = "renesas,em-uart";
  164. reg = <0xe1030000 0x38>;
  165. interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  166. clocks = <&usib_u1_sclk>;
  167. clock-names = "sclk";
  168. };
  169. uart2: serial@e1040000 {
  170. compatible = "renesas,em-uart";
  171. reg = <0xe1040000 0x38>;
  172. interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
  173. clocks = <&usib_u2_sclk>;
  174. clock-names = "sclk";
  175. };
  176. uart3: serial@e1050000 {
  177. compatible = "renesas,em-uart";
  178. reg = <0xe1050000 0x38>;
  179. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
  180. clocks = <&usib_u3_sclk>;
  181. clock-names = "sclk";
  182. };
  183. pfc: pinctrl@e0140200 {
  184. compatible = "renesas,pfc-emev2";
  185. reg = <0xe0140200 0x100>;
  186. };
  187. gpio0: gpio@e0050000 {
  188. compatible = "renesas,em-gio";
  189. reg = <0xe0050000 0x2c>, <0xe0050040 0x20>;
  190. interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
  191. <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
  192. gpio-controller;
  193. gpio-ranges = <&pfc 0 0 32>;
  194. #gpio-cells = <2>;
  195. ngpios = <32>;
  196. interrupt-controller;
  197. #interrupt-cells = <2>;
  198. };
  199. gpio1: gpio@e0050080 {
  200. compatible = "renesas,em-gio";
  201. reg = <0xe0050080 0x2c>, <0xe00500c0 0x20>;
  202. interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
  203. <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
  204. gpio-controller;
  205. gpio-ranges = <&pfc 0 32 32>;
  206. #gpio-cells = <2>;
  207. ngpios = <32>;
  208. interrupt-controller;
  209. #interrupt-cells = <2>;
  210. };
  211. gpio2: gpio@e0050100 {
  212. compatible = "renesas,em-gio";
  213. reg = <0xe0050100 0x2c>, <0xe0050140 0x20>;
  214. interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
  215. <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
  216. gpio-controller;
  217. gpio-ranges = <&pfc 0 64 32>;
  218. #gpio-cells = <2>;
  219. ngpios = <32>;
  220. interrupt-controller;
  221. #interrupt-cells = <2>;
  222. };
  223. gpio3: gpio@e0050180 {
  224. compatible = "renesas,em-gio";
  225. reg = <0xe0050180 0x2c>, <0xe00501c0 0x20>;
  226. interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
  227. <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
  228. gpio-controller;
  229. gpio-ranges = <&pfc 0 96 32>;
  230. #gpio-cells = <2>;
  231. ngpios = <32>;
  232. interrupt-controller;
  233. #interrupt-cells = <2>;
  234. };
  235. gpio4: gpio@e0050200 {
  236. compatible = "renesas,em-gio";
  237. reg = <0xe0050200 0x2c>, <0xe0050240 0x20>;
  238. interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
  239. <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
  240. gpio-controller;
  241. gpio-ranges = <&pfc 0 128 31>;
  242. #gpio-cells = <2>;
  243. ngpios = <31>;
  244. interrupt-controller;
  245. #interrupt-cells = <2>;
  246. };
  247. iic0: i2c@e0070000 {
  248. #address-cells = <1>;
  249. #size-cells = <0>;
  250. compatible = "renesas,iic-emev2";
  251. reg = <0xe0070000 0x28>;
  252. interrupts = <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>;
  253. clocks = <&iic0_sclk>;
  254. clock-names = "sclk";
  255. status = "disabled";
  256. };
  257. iic1: i2c@e10a0000 {
  258. #address-cells = <1>;
  259. #size-cells = <0>;
  260. compatible = "renesas,iic-emev2";
  261. reg = <0xe10a0000 0x28>;
  262. interrupts = <GIC_SPI 33 IRQ_TYPE_EDGE_RISING>;
  263. clocks = <&iic1_sclk>;
  264. clock-names = "sclk";
  265. status = "disabled";
  266. };
  267. };