uniphier-ld20.dtsi 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. // SPDX-License-Identifier: GPL-2.0+ OR MIT
  2. //
  3. // Device Tree Source for UniPhier LD20 SoC
  4. //
  5. // Copyright (C) 2015-2016 Socionext Inc.
  6. // Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/gpio/uniphier-gpio.h>
  9. #include <dt-bindings/thermal/thermal.h>
  10. /memreserve/ 0x80000000 0x02000000;
  11. / {
  12. compatible = "socionext,uniphier-ld20";
  13. #address-cells = <2>;
  14. #size-cells = <2>;
  15. interrupt-parent = <&gic>;
  16. cpus {
  17. #address-cells = <2>;
  18. #size-cells = <0>;
  19. cpu-map {
  20. cluster0 {
  21. core0 {
  22. cpu = <&cpu0>;
  23. };
  24. core1 {
  25. cpu = <&cpu1>;
  26. };
  27. };
  28. cluster1 {
  29. core0 {
  30. cpu = <&cpu2>;
  31. };
  32. core1 {
  33. cpu = <&cpu3>;
  34. };
  35. };
  36. };
  37. cpu0: cpu@0 {
  38. device_type = "cpu";
  39. compatible = "arm,cortex-a72", "arm,armv8";
  40. reg = <0 0x000>;
  41. clocks = <&sys_clk 32>;
  42. enable-method = "psci";
  43. operating-points-v2 = <&cluster0_opp>;
  44. #cooling-cells = <2>;
  45. };
  46. cpu1: cpu@1 {
  47. device_type = "cpu";
  48. compatible = "arm,cortex-a72", "arm,armv8";
  49. reg = <0 0x001>;
  50. clocks = <&sys_clk 32>;
  51. enable-method = "psci";
  52. operating-points-v2 = <&cluster0_opp>;
  53. #cooling-cells = <2>;
  54. };
  55. cpu2: cpu@100 {
  56. device_type = "cpu";
  57. compatible = "arm,cortex-a53", "arm,armv8";
  58. reg = <0 0x100>;
  59. clocks = <&sys_clk 33>;
  60. enable-method = "psci";
  61. operating-points-v2 = <&cluster1_opp>;
  62. #cooling-cells = <2>;
  63. };
  64. cpu3: cpu@101 {
  65. device_type = "cpu";
  66. compatible = "arm,cortex-a53", "arm,armv8";
  67. reg = <0 0x101>;
  68. clocks = <&sys_clk 33>;
  69. enable-method = "psci";
  70. operating-points-v2 = <&cluster1_opp>;
  71. #cooling-cells = <2>;
  72. };
  73. };
  74. cluster0_opp: opp-table0 {
  75. compatible = "operating-points-v2";
  76. opp-shared;
  77. opp-250000000 {
  78. opp-hz = /bits/ 64 <250000000>;
  79. clock-latency-ns = <300>;
  80. };
  81. opp-275000000 {
  82. opp-hz = /bits/ 64 <275000000>;
  83. clock-latency-ns = <300>;
  84. };
  85. opp-500000000 {
  86. opp-hz = /bits/ 64 <500000000>;
  87. clock-latency-ns = <300>;
  88. };
  89. opp-550000000 {
  90. opp-hz = /bits/ 64 <550000000>;
  91. clock-latency-ns = <300>;
  92. };
  93. opp-666667000 {
  94. opp-hz = /bits/ 64 <666667000>;
  95. clock-latency-ns = <300>;
  96. };
  97. opp-733334000 {
  98. opp-hz = /bits/ 64 <733334000>;
  99. clock-latency-ns = <300>;
  100. };
  101. opp-1000000000 {
  102. opp-hz = /bits/ 64 <1000000000>;
  103. clock-latency-ns = <300>;
  104. };
  105. opp-1100000000 {
  106. opp-hz = /bits/ 64 <1100000000>;
  107. clock-latency-ns = <300>;
  108. };
  109. };
  110. cluster1_opp: opp-table1 {
  111. compatible = "operating-points-v2";
  112. opp-shared;
  113. opp-250000000 {
  114. opp-hz = /bits/ 64 <250000000>;
  115. clock-latency-ns = <300>;
  116. };
  117. opp-275000000 {
  118. opp-hz = /bits/ 64 <275000000>;
  119. clock-latency-ns = <300>;
  120. };
  121. opp-500000000 {
  122. opp-hz = /bits/ 64 <500000000>;
  123. clock-latency-ns = <300>;
  124. };
  125. opp-550000000 {
  126. opp-hz = /bits/ 64 <550000000>;
  127. clock-latency-ns = <300>;
  128. };
  129. opp-666667000 {
  130. opp-hz = /bits/ 64 <666667000>;
  131. clock-latency-ns = <300>;
  132. };
  133. opp-733334000 {
  134. opp-hz = /bits/ 64 <733334000>;
  135. clock-latency-ns = <300>;
  136. };
  137. opp-1000000000 {
  138. opp-hz = /bits/ 64 <1000000000>;
  139. clock-latency-ns = <300>;
  140. };
  141. opp-1100000000 {
  142. opp-hz = /bits/ 64 <1100000000>;
  143. clock-latency-ns = <300>;
  144. };
  145. };
  146. psci {
  147. compatible = "arm,psci-1.0";
  148. method = "smc";
  149. };
  150. clocks {
  151. refclk: ref {
  152. compatible = "fixed-clock";
  153. #clock-cells = <0>;
  154. clock-frequency = <25000000>;
  155. };
  156. };
  157. emmc_pwrseq: emmc-pwrseq {
  158. compatible = "mmc-pwrseq-emmc";
  159. reset-gpios = <&gpio UNIPHIER_GPIO_PORT(3, 2) GPIO_ACTIVE_LOW>;
  160. };
  161. timer {
  162. compatible = "arm,armv8-timer";
  163. interrupts = <1 13 4>,
  164. <1 14 4>,
  165. <1 11 4>,
  166. <1 10 4>;
  167. };
  168. thermal-zones {
  169. cpu-thermal {
  170. polling-delay-passive = <250>; /* 250ms */
  171. polling-delay = <1000>; /* 1000ms */
  172. thermal-sensors = <&pvtctl>;
  173. trips {
  174. cpu_crit: cpu-crit {
  175. temperature = <110000>; /* 110C */
  176. hysteresis = <2000>;
  177. type = "critical";
  178. };
  179. cpu_alert: cpu-alert {
  180. temperature = <100000>; /* 100C */
  181. hysteresis = <2000>;
  182. type = "passive";
  183. };
  184. };
  185. cooling-maps {
  186. map0 {
  187. trip = <&cpu_alert>;
  188. cooling-device = <&cpu0
  189. THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  190. };
  191. map1 {
  192. trip = <&cpu_alert>;
  193. cooling-device = <&cpu2
  194. THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  195. };
  196. };
  197. };
  198. };
  199. soc@0 {
  200. compatible = "simple-bus";
  201. #address-cells = <1>;
  202. #size-cells = <1>;
  203. ranges = <0 0 0 0xffffffff>;
  204. serial0: serial@54006800 {
  205. compatible = "socionext,uniphier-uart";
  206. status = "disabled";
  207. reg = <0x54006800 0x40>;
  208. interrupts = <0 33 4>;
  209. pinctrl-names = "default";
  210. pinctrl-0 = <&pinctrl_uart0>;
  211. clocks = <&peri_clk 0>;
  212. resets = <&peri_rst 0>;
  213. };
  214. serial1: serial@54006900 {
  215. compatible = "socionext,uniphier-uart";
  216. status = "disabled";
  217. reg = <0x54006900 0x40>;
  218. interrupts = <0 35 4>;
  219. pinctrl-names = "default";
  220. pinctrl-0 = <&pinctrl_uart1>;
  221. clocks = <&peri_clk 1>;
  222. resets = <&peri_rst 1>;
  223. };
  224. serial2: serial@54006a00 {
  225. compatible = "socionext,uniphier-uart";
  226. status = "disabled";
  227. reg = <0x54006a00 0x40>;
  228. interrupts = <0 37 4>;
  229. pinctrl-names = "default";
  230. pinctrl-0 = <&pinctrl_uart2>;
  231. clocks = <&peri_clk 2>;
  232. resets = <&peri_rst 2>;
  233. };
  234. serial3: serial@54006b00 {
  235. compatible = "socionext,uniphier-uart";
  236. status = "disabled";
  237. reg = <0x54006b00 0x40>;
  238. interrupts = <0 177 4>;
  239. pinctrl-names = "default";
  240. pinctrl-0 = <&pinctrl_uart3>;
  241. clocks = <&peri_clk 3>;
  242. resets = <&peri_rst 3>;
  243. };
  244. gpio: gpio@55000000 {
  245. compatible = "socionext,uniphier-gpio";
  246. reg = <0x55000000 0x200>;
  247. interrupt-parent = <&aidet>;
  248. interrupt-controller;
  249. #interrupt-cells = <2>;
  250. gpio-controller;
  251. #gpio-cells = <2>;
  252. gpio-ranges = <&pinctrl 0 0 0>,
  253. <&pinctrl 96 0 0>,
  254. <&pinctrl 160 0 0>;
  255. gpio-ranges-group-names = "gpio_range0",
  256. "gpio_range1",
  257. "gpio_range2";
  258. ngpios = <205>;
  259. socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
  260. <21 217 3>;
  261. };
  262. audio@56000000 {
  263. compatible = "socionext,uniphier-ld20-aio";
  264. reg = <0x56000000 0x80000>;
  265. interrupts = <0 144 4>;
  266. pinctrl-names = "default";
  267. pinctrl-0 = <&pinctrl_aout1>,
  268. <&pinctrl_aoutiec1>;
  269. clock-names = "aio";
  270. clocks = <&sys_clk 40>;
  271. reset-names = "aio";
  272. resets = <&sys_rst 40>;
  273. #sound-dai-cells = <1>;
  274. socionext,syscon = <&soc_glue>;
  275. i2s_port0: port@0 {
  276. i2s_hdmi: endpoint {
  277. };
  278. };
  279. i2s_port1: port@1 {
  280. i2s_pcmin2: endpoint {
  281. };
  282. };
  283. i2s_port2: port@2 {
  284. i2s_line: endpoint {
  285. dai-format = "i2s";
  286. remote-endpoint = <&evea_line>;
  287. };
  288. };
  289. i2s_port3: port@3 {
  290. i2s_hpcmout1: endpoint {
  291. };
  292. };
  293. i2s_port4: port@4 {
  294. i2s_hp: endpoint {
  295. dai-format = "i2s";
  296. remote-endpoint = <&evea_hp>;
  297. };
  298. };
  299. spdif_port0: port@5 {
  300. spdif_hiecout1: endpoint {
  301. };
  302. };
  303. src_port0: port@6 {
  304. i2s_epcmout2: endpoint {
  305. };
  306. };
  307. src_port1: port@7 {
  308. i2s_epcmout3: endpoint {
  309. };
  310. };
  311. comp_spdif_port0: port@8 {
  312. comp_spdif_hiecout1: endpoint {
  313. };
  314. };
  315. };
  316. codec@57900000 {
  317. compatible = "socionext,uniphier-evea";
  318. reg = <0x57900000 0x1000>;
  319. clock-names = "evea", "exiv";
  320. clocks = <&sys_clk 41>, <&sys_clk 42>;
  321. reset-names = "evea", "exiv", "adamv";
  322. resets = <&sys_rst 41>, <&sys_rst 42>, <&adamv_rst 0>;
  323. #sound-dai-cells = <1>;
  324. port@0 {
  325. evea_line: endpoint {
  326. remote-endpoint = <&i2s_line>;
  327. };
  328. };
  329. port@1 {
  330. evea_hp: endpoint {
  331. remote-endpoint = <&i2s_hp>;
  332. };
  333. };
  334. };
  335. adamv@57920000 {
  336. compatible = "socionext,uniphier-ld20-adamv",
  337. "simple-mfd", "syscon";
  338. reg = <0x57920000 0x1000>;
  339. adamv_rst: reset {
  340. compatible = "socionext,uniphier-ld20-adamv-reset";
  341. #reset-cells = <1>;
  342. };
  343. };
  344. i2c0: i2c@58780000 {
  345. compatible = "socionext,uniphier-fi2c";
  346. status = "disabled";
  347. reg = <0x58780000 0x80>;
  348. #address-cells = <1>;
  349. #size-cells = <0>;
  350. interrupts = <0 41 4>;
  351. pinctrl-names = "default";
  352. pinctrl-0 = <&pinctrl_i2c0>;
  353. clocks = <&peri_clk 4>;
  354. resets = <&peri_rst 4>;
  355. clock-frequency = <100000>;
  356. };
  357. i2c1: i2c@58781000 {
  358. compatible = "socionext,uniphier-fi2c";
  359. status = "disabled";
  360. reg = <0x58781000 0x80>;
  361. #address-cells = <1>;
  362. #size-cells = <0>;
  363. interrupts = <0 42 4>;
  364. pinctrl-names = "default";
  365. pinctrl-0 = <&pinctrl_i2c1>;
  366. clocks = <&peri_clk 5>;
  367. resets = <&peri_rst 5>;
  368. clock-frequency = <100000>;
  369. };
  370. i2c2: i2c@58782000 {
  371. compatible = "socionext,uniphier-fi2c";
  372. reg = <0x58782000 0x80>;
  373. #address-cells = <1>;
  374. #size-cells = <0>;
  375. interrupts = <0 43 4>;
  376. clocks = <&peri_clk 6>;
  377. resets = <&peri_rst 6>;
  378. clock-frequency = <400000>;
  379. };
  380. i2c3: i2c@58783000 {
  381. compatible = "socionext,uniphier-fi2c";
  382. status = "disabled";
  383. reg = <0x58783000 0x80>;
  384. #address-cells = <1>;
  385. #size-cells = <0>;
  386. interrupts = <0 44 4>;
  387. pinctrl-names = "default";
  388. pinctrl-0 = <&pinctrl_i2c3>;
  389. clocks = <&peri_clk 7>;
  390. resets = <&peri_rst 7>;
  391. clock-frequency = <100000>;
  392. };
  393. i2c4: i2c@58784000 {
  394. compatible = "socionext,uniphier-fi2c";
  395. status = "disabled";
  396. reg = <0x58784000 0x80>;
  397. #address-cells = <1>;
  398. #size-cells = <0>;
  399. interrupts = <0 45 4>;
  400. pinctrl-names = "default";
  401. pinctrl-0 = <&pinctrl_i2c4>;
  402. clocks = <&peri_clk 8>;
  403. resets = <&peri_rst 8>;
  404. clock-frequency = <100000>;
  405. };
  406. i2c5: i2c@58785000 {
  407. compatible = "socionext,uniphier-fi2c";
  408. reg = <0x58785000 0x80>;
  409. #address-cells = <1>;
  410. #size-cells = <0>;
  411. interrupts = <0 25 4>;
  412. clocks = <&peri_clk 9>;
  413. resets = <&peri_rst 9>;
  414. clock-frequency = <400000>;
  415. };
  416. system_bus: system-bus@58c00000 {
  417. compatible = "socionext,uniphier-system-bus";
  418. status = "disabled";
  419. reg = <0x58c00000 0x400>;
  420. #address-cells = <2>;
  421. #size-cells = <1>;
  422. pinctrl-names = "default";
  423. pinctrl-0 = <&pinctrl_system_bus>;
  424. };
  425. smpctrl@59801000 {
  426. compatible = "socionext,uniphier-smpctrl";
  427. reg = <0x59801000 0x400>;
  428. };
  429. sdctrl@59810000 {
  430. compatible = "socionext,uniphier-ld20-sdctrl",
  431. "simple-mfd", "syscon";
  432. reg = <0x59810000 0x400>;
  433. sd_clk: clock {
  434. compatible = "socionext,uniphier-ld20-sd-clock";
  435. #clock-cells = <1>;
  436. };
  437. sd_rst: reset {
  438. compatible = "socionext,uniphier-ld20-sd-reset";
  439. #reset-cells = <1>;
  440. };
  441. };
  442. perictrl@59820000 {
  443. compatible = "socionext,uniphier-ld20-perictrl",
  444. "simple-mfd", "syscon";
  445. reg = <0x59820000 0x200>;
  446. peri_clk: clock {
  447. compatible = "socionext,uniphier-ld20-peri-clock";
  448. #clock-cells = <1>;
  449. };
  450. peri_rst: reset {
  451. compatible = "socionext,uniphier-ld20-peri-reset";
  452. #reset-cells = <1>;
  453. };
  454. };
  455. emmc: sdhc@5a000000 {
  456. compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
  457. reg = <0x5a000000 0x400>;
  458. interrupts = <0 78 4>;
  459. pinctrl-names = "default";
  460. pinctrl-0 = <&pinctrl_emmc>;
  461. clocks = <&sys_clk 4>;
  462. resets = <&sys_rst 4>;
  463. bus-width = <8>;
  464. mmc-ddr-1_8v;
  465. mmc-hs200-1_8v;
  466. mmc-pwrseq = <&emmc_pwrseq>;
  467. cdns,phy-input-delay-legacy = <9>;
  468. cdns,phy-input-delay-mmc-highspeed = <2>;
  469. cdns,phy-input-delay-mmc-ddr = <3>;
  470. cdns,phy-dll-delay-sdclk = <21>;
  471. cdns,phy-dll-delay-sdclk-hsmmc = <21>;
  472. };
  473. soc_glue: soc-glue@5f800000 {
  474. compatible = "socionext,uniphier-ld20-soc-glue",
  475. "simple-mfd", "syscon";
  476. reg = <0x5f800000 0x2000>;
  477. pinctrl: pinctrl {
  478. compatible = "socionext,uniphier-ld20-pinctrl";
  479. };
  480. };
  481. soc-glue@5f900000 {
  482. compatible = "socionext,uniphier-ld20-soc-glue-debug",
  483. "simple-mfd";
  484. #address-cells = <1>;
  485. #size-cells = <1>;
  486. ranges = <0 0x5f900000 0x2000>;
  487. efuse@100 {
  488. compatible = "socionext,uniphier-efuse";
  489. reg = <0x100 0x28>;
  490. };
  491. efuse@200 {
  492. compatible = "socionext,uniphier-efuse";
  493. reg = <0x200 0x68>;
  494. };
  495. };
  496. aidet: aidet@5fc20000 {
  497. compatible = "socionext,uniphier-ld20-aidet";
  498. reg = <0x5fc20000 0x200>;
  499. interrupt-controller;
  500. #interrupt-cells = <2>;
  501. };
  502. gic: interrupt-controller@5fe00000 {
  503. compatible = "arm,gic-v3";
  504. reg = <0x5fe00000 0x10000>, /* GICD */
  505. <0x5fe80000 0x80000>; /* GICR */
  506. interrupt-controller;
  507. #interrupt-cells = <3>;
  508. interrupts = <1 9 4>;
  509. };
  510. sysctrl@61840000 {
  511. compatible = "socionext,uniphier-ld20-sysctrl",
  512. "simple-mfd", "syscon";
  513. reg = <0x61840000 0x10000>;
  514. sys_clk: clock {
  515. compatible = "socionext,uniphier-ld20-clock";
  516. #clock-cells = <1>;
  517. };
  518. sys_rst: reset {
  519. compatible = "socionext,uniphier-ld20-reset";
  520. #reset-cells = <1>;
  521. };
  522. watchdog {
  523. compatible = "socionext,uniphier-wdt";
  524. };
  525. pvtctl: pvtctl {
  526. compatible = "socionext,uniphier-ld20-thermal";
  527. interrupts = <0 3 4>;
  528. #thermal-sensor-cells = <0>;
  529. socionext,tmod-calibration = <0x0f22 0x68ee>;
  530. };
  531. };
  532. eth: ethernet@65000000 {
  533. compatible = "socionext,uniphier-ld20-ave4";
  534. status = "disabled";
  535. reg = <0x65000000 0x8500>;
  536. interrupts = <0 66 4>;
  537. pinctrl-names = "default";
  538. pinctrl-0 = <&pinctrl_ether_rgmii>;
  539. clock-names = "ether";
  540. clocks = <&sys_clk 6>;
  541. reset-names = "ether";
  542. resets = <&sys_rst 6>;
  543. phy-mode = "rgmii";
  544. local-mac-address = [00 00 00 00 00 00];
  545. socionext,syscon-phy-mode = <&soc_glue 0>;
  546. mdio: mdio {
  547. #address-cells = <1>;
  548. #size-cells = <0>;
  549. };
  550. };
  551. nand: nand@68000000 {
  552. compatible = "socionext,uniphier-denali-nand-v5b";
  553. status = "disabled";
  554. reg-names = "nand_data", "denali_reg";
  555. reg = <0x68000000 0x20>, <0x68100000 0x1000>;
  556. interrupts = <0 65 4>;
  557. pinctrl-names = "default";
  558. pinctrl-0 = <&pinctrl_nand>;
  559. clocks = <&sys_clk 2>;
  560. resets = <&sys_rst 2>;
  561. };
  562. };
  563. };
  564. #include "uniphier-pinctrl.dtsi"
  565. &pinctrl_aout1 {
  566. drive-strength = <4>; /* default: 3.5mA */
  567. ao1dacck {
  568. pins = "AO1DACCK";
  569. drive-strength = <5>; /* 5mA */
  570. };
  571. };
  572. &pinctrl_aoutiec1 {
  573. drive-strength = <4>; /* default: 3.5mA */
  574. ao1arc {
  575. pins = "AO1ARC";
  576. drive-strength = <11>; /* 11mA */
  577. };
  578. };