tmpv7708.dtsi 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree Source for the TMPV7708
  4. *
  5. * (C) Copyright 2018 - 2020, Toshiba Corporation.
  6. * (C) Copyright 2020, Nobuhiro Iwamatsu <[email protected]>
  7. *
  8. */
  9. #include <dt-bindings/clock/toshiba,tmpv770x.h>
  10. #include <dt-bindings/interrupt-controller/irq.h>
  11. #include <dt-bindings/interrupt-controller/arm-gic.h>
  12. /memreserve/ 0x81000000 0x00300000; /* cpu-release-addr */
  13. / {
  14. compatible = "toshiba,tmpv7708";
  15. #address-cells = <2>;
  16. #size-cells = <2>;
  17. cpus {
  18. #address-cells = <1>;
  19. #size-cells = <0>;
  20. cpu-map {
  21. cluster0 {
  22. core0 {
  23. cpu = <&cpu0>;
  24. };
  25. core1 {
  26. cpu = <&cpu1>;
  27. };
  28. core2 {
  29. cpu = <&cpu2>;
  30. };
  31. core3 {
  32. cpu = <&cpu3>;
  33. };
  34. };
  35. cluster1 {
  36. core0 {
  37. cpu = <&cpu4>;
  38. };
  39. core1 {
  40. cpu = <&cpu5>;
  41. };
  42. core2 {
  43. cpu = <&cpu6>;
  44. };
  45. core3 {
  46. cpu = <&cpu7>;
  47. };
  48. };
  49. };
  50. cpu0: cpu@0 {
  51. compatible = "arm,cortex-a53";
  52. device_type = "cpu";
  53. enable-method = "spin-table";
  54. cpu-release-addr = <0x0 0x81100000>;
  55. reg = <0x00>;
  56. };
  57. cpu1: cpu@1 {
  58. compatible = "arm,cortex-a53";
  59. device_type = "cpu";
  60. enable-method = "spin-table";
  61. cpu-release-addr = <0x0 0x81100000>;
  62. reg = <0x01>;
  63. };
  64. cpu2: cpu@2 {
  65. compatible = "arm,cortex-a53";
  66. device_type = "cpu";
  67. enable-method = "spin-table";
  68. cpu-release-addr = <0x0 0x81100000>;
  69. reg = <0x02>;
  70. };
  71. cpu3: cpu@3 {
  72. compatible = "arm,cortex-a53";
  73. device_type = "cpu";
  74. enable-method = "spin-table";
  75. cpu-release-addr = <0x0 0x81100000>;
  76. reg = <0x03>;
  77. };
  78. cpu4: cpu@100 {
  79. compatible = "arm,cortex-a53";
  80. device_type = "cpu";
  81. enable-method = "spin-table";
  82. cpu-release-addr = <0x0 0x81100000>;
  83. reg = <0x100>;
  84. };
  85. cpu5: cpu@101 {
  86. compatible = "arm,cortex-a53";
  87. device_type = "cpu";
  88. enable-method = "spin-table";
  89. cpu-release-addr = <0x0 0x81100000>;
  90. reg = <0x101>;
  91. };
  92. cpu6: cpu@102 {
  93. compatible = "arm,cortex-a53";
  94. device_type = "cpu";
  95. enable-method = "spin-table";
  96. cpu-release-addr = <0x0 0x81100000>;
  97. reg = <0x102>;
  98. };
  99. cpu7: cpu@103 {
  100. compatible = "arm,cortex-a53";
  101. device_type = "cpu";
  102. enable-method = "spin-table";
  103. cpu-release-addr = <0x0 0x81100000>;
  104. reg = <0x103>;
  105. };
  106. };
  107. timer {
  108. compatible = "arm,armv8-timer";
  109. interrupt-parent = <&gic>;
  110. interrupts =
  111. <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  112. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  113. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  114. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
  115. };
  116. extclk100mhz: extclk100mhz {
  117. compatible = "fixed-clock";
  118. #clock-cells = <0>;
  119. clock-frequency = <100000000>;
  120. clock-output-names = "extclk100mhz";
  121. };
  122. osc2_clk: osc2-clk {
  123. compatible = "fixed-clock";
  124. clock-frequency = <20000000>;
  125. #clock-cells = <0>;
  126. };
  127. soc {
  128. #address-cells = <2>;
  129. #size-cells = <2>;
  130. compatible = "simple-bus";
  131. interrupt-parent = <&gic>;
  132. ranges;
  133. gic: interrupt-controller@24001000 {
  134. compatible = "arm,gic-400";
  135. interrupt-controller;
  136. #interrupt-cells = <3>;
  137. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
  138. reg = <0 0x24001000 0 0x1000>,
  139. <0 0x24002000 0 0x2000>,
  140. <0 0x24004000 0 0x2000>,
  141. <0 0x24006000 0 0x2000>;
  142. };
  143. pmux: pmux@24190000 {
  144. compatible = "toshiba,tmpv7708-pinctrl";
  145. reg = <0 0x24190000 0 0x10000>;
  146. };
  147. gpio: gpio@28020000 {
  148. compatible = "toshiba,gpio-tmpv7708";
  149. reg = <0 0x28020000 0 0x1000>;
  150. #gpio-cells = <0x2>;
  151. gpio-ranges = <&pmux 0 0 32>;
  152. gpio-controller;
  153. interrupt-controller;
  154. #interrupt-cells = <2>;
  155. interrupt-parent = <&gic>;
  156. };
  157. pipllct: clock-controller@24220000 {
  158. compatible = "toshiba,tmpv7708-pipllct";
  159. reg = <0 0x24220000 0 0x820>;
  160. #clock-cells = <1>;
  161. clocks = <&osc2_clk>;
  162. };
  163. pismu: syscon@24200000 {
  164. compatible = "toshiba,tmpv7708-pismu", "syscon";
  165. reg = <0 0x24200000 0 0x2140>;
  166. #clock-cells = <1>;
  167. #reset-cells = <1>;
  168. };
  169. uart0: serial@28200000 {
  170. compatible = "arm,pl011", "arm,primecell";
  171. reg = <0 0x28200000 0 0x1000>;
  172. interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
  173. pinctrl-names = "default";
  174. pinctrl-0 = <&uart0_pins>;
  175. clocks = <&pismu TMPV770X_CLK_PIUART0>;
  176. clock-names = "apb_pclk";
  177. status = "disabled";
  178. };
  179. uart1: serial@28201000 {
  180. compatible = "arm,pl011", "arm,primecell";
  181. reg = <0 0x28201000 0 0x1000>;
  182. interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
  183. pinctrl-names = "default";
  184. pinctrl-0 = <&uart1_pins>;
  185. clocks = <&pismu TMPV770X_CLK_PIUART1>;
  186. clock-names = "apb_pclk";
  187. status = "disabled";
  188. };
  189. uart2: serial@28202000 {
  190. compatible = "arm,pl011", "arm,primecell";
  191. reg = <0 0x28202000 0 0x1000>;
  192. interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
  193. pinctrl-names = "default";
  194. pinctrl-0 = <&uart2_pins>;
  195. clocks = <&pismu TMPV770X_CLK_PIUART2>;
  196. clock-names = "apb_pclk";
  197. status = "disabled";
  198. };
  199. uart3: serial@28203000 {
  200. compatible = "arm,pl011", "arm,primecell";
  201. reg = <0 0x28203000 0 0x1000>;
  202. interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
  203. pinctrl-names = "default";
  204. pinctrl-0 = <&uart3_pins>;
  205. clocks = <&pismu TMPV770X_CLK_PIUART2>;
  206. clock-names = "apb_pclk";
  207. status = "disabled";
  208. };
  209. i2c0: i2c@28030000 {
  210. compatible = "snps,designware-i2c";
  211. reg = <0 0x28030000 0 0x1000>;
  212. interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
  213. pinctrl-names = "default";
  214. pinctrl-0 = <&i2c0_pins>;
  215. clock-frequency = <400000>;
  216. #address-cells = <1>;
  217. #size-cells = <0>;
  218. clocks = <&pismu TMPV770X_CLK_PII2C0>;
  219. status = "disabled";
  220. };
  221. i2c1: i2c@28031000 {
  222. compatible = "snps,designware-i2c";
  223. reg = <0 0x28031000 0 0x1000>;
  224. interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
  225. pinctrl-names = "default";
  226. pinctrl-0 = <&i2c1_pins>;
  227. clock-frequency = <400000>;
  228. #address-cells = <1>;
  229. #size-cells = <0>;
  230. clocks = <&pismu TMPV770X_CLK_PII2C1>;
  231. status = "disabled";
  232. };
  233. i2c2: i2c@28032000 {
  234. compatible = "snps,designware-i2c";
  235. reg = <0 0x28032000 0 0x1000>;
  236. interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
  237. pinctrl-names = "default";
  238. pinctrl-0 = <&i2c2_pins>;
  239. clock-frequency = <400000>;
  240. #address-cells = <1>;
  241. #size-cells = <0>;
  242. clocks = <&pismu TMPV770X_CLK_PII2C2>;
  243. status = "disabled";
  244. };
  245. i2c3: i2c@28033000 {
  246. compatible = "snps,designware-i2c";
  247. reg = <0 0x28033000 0 0x1000>;
  248. interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
  249. pinctrl-names = "default";
  250. pinctrl-0 = <&i2c3_pins>;
  251. clock-frequency = <400000>;
  252. #address-cells = <1>;
  253. #size-cells = <0>;
  254. clocks = <&pismu TMPV770X_CLK_PII2C3>;
  255. status = "disabled";
  256. };
  257. i2c4: i2c@28034000 {
  258. compatible = "snps,designware-i2c";
  259. reg = <0 0x28034000 0 0x1000>;
  260. interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
  261. pinctrl-names = "default";
  262. pinctrl-0 = <&i2c4_pins>;
  263. clock-frequency = <400000>;
  264. #address-cells = <1>;
  265. #size-cells = <0>;
  266. clocks = <&pismu TMPV770X_CLK_PII2C4>;
  267. status = "disabled";
  268. };
  269. i2c5: i2c@28035000 {
  270. compatible = "snps,designware-i2c";
  271. reg = <0 0x28035000 0 0x1000>;
  272. interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
  273. pinctrl-names = "default";
  274. pinctrl-0 = <&i2c5_pins>;
  275. clock-frequency = <400000>;
  276. #address-cells = <1>;
  277. #size-cells = <0>;
  278. clocks = <&pismu TMPV770X_CLK_PII2C5>;
  279. status = "disabled";
  280. };
  281. i2c6: i2c@28036000 {
  282. compatible = "snps,designware-i2c";
  283. reg = <0 0x28036000 0 0x1000>;
  284. interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
  285. pinctrl-names = "default";
  286. pinctrl-0 = <&i2c6_pins>;
  287. clock-frequency = <400000>;
  288. #address-cells = <1>;
  289. #size-cells = <0>;
  290. clocks = <&pismu TMPV770X_CLK_PII2C6>;
  291. status = "disabled";
  292. };
  293. i2c7: i2c@28037000 {
  294. compatible = "snps,designware-i2c";
  295. reg = <0 0x28037000 0 0x1000>;
  296. interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
  297. pinctrl-names = "default";
  298. pinctrl-0 = <&i2c7_pins>;
  299. clock-frequency = <400000>;
  300. #address-cells = <1>;
  301. #size-cells = <0>;
  302. clocks = <&pismu TMPV770X_CLK_PII2C7>;
  303. status = "disabled";
  304. };
  305. i2c8: i2c@28038000 {
  306. compatible = "snps,designware-i2c";
  307. reg = <0 0x28038000 0 0x1000>;
  308. interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
  309. pinctrl-names = "default";
  310. pinctrl-0 = <&i2c8_pins>;
  311. clock-frequency = <400000>;
  312. #address-cells = <1>;
  313. #size-cells = <0>;
  314. clocks = <&pismu TMPV770X_CLK_PII2C8>;
  315. status = "disabled";
  316. };
  317. spi0: spi@28140000 {
  318. compatible = "arm,pl022", "arm,primecell";
  319. reg = <0 0x28140000 0 0x1000>;
  320. interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
  321. pinctrl-names = "default";
  322. pinctrl-0 = <&spi0_pins>;
  323. num-cs = <1>;
  324. #address-cells = <1>;
  325. #size-cells = <0>;
  326. clocks = <&pismu TMPV770X_CLK_PISPI1>;
  327. clock-names = "apb_pclk";
  328. status = "disabled";
  329. };
  330. spi1: spi@28141000 {
  331. compatible = "arm,pl022", "arm,primecell";
  332. reg = <0 0x28141000 0 0x1000>;
  333. interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
  334. pinctrl-names = "default";
  335. pinctrl-0 = <&spi1_pins>;
  336. num-cs = <1>;
  337. #address-cells = <1>;
  338. #size-cells = <0>;
  339. clocks = <&pismu TMPV770X_CLK_PISPI1>;
  340. clock-names = "apb_pclk";
  341. status = "disabled";
  342. };
  343. spi2: spi@28142000 {
  344. compatible = "arm,pl022", "arm,primecell";
  345. reg = <0 0x28142000 0 0x1000>;
  346. interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
  347. pinctrl-names = "default";
  348. pinctrl-0 = <&spi2_pins>;
  349. num-cs = <1>;
  350. #address-cells = <1>;
  351. #size-cells = <0>;
  352. clocks = <&pismu TMPV770X_CLK_PISPI2>;
  353. clock-names = "apb_pclk";
  354. status = "disabled";
  355. };
  356. spi3: spi@28143000 {
  357. compatible = "arm,pl022", "arm,primecell";
  358. reg = <0 0x28143000 0 0x1000>;
  359. interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
  360. pinctrl-names = "default";
  361. pinctrl-0 = <&spi3_pins>;
  362. num-cs = <1>;
  363. #address-cells = <1>;
  364. #size-cells = <0>;
  365. clocks = <&pismu TMPV770X_CLK_PISPI3>;
  366. clock-names = "apb_pclk";
  367. status = "disabled";
  368. };
  369. spi4: spi@28144000 {
  370. compatible = "arm,pl022", "arm,primecell";
  371. reg = <0 0x28144000 0 0x1000>;
  372. interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
  373. pinctrl-names = "default";
  374. pinctrl-0 = <&spi4_pins>;
  375. num-cs = <1>;
  376. #address-cells = <1>;
  377. #size-cells = <0>;
  378. clocks = <&pismu TMPV770X_CLK_PISPI4>;
  379. clock-names = "apb_pclk";
  380. status = "disabled";
  381. };
  382. spi5: spi@28145000 {
  383. compatible = "arm,pl022", "arm,primecell";
  384. reg = <0 0x28145000 0 0x1000>;
  385. interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
  386. pinctrl-names = "default";
  387. pinctrl-0 = <&spi5_pins>;
  388. num-cs = <1>;
  389. #address-cells = <1>;
  390. #size-cells = <0>;
  391. clocks = <&pismu TMPV770X_CLK_PISPI5>;
  392. clock-names = "apb_pclk";
  393. status = "disabled";
  394. };
  395. spi6: spi@28146000 {
  396. compatible = "arm,pl022", "arm,primecell";
  397. reg = <0 0x28146000 0 0x1000>;
  398. interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
  399. pinctrl-names = "default";
  400. pinctrl-0 = <&spi6_pins>;
  401. num-cs = <1>;
  402. #address-cells = <1>;
  403. #size-cells = <0>;
  404. clocks = <&pismu TMPV770X_CLK_PISPI6>;
  405. clock-names = "apb_pclk";
  406. status = "disabled";
  407. };
  408. piether: ethernet@28000000 {
  409. compatible = "toshiba,visconti-dwmac", "snps,dwmac-4.20a";
  410. reg = <0 0x28000000 0 0x10000>;
  411. interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
  412. interrupt-names = "macirq";
  413. snps,txpbl = <4>;
  414. snps,rxpbl = <4>;
  415. snps,tso;
  416. clocks = <&pismu TMPV770X_CLK_PIETHER_BUS>, <&pismu TMPV770X_CLK_PIETHER_125M>;
  417. clock-names = "stmmaceth", "phy_ref_clk";
  418. status = "disabled";
  419. };
  420. wdt: wdt@28330000 {
  421. compatible = "toshiba,visconti-wdt";
  422. reg = <0 0x28330000 0 0x1000>;
  423. clocks = <&pismu TMPV770X_CLK_WDTCLK>;
  424. status = "disabled";
  425. };
  426. pwm: pwm@241c0000 {
  427. compatible = "toshiba,visconti-pwm";
  428. reg = <0 0x241c0000 0 0x1000>;
  429. pinctrl-names = "default";
  430. pinctrl-0 = <&pwm_mux>;
  431. #pwm-cells = <2>;
  432. status = "disabled";
  433. };
  434. pcie: pcie@28400000 {
  435. compatible = "toshiba,visconti-pcie";
  436. reg = <0x0 0x28400000 0x0 0x00400000>,
  437. <0x0 0x70000000 0x0 0x10000000>,
  438. <0x0 0x28050000 0x0 0x00010000>,
  439. <0x0 0x24200000 0x0 0x00002000>,
  440. <0x0 0x24162000 0x0 0x00001000>;
  441. reg-names = "dbi", "config", "ulreg", "smu", "mpu";
  442. device_type = "pci";
  443. bus-range = <0x00 0xff>;
  444. num-lanes = <2>;
  445. num-viewport = <8>;
  446. #address-cells = <3>;
  447. #size-cells = <2>;
  448. #interrupt-cells = <1>;
  449. ranges = <0x81000000 0 0x40000000 0 0x40000000 0 0x00010000
  450. 0x82000000 0 0x50000000 0 0x50000000 0 0x20000000>;
  451. interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
  452. <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>;
  453. interrupt-names = "msi", "intr";
  454. interrupt-map-mask = <0 0 0 7>;
  455. interrupt-map =
  456. <0 0 0 1 &gic GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH
  457. 0 0 0 2 &gic GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH
  458. 0 0 0 3 &gic GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH
  459. 0 0 0 4 &gic GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>;
  460. max-link-speed = <2>;
  461. clocks = <&extclk100mhz>, <&pismu TMPV770X_CLK_PCIE_MSTR>, <&pismu TMPV770X_CLK_PCIE_AUX>;
  462. clock-names = "ref", "core", "aux";
  463. status = "disabled";
  464. };
  465. };
  466. };
  467. #include "tmpv7708_pins.dtsi"