uniphier-pxs2.dtsi 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  1. /*
  2. * Device Tree Source for UniPhier PXs2 SoC
  3. *
  4. * Copyright (C) 2015-2016 Socionext Inc.
  5. * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+ X11
  8. */
  9. /include/ "skeleton.dtsi"
  10. / {
  11. compatible = "socionext,uniphier-pxs2";
  12. cpus {
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. cpu@0 {
  16. device_type = "cpu";
  17. compatible = "arm,cortex-a9";
  18. reg = <0>;
  19. clocks = <&sys_clk 32>;
  20. enable-method = "psci";
  21. next-level-cache = <&l2>;
  22. operating-points-v2 = <&cpu_opp>;
  23. };
  24. cpu@1 {
  25. device_type = "cpu";
  26. compatible = "arm,cortex-a9";
  27. reg = <1>;
  28. clocks = <&sys_clk 32>;
  29. enable-method = "psci";
  30. next-level-cache = <&l2>;
  31. operating-points-v2 = <&cpu_opp>;
  32. };
  33. cpu@2 {
  34. device_type = "cpu";
  35. compatible = "arm,cortex-a9";
  36. reg = <2>;
  37. clocks = <&sys_clk 32>;
  38. enable-method = "psci";
  39. next-level-cache = <&l2>;
  40. operating-points-v2 = <&cpu_opp>;
  41. };
  42. cpu@3 {
  43. device_type = "cpu";
  44. compatible = "arm,cortex-a9";
  45. reg = <3>;
  46. clocks = <&sys_clk 32>;
  47. enable-method = "psci";
  48. next-level-cache = <&l2>;
  49. operating-points-v2 = <&cpu_opp>;
  50. };
  51. };
  52. cpu_opp: opp_table {
  53. compatible = "operating-points-v2";
  54. opp-shared;
  55. opp@100000000 {
  56. opp-hz = /bits/ 64 <100000000>;
  57. clock-latency-ns = <300>;
  58. };
  59. opp@150000000 {
  60. opp-hz = /bits/ 64 <150000000>;
  61. clock-latency-ns = <300>;
  62. };
  63. opp@200000000 {
  64. opp-hz = /bits/ 64 <200000000>;
  65. clock-latency-ns = <300>;
  66. };
  67. opp@300000000 {
  68. opp-hz = /bits/ 64 <300000000>;
  69. clock-latency-ns = <300>;
  70. };
  71. opp@400000000 {
  72. opp-hz = /bits/ 64 <400000000>;
  73. clock-latency-ns = <300>;
  74. };
  75. opp@600000000 {
  76. opp-hz = /bits/ 64 <600000000>;
  77. clock-latency-ns = <300>;
  78. };
  79. opp@800000000 {
  80. opp-hz = /bits/ 64 <800000000>;
  81. clock-latency-ns = <300>;
  82. };
  83. opp@1200000000 {
  84. opp-hz = /bits/ 64 <1200000000>;
  85. clock-latency-ns = <300>;
  86. };
  87. };
  88. psci {
  89. compatible = "arm,psci-0.2";
  90. method = "smc";
  91. };
  92. clocks {
  93. refclk: ref {
  94. compatible = "fixed-clock";
  95. #clock-cells = <0>;
  96. clock-frequency = <25000000>;
  97. };
  98. arm_timer_clk: arm_timer_clk {
  99. #clock-cells = <0>;
  100. compatible = "fixed-clock";
  101. clock-frequency = <50000000>;
  102. };
  103. i2c_clk: i2c_clk {
  104. #clock-cells = <0>;
  105. compatible = "fixed-clock";
  106. clock-frequency = <50000000>;
  107. };
  108. };
  109. soc {
  110. compatible = "simple-bus";
  111. #address-cells = <1>;
  112. #size-cells = <1>;
  113. ranges;
  114. interrupt-parent = <&intc>;
  115. u-boot,dm-pre-reloc;
  116. l2: l2-cache@500c0000 {
  117. compatible = "socionext,uniphier-system-cache";
  118. reg = <0x500c0000 0x2000>, <0x503c0100 0x8>,
  119. <0x506c0000 0x400>;
  120. interrupts = <0 174 4>, <0 175 4>, <0 190 4>, <0 191 4>;
  121. cache-unified;
  122. cache-size = <(1280 * 1024)>;
  123. cache-sets = <512>;
  124. cache-line-size = <128>;
  125. cache-level = <2>;
  126. };
  127. serial0: serial@54006800 {
  128. compatible = "socionext,uniphier-uart";
  129. status = "disabled";
  130. reg = <0x54006800 0x40>;
  131. interrupts = <0 33 4>;
  132. pinctrl-names = "default";
  133. pinctrl-0 = <&pinctrl_uart0>;
  134. clocks = <&peri_clk 0>;
  135. clock-frequency = <88900000>;
  136. };
  137. serial1: serial@54006900 {
  138. compatible = "socionext,uniphier-uart";
  139. status = "disabled";
  140. reg = <0x54006900 0x40>;
  141. interrupts = <0 35 4>;
  142. pinctrl-names = "default";
  143. pinctrl-0 = <&pinctrl_uart1>;
  144. clocks = <&peri_clk 1>;
  145. clock-frequency = <88900000>;
  146. };
  147. serial2: serial@54006a00 {
  148. compatible = "socionext,uniphier-uart";
  149. status = "disabled";
  150. reg = <0x54006a00 0x40>;
  151. interrupts = <0 37 4>;
  152. pinctrl-names = "default";
  153. pinctrl-0 = <&pinctrl_uart2>;
  154. clocks = <&peri_clk 2>;
  155. clock-frequency = <88900000>;
  156. };
  157. serial3: serial@54006b00 {
  158. compatible = "socionext,uniphier-uart";
  159. status = "disabled";
  160. reg = <0x54006b00 0x40>;
  161. interrupts = <0 177 4>;
  162. pinctrl-names = "default";
  163. pinctrl-0 = <&pinctrl_uart3>;
  164. clocks = <&peri_clk 3>;
  165. clock-frequency = <88900000>;
  166. };
  167. port0x: gpio@55000008 {
  168. compatible = "socionext,uniphier-gpio";
  169. reg = <0x55000008 0x8>;
  170. gpio-controller;
  171. #gpio-cells = <2>;
  172. };
  173. port1x: gpio@55000010 {
  174. compatible = "socionext,uniphier-gpio";
  175. reg = <0x55000010 0x8>;
  176. gpio-controller;
  177. #gpio-cells = <2>;
  178. };
  179. port2x: gpio@55000018 {
  180. compatible = "socionext,uniphier-gpio";
  181. reg = <0x55000018 0x8>;
  182. gpio-controller;
  183. #gpio-cells = <2>;
  184. };
  185. port3x: gpio@55000020 {
  186. compatible = "socionext,uniphier-gpio";
  187. reg = <0x55000020 0x8>;
  188. gpio-controller;
  189. #gpio-cells = <2>;
  190. };
  191. port4: gpio@55000028 {
  192. compatible = "socionext,uniphier-gpio";
  193. reg = <0x55000028 0x8>;
  194. gpio-controller;
  195. #gpio-cells = <2>;
  196. };
  197. port5x: gpio@55000030 {
  198. compatible = "socionext,uniphier-gpio";
  199. reg = <0x55000030 0x8>;
  200. gpio-controller;
  201. #gpio-cells = <2>;
  202. };
  203. port6x: gpio@55000038 {
  204. compatible = "socionext,uniphier-gpio";
  205. reg = <0x55000038 0x8>;
  206. gpio-controller;
  207. #gpio-cells = <2>;
  208. };
  209. port7x: gpio@55000040 {
  210. compatible = "socionext,uniphier-gpio";
  211. reg = <0x55000040 0x8>;
  212. gpio-controller;
  213. #gpio-cells = <2>;
  214. };
  215. port8x: gpio@55000048 {
  216. compatible = "socionext,uniphier-gpio";
  217. reg = <0x55000048 0x8>;
  218. gpio-controller;
  219. #gpio-cells = <2>;
  220. };
  221. port9x: gpio@55000050 {
  222. compatible = "socionext,uniphier-gpio";
  223. reg = <0x55000050 0x8>;
  224. gpio-controller;
  225. #gpio-cells = <2>;
  226. };
  227. port10x: gpio@55000058 {
  228. compatible = "socionext,uniphier-gpio";
  229. reg = <0x55000058 0x8>;
  230. gpio-controller;
  231. #gpio-cells = <2>;
  232. };
  233. port12x: gpio@55000068 {
  234. compatible = "socionext,uniphier-gpio";
  235. reg = <0x55000068 0x8>;
  236. gpio-controller;
  237. #gpio-cells = <2>;
  238. };
  239. port13x: gpio@55000070 {
  240. compatible = "socionext,uniphier-gpio";
  241. reg = <0x55000070 0x8>;
  242. gpio-controller;
  243. #gpio-cells = <2>;
  244. };
  245. port14x: gpio@55000078 {
  246. compatible = "socionext,uniphier-gpio";
  247. reg = <0x55000078 0x8>;
  248. gpio-controller;
  249. #gpio-cells = <2>;
  250. };
  251. port15x: gpio@55000080 {
  252. compatible = "socionext,uniphier-gpio";
  253. reg = <0x55000080 0x8>;
  254. gpio-controller;
  255. #gpio-cells = <2>;
  256. };
  257. port16x: gpio@55000088 {
  258. compatible = "socionext,uniphier-gpio";
  259. reg = <0x55000088 0x8>;
  260. gpio-controller;
  261. #gpio-cells = <2>;
  262. };
  263. port17x: gpio@550000a0 {
  264. compatible = "socionext,uniphier-gpio";
  265. reg = <0x550000a0 0x8>;
  266. gpio-controller;
  267. #gpio-cells = <2>;
  268. };
  269. port18x: gpio@550000a8 {
  270. compatible = "socionext,uniphier-gpio";
  271. reg = <0x550000a8 0x8>;
  272. gpio-controller;
  273. #gpio-cells = <2>;
  274. };
  275. port19x: gpio@550000b0 {
  276. compatible = "socionext,uniphier-gpio";
  277. reg = <0x550000b0 0x8>;
  278. gpio-controller;
  279. #gpio-cells = <2>;
  280. };
  281. port20x: gpio@550000b8 {
  282. compatible = "socionext,uniphier-gpio";
  283. reg = <0x550000b8 0x8>;
  284. gpio-controller;
  285. #gpio-cells = <2>;
  286. };
  287. port21x: gpio@550000c0 {
  288. compatible = "socionext,uniphier-gpio";
  289. reg = <0x550000c0 0x8>;
  290. gpio-controller;
  291. #gpio-cells = <2>;
  292. };
  293. port22x: gpio@550000c8 {
  294. compatible = "socionext,uniphier-gpio";
  295. reg = <0x550000c8 0x8>;
  296. gpio-controller;
  297. #gpio-cells = <2>;
  298. };
  299. port23x: gpio@550000d0 {
  300. compatible = "socionext,uniphier-gpio";
  301. reg = <0x550000d0 0x8>;
  302. gpio-controller;
  303. #gpio-cells = <2>;
  304. };
  305. port24x: gpio@550000d8 {
  306. compatible = "socionext,uniphier-gpio";
  307. reg = <0x550000d8 0x8>;
  308. gpio-controller;
  309. #gpio-cells = <2>;
  310. };
  311. port25x: gpio@550000e0 {
  312. compatible = "socionext,uniphier-gpio";
  313. reg = <0x550000e0 0x8>;
  314. gpio-controller;
  315. #gpio-cells = <2>;
  316. };
  317. port26x: gpio@550000e8 {
  318. compatible = "socionext,uniphier-gpio";
  319. reg = <0x550000e8 0x8>;
  320. gpio-controller;
  321. #gpio-cells = <2>;
  322. };
  323. port27x: gpio@550000f0 {
  324. compatible = "socionext,uniphier-gpio";
  325. reg = <0x550000f0 0x8>;
  326. gpio-controller;
  327. #gpio-cells = <2>;
  328. };
  329. port28x: gpio@550000f8 {
  330. compatible = "socionext,uniphier-gpio";
  331. reg = <0x550000f8 0x8>;
  332. gpio-controller;
  333. #gpio-cells = <2>;
  334. };
  335. i2c0: i2c@58780000 {
  336. compatible = "socionext,uniphier-fi2c";
  337. status = "disabled";
  338. reg = <0x58780000 0x80>;
  339. #address-cells = <1>;
  340. #size-cells = <0>;
  341. interrupts = <0 41 4>;
  342. pinctrl-names = "default";
  343. pinctrl-0 = <&pinctrl_i2c0>;
  344. clocks = <&i2c_clk>;
  345. clock-frequency = <100000>;
  346. };
  347. i2c1: i2c@58781000 {
  348. compatible = "socionext,uniphier-fi2c";
  349. status = "disabled";
  350. reg = <0x58781000 0x80>;
  351. #address-cells = <1>;
  352. #size-cells = <0>;
  353. interrupts = <0 42 4>;
  354. pinctrl-names = "default";
  355. pinctrl-0 = <&pinctrl_i2c1>;
  356. clocks = <&i2c_clk>;
  357. clock-frequency = <100000>;
  358. };
  359. i2c2: i2c@58782000 {
  360. compatible = "socionext,uniphier-fi2c";
  361. status = "disabled";
  362. reg = <0x58782000 0x80>;
  363. #address-cells = <1>;
  364. #size-cells = <0>;
  365. interrupts = <0 43 4>;
  366. pinctrl-names = "default";
  367. pinctrl-0 = <&pinctrl_i2c2>;
  368. clocks = <&i2c_clk>;
  369. clock-frequency = <100000>;
  370. };
  371. i2c3: i2c@58783000 {
  372. compatible = "socionext,uniphier-fi2c";
  373. status = "disabled";
  374. reg = <0x58783000 0x80>;
  375. #address-cells = <1>;
  376. #size-cells = <0>;
  377. interrupts = <0 44 4>;
  378. pinctrl-names = "default";
  379. pinctrl-0 = <&pinctrl_i2c3>;
  380. clocks = <&i2c_clk>;
  381. clock-frequency = <100000>;
  382. };
  383. /* chip-internal connection for DMD */
  384. i2c4: i2c@58784000 {
  385. compatible = "socionext,uniphier-fi2c";
  386. reg = <0x58784000 0x80>;
  387. #address-cells = <1>;
  388. #size-cells = <0>;
  389. interrupts = <0 45 4>;
  390. clocks = <&i2c_clk>;
  391. clock-frequency = <400000>;
  392. };
  393. /* chip-internal connection for STM */
  394. i2c5: i2c@58785000 {
  395. compatible = "socionext,uniphier-fi2c";
  396. reg = <0x58785000 0x80>;
  397. #address-cells = <1>;
  398. #size-cells = <0>;
  399. interrupts = <0 25 4>;
  400. clocks = <&i2c_clk>;
  401. clock-frequency = <400000>;
  402. };
  403. /* chip-internal connection for HDMI */
  404. i2c6: i2c@58786000 {
  405. compatible = "socionext,uniphier-fi2c";
  406. reg = <0x58786000 0x80>;
  407. #address-cells = <1>;
  408. #size-cells = <0>;
  409. interrupts = <0 26 4>;
  410. clocks = <&i2c_clk>;
  411. clock-frequency = <400000>;
  412. };
  413. system_bus: system-bus@58c00000 {
  414. compatible = "socionext,uniphier-system-bus";
  415. status = "disabled";
  416. reg = <0x58c00000 0x400>;
  417. #address-cells = <2>;
  418. #size-cells = <1>;
  419. pinctrl-names = "default";
  420. pinctrl-0 = <&pinctrl_system_bus>;
  421. };
  422. smpctrl@59800000 {
  423. compatible = "socionext,uniphier-smpctrl";
  424. reg = <0x59801000 0x400>;
  425. };
  426. sdctrl@59810000 {
  427. compatible = "socionext,uniphier-pxs2-sdctrl",
  428. "simple-mfd", "syscon";
  429. reg = <0x59810000 0x800>;
  430. u-boot,dm-pre-reloc;
  431. sd_clk: clock {
  432. compatible = "socionext,uniphier-pxs2-sd-clock";
  433. #clock-cells = <1>;
  434. };
  435. sd_rst: reset {
  436. compatible = "socionext,uniphier-pxs2-sd-reset";
  437. #reset-cells = <1>;
  438. };
  439. };
  440. perictrl@59820000 {
  441. compatible = "socionext,uniphier-pxs2-perictrl",
  442. "simple-mfd", "syscon";
  443. reg = <0x59820000 0x200>;
  444. peri_clk: clock {
  445. compatible = "socionext,uniphier-pxs2-peri-clock";
  446. #clock-cells = <1>;
  447. };
  448. peri_rst: reset {
  449. compatible = "socionext,uniphier-pxs2-peri-reset";
  450. #reset-cells = <1>;
  451. };
  452. };
  453. emmc: sdhc@5a000000 {
  454. compatible = "socionext,uniphier-sdhc";
  455. status = "disabled";
  456. reg = <0x5a000000 0x800>;
  457. interrupts = <0 78 4>;
  458. pinctrl-names = "default";
  459. pinctrl-0 = <&pinctrl_emmc>;
  460. clocks = <&sd_clk 1>;
  461. reset-names = "host";
  462. resets = <&sd_rst 1>;
  463. bus-width = <8>;
  464. non-removable;
  465. cap-mmc-highspeed;
  466. cap-mmc-hw-reset;
  467. no-3-3-v;
  468. };
  469. sd: sdhc@5a400000 {
  470. compatible = "socionext,uniphier-sdhc";
  471. status = "disabled";
  472. reg = <0x5a400000 0x800>;
  473. interrupts = <0 76 4>;
  474. pinctrl-names = "default", "1.8v";
  475. pinctrl-0 = <&pinctrl_sd>;
  476. pinctrl-1 = <&pinctrl_sd_1v8>;
  477. clocks = <&sd_clk 0>;
  478. reset-names = "host";
  479. resets = <&sd_rst 0>;
  480. bus-width = <4>;
  481. cap-sd-highspeed;
  482. sd-uhs-sdr12;
  483. sd-uhs-sdr25;
  484. sd-uhs-sdr50;
  485. };
  486. soc-glue@5f800000 {
  487. compatible = "socionext,uniphier-pxs2-soc-glue",
  488. "simple-mfd", "syscon";
  489. reg = <0x5f800000 0x2000>;
  490. u-boot,dm-pre-reloc;
  491. pinctrl: pinctrl {
  492. compatible = "socionext,uniphier-pxs2-pinctrl";
  493. u-boot,dm-pre-reloc;
  494. };
  495. };
  496. aidet@5fc20000 {
  497. compatible = "simple-mfd", "syscon";
  498. reg = <0x5fc20000 0x200>;
  499. };
  500. timer@60000200 {
  501. compatible = "arm,cortex-a9-global-timer";
  502. reg = <0x60000200 0x20>;
  503. interrupts = <1 11 0xf04>;
  504. clocks = <&arm_timer_clk>;
  505. };
  506. timer@60000600 {
  507. compatible = "arm,cortex-a9-twd-timer";
  508. reg = <0x60000600 0x20>;
  509. interrupts = <1 13 0xf04>;
  510. clocks = <&arm_timer_clk>;
  511. };
  512. intc: interrupt-controller@60001000 {
  513. compatible = "arm,cortex-a9-gic";
  514. reg = <0x60001000 0x1000>,
  515. <0x60000100 0x100>;
  516. #interrupt-cells = <3>;
  517. interrupt-controller;
  518. };
  519. sysctrl@61840000 {
  520. compatible = "socionext,uniphier-pxs2-sysctrl",
  521. "simple-mfd", "syscon";
  522. reg = <0x61840000 0x4000>;
  523. sys_clk: clock {
  524. compatible = "socionext,uniphier-pxs2-clock";
  525. #clock-cells = <1>;
  526. };
  527. sys_rst: reset {
  528. compatible = "socionext,uniphier-pxs2-reset";
  529. #reset-cells = <1>;
  530. };
  531. };
  532. usb0: usb@65b00000 {
  533. compatible = "socionext,uniphier-pxs2-dwc3";
  534. status = "disabled";
  535. reg = <0x65b00000 0x1000>;
  536. #address-cells = <1>;
  537. #size-cells = <1>;
  538. ranges;
  539. pinctrl-names = "default";
  540. pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>;
  541. dwc3@65a00000 {
  542. compatible = "snps,dwc3";
  543. reg = <0x65a00000 0x10000>;
  544. interrupts = <0 134 4>;
  545. tx-fifo-resize;
  546. };
  547. };
  548. usb1: usb@65d00000 {
  549. compatible = "socionext,uniphier-pxs2-dwc3";
  550. status = "disabled";
  551. reg = <0x65d00000 0x1000>;
  552. #address-cells = <1>;
  553. #size-cells = <1>;
  554. ranges;
  555. pinctrl-names = "default";
  556. pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>;
  557. dwc3@65c00000 {
  558. compatible = "snps,dwc3";
  559. reg = <0x65c00000 0x10000>;
  560. interrupts = <0 137 4>;
  561. tx-fifo-resize;
  562. };
  563. };
  564. nand: nand@68000000 {
  565. compatible = "socionext,denali-nand-v5b";
  566. status = "disabled";
  567. reg-names = "nand_data", "denali_reg";
  568. reg = <0x68000000 0x20>, <0x68100000 0x1000>;
  569. interrupts = <0 65 4>;
  570. pinctrl-names = "default";
  571. pinctrl-0 = <&pinctrl_nand>;
  572. clocks = <&sys_clk 2>;
  573. nand-ecc-strength = <8>;
  574. };
  575. };
  576. };
  577. /include/ "uniphier-pinctrl.dtsi"