uniphier-pxs3.dtsi 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951
  1. // SPDX-License-Identifier: GPL-2.0+ OR MIT
  2. //
  3. // Device Tree Source for UniPhier PXs3 SoC
  4. //
  5. // Copyright (C) 2017 Socionext Inc.
  6. // Author: Masahiro Yamada <[email protected]>
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/gpio/uniphier-gpio.h>
  9. #include <dt-bindings/interrupt-controller/arm-gic.h>
  10. #include <dt-bindings/thermal/thermal.h>
  11. / {
  12. compatible = "socionext,uniphier-pxs3";
  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. core2 {
  28. cpu = <&cpu2>;
  29. };
  30. core3 {
  31. cpu = <&cpu3>;
  32. };
  33. };
  34. };
  35. cpu0: cpu@0 {
  36. device_type = "cpu";
  37. compatible = "arm,cortex-a53";
  38. reg = <0 0x000>;
  39. clocks = <&sys_clk 33>;
  40. enable-method = "psci";
  41. next-level-cache = <&l2>;
  42. operating-points-v2 = <&cluster0_opp>;
  43. #cooling-cells = <2>;
  44. };
  45. cpu1: cpu@1 {
  46. device_type = "cpu";
  47. compatible = "arm,cortex-a53";
  48. reg = <0 0x001>;
  49. clocks = <&sys_clk 33>;
  50. enable-method = "psci";
  51. next-level-cache = <&l2>;
  52. operating-points-v2 = <&cluster0_opp>;
  53. #cooling-cells = <2>;
  54. };
  55. cpu2: cpu@2 {
  56. device_type = "cpu";
  57. compatible = "arm,cortex-a53";
  58. reg = <0 0x002>;
  59. clocks = <&sys_clk 33>;
  60. enable-method = "psci";
  61. next-level-cache = <&l2>;
  62. operating-points-v2 = <&cluster0_opp>;
  63. #cooling-cells = <2>;
  64. };
  65. cpu3: cpu@3 {
  66. device_type = "cpu";
  67. compatible = "arm,cortex-a53";
  68. reg = <0 0x003>;
  69. clocks = <&sys_clk 33>;
  70. enable-method = "psci";
  71. next-level-cache = <&l2>;
  72. operating-points-v2 = <&cluster0_opp>;
  73. #cooling-cells = <2>;
  74. };
  75. l2: l2-cache {
  76. compatible = "cache";
  77. };
  78. };
  79. cluster0_opp: opp-table {
  80. compatible = "operating-points-v2";
  81. opp-shared;
  82. opp-250000000 {
  83. opp-hz = /bits/ 64 <250000000>;
  84. clock-latency-ns = <300>;
  85. };
  86. opp-325000000 {
  87. opp-hz = /bits/ 64 <325000000>;
  88. clock-latency-ns = <300>;
  89. };
  90. opp-500000000 {
  91. opp-hz = /bits/ 64 <500000000>;
  92. clock-latency-ns = <300>;
  93. };
  94. opp-650000000 {
  95. opp-hz = /bits/ 64 <650000000>;
  96. clock-latency-ns = <300>;
  97. };
  98. opp-666667000 {
  99. opp-hz = /bits/ 64 <666667000>;
  100. clock-latency-ns = <300>;
  101. };
  102. opp-866667000 {
  103. opp-hz = /bits/ 64 <866667000>;
  104. clock-latency-ns = <300>;
  105. };
  106. opp-1000000000 {
  107. opp-hz = /bits/ 64 <1000000000>;
  108. clock-latency-ns = <300>;
  109. };
  110. opp-1300000000 {
  111. opp-hz = /bits/ 64 <1300000000>;
  112. clock-latency-ns = <300>;
  113. };
  114. };
  115. psci {
  116. compatible = "arm,psci-1.0";
  117. method = "smc";
  118. };
  119. clocks {
  120. refclk: ref {
  121. compatible = "fixed-clock";
  122. #clock-cells = <0>;
  123. clock-frequency = <25000000>;
  124. };
  125. };
  126. emmc_pwrseq: emmc-pwrseq {
  127. compatible = "mmc-pwrseq-emmc";
  128. reset-gpios = <&gpio UNIPHIER_GPIO_PORT(5, 7) GPIO_ACTIVE_LOW>;
  129. };
  130. timer {
  131. compatible = "arm,armv8-timer";
  132. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>,
  133. <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>,
  134. <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>,
  135. <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>;
  136. };
  137. thermal-zones {
  138. cpu-thermal {
  139. polling-delay-passive = <250>; /* 250ms */
  140. polling-delay = <1000>; /* 1000ms */
  141. thermal-sensors = <&pvtctl>;
  142. trips {
  143. cpu_crit: cpu-crit {
  144. temperature = <110000>; /* 110C */
  145. hysteresis = <2000>;
  146. type = "critical";
  147. };
  148. cpu_alert: cpu-alert {
  149. temperature = <100000>; /* 100C */
  150. hysteresis = <2000>;
  151. type = "passive";
  152. };
  153. };
  154. cooling-maps {
  155. map0 {
  156. trip = <&cpu_alert>;
  157. cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  158. <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  159. <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  160. <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  161. };
  162. };
  163. };
  164. };
  165. reserved-memory {
  166. #address-cells = <2>;
  167. #size-cells = <2>;
  168. ranges;
  169. secure-memory@81000000 {
  170. reg = <0x0 0x81000000 0x0 0x01000000>;
  171. no-map;
  172. };
  173. };
  174. soc@0 {
  175. compatible = "simple-bus";
  176. #address-cells = <1>;
  177. #size-cells = <1>;
  178. ranges = <0 0 0 0xffffffff>;
  179. spi0: spi@54006000 {
  180. compatible = "socionext,uniphier-scssi";
  181. status = "disabled";
  182. reg = <0x54006000 0x100>;
  183. #address-cells = <1>;
  184. #size-cells = <0>;
  185. interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
  186. pinctrl-names = "default";
  187. pinctrl-0 = <&pinctrl_spi0>;
  188. clocks = <&peri_clk 11>;
  189. resets = <&peri_rst 11>;
  190. };
  191. spi1: spi@54006100 {
  192. compatible = "socionext,uniphier-scssi";
  193. status = "disabled";
  194. reg = <0x54006100 0x100>;
  195. #address-cells = <1>;
  196. #size-cells = <0>;
  197. interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
  198. pinctrl-names = "default";
  199. pinctrl-0 = <&pinctrl_spi1>;
  200. clocks = <&peri_clk 12>;
  201. resets = <&peri_rst 12>;
  202. };
  203. serial0: serial@54006800 {
  204. compatible = "socionext,uniphier-uart";
  205. status = "disabled";
  206. reg = <0x54006800 0x40>;
  207. interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
  208. pinctrl-names = "default";
  209. pinctrl-0 = <&pinctrl_uart0>;
  210. clocks = <&peri_clk 0>;
  211. resets = <&peri_rst 0>;
  212. };
  213. serial1: serial@54006900 {
  214. compatible = "socionext,uniphier-uart";
  215. status = "disabled";
  216. reg = <0x54006900 0x40>;
  217. interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
  218. pinctrl-names = "default";
  219. pinctrl-0 = <&pinctrl_uart1>;
  220. clocks = <&peri_clk 1>;
  221. resets = <&peri_rst 1>;
  222. };
  223. serial2: serial@54006a00 {
  224. compatible = "socionext,uniphier-uart";
  225. status = "disabled";
  226. reg = <0x54006a00 0x40>;
  227. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  228. pinctrl-names = "default";
  229. pinctrl-0 = <&pinctrl_uart2>;
  230. clocks = <&peri_clk 2>;
  231. resets = <&peri_rst 2>;
  232. };
  233. serial3: serial@54006b00 {
  234. compatible = "socionext,uniphier-uart";
  235. status = "disabled";
  236. reg = <0x54006b00 0x40>;
  237. interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
  238. pinctrl-names = "default";
  239. pinctrl-0 = <&pinctrl_uart3>;
  240. clocks = <&peri_clk 3>;
  241. resets = <&peri_rst 3>;
  242. };
  243. gpio: gpio@55000000 {
  244. compatible = "socionext,uniphier-gpio";
  245. reg = <0x55000000 0x200>;
  246. interrupt-parent = <&aidet>;
  247. interrupt-controller;
  248. #interrupt-cells = <2>;
  249. gpio-controller;
  250. #gpio-cells = <2>;
  251. gpio-ranges = <&pinctrl 0 0 0>,
  252. <&pinctrl 104 0 0>,
  253. <&pinctrl 168 0 0>;
  254. gpio-ranges-group-names = "gpio_range0",
  255. "gpio_range1",
  256. "gpio_range2";
  257. ngpios = <286>;
  258. socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
  259. <21 217 3>;
  260. };
  261. i2c0: i2c@58780000 {
  262. compatible = "socionext,uniphier-fi2c";
  263. status = "disabled";
  264. reg = <0x58780000 0x80>;
  265. #address-cells = <1>;
  266. #size-cells = <0>;
  267. interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
  268. pinctrl-names = "default";
  269. pinctrl-0 = <&pinctrl_i2c0>;
  270. clocks = <&peri_clk 4>;
  271. resets = <&peri_rst 4>;
  272. clock-frequency = <100000>;
  273. };
  274. i2c1: i2c@58781000 {
  275. compatible = "socionext,uniphier-fi2c";
  276. status = "disabled";
  277. reg = <0x58781000 0x80>;
  278. #address-cells = <1>;
  279. #size-cells = <0>;
  280. interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
  281. pinctrl-names = "default";
  282. pinctrl-0 = <&pinctrl_i2c1>;
  283. clocks = <&peri_clk 5>;
  284. resets = <&peri_rst 5>;
  285. clock-frequency = <100000>;
  286. };
  287. i2c2: i2c@58782000 {
  288. compatible = "socionext,uniphier-fi2c";
  289. status = "disabled";
  290. reg = <0x58782000 0x80>;
  291. #address-cells = <1>;
  292. #size-cells = <0>;
  293. interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
  294. pinctrl-names = "default";
  295. pinctrl-0 = <&pinctrl_i2c2>;
  296. clocks = <&peri_clk 6>;
  297. resets = <&peri_rst 6>;
  298. clock-frequency = <100000>;
  299. };
  300. i2c3: i2c@58783000 {
  301. compatible = "socionext,uniphier-fi2c";
  302. status = "disabled";
  303. reg = <0x58783000 0x80>;
  304. #address-cells = <1>;
  305. #size-cells = <0>;
  306. interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
  307. pinctrl-names = "default";
  308. pinctrl-0 = <&pinctrl_i2c3>;
  309. clocks = <&peri_clk 7>;
  310. resets = <&peri_rst 7>;
  311. clock-frequency = <100000>;
  312. };
  313. /* chip-internal connection for HDMI */
  314. i2c6: i2c@58786000 {
  315. compatible = "socionext,uniphier-fi2c";
  316. reg = <0x58786000 0x80>;
  317. #address-cells = <1>;
  318. #size-cells = <0>;
  319. interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  320. clocks = <&peri_clk 10>;
  321. resets = <&peri_rst 10>;
  322. clock-frequency = <400000>;
  323. };
  324. system_bus: system-bus@58c00000 {
  325. compatible = "socionext,uniphier-system-bus";
  326. status = "disabled";
  327. reg = <0x58c00000 0x400>;
  328. #address-cells = <2>;
  329. #size-cells = <1>;
  330. pinctrl-names = "default";
  331. pinctrl-0 = <&pinctrl_system_bus>;
  332. };
  333. smpctrl@59801000 {
  334. compatible = "socionext,uniphier-smpctrl";
  335. reg = <0x59801000 0x400>;
  336. };
  337. sdctrl@59810000 {
  338. compatible = "socionext,uniphier-pxs3-sdctrl",
  339. "simple-mfd", "syscon";
  340. reg = <0x59810000 0x400>;
  341. sd_clk: clock {
  342. compatible = "socionext,uniphier-pxs3-sd-clock";
  343. #clock-cells = <1>;
  344. };
  345. sd_rst: reset {
  346. compatible = "socionext,uniphier-pxs3-sd-reset";
  347. #reset-cells = <1>;
  348. };
  349. };
  350. perictrl@59820000 {
  351. compatible = "socionext,uniphier-pxs3-perictrl",
  352. "simple-mfd", "syscon";
  353. reg = <0x59820000 0x200>;
  354. peri_clk: clock {
  355. compatible = "socionext,uniphier-pxs3-peri-clock";
  356. #clock-cells = <1>;
  357. };
  358. peri_rst: reset {
  359. compatible = "socionext,uniphier-pxs3-peri-reset";
  360. #reset-cells = <1>;
  361. };
  362. };
  363. emmc: mmc@5a000000 {
  364. compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
  365. reg = <0x5a000000 0x400>;
  366. interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
  367. pinctrl-names = "default";
  368. pinctrl-0 = <&pinctrl_emmc>;
  369. clocks = <&sys_clk 4>;
  370. resets = <&sys_rst 4>;
  371. bus-width = <8>;
  372. mmc-ddr-1_8v;
  373. mmc-hs200-1_8v;
  374. mmc-pwrseq = <&emmc_pwrseq>;
  375. cdns,phy-input-delay-legacy = <9>;
  376. cdns,phy-input-delay-mmc-highspeed = <2>;
  377. cdns,phy-input-delay-mmc-ddr = <3>;
  378. cdns,phy-dll-delay-sdclk = <21>;
  379. cdns,phy-dll-delay-sdclk-hsmmc = <21>;
  380. };
  381. sd: mmc@5a400000 {
  382. compatible = "socionext,uniphier-sd-v3.1.1";
  383. status = "disabled";
  384. reg = <0x5a400000 0x800>;
  385. interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
  386. pinctrl-names = "default", "uhs";
  387. pinctrl-0 = <&pinctrl_sd>;
  388. pinctrl-1 = <&pinctrl_sd_uhs>;
  389. clocks = <&sd_clk 0>;
  390. reset-names = "host";
  391. resets = <&sd_rst 0>;
  392. bus-width = <4>;
  393. cap-sd-highspeed;
  394. sd-uhs-sdr12;
  395. sd-uhs-sdr25;
  396. sd-uhs-sdr50;
  397. };
  398. soc_glue: soc-glue@5f800000 {
  399. compatible = "socionext,uniphier-pxs3-soc-glue",
  400. "simple-mfd", "syscon";
  401. reg = <0x5f800000 0x2000>;
  402. pinctrl: pinctrl {
  403. compatible = "socionext,uniphier-pxs3-pinctrl";
  404. };
  405. };
  406. soc-glue@5f900000 {
  407. compatible = "socionext,uniphier-pxs3-soc-glue-debug",
  408. "simple-mfd";
  409. #address-cells = <1>;
  410. #size-cells = <1>;
  411. ranges = <0 0x5f900000 0x2000>;
  412. efuse@100 {
  413. compatible = "socionext,uniphier-efuse";
  414. reg = <0x100 0x28>;
  415. };
  416. efuse@200 {
  417. compatible = "socionext,uniphier-efuse";
  418. reg = <0x200 0x68>;
  419. #address-cells = <1>;
  420. #size-cells = <1>;
  421. /* USB cells */
  422. usb_rterm0: trim@54,4 {
  423. reg = <0x54 1>;
  424. bits = <4 2>;
  425. };
  426. usb_rterm1: trim@55,4 {
  427. reg = <0x55 1>;
  428. bits = <4 2>;
  429. };
  430. usb_rterm2: trim@58,4 {
  431. reg = <0x58 1>;
  432. bits = <4 2>;
  433. };
  434. usb_rterm3: trim@59,4 {
  435. reg = <0x59 1>;
  436. bits = <4 2>;
  437. };
  438. usb_sel_t0: trim@54,0 {
  439. reg = <0x54 1>;
  440. bits = <0 4>;
  441. };
  442. usb_sel_t1: trim@55,0 {
  443. reg = <0x55 1>;
  444. bits = <0 4>;
  445. };
  446. usb_sel_t2: trim@58,0 {
  447. reg = <0x58 1>;
  448. bits = <0 4>;
  449. };
  450. usb_sel_t3: trim@59,0 {
  451. reg = <0x59 1>;
  452. bits = <0 4>;
  453. };
  454. usb_hs_i0: trim@56,0 {
  455. reg = <0x56 1>;
  456. bits = <0 4>;
  457. };
  458. usb_hs_i2: trim@5a,0 {
  459. reg = <0x5a 1>;
  460. bits = <0 4>;
  461. };
  462. };
  463. };
  464. xdmac: dma-controller@5fc10000 {
  465. compatible = "socionext,uniphier-xdmac";
  466. reg = <0x5fc10000 0x5300>;
  467. interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
  468. dma-channels = <16>;
  469. #dma-cells = <2>;
  470. };
  471. aidet: interrupt-controller@5fc20000 {
  472. compatible = "socionext,uniphier-pxs3-aidet";
  473. reg = <0x5fc20000 0x200>;
  474. interrupt-controller;
  475. #interrupt-cells = <2>;
  476. };
  477. gic: interrupt-controller@5fe00000 {
  478. compatible = "arm,gic-v3";
  479. reg = <0x5fe00000 0x10000>, /* GICD */
  480. <0x5fe80000 0x80000>; /* GICR */
  481. interrupt-controller;
  482. #interrupt-cells = <3>;
  483. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  484. };
  485. sysctrl@61840000 {
  486. compatible = "socionext,uniphier-pxs3-sysctrl",
  487. "simple-mfd", "syscon";
  488. reg = <0x61840000 0x10000>;
  489. sys_clk: clock {
  490. compatible = "socionext,uniphier-pxs3-clock";
  491. #clock-cells = <1>;
  492. };
  493. sys_rst: reset {
  494. compatible = "socionext,uniphier-pxs3-reset";
  495. #reset-cells = <1>;
  496. };
  497. watchdog {
  498. compatible = "socionext,uniphier-wdt";
  499. };
  500. pvtctl: thermal-sensor {
  501. compatible = "socionext,uniphier-pxs3-thermal";
  502. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  503. #thermal-sensor-cells = <0>;
  504. socionext,tmod-calibration = <0x0f22 0x68ee>;
  505. };
  506. };
  507. eth0: ethernet@65000000 {
  508. compatible = "socionext,uniphier-pxs3-ave4";
  509. status = "disabled";
  510. reg = <0x65000000 0x8500>;
  511. interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
  512. pinctrl-names = "default";
  513. pinctrl-0 = <&pinctrl_ether_rgmii>;
  514. clock-names = "ether";
  515. clocks = <&sys_clk 6>;
  516. reset-names = "ether";
  517. resets = <&sys_rst 6>;
  518. phy-mode = "rgmii-id";
  519. local-mac-address = [00 00 00 00 00 00];
  520. socionext,syscon-phy-mode = <&soc_glue 0>;
  521. mdio0: mdio {
  522. #address-cells = <1>;
  523. #size-cells = <0>;
  524. };
  525. };
  526. eth1: ethernet@65200000 {
  527. compatible = "socionext,uniphier-pxs3-ave4";
  528. status = "disabled";
  529. reg = <0x65200000 0x8500>;
  530. interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
  531. pinctrl-names = "default";
  532. pinctrl-0 = <&pinctrl_ether1_rgmii>;
  533. clock-names = "ether";
  534. clocks = <&sys_clk 7>;
  535. reset-names = "ether";
  536. resets = <&sys_rst 7>;
  537. phy-mode = "rgmii-id";
  538. local-mac-address = [00 00 00 00 00 00];
  539. socionext,syscon-phy-mode = <&soc_glue 1>;
  540. mdio1: mdio {
  541. #address-cells = <1>;
  542. #size-cells = <0>;
  543. };
  544. };
  545. ahci0: sata@65600000 {
  546. compatible = "socionext,uniphier-pxs3-ahci",
  547. "generic-ahci";
  548. status = "disabled";
  549. reg = <0x65600000 0x10000>;
  550. interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
  551. clocks = <&sys_clk 28>;
  552. resets = <&sys_rst 28>, <&ahci0_rst 0>;
  553. ports-implemented = <1>;
  554. phys = <&ahci0_phy>;
  555. };
  556. sata-controller@65700000 {
  557. compatible = "socionext,uniphier-pxs3-ahci-glue",
  558. "simple-mfd";
  559. #address-cells = <1>;
  560. #size-cells = <1>;
  561. ranges = <0 0x65700000 0x100>;
  562. ahci0_rst: reset-controller@0 {
  563. compatible = "socionext,uniphier-pxs3-ahci-reset";
  564. reg = <0x0 0x4>;
  565. clock-names = "link";
  566. clocks = <&sys_clk 28>;
  567. reset-names = "link";
  568. resets = <&sys_rst 28>;
  569. #reset-cells = <1>;
  570. };
  571. ahci0_phy: sata-phy@10 {
  572. compatible = "socionext,uniphier-pxs3-ahci-phy";
  573. reg = <0x10 0x10>;
  574. clock-names = "link", "phy";
  575. clocks = <&sys_clk 28>, <&sys_clk 30>;
  576. reset-names = "link", "phy";
  577. resets = <&sys_rst 28>, <&sys_rst 30>;
  578. #phy-cells = <0>;
  579. };
  580. };
  581. ahci1: sata@65800000 {
  582. compatible = "socionext,uniphier-pxs3-ahci",
  583. "generic-ahci";
  584. status = "disabled";
  585. reg = <0x65800000 0x10000>;
  586. interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
  587. clocks = <&sys_clk 29>;
  588. resets = <&sys_rst 29>, <&ahci1_rst 0>;
  589. ports-implemented = <1>;
  590. phys = <&ahci1_phy>;
  591. };
  592. sata-controller@65900000 {
  593. compatible = "socionext,uniphier-pxs3-ahci-glue",
  594. "simple-mfd";
  595. #address-cells = <1>;
  596. #size-cells = <1>;
  597. ranges = <0 0x65900000 0x100>;
  598. ahci1_rst: reset-controller@0 {
  599. compatible = "socionext,uniphier-pxs3-ahci-reset";
  600. reg = <0x0 0x4>;
  601. clock-names = "link";
  602. clocks = <&sys_clk 29>;
  603. reset-names = "link";
  604. resets = <&sys_rst 29>;
  605. #reset-cells = <1>;
  606. };
  607. ahci1_phy: sata-phy@10 {
  608. compatible = "socionext,uniphier-pxs3-ahci-phy";
  609. reg = <0x10 0x10>;
  610. clock-names = "link", "phy";
  611. clocks = <&sys_clk 29>, <&sys_clk 30>;
  612. reset-names = "link", "phy";
  613. resets = <&sys_rst 29>, <&sys_rst 30>;
  614. #phy-cells = <0>;
  615. };
  616. };
  617. usb0: usb@65a00000 {
  618. compatible = "socionext,uniphier-dwc3", "snps,dwc3";
  619. status = "disabled";
  620. reg = <0x65a00000 0xcd00>;
  621. interrupt-names = "dwc_usb3";
  622. interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
  623. pinctrl-names = "default";
  624. pinctrl-0 = <&pinctrl_usb0>, <&pinctrl_usb2>;
  625. clock-names = "ref", "bus_early", "suspend";
  626. clocks = <&sys_clk 12>, <&sys_clk 12>, <&sys_clk 12>;
  627. resets = <&usb0_rst 15>;
  628. phys = <&usb0_hsphy0>, <&usb0_hsphy1>,
  629. <&usb0_ssphy0>, <&usb0_ssphy1>;
  630. dr_mode = "host";
  631. };
  632. usb-controller@65b00000 {
  633. compatible = "socionext,uniphier-pxs3-dwc3-glue",
  634. "simple-mfd";
  635. #address-cells = <1>;
  636. #size-cells = <1>;
  637. ranges = <0 0x65b00000 0x400>;
  638. usb0_rst: reset@0 {
  639. compatible = "socionext,uniphier-pxs3-usb3-reset";
  640. reg = <0x0 0x4>;
  641. #reset-cells = <1>;
  642. clock-names = "link";
  643. clocks = <&sys_clk 12>;
  644. reset-names = "link";
  645. resets = <&sys_rst 12>;
  646. };
  647. usb0_vbus0: regulator@100 {
  648. compatible = "socionext,uniphier-pxs3-usb3-regulator";
  649. reg = <0x100 0x10>;
  650. clock-names = "link";
  651. clocks = <&sys_clk 12>;
  652. reset-names = "link";
  653. resets = <&sys_rst 12>;
  654. };
  655. usb0_vbus1: regulator@110 {
  656. compatible = "socionext,uniphier-pxs3-usb3-regulator";
  657. reg = <0x110 0x10>;
  658. clock-names = "link";
  659. clocks = <&sys_clk 12>;
  660. reset-names = "link";
  661. resets = <&sys_rst 12>;
  662. };
  663. usb0_hsphy0: hs-phy@200 {
  664. compatible = "socionext,uniphier-pxs3-usb3-hsphy";
  665. reg = <0x200 0x10>;
  666. #phy-cells = <0>;
  667. clock-names = "link", "phy";
  668. clocks = <&sys_clk 12>, <&sys_clk 16>;
  669. reset-names = "link", "phy";
  670. resets = <&sys_rst 12>, <&sys_rst 16>;
  671. vbus-supply = <&usb0_vbus0>;
  672. nvmem-cell-names = "rterm", "sel_t", "hs_i";
  673. nvmem-cells = <&usb_rterm0>, <&usb_sel_t0>,
  674. <&usb_hs_i0>;
  675. };
  676. usb0_hsphy1: hs-phy@210 {
  677. compatible = "socionext,uniphier-pxs3-usb3-hsphy";
  678. reg = <0x210 0x10>;
  679. #phy-cells = <0>;
  680. clock-names = "link", "phy";
  681. clocks = <&sys_clk 12>, <&sys_clk 16>;
  682. reset-names = "link", "phy";
  683. resets = <&sys_rst 12>, <&sys_rst 16>;
  684. vbus-supply = <&usb0_vbus1>;
  685. nvmem-cell-names = "rterm", "sel_t", "hs_i";
  686. nvmem-cells = <&usb_rterm1>, <&usb_sel_t1>,
  687. <&usb_hs_i0>;
  688. };
  689. usb0_ssphy0: ss-phy@300 {
  690. compatible = "socionext,uniphier-pxs3-usb3-ssphy";
  691. reg = <0x300 0x10>;
  692. #phy-cells = <0>;
  693. clock-names = "link", "phy";
  694. clocks = <&sys_clk 12>, <&sys_clk 17>;
  695. reset-names = "link", "phy";
  696. resets = <&sys_rst 12>, <&sys_rst 17>;
  697. vbus-supply = <&usb0_vbus0>;
  698. };
  699. usb0_ssphy1: ss-phy@310 {
  700. compatible = "socionext,uniphier-pxs3-usb3-ssphy";
  701. reg = <0x310 0x10>;
  702. #phy-cells = <0>;
  703. clock-names = "link", "phy";
  704. clocks = <&sys_clk 12>, <&sys_clk 18>;
  705. reset-names = "link", "phy";
  706. resets = <&sys_rst 12>, <&sys_rst 18>;
  707. vbus-supply = <&usb0_vbus1>;
  708. };
  709. };
  710. usb1: usb@65c00000 {
  711. compatible = "socionext,uniphier-dwc3", "snps,dwc3";
  712. status = "disabled";
  713. reg = <0x65c00000 0xcd00>;
  714. interrupt-names = "dwc_usb3";
  715. interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
  716. pinctrl-names = "default";
  717. pinctrl-0 = <&pinctrl_usb1>, <&pinctrl_usb3>;
  718. clock-names = "ref", "bus_early", "suspend";
  719. clocks = <&sys_clk 13>, <&sys_clk 13>, <&sys_clk 13>;
  720. resets = <&usb1_rst 15>;
  721. phys = <&usb1_hsphy0>, <&usb1_hsphy1>,
  722. <&usb1_ssphy0>;
  723. dr_mode = "host";
  724. };
  725. usb-controller@65d00000 {
  726. compatible = "socionext,uniphier-pxs3-dwc3-glue",
  727. "simple-mfd";
  728. #address-cells = <1>;
  729. #size-cells = <1>;
  730. ranges = <0 0x65d00000 0x400>;
  731. usb1_rst: reset@0 {
  732. compatible = "socionext,uniphier-pxs3-usb3-reset";
  733. reg = <0x0 0x4>;
  734. #reset-cells = <1>;
  735. clock-names = "link";
  736. clocks = <&sys_clk 13>;
  737. reset-names = "link";
  738. resets = <&sys_rst 13>;
  739. };
  740. usb1_vbus0: regulator@100 {
  741. compatible = "socionext,uniphier-pxs3-usb3-regulator";
  742. reg = <0x100 0x10>;
  743. clock-names = "link";
  744. clocks = <&sys_clk 13>;
  745. reset-names = "link";
  746. resets = <&sys_rst 13>;
  747. };
  748. usb1_vbus1: regulator@110 {
  749. compatible = "socionext,uniphier-pxs3-usb3-regulator";
  750. reg = <0x110 0x10>;
  751. clock-names = "link";
  752. clocks = <&sys_clk 13>;
  753. reset-names = "link";
  754. resets = <&sys_rst 13>;
  755. };
  756. usb1_hsphy0: hs-phy@200 {
  757. compatible = "socionext,uniphier-pxs3-usb3-hsphy";
  758. reg = <0x200 0x10>;
  759. #phy-cells = <0>;
  760. clock-names = "link", "phy", "phy-ext";
  761. clocks = <&sys_clk 13>, <&sys_clk 20>,
  762. <&sys_clk 14>;
  763. reset-names = "link", "phy";
  764. resets = <&sys_rst 13>, <&sys_rst 20>;
  765. vbus-supply = <&usb1_vbus0>;
  766. nvmem-cell-names = "rterm", "sel_t", "hs_i";
  767. nvmem-cells = <&usb_rterm2>, <&usb_sel_t2>,
  768. <&usb_hs_i2>;
  769. };
  770. usb1_hsphy1: hs-phy@210 {
  771. compatible = "socionext,uniphier-pxs3-usb3-hsphy";
  772. reg = <0x210 0x10>;
  773. #phy-cells = <0>;
  774. clock-names = "link", "phy", "phy-ext";
  775. clocks = <&sys_clk 13>, <&sys_clk 20>,
  776. <&sys_clk 14>;
  777. reset-names = "link", "phy";
  778. resets = <&sys_rst 13>, <&sys_rst 20>;
  779. vbus-supply = <&usb1_vbus1>;
  780. nvmem-cell-names = "rterm", "sel_t", "hs_i";
  781. nvmem-cells = <&usb_rterm3>, <&usb_sel_t3>,
  782. <&usb_hs_i2>;
  783. };
  784. usb1_ssphy0: ss-phy@300 {
  785. compatible = "socionext,uniphier-pxs3-usb3-ssphy";
  786. reg = <0x300 0x10>;
  787. #phy-cells = <0>;
  788. clock-names = "link", "phy", "phy-ext";
  789. clocks = <&sys_clk 13>, <&sys_clk 21>,
  790. <&sys_clk 14>;
  791. reset-names = "link", "phy";
  792. resets = <&sys_rst 13>, <&sys_rst 21>;
  793. vbus-supply = <&usb1_vbus0>;
  794. };
  795. };
  796. pcie: pcie@66000000 {
  797. compatible = "socionext,uniphier-pcie";
  798. status = "disabled";
  799. reg-names = "dbi", "link", "config";
  800. reg = <0x66000000 0x1000>, <0x66010000 0x10000>,
  801. <0x2fff0000 0x10000>;
  802. #address-cells = <3>;
  803. #size-cells = <2>;
  804. clocks = <&sys_clk 24>;
  805. resets = <&sys_rst 24>;
  806. num-lanes = <1>;
  807. num-viewport = <1>;
  808. bus-range = <0x0 0xff>;
  809. device_type = "pci";
  810. ranges =
  811. /* downstream I/O */
  812. <0x81000000 0 0x00000000 0x2ffe0000 0 0x00010000>,
  813. /* non-prefetchable memory */
  814. <0x82000000 0 0x20000000 0x20000000 0 0x0ffe0000>;
  815. #interrupt-cells = <1>;
  816. interrupt-names = "dma", "msi";
  817. interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>,
  818. <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
  819. interrupt-map-mask = <0 0 0 7>;
  820. interrupt-map = <0 0 0 1 &pcie_intc 0>, /* INTA */
  821. <0 0 0 2 &pcie_intc 1>, /* INTB */
  822. <0 0 0 3 &pcie_intc 2>, /* INTC */
  823. <0 0 0 4 &pcie_intc 3>; /* INTD */
  824. phy-names = "pcie-phy";
  825. phys = <&pcie_phy>;
  826. pcie_intc: legacy-interrupt-controller {
  827. interrupt-controller;
  828. #interrupt-cells = <1>;
  829. interrupt-parent = <&gic>;
  830. interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
  831. };
  832. };
  833. pcie_phy: phy@66038000 {
  834. compatible = "socionext,uniphier-pxs3-pcie-phy";
  835. reg = <0x66038000 0x4000>;
  836. #phy-cells = <0>;
  837. clock-names = "link";
  838. clocks = <&sys_clk 24>;
  839. reset-names = "link";
  840. resets = <&sys_rst 24>;
  841. socionext,syscon = <&soc_glue>;
  842. };
  843. nand: nand-controller@68000000 {
  844. compatible = "socionext,uniphier-denali-nand-v5b";
  845. status = "disabled";
  846. reg-names = "nand_data", "denali_reg";
  847. reg = <0x68000000 0x20>, <0x68100000 0x1000>;
  848. #address-cells = <1>;
  849. #size-cells = <0>;
  850. interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
  851. pinctrl-names = "default";
  852. pinctrl-0 = <&pinctrl_nand>;
  853. clock-names = "nand", "nand_x", "ecc";
  854. clocks = <&sys_clk 2>, <&sys_clk 3>, <&sys_clk 3>;
  855. reset-names = "nand", "reg";
  856. resets = <&sys_rst 2>, <&sys_rst 2>;
  857. };
  858. };
  859. };
  860. #include "uniphier-pinctrl.dtsi"