exynos7885.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Samsung Exynos7885 SoC device tree source
  4. *
  5. * Copyright (c) 2021 Samsung Electronics Co., Ltd.
  6. * Copyright (c) 2021 Dávid Virág
  7. */
  8. #include <dt-bindings/clock/exynos7885.h>
  9. #include <dt-bindings/interrupt-controller/arm-gic.h>
  10. / {
  11. compatible = "samsung,exynos7885";
  12. #address-cells = <2>;
  13. #size-cells = <1>;
  14. interrupt-parent = <&gic>;
  15. aliases {
  16. pinctrl0 = &pinctrl_alive;
  17. pinctrl1 = &pinctrl_dispaud;
  18. pinctrl2 = &pinctrl_fsys;
  19. pinctrl3 = &pinctrl_top;
  20. };
  21. arm-a53-pmu {
  22. compatible = "arm,cortex-a53-pmu";
  23. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
  24. <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
  25. <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
  26. <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
  27. <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>,
  28. <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>;
  29. interrupt-affinity = <&cpu0>,
  30. <&cpu1>,
  31. <&cpu2>,
  32. <&cpu3>,
  33. <&cpu4>,
  34. <&cpu5>;
  35. };
  36. arm-a73-pmu {
  37. compatible = "arm,cortex-a73-pmu";
  38. interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
  39. <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
  40. interrupt-affinity = <&cpu6>,
  41. <&cpu7>;
  42. };
  43. cpus {
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. cpu-map {
  47. cluster0 {
  48. core0 {
  49. cpu = <&cpu0>;
  50. };
  51. core1 {
  52. cpu = <&cpu1>;
  53. };
  54. core2 {
  55. cpu = <&cpu2>;
  56. };
  57. core3 {
  58. cpu = <&cpu3>;
  59. };
  60. core4 {
  61. cpu = <&cpu4>;
  62. };
  63. core5 {
  64. cpu = <&cpu5>;
  65. };
  66. };
  67. cluster1 {
  68. core0 {
  69. cpu = <&cpu6>;
  70. };
  71. core1 {
  72. cpu = <&cpu7>;
  73. };
  74. };
  75. };
  76. cpu0: cpu@100 {
  77. device_type = "cpu";
  78. compatible = "arm,cortex-a53";
  79. reg = <0x100>;
  80. enable-method = "psci";
  81. };
  82. cpu1: cpu@101 {
  83. device_type = "cpu";
  84. compatible = "arm,cortex-a53";
  85. reg = <0x101>;
  86. enable-method = "psci";
  87. };
  88. cpu2: cpu@102 {
  89. device_type = "cpu";
  90. compatible = "arm,cortex-a53";
  91. reg = <0x102>;
  92. enable-method = "psci";
  93. };
  94. cpu3: cpu@103 {
  95. device_type = "cpu";
  96. compatible = "arm,cortex-a53";
  97. reg = <0x103>;
  98. enable-method = "psci";
  99. };
  100. cpu4: cpu@200 {
  101. device_type = "cpu";
  102. compatible = "arm,cortex-a53";
  103. reg = <0x200>;
  104. enable-method = "psci";
  105. };
  106. cpu5: cpu@201 {
  107. device_type = "cpu";
  108. compatible = "arm,cortex-a53";
  109. reg = <0x201>;
  110. enable-method = "psci";
  111. };
  112. cpu6: cpu@0 {
  113. device_type = "cpu";
  114. compatible = "arm,cortex-a73";
  115. reg = <0x0>;
  116. enable-method = "psci";
  117. };
  118. cpu7: cpu@1 {
  119. device_type = "cpu";
  120. compatible = "arm,cortex-a73";
  121. reg = <0x1>;
  122. enable-method = "psci";
  123. };
  124. };
  125. psci {
  126. compatible = "arm,psci";
  127. method = "smc";
  128. cpu_suspend = <0xc4000001>;
  129. cpu_off = <0x84000002>;
  130. cpu_on = <0xc4000003>;
  131. };
  132. timer {
  133. compatible = "arm,armv8-timer";
  134. /* Hypervisor Virtual Timer interrupt is not wired to GIC */
  135. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  136. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  137. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  138. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
  139. };
  140. fixed-rate-clocks {
  141. oscclk: osc-clock {
  142. compatible = "fixed-clock";
  143. #clock-cells = <0>;
  144. clock-output-names = "oscclk";
  145. };
  146. };
  147. soc: soc@0 {
  148. compatible = "simple-bus";
  149. #address-cells = <1>;
  150. #size-cells = <1>;
  151. ranges = <0x0 0x0 0x0 0x20000000>;
  152. chipid@10000000 {
  153. compatible = "samsung,exynos850-chipid";
  154. reg = <0x10000000 0x24>;
  155. };
  156. gic: interrupt-controller@12301000 {
  157. compatible = "arm,gic-400";
  158. #interrupt-cells = <3>;
  159. #address-cells = <0>;
  160. interrupt-controller;
  161. reg = <0x12301000 0x1000>,
  162. <0x12302000 0x2000>,
  163. <0x12304000 0x2000>,
  164. <0x12306000 0x2000>;
  165. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) |
  166. IRQ_TYPE_LEVEL_HIGH)>;
  167. };
  168. cmu_peri: clock-controller@10010000 {
  169. compatible = "samsung,exynos7885-cmu-peri";
  170. reg = <0x10010000 0x8000>;
  171. #clock-cells = <1>;
  172. clocks = <&oscclk>,
  173. <&cmu_top CLK_DOUT_PERI_BUS>,
  174. <&cmu_top CLK_DOUT_PERI_SPI0>,
  175. <&cmu_top CLK_DOUT_PERI_SPI1>,
  176. <&cmu_top CLK_DOUT_PERI_UART0>,
  177. <&cmu_top CLK_DOUT_PERI_UART1>,
  178. <&cmu_top CLK_DOUT_PERI_UART2>,
  179. <&cmu_top CLK_DOUT_PERI_USI0>,
  180. <&cmu_top CLK_DOUT_PERI_USI1>,
  181. <&cmu_top CLK_DOUT_PERI_USI2>;
  182. clock-names = "oscclk",
  183. "dout_peri_bus",
  184. "dout_peri_spi0",
  185. "dout_peri_spi1",
  186. "dout_peri_uart0",
  187. "dout_peri_uart1",
  188. "dout_peri_uart2",
  189. "dout_peri_usi0",
  190. "dout_peri_usi1",
  191. "dout_peri_usi2";
  192. };
  193. cmu_core: clock-controller@12000000 {
  194. compatible = "samsung,exynos7885-cmu-core";
  195. reg = <0x12000000 0x8000>;
  196. #clock-cells = <1>;
  197. clocks = <&oscclk>,
  198. <&cmu_top CLK_DOUT_CORE_BUS>,
  199. <&cmu_top CLK_DOUT_CORE_CCI>,
  200. <&cmu_top CLK_DOUT_CORE_G3D>;
  201. clock-names = "oscclk",
  202. "dout_core_bus",
  203. "dout_core_cci",
  204. "dout_core_g3d";
  205. };
  206. cmu_top: clock-controller@12060000 {
  207. compatible = "samsung,exynos7885-cmu-top";
  208. reg = <0x12060000 0x8000>;
  209. #clock-cells = <1>;
  210. clocks = <&oscclk>;
  211. clock-names = "oscclk";
  212. };
  213. cmu_fsys: clock-controller@13400000 {
  214. compatible = "samsung,exynos7885-cmu-fsys";
  215. reg = <0x13400000 0x8000>;
  216. #clock-cells = <1>;
  217. clocks = <&oscclk>,
  218. <&cmu_top CLK_DOUT_FSYS_BUS>,
  219. <&cmu_top CLK_DOUT_FSYS_MMC_CARD>,
  220. <&cmu_top CLK_DOUT_FSYS_MMC_EMBD>,
  221. <&cmu_top CLK_DOUT_FSYS_MMC_SDIO>,
  222. <&cmu_top CLK_DOUT_FSYS_USB30DRD>;
  223. clock-names = "oscclk",
  224. "dout_fsys_bus",
  225. "dout_fsys_mmc_card",
  226. "dout_fsys_mmc_embd",
  227. "dout_fsys_mmc_sdio",
  228. "dout_fsys_usb30drd";
  229. };
  230. pinctrl_alive: pinctrl@11cb0000 {
  231. compatible = "samsung,exynos7885-pinctrl";
  232. reg = <0x11cb0000 0x1000>;
  233. wakeup-interrupt-controller {
  234. compatible = "samsung,exynos7-wakeup-eint";
  235. interrupt-parent = <&gic>;
  236. interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
  237. };
  238. };
  239. pinctrl_fsys: pinctrl@13430000 {
  240. compatible = "samsung,exynos7885-pinctrl";
  241. reg = <0x13430000 0x1000>;
  242. interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>;
  243. };
  244. pinctrl_top: pinctrl@139b0000 {
  245. compatible = "samsung,exynos7885-pinctrl";
  246. reg = <0x139b0000 0x1000>;
  247. interrupts = <GIC_SPI 266 IRQ_TYPE_LEVEL_HIGH>;
  248. };
  249. pinctrl_dispaud: pinctrl@148f0000 {
  250. compatible = "samsung,exynos7885-pinctrl";
  251. reg = <0x148f0000 0x1000>;
  252. interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
  253. };
  254. pmu_system_controller: system-controller@11c80000 {
  255. compatible = "samsung,exynos7-pmu", "syscon";
  256. reg = <0x11c80000 0x10000>;
  257. };
  258. mmc_0: mmc@13500000 {
  259. compatible = "samsung,exynos7-dw-mshc-smu";
  260. reg = <0x13500000 0x2000>;
  261. interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
  262. #address-cells = <1>;
  263. #size-cells = <0>;
  264. clocks = <&cmu_fsys CLK_GOUT_MMC_EMBD_ACLK>,
  265. <&cmu_fsys CLK_GOUT_MMC_EMBD_SDCLKIN>;
  266. clock-names = "biu", "ciu";
  267. fifo-depth = <0x40>;
  268. status = "disabled";
  269. };
  270. serial_0: serial@13800000 {
  271. compatible = "samsung,exynos5433-uart";
  272. reg = <0x13800000 0x100>;
  273. interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
  274. pinctrl-names = "default";
  275. pinctrl-0 = <&uart0_bus>;
  276. clocks = <&cmu_peri CLK_GOUT_UART0_PCLK>,
  277. <&cmu_peri CLK_GOUT_UART0_EXT_UCLK>;
  278. clock-names = "uart", "clk_uart_baud0";
  279. samsung,uart-fifosize = <64>;
  280. status = "disabled";
  281. };
  282. serial_1: serial@13810000 {
  283. compatible = "samsung,exynos5433-uart";
  284. reg = <0x13810000 0x100>;
  285. interrupts = <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>;
  286. pinctrl-names = "default";
  287. pinctrl-0 = <&uart1_bus>;
  288. clocks = <&cmu_peri CLK_GOUT_UART1_PCLK>,
  289. <&cmu_peri CLK_GOUT_UART1_EXT_UCLK>;
  290. clock-names = "uart", "clk_uart_baud0";
  291. samsung,uart-fifosize = <256>;
  292. status = "disabled";
  293. };
  294. serial_2: serial@13820000 {
  295. compatible = "samsung,exynos5433-uart";
  296. reg = <0x13820000 0x100>;
  297. interrupts = <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>;
  298. pinctrl-names = "default";
  299. pinctrl-0 = <&uart2_bus>;
  300. clocks = <&cmu_peri CLK_GOUT_UART2_PCLK>,
  301. <&cmu_peri CLK_GOUT_UART2_EXT_UCLK>;
  302. clock-names = "uart", "clk_uart_baud0";
  303. samsung,uart-fifosize = <256>;
  304. status = "disabled";
  305. };
  306. i2c_0: i2c@13830000 {
  307. compatible = "samsung,s3c2440-i2c";
  308. reg = <0x13830000 0x100>;
  309. interrupts = <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>;
  310. #address-cells = <1>;
  311. #size-cells = <0>;
  312. pinctrl-names = "default";
  313. pinctrl-0 = <&i2c0_bus>;
  314. clocks = <&cmu_peri CLK_GOUT_I2C0_PCLK>;
  315. clock-names = "i2c";
  316. status = "disabled";
  317. };
  318. i2c_1: i2c@13840000 {
  319. compatible = "samsung,s3c2440-i2c";
  320. reg = <0x13840000 0x100>;
  321. interrupts = <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>;
  322. #address-cells = <1>;
  323. #size-cells = <0>;
  324. pinctrl-names = "default";
  325. pinctrl-0 = <&i2c1_bus>;
  326. clocks = <&cmu_peri CLK_GOUT_I2C1_PCLK>;
  327. clock-names = "i2c";
  328. status = "disabled";
  329. };
  330. i2c_2: i2c@13850000 {
  331. compatible = "samsung,s3c2440-i2c";
  332. reg = <0x13850000 0x100>;
  333. interrupts = <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>;
  334. #address-cells = <1>;
  335. #size-cells = <0>;
  336. pinctrl-names = "default";
  337. pinctrl-0 = <&i2c2_bus>;
  338. clocks = <&cmu_peri CLK_GOUT_I2C2_PCLK>;
  339. clock-names = "i2c";
  340. status = "disabled";
  341. };
  342. i2c_3: i2c@13860000 {
  343. compatible = "samsung,s3c2440-i2c";
  344. reg = <0x13860000 0x100>;
  345. interrupts = <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>;
  346. #address-cells = <1>;
  347. #size-cells = <0>;
  348. pinctrl-names = "default";
  349. pinctrl-0 = <&i2c3_bus>;
  350. clocks = <&cmu_peri CLK_GOUT_I2C3_PCLK>;
  351. clock-names = "i2c";
  352. status = "disabled";
  353. };
  354. i2c_4: i2c@13870000 {
  355. compatible = "samsung,s3c2440-i2c";
  356. reg = <0x13870000 0x100>;
  357. interrupts = <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>;
  358. #address-cells = <1>;
  359. #size-cells = <0>;
  360. pinctrl-names = "default";
  361. pinctrl-0 = <&i2c4_bus>;
  362. clocks = <&cmu_peri CLK_GOUT_I2C4_PCLK>;
  363. clock-names = "i2c";
  364. status = "disabled";
  365. };
  366. i2c_5: i2c@13880000 {
  367. compatible = "samsung,s3c2440-i2c";
  368. reg = <0x13880000 0x100>;
  369. interrupts = <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>;
  370. #address-cells = <1>;
  371. #size-cells = <0>;
  372. pinctrl-names = "default";
  373. pinctrl-0 = <&i2c5_bus>;
  374. clocks = <&cmu_peri CLK_GOUT_I2C5_PCLK>;
  375. clock-names = "i2c";
  376. status = "disabled";
  377. };
  378. i2c_6: i2c@13890000 {
  379. compatible = "samsung,s3c2440-i2c";
  380. reg = <0x13890000 0x100>;
  381. interrupts = <GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>;
  382. #address-cells = <1>;
  383. #size-cells = <0>;
  384. pinctrl-names = "default";
  385. pinctrl-0 = <&i2c6_bus>;
  386. clocks = <&cmu_peri CLK_GOUT_I2C6_PCLK>;
  387. clock-names = "i2c";
  388. status = "disabled";
  389. };
  390. i2c_7: i2c@11cd0000 {
  391. compatible = "samsung,s3c2440-i2c";
  392. reg = <0x11cd0000 0x100>;
  393. interrupts = <GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>;
  394. #address-cells = <1>;
  395. #size-cells = <0>;
  396. pinctrl-names = "default";
  397. pinctrl-0 = <&i2c7_bus>;
  398. clocks = <&cmu_peri CLK_GOUT_I2C7_PCLK>;
  399. clock-names = "i2c";
  400. status = "disabled";
  401. };
  402. };
  403. };
  404. #include "exynos7885-pinctrl.dtsi"
  405. #include "arm/exynos-syscon-restart.dtsi"