r8a77970.dtsi 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the r8a77970 SoC
  4. *
  5. * Copyright (C) 2016-2017 Renesas Electronics Corp.
  6. * Copyright (C) 2017 Cogent Embedded, Inc.
  7. */
  8. #include <dt-bindings/clock/r8a77970-cpg-mssr.h>
  9. #include <dt-bindings/interrupt-controller/arm-gic.h>
  10. #include <dt-bindings/interrupt-controller/irq.h>
  11. #include <dt-bindings/power/r8a77970-sysc.h>
  12. / {
  13. compatible = "renesas,r8a77970";
  14. #address-cells = <2>;
  15. #size-cells = <2>;
  16. aliases {
  17. i2c0 = &i2c0;
  18. i2c1 = &i2c1;
  19. i2c2 = &i2c2;
  20. i2c3 = &i2c3;
  21. i2c4 = &i2c4;
  22. };
  23. cpus {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. a53_0: cpu@0 {
  27. device_type = "cpu";
  28. compatible = "arm,cortex-a53", "arm,armv8";
  29. reg = <0>;
  30. clocks = <&cpg CPG_CORE R8A77970_CLK_Z2>;
  31. power-domains = <&sysc R8A77970_PD_CA53_CPU0>;
  32. next-level-cache = <&L2_CA53>;
  33. enable-method = "psci";
  34. };
  35. a53_1: cpu@1 {
  36. device_type = "cpu";
  37. compatible = "arm,cortex-a53", "arm,armv8";
  38. reg = <1>;
  39. clocks = <&cpg CPG_CORE R8A77970_CLK_Z2>;
  40. power-domains = <&sysc R8A77970_PD_CA53_CPU1>;
  41. next-level-cache = <&L2_CA53>;
  42. enable-method = "psci";
  43. };
  44. L2_CA53: cache-controller {
  45. compatible = "cache";
  46. power-domains = <&sysc R8A77970_PD_CA53_SCU>;
  47. cache-unified;
  48. cache-level = <2>;
  49. };
  50. };
  51. extal_clk: extal {
  52. compatible = "fixed-clock";
  53. #clock-cells = <0>;
  54. /* This value must be overridden by the board */
  55. clock-frequency = <0>;
  56. };
  57. extalr_clk: extalr {
  58. compatible = "fixed-clock";
  59. #clock-cells = <0>;
  60. /* This value must be overridden by the board */
  61. clock-frequency = <0>;
  62. };
  63. pmu_a53 {
  64. compatible = "arm,cortex-a53-pmu";
  65. interrupts-extended = <&gic GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
  66. <&gic GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
  67. interrupt-affinity = <&a53_0>, <&a53_1>;
  68. };
  69. psci {
  70. compatible = "arm,psci-1.0", "arm,psci-0.2";
  71. method = "smc";
  72. };
  73. /* External CAN clock - to be overridden by boards that provide it */
  74. can_clk: can {
  75. compatible = "fixed-clock";
  76. #clock-cells = <0>;
  77. clock-frequency = <0>;
  78. };
  79. /* External SCIF clock - to be overridden by boards that provide it */
  80. scif_clk: scif {
  81. compatible = "fixed-clock";
  82. #clock-cells = <0>;
  83. clock-frequency = <0>;
  84. };
  85. soc {
  86. compatible = "simple-bus";
  87. interrupt-parent = <&gic>;
  88. #address-cells = <2>;
  89. #size-cells = <2>;
  90. ranges;
  91. rwdt: watchdog@e6020000 {
  92. compatible = "renesas,r8a77970-wdt",
  93. "renesas,rcar-gen3-wdt";
  94. reg = <0 0xe6020000 0 0x0c>;
  95. clocks = <&cpg CPG_MOD 402>;
  96. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  97. resets = <&cpg 402>;
  98. status = "disabled";
  99. };
  100. gpio0: gpio@e6050000 {
  101. compatible = "renesas,gpio-r8a77970",
  102. "renesas,rcar-gen3-gpio";
  103. reg = <0 0xe6050000 0 0x50>;
  104. interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
  105. #gpio-cells = <2>;
  106. gpio-controller;
  107. gpio-ranges = <&pfc 0 0 22>;
  108. #interrupt-cells = <2>;
  109. interrupt-controller;
  110. clocks = <&cpg CPG_MOD 912>;
  111. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  112. resets = <&cpg 912>;
  113. };
  114. gpio1: gpio@e6051000 {
  115. compatible = "renesas,gpio-r8a77970",
  116. "renesas,rcar-gen3-gpio";
  117. reg = <0 0xe6051000 0 0x50>;
  118. interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
  119. #gpio-cells = <2>;
  120. gpio-controller;
  121. gpio-ranges = <&pfc 0 32 28>;
  122. #interrupt-cells = <2>;
  123. interrupt-controller;
  124. clocks = <&cpg CPG_MOD 911>;
  125. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  126. resets = <&cpg 911>;
  127. };
  128. gpio2: gpio@e6052000 {
  129. compatible = "renesas,gpio-r8a77970",
  130. "renesas,rcar-gen3-gpio";
  131. reg = <0 0xe6052000 0 0x50>;
  132. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  133. #gpio-cells = <2>;
  134. gpio-controller;
  135. gpio-ranges = <&pfc 0 64 17>;
  136. #interrupt-cells = <2>;
  137. interrupt-controller;
  138. clocks = <&cpg CPG_MOD 910>;
  139. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  140. resets = <&cpg 910>;
  141. };
  142. gpio3: gpio@e6053000 {
  143. compatible = "renesas,gpio-r8a77970",
  144. "renesas,rcar-gen3-gpio";
  145. reg = <0 0xe6053000 0 0x50>;
  146. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  147. #gpio-cells = <2>;
  148. gpio-controller;
  149. gpio-ranges = <&pfc 0 96 17>;
  150. #interrupt-cells = <2>;
  151. interrupt-controller;
  152. clocks = <&cpg CPG_MOD 909>;
  153. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  154. resets = <&cpg 909>;
  155. };
  156. gpio4: gpio@e6054000 {
  157. compatible = "renesas,gpio-r8a77970",
  158. "renesas,rcar-gen3-gpio";
  159. reg = <0 0xe6054000 0 0x50>;
  160. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  161. #gpio-cells = <2>;
  162. gpio-controller;
  163. gpio-ranges = <&pfc 0 128 6>;
  164. #interrupt-cells = <2>;
  165. interrupt-controller;
  166. clocks = <&cpg CPG_MOD 908>;
  167. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  168. resets = <&cpg 908>;
  169. };
  170. gpio5: gpio@e6055000 {
  171. compatible = "renesas,gpio-r8a77970",
  172. "renesas,rcar-gen3-gpio";
  173. reg = <0 0xe6055000 0 0x50>;
  174. interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  175. #gpio-cells = <2>;
  176. gpio-controller;
  177. gpio-ranges = <&pfc 0 160 15>;
  178. #interrupt-cells = <2>;
  179. interrupt-controller;
  180. clocks = <&cpg CPG_MOD 907>;
  181. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  182. resets = <&cpg 907>;
  183. };
  184. pfc: pin-controller@e6060000 {
  185. compatible = "renesas,pfc-r8a77970";
  186. reg = <0 0xe6060000 0 0x504>;
  187. };
  188. cpg: clock-controller@e6150000 {
  189. compatible = "renesas,r8a77970-cpg-mssr";
  190. reg = <0 0xe6150000 0 0x1000>;
  191. clocks = <&extal_clk>, <&extalr_clk>;
  192. clock-names = "extal", "extalr";
  193. #clock-cells = <2>;
  194. #power-domain-cells = <0>;
  195. #reset-cells = <1>;
  196. };
  197. rst: reset-controller@e6160000 {
  198. compatible = "renesas,r8a77970-rst";
  199. reg = <0 0xe6160000 0 0x200>;
  200. };
  201. sysc: system-controller@e6180000 {
  202. compatible = "renesas,r8a77970-sysc";
  203. reg = <0 0xe6180000 0 0x440>;
  204. #power-domain-cells = <1>;
  205. };
  206. intc_ex: interrupt-controller@e61c0000 {
  207. compatible = "renesas,intc-ex-r8a77970", "renesas,irqc";
  208. #interrupt-cells = <2>;
  209. interrupt-controller;
  210. reg = <0 0xe61c0000 0 0x200>;
  211. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH
  212. GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH
  213. GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH
  214. GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH
  215. GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH
  216. GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
  217. clocks = <&cpg CPG_MOD 407>;
  218. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  219. resets = <&cpg 407>;
  220. };
  221. i2c0: i2c@e6500000 {
  222. compatible = "renesas,i2c-r8a77970",
  223. "renesas,rcar-gen3-i2c";
  224. reg = <0 0xe6500000 0 0x40>;
  225. interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>;
  226. clocks = <&cpg CPG_MOD 931>;
  227. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  228. resets = <&cpg 931>;
  229. dmas = <&dmac1 0x91>, <&dmac1 0x90>,
  230. <&dmac2 0x91>, <&dmac2 0x90>;
  231. dma-names = "tx", "rx", "tx", "rx";
  232. i2c-scl-internal-delay-ns = <6>;
  233. #address-cells = <1>;
  234. #size-cells = <0>;
  235. status = "disabled";
  236. };
  237. i2c1: i2c@e6508000 {
  238. compatible = "renesas,i2c-r8a77970",
  239. "renesas,rcar-gen3-i2c";
  240. reg = <0 0xe6508000 0 0x40>;
  241. interrupts = <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>;
  242. clocks = <&cpg CPG_MOD 930>;
  243. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  244. resets = <&cpg 930>;
  245. dmas = <&dmac1 0x93>, <&dmac1 0x92>,
  246. <&dmac2 0x93>, <&dmac2 0x92>;
  247. dma-names = "tx", "rx", "tx", "rx";
  248. i2c-scl-internal-delay-ns = <6>;
  249. #address-cells = <1>;
  250. #size-cells = <0>;
  251. status = "disabled";
  252. };
  253. i2c2: i2c@e6510000 {
  254. compatible = "renesas,i2c-r8a77970",
  255. "renesas,rcar-gen3-i2c";
  256. reg = <0 0xe6510000 0 0x40>;
  257. interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>;
  258. clocks = <&cpg CPG_MOD 929>;
  259. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  260. resets = <&cpg 929>;
  261. dmas = <&dmac1 0x95>, <&dmac1 0x94>,
  262. <&dmac2 0x95>, <&dmac2 0x94>;
  263. dma-names = "tx", "rx", "tx", "rx";
  264. i2c-scl-internal-delay-ns = <6>;
  265. #address-cells = <1>;
  266. #size-cells = <0>;
  267. status = "disabled";
  268. };
  269. i2c3: i2c@e66d0000 {
  270. compatible = "renesas,i2c-r8a77970",
  271. "renesas,rcar-gen3-i2c";
  272. reg = <0 0xe66d0000 0 0x40>;
  273. interrupts = <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>;
  274. clocks = <&cpg CPG_MOD 928>;
  275. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  276. resets = <&cpg 928>;
  277. dmas = <&dmac1 0x97>, <&dmac1 0x96>,
  278. <&dmac2 0x97>, <&dmac2 0x96>;
  279. dma-names = "tx", "rx", "tx", "rx";
  280. i2c-scl-internal-delay-ns = <6>;
  281. #address-cells = <1>;
  282. #size-cells = <0>;
  283. status = "disabled";
  284. };
  285. i2c4: i2c@e66d8000 {
  286. compatible = "renesas,i2c-r8a77970",
  287. "renesas,rcar-gen3-i2c";
  288. reg = <0 0xe66d8000 0 0x40>;
  289. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  290. clocks = <&cpg CPG_MOD 927>;
  291. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  292. resets = <&cpg 927>;
  293. dmas = <&dmac1 0x99>, <&dmac1 0x98>,
  294. <&dmac2 0x99>, <&dmac2 0x98>;
  295. dma-names = "tx", "rx", "tx", "rx";
  296. i2c-scl-internal-delay-ns = <6>;
  297. #address-cells = <1>;
  298. #size-cells = <0>;
  299. status = "disabled";
  300. };
  301. hscif0: serial@e6540000 {
  302. compatible = "renesas,hscif-r8a77970",
  303. "renesas,rcar-gen3-hscif",
  304. "renesas,hscif";
  305. reg = <0 0xe6540000 0 96>;
  306. interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
  307. clocks = <&cpg CPG_MOD 520>,
  308. <&cpg CPG_CORE R8A77970_CLK_S2D1>,
  309. <&scif_clk>;
  310. clock-names = "fck", "brg_int", "scif_clk";
  311. dmas = <&dmac1 0x31>, <&dmac1 0x30>,
  312. <&dmac2 0x31>, <&dmac2 0x30>;
  313. dma-names = "tx", "rx", "tx", "rx";
  314. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  315. resets = <&cpg 520>;
  316. status = "disabled";
  317. };
  318. hscif1: serial@e6550000 {
  319. compatible = "renesas,hscif-r8a77970",
  320. "renesas,rcar-gen3-hscif",
  321. "renesas,hscif";
  322. reg = <0 0xe6550000 0 96>;
  323. interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
  324. clocks = <&cpg CPG_MOD 519>,
  325. <&cpg CPG_CORE R8A77970_CLK_S2D1>,
  326. <&scif_clk>;
  327. clock-names = "fck", "brg_int", "scif_clk";
  328. dmas = <&dmac1 0x33>, <&dmac1 0x32>,
  329. <&dmac2 0x33>, <&dmac2 0x32>;
  330. dma-names = "tx", "rx", "tx", "rx";
  331. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  332. resets = <&cpg 519>;
  333. status = "disabled";
  334. };
  335. hscif2: serial@e6560000 {
  336. compatible = "renesas,hscif-r8a77970",
  337. "renesas,rcar-gen3-hscif",
  338. "renesas,hscif";
  339. reg = <0 0xe6560000 0 96>;
  340. interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
  341. clocks = <&cpg CPG_MOD 518>,
  342. <&cpg CPG_CORE R8A77970_CLK_S2D1>,
  343. <&scif_clk>;
  344. clock-names = "fck", "brg_int", "scif_clk";
  345. dmas = <&dmac1 0x35>, <&dmac1 0x34>,
  346. <&dmac2 0x35>, <&dmac2 0x34>;
  347. dma-names = "tx", "rx", "tx", "rx";
  348. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  349. resets = <&cpg 518>;
  350. status = "disabled";
  351. };
  352. hscif3: serial@e66a0000 {
  353. compatible = "renesas,hscif-r8a77970",
  354. "renesas,rcar-gen3-hscif", "renesas,hscif";
  355. reg = <0 0xe66a0000 0 96>;
  356. interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
  357. clocks = <&cpg CPG_MOD 517>,
  358. <&cpg CPG_CORE R8A77970_CLK_S2D1>,
  359. <&scif_clk>;
  360. clock-names = "fck", "brg_int", "scif_clk";
  361. dmas = <&dmac1 0x37>, <&dmac1 0x36>,
  362. <&dmac2 0x37>, <&dmac2 0x36>;
  363. dma-names = "tx", "rx", "tx", "rx";
  364. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  365. resets = <&cpg 517>;
  366. status = "disabled";
  367. };
  368. canfd: can@e66c0000 {
  369. compatible = "renesas,r8a77970-canfd",
  370. "renesas,rcar-gen3-canfd";
  371. reg = <0 0xe66c0000 0 0x8000>;
  372. interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
  373. <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  374. clocks = <&cpg CPG_MOD 914>,
  375. <&cpg CPG_CORE R8A77970_CLK_CANFD>,
  376. <&can_clk>;
  377. clock-names = "fck", "canfd", "can_clk";
  378. assigned-clocks = <&cpg CPG_CORE R8A77970_CLK_CANFD>;
  379. assigned-clock-rates = <40000000>;
  380. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  381. resets = <&cpg 914>;
  382. status = "disabled";
  383. channel0 {
  384. status = "disabled";
  385. };
  386. channel1 {
  387. status = "disabled";
  388. };
  389. };
  390. avb: ethernet@e6800000 {
  391. compatible = "renesas,etheravb-r8a77970",
  392. "renesas,etheravb-rcar-gen3";
  393. reg = <0 0xe6800000 0 0x800>;
  394. interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
  395. <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
  396. <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
  397. <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
  398. <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
  399. <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
  400. <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
  401. <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
  402. <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
  403. <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
  404. <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
  405. <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
  406. <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
  407. <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
  408. <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
  409. <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
  410. <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
  411. <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
  412. <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
  413. <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
  414. <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
  415. <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
  416. <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
  417. <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
  418. <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
  419. interrupt-names = "ch0", "ch1", "ch2", "ch3",
  420. "ch4", "ch5", "ch6", "ch7",
  421. "ch8", "ch9", "ch10", "ch11",
  422. "ch12", "ch13", "ch14", "ch15",
  423. "ch16", "ch17", "ch18", "ch19",
  424. "ch20", "ch21", "ch22", "ch23",
  425. "ch24";
  426. clocks = <&cpg CPG_MOD 812>;
  427. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  428. resets = <&cpg 812>;
  429. phy-mode = "rgmii";
  430. iommus = <&ipmmu_rt 3>;
  431. #address-cells = <1>;
  432. #size-cells = <0>;
  433. status = "disabled";
  434. };
  435. scif0: serial@e6e60000 {
  436. compatible = "renesas,scif-r8a77970",
  437. "renesas,rcar-gen3-scif",
  438. "renesas,scif";
  439. reg = <0 0xe6e60000 0 64>;
  440. interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
  441. clocks = <&cpg CPG_MOD 207>,
  442. <&cpg CPG_CORE R8A77970_CLK_S2D1>,
  443. <&scif_clk>;
  444. clock-names = "fck", "brg_int", "scif_clk";
  445. dmas = <&dmac1 0x51>, <&dmac1 0x50>,
  446. <&dmac2 0x51>, <&dmac2 0x50>;
  447. dma-names = "tx", "rx", "tx", "rx";
  448. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  449. resets = <&cpg 207>;
  450. status = "disabled";
  451. };
  452. scif1: serial@e6e68000 {
  453. compatible = "renesas,scif-r8a77970",
  454. "renesas,rcar-gen3-scif",
  455. "renesas,scif";
  456. reg = <0 0xe6e68000 0 64>;
  457. interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
  458. clocks = <&cpg CPG_MOD 206>,
  459. <&cpg CPG_CORE R8A77970_CLK_S2D1>,
  460. <&scif_clk>;
  461. clock-names = "fck", "brg_int", "scif_clk";
  462. dmas = <&dmac1 0x53>, <&dmac1 0x52>,
  463. <&dmac2 0x53>, <&dmac2 0x52>;
  464. dma-names = "tx", "rx", "tx", "rx";
  465. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  466. resets = <&cpg 206>;
  467. status = "disabled";
  468. };
  469. scif3: serial@e6c50000 {
  470. compatible = "renesas,scif-r8a77970",
  471. "renesas,rcar-gen3-scif",
  472. "renesas,scif";
  473. reg = <0 0xe6c50000 0 64>;
  474. interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
  475. clocks = <&cpg CPG_MOD 204>,
  476. <&cpg CPG_CORE R8A77970_CLK_S2D1>,
  477. <&scif_clk>;
  478. clock-names = "fck", "brg_int", "scif_clk";
  479. dmas = <&dmac1 0x57>, <&dmac1 0x56>,
  480. <&dmac2 0x57>, <&dmac2 0x56>;
  481. dma-names = "tx", "rx", "tx", "rx";
  482. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  483. resets = <&cpg 204>;
  484. status = "disabled";
  485. };
  486. scif4: serial@e6c40000 {
  487. compatible = "renesas,scif-r8a77970",
  488. "renesas,rcar-gen3-scif", "renesas,scif";
  489. reg = <0 0xe6c40000 0 64>;
  490. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  491. clocks = <&cpg CPG_MOD 203>,
  492. <&cpg CPG_CORE R8A77970_CLK_S2D1>,
  493. <&scif_clk>;
  494. clock-names = "fck", "brg_int", "scif_clk";
  495. dmas = <&dmac1 0x59>, <&dmac1 0x58>,
  496. <&dmac2 0x59>, <&dmac2 0x58>;
  497. dma-names = "tx", "rx", "tx", "rx";
  498. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  499. resets = <&cpg 203>;
  500. status = "disabled";
  501. };
  502. vin0: video@e6ef0000 {
  503. compatible = "renesas,vin-r8a77970";
  504. reg = <0 0xe6ef0000 0 0x1000>;
  505. interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
  506. clocks = <&cpg CPG_MOD 811>;
  507. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  508. resets = <&cpg 811>;
  509. renesas,id = <0>;
  510. status = "disabled";
  511. ports {
  512. #address-cells = <1>;
  513. #size-cells = <0>;
  514. port@1 {
  515. #address-cells = <1>;
  516. #size-cells = <0>;
  517. reg = <1>;
  518. vin0csi40: endpoint@2 {
  519. reg = <2>;
  520. remote-endpoint= <&csi40vin0>;
  521. };
  522. };
  523. };
  524. };
  525. vin1: video@e6ef1000 {
  526. compatible = "renesas,vin-r8a77970";
  527. reg = <0 0xe6ef1000 0 0x1000>;
  528. interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
  529. clocks = <&cpg CPG_MOD 810>;
  530. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  531. resets = <&cpg 810>;
  532. renesas,id = <1>;
  533. status = "disabled";
  534. ports {
  535. #address-cells = <1>;
  536. #size-cells = <0>;
  537. port@1 {
  538. #address-cells = <1>;
  539. #size-cells = <0>;
  540. reg = <1>;
  541. vin1csi40: endpoint@2 {
  542. reg = <2>;
  543. remote-endpoint= <&csi40vin1>;
  544. };
  545. };
  546. };
  547. };
  548. vin2: video@e6ef2000 {
  549. compatible = "renesas,vin-r8a77970";
  550. reg = <0 0xe6ef2000 0 0x1000>;
  551. interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
  552. clocks = <&cpg CPG_MOD 809>;
  553. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  554. resets = <&cpg 809>;
  555. renesas,id = <2>;
  556. status = "disabled";
  557. ports {
  558. #address-cells = <1>;
  559. #size-cells = <0>;
  560. port@1 {
  561. #address-cells = <1>;
  562. #size-cells = <0>;
  563. reg = <1>;
  564. vin2csi40: endpoint@2 {
  565. reg = <2>;
  566. remote-endpoint= <&csi40vin2>;
  567. };
  568. };
  569. };
  570. };
  571. vin3: video@e6ef3000 {
  572. compatible = "renesas,vin-r8a77970";
  573. reg = <0 0xe6ef3000 0 0x1000>;
  574. interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
  575. clocks = <&cpg CPG_MOD 808>;
  576. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  577. resets = <&cpg 808>;
  578. renesas,id = <3>;
  579. status = "disabled";
  580. ports {
  581. #address-cells = <1>;
  582. #size-cells = <0>;
  583. port@1 {
  584. #address-cells = <1>;
  585. #size-cells = <0>;
  586. reg = <1>;
  587. vin3csi40: endpoint@2 {
  588. reg = <2>;
  589. remote-endpoint= <&csi40vin3>;
  590. };
  591. };
  592. };
  593. };
  594. dmac1: dma-controller@e7300000 {
  595. compatible = "renesas,dmac-r8a77970",
  596. "renesas,rcar-dmac";
  597. reg = <0 0xe7300000 0 0x10000>;
  598. interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH
  599. GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH
  600. GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH
  601. GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH
  602. GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH
  603. GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH
  604. GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH
  605. GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH
  606. GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>;
  607. interrupt-names = "error",
  608. "ch0", "ch1", "ch2", "ch3",
  609. "ch4", "ch5", "ch6", "ch7";
  610. clocks = <&cpg CPG_MOD 218>;
  611. clock-names = "fck";
  612. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  613. resets = <&cpg 218>;
  614. #dma-cells = <1>;
  615. dma-channels = <8>;
  616. iommus = <&ipmmu_ds1 0>, <&ipmmu_ds1 1>,
  617. <&ipmmu_ds1 2>, <&ipmmu_ds1 3>,
  618. <&ipmmu_ds1 4>, <&ipmmu_ds1 5>,
  619. <&ipmmu_ds1 6>, <&ipmmu_ds1 7>;
  620. };
  621. dmac2: dma-controller@e7310000 {
  622. compatible = "renesas,dmac-r8a77970",
  623. "renesas,rcar-dmac";
  624. reg = <0 0xe7310000 0 0x10000>;
  625. interrupts = <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH
  626. GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH
  627. GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH
  628. GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH
  629. GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH
  630. GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH
  631. GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH
  632. GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH
  633. GIC_SPI 319 IRQ_TYPE_LEVEL_HIGH>;
  634. interrupt-names = "error",
  635. "ch0", "ch1", "ch2", "ch3",
  636. "ch4", "ch5", "ch6", "ch7";
  637. clocks = <&cpg CPG_MOD 217>;
  638. clock-names = "fck";
  639. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  640. resets = <&cpg 217>;
  641. #dma-cells = <1>;
  642. dma-channels = <8>;
  643. iommus = <&ipmmu_ds1 16>, <&ipmmu_ds1 17>,
  644. <&ipmmu_ds1 18>, <&ipmmu_ds1 19>,
  645. <&ipmmu_ds1 20>, <&ipmmu_ds1 21>,
  646. <&ipmmu_ds1 22>, <&ipmmu_ds1 23>;
  647. };
  648. ipmmu_ds1: mmu@e7740000 {
  649. compatible = "renesas,ipmmu-r8a77970";
  650. reg = <0 0xe7740000 0 0x1000>;
  651. renesas,ipmmu-main = <&ipmmu_mm 0>;
  652. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  653. #iommu-cells = <1>;
  654. };
  655. ipmmu_ir: mmu@ff8b0000 {
  656. compatible = "renesas,ipmmu-r8a77970";
  657. reg = <0 0xff8b0000 0 0x1000>;
  658. renesas,ipmmu-main = <&ipmmu_mm 3>;
  659. power-domains = <&sysc R8A77970_PD_A3IR>;
  660. #iommu-cells = <1>;
  661. };
  662. ipmmu_mm: mmu@e67b0000 {
  663. compatible = "renesas,ipmmu-r8a77970";
  664. reg = <0 0xe67b0000 0 0x1000>;
  665. interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
  666. <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>;
  667. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  668. #iommu-cells = <1>;
  669. };
  670. ipmmu_rt: mmu@ffc80000 {
  671. compatible = "renesas,ipmmu-r8a77970";
  672. reg = <0 0xffc80000 0 0x1000>;
  673. renesas,ipmmu-main = <&ipmmu_mm 7>;
  674. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  675. #iommu-cells = <1>;
  676. };
  677. ipmmu_vi0: mmu@febd0000 {
  678. compatible = "renesas,ipmmu-r8a77970";
  679. reg = <0 0xfebd0000 0 0x1000>;
  680. renesas,ipmmu-main = <&ipmmu_mm 9>;
  681. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  682. #iommu-cells = <1>;
  683. };
  684. gic: interrupt-controller@f1010000 {
  685. compatible = "arm,gic-400";
  686. #interrupt-cells = <3>;
  687. #address-cells = <0>;
  688. interrupt-controller;
  689. reg = <0 0xf1010000 0 0x1000>,
  690. <0 0xf1020000 0 0x20000>,
  691. <0 0xf1040000 0 0x20000>,
  692. <0 0xf1060000 0 0x20000>;
  693. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) |
  694. IRQ_TYPE_LEVEL_HIGH)>;
  695. clocks = <&cpg CPG_MOD 408>;
  696. clock-names = "clk";
  697. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  698. resets = <&cpg 408>;
  699. };
  700. vspd0: vsp@fea20000 {
  701. compatible = "renesas,vsp2";
  702. reg = <0 0xfea20000 0 0x5000>;
  703. interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
  704. clocks = <&cpg CPG_MOD 623>;
  705. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  706. resets = <&cpg 623>;
  707. renesas,fcp = <&fcpvd0>;
  708. };
  709. fcpvd0: fcp@fea27000 {
  710. compatible = "renesas,fcpv";
  711. reg = <0 0xfea27000 0 0x200>;
  712. clocks = <&cpg CPG_MOD 603>;
  713. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  714. resets = <&cpg 603>;
  715. };
  716. csi40: csi2@feaa0000 {
  717. compatible = "renesas,r8a77970-csi2";
  718. reg = <0 0xfeaa0000 0 0x10000>;
  719. interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
  720. clocks = <&cpg CPG_MOD 716>;
  721. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  722. resets = <&cpg 716>;
  723. status = "disabled";
  724. ports {
  725. #address-cells = <1>;
  726. #size-cells = <0>;
  727. port@1 {
  728. #address-cells = <1>;
  729. #size-cells = <0>;
  730. reg = <1>;
  731. csi40vin0: endpoint@0 {
  732. reg = <0>;
  733. remote-endpoint = <&vin0csi40>;
  734. };
  735. csi40vin1: endpoint@1 {
  736. reg = <1>;
  737. remote-endpoint = <&vin1csi40>;
  738. };
  739. csi40vin2: endpoint@2 {
  740. reg = <2>;
  741. remote-endpoint = <&vin2csi40>;
  742. };
  743. csi40vin3: endpoint@3 {
  744. reg = <3>;
  745. remote-endpoint = <&vin3csi40>;
  746. };
  747. };
  748. };
  749. };
  750. du: display@feb00000 {
  751. compatible = "renesas,du-r8a77970";
  752. reg = <0 0xfeb00000 0 0x80000>;
  753. interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>;
  754. clocks = <&cpg CPG_MOD 724>;
  755. clock-names = "du.0";
  756. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  757. resets = <&cpg 724>;
  758. vsps = <&vspd0>;
  759. status = "disabled";
  760. ports {
  761. #address-cells = <1>;
  762. #size-cells = <0>;
  763. port@0 {
  764. reg = <0>;
  765. du_out_rgb: endpoint {
  766. };
  767. };
  768. port@1 {
  769. reg = <1>;
  770. du_out_lvds0: endpoint {
  771. remote-endpoint = <&lvds0_in>;
  772. };
  773. };
  774. };
  775. };
  776. lvds0: lvds-encoder@feb90000 {
  777. compatible = "renesas,r8a77970-lvds";
  778. reg = <0 0xfeb90000 0 0x14>;
  779. clocks = <&cpg CPG_MOD 727>;
  780. power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
  781. resets = <&cpg 727>;
  782. status = "disabled";
  783. ports {
  784. #address-cells = <1>;
  785. #size-cells = <0>;
  786. port@0 {
  787. reg = <0>;
  788. lvds0_in: endpoint {
  789. remote-endpoint =
  790. <&du_out_lvds0>;
  791. };
  792. };
  793. port@1 {
  794. reg = <1>;
  795. lvds0_out: endpoint {
  796. };
  797. };
  798. };
  799. };
  800. prr: chipid@fff00044 {
  801. compatible = "renesas,prr";
  802. reg = <0 0xfff00044 0 4>;
  803. };
  804. };
  805. timer {
  806. compatible = "arm,armv8-timer";
  807. interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
  808. <&gic GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
  809. <&gic GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
  810. <&gic GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
  811. };
  812. };