suniv-f1c100s.dtsi 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. // SPDX-License-Identifier: (GPL-2.0+ OR X11)
  2. /*
  3. * Copyright 2018 Icenowy Zheng <[email protected]>
  4. * Copyright 2018 Mesih Kilinc <[email protected]>
  5. */
  6. #include <dt-bindings/clock/suniv-ccu-f1c100s.h>
  7. #include <dt-bindings/reset/suniv-ccu-f1c100s.h>
  8. / {
  9. #address-cells = <1>;
  10. #size-cells = <1>;
  11. interrupt-parent = <&intc>;
  12. clocks {
  13. osc24M: clk-24M {
  14. #clock-cells = <0>;
  15. compatible = "fixed-clock";
  16. clock-frequency = <24000000>;
  17. clock-output-names = "osc24M";
  18. };
  19. osc32k: clk-32k {
  20. #clock-cells = <0>;
  21. compatible = "fixed-clock";
  22. clock-frequency = <32768>;
  23. clock-output-names = "osc32k";
  24. };
  25. };
  26. cpus {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. cpu@0 {
  30. compatible = "arm,arm926ej-s";
  31. device_type = "cpu";
  32. reg = <0x0>;
  33. };
  34. };
  35. soc {
  36. compatible = "simple-bus";
  37. #address-cells = <1>;
  38. #size-cells = <1>;
  39. ranges;
  40. sram-controller@1c00000 {
  41. compatible = "allwinner,suniv-f1c100s-system-control",
  42. "allwinner,sun4i-a10-system-control";
  43. reg = <0x01c00000 0x30>;
  44. #address-cells = <1>;
  45. #size-cells = <1>;
  46. ranges;
  47. sram_d: sram@10000 {
  48. compatible = "mmio-sram";
  49. reg = <0x00010000 0x1000>;
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. ranges = <0 0x00010000 0x1000>;
  53. otg_sram: sram-section@0 {
  54. compatible = "allwinner,suniv-f1c100s-sram-d",
  55. "allwinner,sun4i-a10-sram-d";
  56. reg = <0x0000 0x1000>;
  57. status = "disabled";
  58. };
  59. };
  60. };
  61. spi0: spi@1c05000 {
  62. compatible = "allwinner,suniv-f1c100s-spi",
  63. "allwinner,sun8i-h3-spi";
  64. reg = <0x01c05000 0x1000>;
  65. interrupts = <10>;
  66. clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_BUS_SPI0>;
  67. clock-names = "ahb", "mod";
  68. resets = <&ccu RST_BUS_SPI0>;
  69. status = "disabled";
  70. num-cs = <1>;
  71. #address-cells = <1>;
  72. #size-cells = <0>;
  73. };
  74. spi1: spi@1c06000 {
  75. compatible = "allwinner,suniv-f1c100s-spi",
  76. "allwinner,sun8i-h3-spi";
  77. reg = <0x01c06000 0x1000>;
  78. interrupts = <11>;
  79. clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_BUS_SPI1>;
  80. clock-names = "ahb", "mod";
  81. resets = <&ccu RST_BUS_SPI1>;
  82. status = "disabled";
  83. num-cs = <1>;
  84. #address-cells = <1>;
  85. #size-cells = <0>;
  86. };
  87. mmc0: mmc@1c0f000 {
  88. compatible = "allwinner,suniv-f1c100s-mmc",
  89. "allwinner,sun7i-a20-mmc";
  90. reg = <0x01c0f000 0x1000>;
  91. clocks = <&ccu CLK_BUS_MMC0>,
  92. <&ccu CLK_MMC0>,
  93. <&ccu CLK_MMC0_OUTPUT>,
  94. <&ccu CLK_MMC0_SAMPLE>;
  95. clock-names = "ahb", "mmc", "output", "sample";
  96. resets = <&ccu RST_BUS_MMC0>;
  97. reset-names = "ahb";
  98. interrupts = <23>;
  99. pinctrl-names = "default";
  100. pinctrl-0 = <&mmc0_pins>;
  101. status = "disabled";
  102. #address-cells = <1>;
  103. #size-cells = <0>;
  104. };
  105. mmc1: mmc@1c10000 {
  106. compatible = "allwinner,suniv-f1c100s-mmc",
  107. "allwinner,sun7i-a20-mmc";
  108. reg = <0x01c10000 0x1000>;
  109. clocks = <&ccu CLK_BUS_MMC1>,
  110. <&ccu CLK_MMC1>,
  111. <&ccu CLK_MMC1_OUTPUT>,
  112. <&ccu CLK_MMC1_SAMPLE>;
  113. clock-names = "ahb", "mmc", "output", "sample";
  114. resets = <&ccu RST_BUS_MMC1>;
  115. reset-names = "ahb";
  116. interrupts = <24>;
  117. status = "disabled";
  118. #address-cells = <1>;
  119. #size-cells = <0>;
  120. };
  121. ccu: clock@1c20000 {
  122. compatible = "allwinner,suniv-f1c100s-ccu";
  123. reg = <0x01c20000 0x400>;
  124. clocks = <&osc24M>, <&osc32k>;
  125. clock-names = "hosc", "losc";
  126. #clock-cells = <1>;
  127. #reset-cells = <1>;
  128. };
  129. intc: interrupt-controller@1c20400 {
  130. compatible = "allwinner,suniv-f1c100s-ic";
  131. reg = <0x01c20400 0x400>;
  132. interrupt-controller;
  133. #interrupt-cells = <1>;
  134. };
  135. pio: pinctrl@1c20800 {
  136. compatible = "allwinner,suniv-f1c100s-pinctrl";
  137. reg = <0x01c20800 0x400>;
  138. interrupts = <38>, <39>, <40>;
  139. clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc32k>;
  140. clock-names = "apb", "hosc", "losc";
  141. gpio-controller;
  142. interrupt-controller;
  143. #interrupt-cells = <3>;
  144. #gpio-cells = <3>;
  145. mmc0_pins: mmc0-pins {
  146. pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5";
  147. function = "mmc0";
  148. drive-strength = <30>;
  149. };
  150. spi0_pc_pins: spi0-pc-pins {
  151. pins = "PC0", "PC1", "PC2", "PC3";
  152. function = "spi0";
  153. };
  154. uart0_pe_pins: uart0-pe-pins {
  155. pins = "PE0", "PE1";
  156. function = "uart0";
  157. };
  158. };
  159. timer@1c20c00 {
  160. compatible = "allwinner,suniv-f1c100s-timer";
  161. reg = <0x01c20c00 0x90>;
  162. interrupts = <13>, <14>, <15>;
  163. clocks = <&osc24M>;
  164. };
  165. wdt: watchdog@1c20ca0 {
  166. compatible = "allwinner,suniv-f1c100s-wdt",
  167. "allwinner,sun6i-a31-wdt";
  168. reg = <0x01c20ca0 0x20>;
  169. interrupts = <16>;
  170. clocks = <&osc32k>;
  171. };
  172. uart0: serial@1c25000 {
  173. compatible = "snps,dw-apb-uart";
  174. reg = <0x01c25000 0x400>;
  175. interrupts = <1>;
  176. reg-shift = <2>;
  177. reg-io-width = <4>;
  178. clocks = <&ccu CLK_BUS_UART0>;
  179. resets = <&ccu RST_BUS_UART0>;
  180. status = "disabled";
  181. };
  182. uart1: serial@1c25400 {
  183. compatible = "snps,dw-apb-uart";
  184. reg = <0x01c25400 0x400>;
  185. interrupts = <2>;
  186. reg-shift = <2>;
  187. reg-io-width = <4>;
  188. clocks = <&ccu CLK_BUS_UART1>;
  189. resets = <&ccu RST_BUS_UART1>;
  190. status = "disabled";
  191. };
  192. uart2: serial@1c25800 {
  193. compatible = "snps,dw-apb-uart";
  194. reg = <0x01c25800 0x400>;
  195. interrupts = <3>;
  196. reg-shift = <2>;
  197. reg-io-width = <4>;
  198. clocks = <&ccu CLK_BUS_UART2>;
  199. resets = <&ccu RST_BUS_UART2>;
  200. status = "disabled";
  201. };
  202. };
  203. };