rtd1195.dtsi 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
  2. /*
  3. * Copyright (c) 2017-2019 Andreas Färber
  4. */
  5. /memreserve/ 0x00000000 0x0000a800; /* boot code */
  6. /memreserve/ 0x0000a800 0x000f5800;
  7. /memreserve/ 0x17fff000 0x00001000;
  8. #include <dt-bindings/interrupt-controller/arm-gic.h>
  9. #include <dt-bindings/reset/realtek,rtd1195.h>
  10. / {
  11. compatible = "realtek,rtd1195";
  12. interrupt-parent = <&gic>;
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. cpus {
  16. #address-cells = <1>;
  17. #size-cells = <0>;
  18. cpu0: cpu@0 {
  19. device_type = "cpu";
  20. compatible = "arm,cortex-a7";
  21. reg = <0x0>;
  22. clock-frequency = <1000000000>;
  23. };
  24. cpu1: cpu@1 {
  25. device_type = "cpu";
  26. compatible = "arm,cortex-a7";
  27. reg = <0x1>;
  28. clock-frequency = <1000000000>;
  29. };
  30. };
  31. reserved-memory {
  32. #address-cells = <1>;
  33. #size-cells = <1>;
  34. ranges;
  35. rpc_comm: rpc@b000 {
  36. reg = <0x0000b000 0x1000>;
  37. };
  38. audio@1b00000 {
  39. reg = <0x01b00000 0x400000>;
  40. };
  41. rpc_ringbuf: rpc@1ffe000 {
  42. reg = <0x01ffe000 0x4000>;
  43. };
  44. secure@10000000 {
  45. reg = <0x10000000 0x100000>;
  46. no-map;
  47. };
  48. };
  49. arm-pmu {
  50. compatible = "arm,cortex-a7-pmu";
  51. interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
  52. <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
  53. interrupt-affinity = <&cpu0>, <&cpu1>;
  54. };
  55. timer {
  56. compatible = "arm,armv7-timer";
  57. interrupts = <GIC_PPI 13
  58. (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
  59. <GIC_PPI 14
  60. (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
  61. <GIC_PPI 11
  62. (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
  63. <GIC_PPI 10
  64. (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
  65. clock-frequency = <27000000>;
  66. };
  67. osc27M: osc {
  68. compatible = "fixed-clock";
  69. clock-frequency = <27000000>;
  70. #clock-cells = <0>;
  71. clock-output-names = "osc27M";
  72. };
  73. soc {
  74. compatible = "simple-bus";
  75. #address-cells = <1>;
  76. #size-cells = <1>;
  77. ranges = <0x00000000 0x00000000 0x0000a800>,
  78. <0x18000000 0x18000000 0x00070000>,
  79. <0x18100000 0x18100000 0x01000000>,
  80. <0x80000000 0x80000000 0x80000000>;
  81. rbus: bus@18000000 {
  82. compatible = "simple-bus";
  83. reg = <0x18000000 0x70000>;
  84. #address-cells = <1>;
  85. #size-cells = <1>;
  86. ranges = <0x0 0x18000000 0x70000>;
  87. crt: syscon@0 {
  88. compatible = "syscon", "simple-mfd";
  89. reg = <0x0 0x1000>;
  90. reg-io-width = <4>;
  91. #address-cells = <1>;
  92. #size-cells = <1>;
  93. ranges = <0x0 0x0 0x1000>;
  94. };
  95. iso: syscon@7000 {
  96. compatible = "syscon", "simple-mfd";
  97. reg = <0x7000 0x1000>;
  98. reg-io-width = <4>;
  99. #address-cells = <1>;
  100. #size-cells = <1>;
  101. ranges = <0x0 0x7000 0x1000>;
  102. };
  103. sb2: syscon@1a000 {
  104. compatible = "syscon", "simple-mfd";
  105. reg = <0x1a000 0x1000>;
  106. reg-io-width = <4>;
  107. #address-cells = <1>;
  108. #size-cells = <1>;
  109. ranges = <0x0 0x1a000 0x1000>;
  110. };
  111. misc: syscon@1b000 {
  112. compatible = "syscon", "simple-mfd";
  113. reg = <0x1b000 0x1000>;
  114. reg-io-width = <4>;
  115. #address-cells = <1>;
  116. #size-cells = <1>;
  117. ranges = <0x0 0x1b000 0x1000>;
  118. };
  119. scpu_wrapper: syscon@1d000 {
  120. compatible = "syscon", "simple-mfd";
  121. reg = <0x1d000 0x1000>;
  122. reg-io-width = <4>;
  123. #address-cells = <1>;
  124. #size-cells = <1>;
  125. ranges = <0x0 0x1d000 0x1000>;
  126. };
  127. };
  128. gic: interrupt-controller@ff011000 {
  129. compatible = "arm,cortex-a7-gic";
  130. reg = <0xff011000 0x1000>,
  131. <0xff012000 0x2000>,
  132. <0xff014000 0x2000>,
  133. <0xff016000 0x2000>;
  134. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
  135. interrupt-controller;
  136. #interrupt-cells = <3>;
  137. };
  138. };
  139. };
  140. &crt {
  141. reset1: reset-controller@0 {
  142. compatible = "snps,dw-low-reset";
  143. reg = <0x0 0x4>;
  144. #reset-cells = <1>;
  145. };
  146. reset2: reset-controller@4 {
  147. compatible = "snps,dw-low-reset";
  148. reg = <0x4 0x4>;
  149. #reset-cells = <1>;
  150. };
  151. reset3: reset-controller@8 {
  152. compatible = "snps,dw-low-reset";
  153. reg = <0x8 0x4>;
  154. #reset-cells = <1>;
  155. };
  156. };
  157. &iso {
  158. iso_reset: reset-controller@88 {
  159. compatible = "snps,dw-low-reset";
  160. reg = <0x88 0x4>;
  161. #reset-cells = <1>;
  162. };
  163. wdt: watchdog@680 {
  164. compatible = "realtek,rtd1295-watchdog";
  165. reg = <0x680 0x100>;
  166. clocks = <&osc27M>;
  167. };
  168. uart0: serial@800 {
  169. compatible = "snps,dw-apb-uart";
  170. reg = <0x800 0x400>;
  171. reg-shift = <2>;
  172. reg-io-width = <4>;
  173. resets = <&iso_reset RTD1195_ISO_RSTN_UR0>;
  174. clock-frequency = <27000000>;
  175. status = "disabled";
  176. };
  177. };
  178. &misc {
  179. uart1: serial@200 {
  180. compatible = "snps,dw-apb-uart";
  181. reg = <0x200 0x100>;
  182. reg-shift = <2>;
  183. reg-io-width = <4>;
  184. resets = <&reset2 RTD1195_RSTN_UR1>;
  185. clock-frequency = <27000000>;
  186. status = "disabled";
  187. };
  188. };