r8a7779.dtsi 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the R-Car H1 (R8A77790) SoC
  4. *
  5. * Copyright (C) 2013 Renesas Solutions Corp.
  6. * Copyright (C) 2013 Simon Horman
  7. */
  8. #include <dt-bindings/clock/r8a7779-clock.h>
  9. #include <dt-bindings/interrupt-controller/arm-gic.h>
  10. #include <dt-bindings/interrupt-controller/irq.h>
  11. #include <dt-bindings/power/r8a7779-sysc.h>
  12. / {
  13. compatible = "renesas,r8a7779";
  14. interrupt-parent = <&gic>;
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. cpus {
  18. #address-cells = <1>;
  19. #size-cells = <0>;
  20. cpu@0 {
  21. device_type = "cpu";
  22. compatible = "arm,cortex-a9";
  23. reg = <0>;
  24. clock-frequency = <1000000000>;
  25. clocks = <&cpg_clocks R8A7779_CLK_Z>;
  26. };
  27. cpu@1 {
  28. device_type = "cpu";
  29. compatible = "arm,cortex-a9";
  30. reg = <1>;
  31. clock-frequency = <1000000000>;
  32. clocks = <&cpg_clocks R8A7779_CLK_Z>;
  33. power-domains = <&sysc R8A7779_PD_ARM1>;
  34. };
  35. cpu@2 {
  36. device_type = "cpu";
  37. compatible = "arm,cortex-a9";
  38. reg = <2>;
  39. clock-frequency = <1000000000>;
  40. clocks = <&cpg_clocks R8A7779_CLK_Z>;
  41. power-domains = <&sysc R8A7779_PD_ARM2>;
  42. };
  43. cpu@3 {
  44. device_type = "cpu";
  45. compatible = "arm,cortex-a9";
  46. reg = <3>;
  47. clock-frequency = <1000000000>;
  48. clocks = <&cpg_clocks R8A7779_CLK_Z>;
  49. power-domains = <&sysc R8A7779_PD_ARM3>;
  50. };
  51. };
  52. aliases {
  53. spi0 = &hspi0;
  54. spi1 = &hspi1;
  55. spi2 = &hspi2;
  56. };
  57. gic: interrupt-controller@f0001000 {
  58. compatible = "arm,cortex-a9-gic";
  59. #interrupt-cells = <3>;
  60. interrupt-controller;
  61. reg = <0xf0001000 0x1000>,
  62. <0xf0000100 0x100>;
  63. };
  64. timer@f0000200 {
  65. compatible = "arm,cortex-a9-global-timer";
  66. reg = <0xf0000200 0x100>;
  67. interrupts = <GIC_PPI 11
  68. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
  69. clocks = <&cpg_clocks R8A7779_CLK_ZS>;
  70. };
  71. timer@f0000600 {
  72. compatible = "arm,cortex-a9-twd-timer";
  73. reg = <0xf0000600 0x20>;
  74. interrupts = <GIC_PPI 13
  75. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
  76. clocks = <&cpg_clocks R8A7779_CLK_ZS>;
  77. };
  78. gpio0: gpio@ffc40000 {
  79. compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
  80. reg = <0xffc40000 0x2c>;
  81. interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
  82. #gpio-cells = <2>;
  83. gpio-controller;
  84. gpio-ranges = <&pfc 0 0 32>;
  85. #interrupt-cells = <2>;
  86. interrupt-controller;
  87. };
  88. gpio1: gpio@ffc41000 {
  89. compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
  90. reg = <0xffc41000 0x2c>;
  91. interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
  92. #gpio-cells = <2>;
  93. gpio-controller;
  94. gpio-ranges = <&pfc 0 32 32>;
  95. #interrupt-cells = <2>;
  96. interrupt-controller;
  97. };
  98. gpio2: gpio@ffc42000 {
  99. compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
  100. reg = <0xffc42000 0x2c>;
  101. interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
  102. #gpio-cells = <2>;
  103. gpio-controller;
  104. gpio-ranges = <&pfc 0 64 32>;
  105. #interrupt-cells = <2>;
  106. interrupt-controller;
  107. };
  108. gpio3: gpio@ffc43000 {
  109. compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
  110. reg = <0xffc43000 0x2c>;
  111. interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
  112. #gpio-cells = <2>;
  113. gpio-controller;
  114. gpio-ranges = <&pfc 0 96 32>;
  115. #interrupt-cells = <2>;
  116. interrupt-controller;
  117. };
  118. gpio4: gpio@ffc44000 {
  119. compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
  120. reg = <0xffc44000 0x2c>;
  121. interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
  122. #gpio-cells = <2>;
  123. gpio-controller;
  124. gpio-ranges = <&pfc 0 128 32>;
  125. #interrupt-cells = <2>;
  126. interrupt-controller;
  127. };
  128. gpio5: gpio@ffc45000 {
  129. compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
  130. reg = <0xffc45000 0x2c>;
  131. interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
  132. #gpio-cells = <2>;
  133. gpio-controller;
  134. gpio-ranges = <&pfc 0 160 32>;
  135. #interrupt-cells = <2>;
  136. interrupt-controller;
  137. };
  138. gpio6: gpio@ffc46000 {
  139. compatible = "renesas,gpio-r8a7779", "renesas,rcar-gen1-gpio";
  140. reg = <0xffc46000 0x2c>;
  141. interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
  142. #gpio-cells = <2>;
  143. gpio-controller;
  144. gpio-ranges = <&pfc 0 192 9>;
  145. #interrupt-cells = <2>;
  146. interrupt-controller;
  147. };
  148. irqpin0: interrupt-controller@fe78001c {
  149. compatible = "renesas,intc-irqpin-r8a7779", "renesas,intc-irqpin";
  150. #interrupt-cells = <2>;
  151. status = "disabled";
  152. interrupt-controller;
  153. reg = <0xfe78001c 4>,
  154. <0xfe780010 4>,
  155. <0xfe780024 4>,
  156. <0xfe780044 4>,
  157. <0xfe780064 4>,
  158. <0xfe780000 4>;
  159. interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
  160. <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>,
  161. <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
  162. <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  163. sense-bitfield-width = <2>;
  164. };
  165. i2c0: i2c@ffc70000 {
  166. #address-cells = <1>;
  167. #size-cells = <0>;
  168. compatible = "renesas,i2c-r8a7779", "renesas,rcar-gen1-i2c";
  169. reg = <0xffc70000 0x1000>;
  170. interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
  171. clocks = <&mstp0_clks R8A7779_CLK_I2C0>;
  172. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  173. status = "disabled";
  174. };
  175. i2c1: i2c@ffc71000 {
  176. #address-cells = <1>;
  177. #size-cells = <0>;
  178. compatible = "renesas,i2c-r8a7779", "renesas,rcar-gen1-i2c";
  179. reg = <0xffc71000 0x1000>;
  180. interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
  181. clocks = <&mstp0_clks R8A7779_CLK_I2C1>;
  182. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  183. i2c-scl-internal-delay-ns = <5>;
  184. status = "disabled";
  185. };
  186. i2c2: i2c@ffc72000 {
  187. #address-cells = <1>;
  188. #size-cells = <0>;
  189. compatible = "renesas,i2c-r8a7779", "renesas,rcar-gen1-i2c";
  190. reg = <0xffc72000 0x1000>;
  191. interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
  192. clocks = <&mstp0_clks R8A7779_CLK_I2C2>;
  193. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  194. i2c-scl-internal-delay-ns = <5>;
  195. status = "disabled";
  196. };
  197. i2c3: i2c@ffc73000 {
  198. #address-cells = <1>;
  199. #size-cells = <0>;
  200. compatible = "renesas,i2c-r8a7779", "renesas,rcar-gen1-i2c";
  201. reg = <0xffc73000 0x1000>;
  202. interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
  203. clocks = <&mstp0_clks R8A7779_CLK_I2C3>;
  204. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  205. i2c-scl-internal-delay-ns = <5>;
  206. status = "disabled";
  207. };
  208. scif0: serial@ffe40000 {
  209. compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
  210. "renesas,scif";
  211. reg = <0xffe40000 0x100>;
  212. interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
  213. clocks = <&mstp0_clks R8A7779_CLK_SCIF0>,
  214. <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
  215. clock-names = "fck", "brg_int", "scif_clk";
  216. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  217. status = "disabled";
  218. };
  219. scif1: serial@ffe41000 {
  220. compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
  221. "renesas,scif";
  222. reg = <0xffe41000 0x100>;
  223. interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
  224. clocks = <&mstp0_clks R8A7779_CLK_SCIF1>,
  225. <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
  226. clock-names = "fck", "brg_int", "scif_clk";
  227. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  228. status = "disabled";
  229. };
  230. scif2: serial@ffe42000 {
  231. compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
  232. "renesas,scif";
  233. reg = <0xffe42000 0x100>;
  234. interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
  235. clocks = <&mstp0_clks R8A7779_CLK_SCIF2>,
  236. <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
  237. clock-names = "fck", "brg_int", "scif_clk";
  238. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  239. status = "disabled";
  240. };
  241. scif3: serial@ffe43000 {
  242. compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
  243. "renesas,scif";
  244. reg = <0xffe43000 0x100>;
  245. interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
  246. clocks = <&mstp0_clks R8A7779_CLK_SCIF3>,
  247. <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
  248. clock-names = "fck", "brg_int", "scif_clk";
  249. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  250. status = "disabled";
  251. };
  252. scif4: serial@ffe44000 {
  253. compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
  254. "renesas,scif";
  255. reg = <0xffe44000 0x100>;
  256. interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
  257. clocks = <&mstp0_clks R8A7779_CLK_SCIF4>,
  258. <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
  259. clock-names = "fck", "brg_int", "scif_clk";
  260. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  261. status = "disabled";
  262. };
  263. scif5: serial@ffe45000 {
  264. compatible = "renesas,scif-r8a7779", "renesas,rcar-gen1-scif",
  265. "renesas,scif";
  266. reg = <0xffe45000 0x100>;
  267. interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
  268. clocks = <&mstp0_clks R8A7779_CLK_SCIF5>,
  269. <&cpg_clocks R8A7779_CLK_S1>, <&scif_clk>;
  270. clock-names = "fck", "brg_int", "scif_clk";
  271. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  272. status = "disabled";
  273. };
  274. hscif0: serial@ffe48000 {
  275. compatible = "renesas,hscif-r8a7779",
  276. "renesas,rcar-gen1-hscif", "renesas,hscif";
  277. reg = <0xffe48000 96>;
  278. interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
  279. clocks = <&mstp0_clks R8A7779_CLK_HSCIF0>,
  280. <&cpg_clocks R8A7779_CLK_S>,
  281. <&scif_clk>;
  282. clock-names = "fck", "brg_int", "scif_clk";
  283. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  284. status = "disabled";
  285. };
  286. hscif1: serial@ffe49000 {
  287. compatible = "renesas,hscif-r8a7779",
  288. "renesas,rcar-gen1-hscif", "renesas,hscif";
  289. reg = <0xffe49000 96>;
  290. interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
  291. clocks = <&mstp0_clks R8A7779_CLK_HSCIF1>,
  292. <&cpg_clocks R8A7779_CLK_S>,
  293. <&scif_clk>;
  294. clock-names = "fck", "brg_int", "scif_clk";
  295. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  296. status = "disabled";
  297. };
  298. pfc: pinctrl@fffc0000 {
  299. compatible = "renesas,pfc-r8a7779";
  300. reg = <0xfffc0000 0x23c>;
  301. };
  302. thermal@ffc48000 {
  303. compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
  304. reg = <0xffc48000 0x38>;
  305. };
  306. tmu0: timer@ffd80000 {
  307. compatible = "renesas,tmu-r8a7779", "renesas,tmu";
  308. reg = <0xffd80000 0x30>;
  309. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
  310. <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
  311. <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
  312. clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
  313. clock-names = "fck";
  314. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  315. #renesas,channels = <3>;
  316. status = "disabled";
  317. };
  318. tmu1: timer@ffd81000 {
  319. compatible = "renesas,tmu-r8a7779", "renesas,tmu";
  320. reg = <0xffd81000 0x30>;
  321. interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
  322. <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
  323. <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  324. clocks = <&mstp0_clks R8A7779_CLK_TMU1>;
  325. clock-names = "fck";
  326. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  327. #renesas,channels = <3>;
  328. status = "disabled";
  329. };
  330. tmu2: timer@ffd82000 {
  331. compatible = "renesas,tmu-r8a7779", "renesas,tmu";
  332. reg = <0xffd82000 0x30>;
  333. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
  334. <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
  335. <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
  336. clocks = <&mstp0_clks R8A7779_CLK_TMU2>;
  337. clock-names = "fck";
  338. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  339. #renesas,channels = <3>;
  340. status = "disabled";
  341. };
  342. sata: sata@fc600000 {
  343. compatible = "renesas,sata-r8a7779";
  344. reg = <0xfc600000 0x200000>;
  345. interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
  346. clocks = <&mstp1_clks R8A7779_CLK_SATA>;
  347. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  348. status = "disabled";
  349. };
  350. sdhi0: mmc@ffe4c000 {
  351. compatible = "renesas,sdhi-r8a7779",
  352. "renesas,rcar-gen1-sdhi";
  353. reg = <0xffe4c000 0x100>;
  354. interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
  355. clocks = <&mstp3_clks R8A7779_CLK_SDHI0>;
  356. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  357. status = "disabled";
  358. };
  359. sdhi1: mmc@ffe4d000 {
  360. compatible = "renesas,sdhi-r8a7779",
  361. "renesas,rcar-gen1-sdhi";
  362. reg = <0xffe4d000 0x100>;
  363. interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
  364. clocks = <&mstp3_clks R8A7779_CLK_SDHI1>;
  365. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  366. status = "disabled";
  367. };
  368. sdhi2: mmc@ffe4e000 {
  369. compatible = "renesas,sdhi-r8a7779",
  370. "renesas,rcar-gen1-sdhi";
  371. reg = <0xffe4e000 0x100>;
  372. interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
  373. clocks = <&mstp3_clks R8A7779_CLK_SDHI2>;
  374. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  375. status = "disabled";
  376. };
  377. sdhi3: mmc@ffe4f000 {
  378. compatible = "renesas,sdhi-r8a7779",
  379. "renesas,rcar-gen1-sdhi";
  380. reg = <0xffe4f000 0x100>;
  381. interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
  382. clocks = <&mstp3_clks R8A7779_CLK_SDHI3>;
  383. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  384. status = "disabled";
  385. };
  386. hspi0: spi@fffc7000 {
  387. compatible = "renesas,hspi-r8a7779", "renesas,hspi";
  388. reg = <0xfffc7000 0x18>;
  389. interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
  390. #address-cells = <1>;
  391. #size-cells = <0>;
  392. clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
  393. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  394. status = "disabled";
  395. };
  396. hspi1: spi@fffc8000 {
  397. compatible = "renesas,hspi-r8a7779", "renesas,hspi";
  398. reg = <0xfffc8000 0x18>;
  399. interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
  400. #address-cells = <1>;
  401. #size-cells = <0>;
  402. clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
  403. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  404. status = "disabled";
  405. };
  406. hspi2: spi@fffc6000 {
  407. compatible = "renesas,hspi-r8a7779", "renesas,hspi";
  408. reg = <0xfffc6000 0x18>;
  409. interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
  410. #address-cells = <1>;
  411. #size-cells = <0>;
  412. clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
  413. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  414. status = "disabled";
  415. };
  416. du: display@fff80000 {
  417. compatible = "renesas,du-r8a7779";
  418. reg = <0xfff80000 0x40000>;
  419. interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
  420. clocks = <&mstp1_clks R8A7779_CLK_DU>;
  421. clock-names = "du.0";
  422. power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
  423. status = "disabled";
  424. ports {
  425. #address-cells = <1>;
  426. #size-cells = <0>;
  427. port@0 {
  428. reg = <0>;
  429. du_out_rgb0: endpoint {
  430. };
  431. };
  432. port@1 {
  433. reg = <1>;
  434. du_out_rgb1: endpoint {
  435. };
  436. };
  437. };
  438. };
  439. clocks {
  440. #address-cells = <1>;
  441. #size-cells = <1>;
  442. ranges;
  443. /* External root clock */
  444. extal_clk: extal {
  445. compatible = "fixed-clock";
  446. #clock-cells = <0>;
  447. /* This value must be overriden by the board. */
  448. clock-frequency = <0>;
  449. };
  450. /* External SCIF clock */
  451. scif_clk: scif {
  452. compatible = "fixed-clock";
  453. #clock-cells = <0>;
  454. /* This value must be overridden by the board. */
  455. clock-frequency = <0>;
  456. };
  457. /* Special CPG clocks */
  458. cpg_clocks: clocks@ffc80000 {
  459. compatible = "renesas,r8a7779-cpg-clocks";
  460. reg = <0xffc80000 0x30>;
  461. clocks = <&extal_clk>;
  462. #clock-cells = <1>;
  463. clock-output-names = "plla", "z", "zs", "s",
  464. "s1", "p", "b", "out";
  465. #power-domain-cells = <0>;
  466. };
  467. /* Fixed factor clocks */
  468. i_clk: i {
  469. compatible = "fixed-factor-clock";
  470. clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
  471. #clock-cells = <0>;
  472. clock-div = <2>;
  473. clock-mult = <1>;
  474. };
  475. s3_clk: s3 {
  476. compatible = "fixed-factor-clock";
  477. clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
  478. #clock-cells = <0>;
  479. clock-div = <8>;
  480. clock-mult = <1>;
  481. };
  482. s4_clk: s4 {
  483. compatible = "fixed-factor-clock";
  484. clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
  485. #clock-cells = <0>;
  486. clock-div = <16>;
  487. clock-mult = <1>;
  488. };
  489. g_clk: g {
  490. compatible = "fixed-factor-clock";
  491. clocks = <&cpg_clocks R8A7779_CLK_PLLA>;
  492. #clock-cells = <0>;
  493. clock-div = <24>;
  494. clock-mult = <1>;
  495. };
  496. /* Gate clocks */
  497. mstp0_clks: clocks@ffc80030 {
  498. compatible = "renesas,r8a7779-mstp-clocks",
  499. "renesas,cpg-mstp-clocks";
  500. reg = <0xffc80030 4>;
  501. clocks = <&cpg_clocks R8A7779_CLK_S>,
  502. <&cpg_clocks R8A7779_CLK_P>,
  503. <&cpg_clocks R8A7779_CLK_P>,
  504. <&cpg_clocks R8A7779_CLK_P>,
  505. <&cpg_clocks R8A7779_CLK_S>,
  506. <&cpg_clocks R8A7779_CLK_S>,
  507. <&cpg_clocks R8A7779_CLK_P>,
  508. <&cpg_clocks R8A7779_CLK_P>,
  509. <&cpg_clocks R8A7779_CLK_P>,
  510. <&cpg_clocks R8A7779_CLK_P>,
  511. <&cpg_clocks R8A7779_CLK_P>,
  512. <&cpg_clocks R8A7779_CLK_P>,
  513. <&cpg_clocks R8A7779_CLK_P>,
  514. <&cpg_clocks R8A7779_CLK_P>,
  515. <&cpg_clocks R8A7779_CLK_P>,
  516. <&cpg_clocks R8A7779_CLK_P>;
  517. #clock-cells = <1>;
  518. clock-indices = <
  519. R8A7779_CLK_HSPI R8A7779_CLK_TMU2
  520. R8A7779_CLK_TMU1 R8A7779_CLK_TMU0
  521. R8A7779_CLK_HSCIF1 R8A7779_CLK_HSCIF0
  522. R8A7779_CLK_SCIF5 R8A7779_CLK_SCIF4
  523. R8A7779_CLK_SCIF3 R8A7779_CLK_SCIF2
  524. R8A7779_CLK_SCIF1 R8A7779_CLK_SCIF0
  525. R8A7779_CLK_I2C3 R8A7779_CLK_I2C2
  526. R8A7779_CLK_I2C1 R8A7779_CLK_I2C0
  527. >;
  528. clock-output-names =
  529. "hspi", "tmu2", "tmu1", "tmu0", "hscif1",
  530. "hscif0", "scif5", "scif4", "scif3", "scif2",
  531. "scif1", "scif0", "i2c3", "i2c2", "i2c1",
  532. "i2c0";
  533. };
  534. mstp1_clks: clocks@ffc80034 {
  535. compatible = "renesas,r8a7779-mstp-clocks",
  536. "renesas,cpg-mstp-clocks";
  537. reg = <0xffc80034 4>, <0xffc80044 4>;
  538. clocks = <&cpg_clocks R8A7779_CLK_P>,
  539. <&cpg_clocks R8A7779_CLK_P>,
  540. <&cpg_clocks R8A7779_CLK_S>,
  541. <&cpg_clocks R8A7779_CLK_S>,
  542. <&cpg_clocks R8A7779_CLK_S>,
  543. <&cpg_clocks R8A7779_CLK_S>,
  544. <&cpg_clocks R8A7779_CLK_P>,
  545. <&cpg_clocks R8A7779_CLK_P>,
  546. <&cpg_clocks R8A7779_CLK_P>,
  547. <&cpg_clocks R8A7779_CLK_S>;
  548. #clock-cells = <1>;
  549. clock-indices = <
  550. R8A7779_CLK_USB01 R8A7779_CLK_USB2
  551. R8A7779_CLK_DU R8A7779_CLK_VIN2
  552. R8A7779_CLK_VIN1 R8A7779_CLK_VIN0
  553. R8A7779_CLK_ETHER R8A7779_CLK_SATA
  554. R8A7779_CLK_PCIE R8A7779_CLK_VIN3
  555. >;
  556. clock-output-names =
  557. "usb01", "usb2",
  558. "du", "vin2",
  559. "vin1", "vin0",
  560. "ether", "sata",
  561. "pcie", "vin3";
  562. };
  563. mstp3_clks: clocks@ffc8003c {
  564. compatible = "renesas,r8a7779-mstp-clocks",
  565. "renesas,cpg-mstp-clocks";
  566. reg = <0xffc8003c 4>;
  567. clocks = <&s4_clk>, <&s4_clk>, <&s4_clk>, <&s4_clk>,
  568. <&s4_clk>, <&s4_clk>;
  569. #clock-cells = <1>;
  570. clock-indices = <
  571. R8A7779_CLK_SDHI3 R8A7779_CLK_SDHI2
  572. R8A7779_CLK_SDHI1 R8A7779_CLK_SDHI0
  573. R8A7779_CLK_MMC1 R8A7779_CLK_MMC0
  574. >;
  575. clock-output-names =
  576. "sdhi3", "sdhi2", "sdhi1", "sdhi0",
  577. "mmc1", "mmc0";
  578. };
  579. };
  580. prr: chipid@ff000044 {
  581. compatible = "renesas,prr";
  582. reg = <0xff000044 4>;
  583. };
  584. rst: reset-controller@ffcc0000 {
  585. compatible = "renesas,r8a7779-reset-wdt";
  586. reg = <0xffcc0000 0x48>;
  587. };
  588. sysc: system-controller@ffd85000 {
  589. compatible = "renesas,r8a7779-sysc";
  590. reg = <0xffd85000 0x0200>;
  591. #power-domain-cells = <1>;
  592. };
  593. };