bm1880.dtsi 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2019 Linaro Ltd.
  4. * Author: Manivannan Sadhasivam <[email protected]>
  5. */
  6. #include <dt-bindings/clock/bm1880-clock.h>
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. #include <dt-bindings/reset/bitmain,bm1880-reset.h>
  9. / {
  10. compatible = "bitmain,bm1880";
  11. interrupt-parent = <&gic>;
  12. #address-cells = <2>;
  13. #size-cells = <2>;
  14. cpus {
  15. #address-cells = <1>;
  16. #size-cells = <0>;
  17. cpu0: cpu@0 {
  18. device_type = "cpu";
  19. compatible = "arm,cortex-a53";
  20. reg = <0x0>;
  21. enable-method = "psci";
  22. };
  23. cpu1: cpu@1 {
  24. device_type = "cpu";
  25. compatible = "arm,cortex-a53";
  26. reg = <0x1>;
  27. enable-method = "psci";
  28. };
  29. };
  30. reserved-memory {
  31. #address-cells = <2>;
  32. #size-cells = <2>;
  33. ranges;
  34. secmon@100000000 {
  35. reg = <0x1 0x00000000 0x0 0x20000>;
  36. no-map;
  37. };
  38. jpu@130000000 {
  39. reg = <0x1 0x30000000 0x0 0x08000000>; // 128M
  40. no-map;
  41. };
  42. vpu@138000000 {
  43. reg = <0x1 0x38000000 0x0 0x08000000>; // 128M
  44. no-map;
  45. };
  46. };
  47. psci {
  48. compatible = "arm,psci-0.2";
  49. method = "smc";
  50. };
  51. timer {
  52. compatible = "arm,armv8-timer";
  53. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
  54. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
  55. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
  56. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
  57. };
  58. osc: osc {
  59. compatible = "fixed-clock";
  60. clock-frequency = <25000000>;
  61. #clock-cells = <0>;
  62. };
  63. soc {
  64. compatible = "simple-bus";
  65. #address-cells = <2>;
  66. #size-cells = <2>;
  67. ranges;
  68. gic: interrupt-controller@50001000 {
  69. compatible = "arm,gic-400";
  70. reg = <0x0 0x50001000 0x0 0x1000>,
  71. <0x0 0x50002000 0x0 0x2000>;
  72. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_LOW>;
  73. interrupt-controller;
  74. #interrupt-cells = <3>;
  75. };
  76. sctrl: system-controller@50010000 {
  77. compatible = "bitmain,bm1880-sctrl", "syscon",
  78. "simple-mfd";
  79. reg = <0x0 0x50010000 0x0 0x1000>;
  80. #address-cells = <1>;
  81. #size-cells = <1>;
  82. ranges = <0x0 0x0 0x50010000 0x1000>;
  83. pinctrl: pinctrl@400 {
  84. compatible = "bitmain,bm1880-pinctrl";
  85. reg = <0x400 0x120>;
  86. };
  87. clk: clock-controller@e8 {
  88. compatible = "bitmain,bm1880-clk";
  89. reg = <0xe8 0x0c>, <0x800 0xb0>;
  90. reg-names = "pll", "sys";
  91. clocks = <&osc>;
  92. clock-names = "osc";
  93. #clock-cells = <1>;
  94. };
  95. rst: reset-controller@c00 {
  96. compatible = "bitmain,bm1880-reset";
  97. reg = <0xc00 0x8>;
  98. #reset-cells = <1>;
  99. };
  100. };
  101. gpio0: gpio@50027000 {
  102. #address-cells = <1>;
  103. #size-cells = <0>;
  104. compatible = "snps,dw-apb-gpio";
  105. reg = <0x0 0x50027000 0x0 0x400>;
  106. porta: gpio-controller@0 {
  107. compatible = "snps,dw-apb-gpio-port";
  108. gpio-controller;
  109. #gpio-cells = <2>;
  110. ngpios = <32>;
  111. reg = <0>;
  112. interrupt-controller;
  113. #interrupt-cells = <2>;
  114. interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
  115. };
  116. };
  117. gpio1: gpio@50027400 {
  118. #address-cells = <1>;
  119. #size-cells = <0>;
  120. compatible = "snps,dw-apb-gpio";
  121. reg = <0x0 0x50027400 0x0 0x400>;
  122. portb: gpio-controller@0 {
  123. compatible = "snps,dw-apb-gpio-port";
  124. gpio-controller;
  125. #gpio-cells = <2>;
  126. ngpios = <32>;
  127. reg = <0>;
  128. interrupt-controller;
  129. #interrupt-cells = <2>;
  130. interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
  131. };
  132. };
  133. gpio2: gpio@50027800 {
  134. #address-cells = <1>;
  135. #size-cells = <0>;
  136. compatible = "snps,dw-apb-gpio";
  137. reg = <0x0 0x50027800 0x0 0x400>;
  138. portc: gpio-controller@0 {
  139. compatible = "snps,dw-apb-gpio-port";
  140. gpio-controller;
  141. #gpio-cells = <2>;
  142. ngpios = <8>;
  143. reg = <0>;
  144. interrupt-controller;
  145. #interrupt-cells = <2>;
  146. interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
  147. };
  148. };
  149. uart0: serial@58018000 {
  150. compatible = "snps,dw-apb-uart";
  151. reg = <0x0 0x58018000 0x0 0x2000>;
  152. clocks = <&clk BM1880_CLK_UART_500M>,
  153. <&clk BM1880_CLK_APB_UART>;
  154. clock-names = "baudclk", "apb_pclk";
  155. interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  156. reg-shift = <2>;
  157. reg-io-width = <4>;
  158. resets = <&rst BM1880_RST_UART0_1_CLK>;
  159. status = "disabled";
  160. };
  161. uart1: serial@5801A000 {
  162. compatible = "snps,dw-apb-uart";
  163. reg = <0x0 0x5801a000 0x0 0x2000>;
  164. clocks = <&clk BM1880_CLK_UART_500M>,
  165. <&clk BM1880_CLK_APB_UART>;
  166. clock-names = "baudclk", "apb_pclk";
  167. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  168. reg-shift = <2>;
  169. reg-io-width = <4>;
  170. resets = <&rst BM1880_RST_UART0_1_ACLK>;
  171. status = "disabled";
  172. };
  173. uart2: serial@5801C000 {
  174. compatible = "snps,dw-apb-uart";
  175. reg = <0x0 0x5801c000 0x0 0x2000>;
  176. clocks = <&clk BM1880_CLK_UART_500M>,
  177. <&clk BM1880_CLK_APB_UART>;
  178. clock-names = "baudclk", "apb_pclk";
  179. interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
  180. reg-shift = <2>;
  181. reg-io-width = <4>;
  182. resets = <&rst BM1880_RST_UART2_3_CLK>;
  183. status = "disabled";
  184. };
  185. uart3: serial@5801E000 {
  186. compatible = "snps,dw-apb-uart";
  187. reg = <0x0 0x5801e000 0x0 0x2000>;
  188. clocks = <&clk BM1880_CLK_UART_500M>,
  189. <&clk BM1880_CLK_APB_UART>;
  190. clock-names = "baudclk", "apb_pclk";
  191. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
  192. reg-shift = <2>;
  193. reg-io-width = <4>;
  194. resets = <&rst BM1880_RST_UART2_3_ACLK>;
  195. status = "disabled";
  196. };
  197. };
  198. };