exynos7885.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  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,exynos7885-chipid",
  154. "samsung,exynos850-chipid";
  155. reg = <0x10000000 0x24>;
  156. };
  157. gic: interrupt-controller@12301000 {
  158. compatible = "arm,gic-400";
  159. #interrupt-cells = <3>;
  160. #address-cells = <0>;
  161. interrupt-controller;
  162. reg = <0x12301000 0x1000>,
  163. <0x12302000 0x2000>,
  164. <0x12304000 0x2000>,
  165. <0x12306000 0x2000>;
  166. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) |
  167. IRQ_TYPE_LEVEL_HIGH)>;
  168. };
  169. cmu_peri: clock-controller@10010000 {
  170. compatible = "samsung,exynos7885-cmu-peri";
  171. reg = <0x10010000 0x8000>;
  172. #clock-cells = <1>;
  173. clocks = <&oscclk>,
  174. <&cmu_top CLK_DOUT_PERI_BUS>,
  175. <&cmu_top CLK_DOUT_PERI_SPI0>,
  176. <&cmu_top CLK_DOUT_PERI_SPI1>,
  177. <&cmu_top CLK_DOUT_PERI_UART0>,
  178. <&cmu_top CLK_DOUT_PERI_UART1>,
  179. <&cmu_top CLK_DOUT_PERI_UART2>,
  180. <&cmu_top CLK_DOUT_PERI_USI0>,
  181. <&cmu_top CLK_DOUT_PERI_USI1>,
  182. <&cmu_top CLK_DOUT_PERI_USI2>;
  183. clock-names = "oscclk",
  184. "dout_peri_bus",
  185. "dout_peri_spi0",
  186. "dout_peri_spi1",
  187. "dout_peri_uart0",
  188. "dout_peri_uart1",
  189. "dout_peri_uart2",
  190. "dout_peri_usi0",
  191. "dout_peri_usi1",
  192. "dout_peri_usi2";
  193. };
  194. cmu_core: clock-controller@12000000 {
  195. compatible = "samsung,exynos7885-cmu-core";
  196. reg = <0x12000000 0x8000>;
  197. #clock-cells = <1>;
  198. clocks = <&oscclk>,
  199. <&cmu_top CLK_DOUT_CORE_BUS>,
  200. <&cmu_top CLK_DOUT_CORE_CCI>,
  201. <&cmu_top CLK_DOUT_CORE_G3D>;
  202. clock-names = "oscclk",
  203. "dout_core_bus",
  204. "dout_core_cci",
  205. "dout_core_g3d";
  206. };
  207. cmu_top: clock-controller@12060000 {
  208. compatible = "samsung,exynos7885-cmu-top";
  209. reg = <0x12060000 0x8000>;
  210. #clock-cells = <1>;
  211. clocks = <&oscclk>;
  212. clock-names = "oscclk";
  213. };
  214. cmu_fsys: clock-controller@13400000 {
  215. compatible = "samsung,exynos7885-cmu-fsys";
  216. reg = <0x13400000 0x8000>;
  217. #clock-cells = <1>;
  218. clocks = <&oscclk>,
  219. <&cmu_top CLK_DOUT_FSYS_BUS>,
  220. <&cmu_top CLK_DOUT_FSYS_MMC_CARD>,
  221. <&cmu_top CLK_DOUT_FSYS_MMC_EMBD>,
  222. <&cmu_top CLK_DOUT_FSYS_MMC_SDIO>,
  223. <&cmu_top CLK_DOUT_FSYS_USB30DRD>;
  224. clock-names = "oscclk",
  225. "dout_fsys_bus",
  226. "dout_fsys_mmc_card",
  227. "dout_fsys_mmc_embd",
  228. "dout_fsys_mmc_sdio",
  229. "dout_fsys_usb30drd";
  230. };
  231. pinctrl_alive: pinctrl@11cb0000 {
  232. compatible = "samsung,exynos7885-pinctrl";
  233. reg = <0x11cb0000 0x1000>;
  234. wakeup-interrupt-controller {
  235. compatible = "samsung,exynos7885-wakeup-eint",
  236. "samsung,exynos7-wakeup-eint";
  237. interrupt-parent = <&gic>;
  238. interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
  239. };
  240. };
  241. pinctrl_fsys: pinctrl@13430000 {
  242. compatible = "samsung,exynos7885-pinctrl";
  243. reg = <0x13430000 0x1000>;
  244. interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>;
  245. };
  246. pinctrl_top: pinctrl@139b0000 {
  247. compatible = "samsung,exynos7885-pinctrl";
  248. reg = <0x139b0000 0x1000>;
  249. interrupts = <GIC_SPI 266 IRQ_TYPE_LEVEL_HIGH>;
  250. };
  251. pinctrl_dispaud: pinctrl@148f0000 {
  252. compatible = "samsung,exynos7885-pinctrl";
  253. reg = <0x148f0000 0x1000>;
  254. interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
  255. };
  256. pmu_system_controller: system-controller@11c80000 {
  257. compatible = "samsung,exynos7885-pmu",
  258. "samsung,exynos7-pmu", "syscon";
  259. reg = <0x11c80000 0x10000>;
  260. };
  261. mmc_0: mmc@13500000 {
  262. compatible = "samsung,exynos7885-dw-mshc-smu",
  263. "samsung,exynos7-dw-mshc-smu";
  264. reg = <0x13500000 0x2000>;
  265. interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
  266. #address-cells = <1>;
  267. #size-cells = <0>;
  268. clocks = <&cmu_fsys CLK_GOUT_MMC_EMBD_ACLK>,
  269. <&cmu_fsys CLK_GOUT_MMC_EMBD_SDCLKIN>;
  270. clock-names = "biu", "ciu";
  271. fifo-depth = <0x40>;
  272. status = "disabled";
  273. };
  274. serial_0: serial@13800000 {
  275. compatible = "samsung,exynos7885-uart",
  276. "samsung,exynos5433-uart";
  277. reg = <0x13800000 0x100>;
  278. interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
  279. pinctrl-names = "default";
  280. pinctrl-0 = <&uart0_bus>;
  281. clocks = <&cmu_peri CLK_GOUT_UART0_PCLK>,
  282. <&cmu_peri CLK_GOUT_UART0_EXT_UCLK>;
  283. clock-names = "uart", "clk_uart_baud0";
  284. samsung,uart-fifosize = <64>;
  285. status = "disabled";
  286. };
  287. serial_1: serial@13810000 {
  288. compatible = "samsung,exynos7885-uart",
  289. "samsung,exynos5433-uart";
  290. reg = <0x13810000 0x100>;
  291. interrupts = <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>;
  292. pinctrl-names = "default";
  293. pinctrl-0 = <&uart1_bus>;
  294. clocks = <&cmu_peri CLK_GOUT_UART1_PCLK>,
  295. <&cmu_peri CLK_GOUT_UART1_EXT_UCLK>;
  296. clock-names = "uart", "clk_uart_baud0";
  297. samsung,uart-fifosize = <256>;
  298. status = "disabled";
  299. };
  300. serial_2: serial@13820000 {
  301. compatible = "samsung,exynos7885-uart",
  302. "samsung,exynos5433-uart";
  303. reg = <0x13820000 0x100>;
  304. interrupts = <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>;
  305. pinctrl-names = "default";
  306. pinctrl-0 = <&uart2_bus>;
  307. clocks = <&cmu_peri CLK_GOUT_UART2_PCLK>,
  308. <&cmu_peri CLK_GOUT_UART2_EXT_UCLK>;
  309. clock-names = "uart", "clk_uart_baud0";
  310. samsung,uart-fifosize = <256>;
  311. status = "disabled";
  312. };
  313. i2c_0: i2c@13830000 {
  314. compatible = "samsung,exynos7885-i2c",
  315. "samsung,s3c2440-i2c";
  316. reg = <0x13830000 0x100>;
  317. interrupts = <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>;
  318. #address-cells = <1>;
  319. #size-cells = <0>;
  320. pinctrl-names = "default";
  321. pinctrl-0 = <&i2c0_bus>;
  322. clocks = <&cmu_peri CLK_GOUT_I2C0_PCLK>;
  323. clock-names = "i2c";
  324. status = "disabled";
  325. };
  326. i2c_1: i2c@13840000 {
  327. compatible = "samsung,exynos7885-i2c",
  328. "samsung,s3c2440-i2c";
  329. reg = <0x13840000 0x100>;
  330. interrupts = <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>;
  331. #address-cells = <1>;
  332. #size-cells = <0>;
  333. pinctrl-names = "default";
  334. pinctrl-0 = <&i2c1_bus>;
  335. clocks = <&cmu_peri CLK_GOUT_I2C1_PCLK>;
  336. clock-names = "i2c";
  337. status = "disabled";
  338. };
  339. i2c_2: i2c@13850000 {
  340. compatible = "samsung,exynos7885-i2c",
  341. "samsung,s3c2440-i2c";
  342. reg = <0x13850000 0x100>;
  343. interrupts = <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>;
  344. #address-cells = <1>;
  345. #size-cells = <0>;
  346. pinctrl-names = "default";
  347. pinctrl-0 = <&i2c2_bus>;
  348. clocks = <&cmu_peri CLK_GOUT_I2C2_PCLK>;
  349. clock-names = "i2c";
  350. status = "disabled";
  351. };
  352. i2c_3: i2c@13860000 {
  353. compatible = "samsung,exynos7885-i2c",
  354. "samsung,s3c2440-i2c";
  355. reg = <0x13860000 0x100>;
  356. interrupts = <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>;
  357. #address-cells = <1>;
  358. #size-cells = <0>;
  359. pinctrl-names = "default";
  360. pinctrl-0 = <&i2c3_bus>;
  361. clocks = <&cmu_peri CLK_GOUT_I2C3_PCLK>;
  362. clock-names = "i2c";
  363. status = "disabled";
  364. };
  365. i2c_4: i2c@13870000 {
  366. compatible = "samsung,exynos7885-i2c",
  367. "samsung,s3c2440-i2c";
  368. reg = <0x13870000 0x100>;
  369. interrupts = <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>;
  370. #address-cells = <1>;
  371. #size-cells = <0>;
  372. pinctrl-names = "default";
  373. pinctrl-0 = <&i2c4_bus>;
  374. clocks = <&cmu_peri CLK_GOUT_I2C4_PCLK>;
  375. clock-names = "i2c";
  376. status = "disabled";
  377. };
  378. i2c_5: i2c@13880000 {
  379. compatible = "samsung,exynos7885-i2c",
  380. "samsung,s3c2440-i2c";
  381. reg = <0x13880000 0x100>;
  382. interrupts = <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>;
  383. #address-cells = <1>;
  384. #size-cells = <0>;
  385. pinctrl-names = "default";
  386. pinctrl-0 = <&i2c5_bus>;
  387. clocks = <&cmu_peri CLK_GOUT_I2C5_PCLK>;
  388. clock-names = "i2c";
  389. status = "disabled";
  390. };
  391. i2c_6: i2c@13890000 {
  392. compatible = "samsung,exynos7885-i2c",
  393. "samsung,s3c2440-i2c";
  394. reg = <0x13890000 0x100>;
  395. interrupts = <GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>;
  396. #address-cells = <1>;
  397. #size-cells = <0>;
  398. pinctrl-names = "default";
  399. pinctrl-0 = <&i2c6_bus>;
  400. clocks = <&cmu_peri CLK_GOUT_I2C6_PCLK>;
  401. clock-names = "i2c";
  402. status = "disabled";
  403. };
  404. i2c_7: i2c@11cd0000 {
  405. compatible = "samsung,exynos7885-i2c",
  406. "samsung,s3c2440-i2c";
  407. reg = <0x11cd0000 0x100>;
  408. interrupts = <GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>;
  409. #address-cells = <1>;
  410. #size-cells = <0>;
  411. pinctrl-names = "default";
  412. pinctrl-0 = <&i2c7_bus>;
  413. clocks = <&cmu_peri CLK_GOUT_I2C7_PCLK>;
  414. clock-names = "i2c";
  415. status = "disabled";
  416. };
  417. };
  418. };
  419. #include "exynos7885-pinctrl.dtsi"
  420. #include "arm/samsung/exynos-syscon-restart.dtsi"