pistachio.dtsi 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2015, 2016 Imagination Technologies Ltd.
  4. * Copyright (C) 2015 Google, Inc.
  5. */
  6. #include <dt-bindings/clock/pistachio-clk.h>
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/interrupt-controller/irq.h>
  9. #include <dt-bindings/interrupt-controller/mips-gic.h>
  10. #include <dt-bindings/reset/pistachio-resets.h>
  11. / {
  12. compatible = "img,pistachio";
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. interrupt-parent = <&gic>;
  16. cpus {
  17. #address-cells = <1>;
  18. #size-cells = <0>;
  19. cpu0: cpu@0 {
  20. device_type = "cpu";
  21. compatible = "mti,interaptiv";
  22. reg = <0>;
  23. clocks = <&clk_core CLK_MIPS_PLL>;
  24. clock-names = "cpu";
  25. clock-latency = <1000>;
  26. operating-points = <
  27. /* kHz uV(dummy) */
  28. 546000 1150000
  29. 520000 1100000
  30. 494000 1000000
  31. 468000 950000
  32. 442000 900000
  33. 416000 800000
  34. >;
  35. };
  36. };
  37. i2c0: i2c@18100000 {
  38. compatible = "img,scb-i2c";
  39. reg = <0x18100000 0x200>;
  40. interrupts = <GIC_SHARED 2 IRQ_TYPE_LEVEL_HIGH>;
  41. clocks = <&clk_periph PERIPH_CLK_I2C0>,
  42. <&cr_periph SYS_CLK_I2C0>;
  43. clock-names = "scb", "sys";
  44. assigned-clocks = <&clk_periph PERIPH_CLK_I2C0_PRE_DIV>,
  45. <&clk_periph PERIPH_CLK_I2C0_DIV>;
  46. assigned-clock-rates = <100000000>, <33333334>;
  47. status = "disabled";
  48. pinctrl-names = "default";
  49. pinctrl-0 = <&i2c0_pins>;
  50. #address-cells = <1>;
  51. #size-cells = <0>;
  52. };
  53. i2c1: i2c@18100200 {
  54. compatible = "img,scb-i2c";
  55. reg = <0x18100200 0x200>;
  56. interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>;
  57. clocks = <&clk_periph PERIPH_CLK_I2C1>,
  58. <&cr_periph SYS_CLK_I2C1>;
  59. clock-names = "scb", "sys";
  60. assigned-clocks = <&clk_periph PERIPH_CLK_I2C1_PRE_DIV>,
  61. <&clk_periph PERIPH_CLK_I2C1_DIV>;
  62. assigned-clock-rates = <100000000>, <33333334>;
  63. status = "disabled";
  64. pinctrl-names = "default";
  65. pinctrl-0 = <&i2c1_pins>;
  66. #address-cells = <1>;
  67. #size-cells = <0>;
  68. };
  69. i2c2: i2c@18100400 {
  70. compatible = "img,scb-i2c";
  71. reg = <0x18100400 0x200>;
  72. interrupts = <GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>;
  73. clocks = <&clk_periph PERIPH_CLK_I2C2>,
  74. <&cr_periph SYS_CLK_I2C2>;
  75. clock-names = "scb", "sys";
  76. assigned-clocks = <&clk_periph PERIPH_CLK_I2C2_PRE_DIV>,
  77. <&clk_periph PERIPH_CLK_I2C2_DIV>;
  78. assigned-clock-rates = <100000000>, <33333334>;
  79. status = "disabled";
  80. pinctrl-names = "default";
  81. pinctrl-0 = <&i2c2_pins>;
  82. #address-cells = <1>;
  83. #size-cells = <0>;
  84. };
  85. i2c3: i2c@18100600 {
  86. compatible = "img,scb-i2c";
  87. reg = <0x18100600 0x200>;
  88. interrupts = <GIC_SHARED 5 IRQ_TYPE_LEVEL_HIGH>;
  89. clocks = <&clk_periph PERIPH_CLK_I2C3>,
  90. <&cr_periph SYS_CLK_I2C3>;
  91. clock-names = "scb", "sys";
  92. assigned-clocks = <&clk_periph PERIPH_CLK_I2C3_PRE_DIV>,
  93. <&clk_periph PERIPH_CLK_I2C3_DIV>;
  94. assigned-clock-rates = <100000000>, <33333334>;
  95. status = "disabled";
  96. pinctrl-names = "default";
  97. pinctrl-0 = <&i2c3_pins>;
  98. #address-cells = <1>;
  99. #size-cells = <0>;
  100. };
  101. i2s_in: i2s-in@18100800 {
  102. compatible = "img,i2s-in";
  103. reg = <0x18100800 0x200>;
  104. interrupts = <GIC_SHARED 7 IRQ_TYPE_LEVEL_HIGH>;
  105. dmas = <&mdc 30 0xffffffff 0>;
  106. dma-names = "rx";
  107. clocks = <&cr_periph SYS_CLK_I2S_IN>;
  108. clock-names = "sys";
  109. img,i2s-channels = <6>;
  110. pinctrl-names = "default";
  111. pinctrl-0 = <&i2s_in_pins>;
  112. status = "disabled";
  113. #sound-dai-cells = <0>;
  114. };
  115. i2s_out: i2s-out@18100a00 {
  116. compatible = "img,i2s-out";
  117. reg = <0x18100a00 0x200>;
  118. interrupts = <GIC_SHARED 13 IRQ_TYPE_LEVEL_HIGH>;
  119. dmas = <&mdc 23 0xffffffff 0>;
  120. dma-names = "tx";
  121. clocks = <&cr_periph SYS_CLK_I2S_OUT>,
  122. <&clk_core CLK_I2S>;
  123. clock-names = "sys", "ref";
  124. assigned-clocks = <&clk_core CLK_I2S_DIV>;
  125. assigned-clock-rates = <12288000>;
  126. img,i2s-channels = <6>;
  127. pinctrl-names = "default";
  128. pinctrl-0 = <&i2s_out_pins>;
  129. status = "disabled";
  130. resets = <&pistachio_reset PISTACHIO_RESET_I2S_OUT>;
  131. reset-names = "rst";
  132. #sound-dai-cells = <0>;
  133. };
  134. parallel_out: parallel-audio-out@18100c00 {
  135. compatible = "img,parallel-out";
  136. reg = <0x18100c00 0x100>;
  137. interrupts = <GIC_SHARED 19 IRQ_TYPE_LEVEL_HIGH>;
  138. dmas = <&mdc 16 0xffffffff 0>;
  139. dma-names = "tx";
  140. clocks = <&cr_periph SYS_CLK_PAUD_OUT>,
  141. <&clk_core CLK_AUDIO_DAC>;
  142. clock-names = "sys", "ref";
  143. assigned-clocks = <&clk_core CLK_AUDIO_DAC_DIV>;
  144. assigned-clock-rates = <12288000>;
  145. status = "disabled";
  146. resets = <&pistachio_reset PISTACHIO_RESET_PRL_OUT>;
  147. reset-names = "rst";
  148. #sound-dai-cells = <0>;
  149. };
  150. spdif_out: spdif-out@18100d00 {
  151. compatible = "img,spdif-out";
  152. reg = <0x18100d00 0x100>;
  153. interrupts = <GIC_SHARED 21 IRQ_TYPE_LEVEL_HIGH>;
  154. dmas = <&mdc 14 0xffffffff 0>;
  155. dma-names = "tx";
  156. clocks = <&cr_periph SYS_CLK_SPDIF_OUT>,
  157. <&clk_core CLK_SPDIF>;
  158. clock-names = "sys", "ref";
  159. assigned-clocks = <&clk_core CLK_SPDIF_DIV>;
  160. assigned-clock-rates = <12288000>;
  161. pinctrl-names = "default";
  162. pinctrl-0 = <&spdif_out_pin>;
  163. status = "disabled";
  164. resets = <&pistachio_reset PISTACHIO_RESET_SPDIF_OUT>;
  165. reset-names = "rst";
  166. #sound-dai-cells = <0>;
  167. };
  168. spdif_in: spdif-in@18100e00 {
  169. compatible = "img,spdif-in";
  170. reg = <0x18100e00 0x100>;
  171. interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
  172. dmas = <&mdc 15 0xffffffff 0>;
  173. dma-names = "rx";
  174. clocks = <&cr_periph SYS_CLK_SPDIF_IN>;
  175. clock-names = "sys";
  176. pinctrl-names = "default";
  177. pinctrl-0 = <&spdif_in_pin>;
  178. status = "disabled";
  179. #sound-dai-cells = <0>;
  180. };
  181. internal_dac: internal-dac {
  182. compatible = "img,pistachio-internal-dac";
  183. img,cr-top = <&cr_top>;
  184. img,voltage-select = <1>;
  185. #sound-dai-cells = <0>;
  186. };
  187. spfi0: spi@18100f00 {
  188. compatible = "img,spfi";
  189. reg = <0x18100f00 0x100>;
  190. interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
  191. clocks = <&clk_core CLK_SPI0>, <&cr_periph SYS_CLK_SPI0_MASTER>;
  192. clock-names = "sys", "spfi";
  193. dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>;
  194. dma-names = "rx", "tx";
  195. spfi-max-frequency = <50000000>;
  196. status = "disabled";
  197. #address-cells = <1>;
  198. #size-cells = <0>;
  199. };
  200. spfi1: spi@18101000 {
  201. compatible = "img,spfi";
  202. reg = <0x18101000 0x100>;
  203. interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>;
  204. clocks = <&clk_core CLK_SPI1>, <&cr_periph SYS_CLK_SPI1>;
  205. clock-names = "sys", "spfi";
  206. dmas = <&mdc 1 0xffffffff 0>, <&mdc 2 0xffffffff 0>;
  207. dma-names = "rx", "tx";
  208. img,supports-quad-mode;
  209. spfi-max-frequency = <50000000>;
  210. status = "disabled";
  211. #address-cells = <1>;
  212. #size-cells = <0>;
  213. };
  214. pwm: pwm@18101300 {
  215. compatible = "img,pistachio-pwm";
  216. reg = <0x18101300 0x100>;
  217. clocks = <&clk_periph PERIPH_CLK_PWM>,
  218. <&cr_periph SYS_CLK_PWM>;
  219. clock-names = "pwm", "sys";
  220. img,cr-periph = <&cr_periph>;
  221. #pwm-cells = <2>;
  222. status = "disabled";
  223. };
  224. uart0: uart@18101400 {
  225. compatible = "snps,dw-apb-uart";
  226. reg = <0x18101400 0x100>;
  227. interrupts = <GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH>;
  228. clocks = <&clk_core CLK_UART0>, <&cr_periph SYS_CLK_UART0>;
  229. clock-names = "baudclk", "apb_pclk";
  230. assigned-clocks = <&clk_core CLK_UART0_INTERNAL_DIV>,
  231. <&clk_core CLK_UART0_DIV>;
  232. reg-shift = <2>;
  233. reg-io-width = <4>;
  234. pinctrl-0 = <&uart0_pins>, <&uart0_rts_cts_pins>;
  235. pinctrl-names = "default";
  236. status = "disabled";
  237. };
  238. uart1: uart@18101500 {
  239. compatible = "snps,dw-apb-uart";
  240. reg = <0x18101500 0x100>;
  241. interrupts = <GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;
  242. clocks = <&clk_core CLK_UART1>, <&cr_periph SYS_CLK_UART1>;
  243. clock-names = "baudclk", "apb_pclk";
  244. assigned-clocks = <&clk_core CLK_UART1_INTERNAL_DIV>,
  245. <&clk_core CLK_UART1_DIV>;
  246. assigned-clock-rates = <114278400>, <1843200>;
  247. reg-shift = <2>;
  248. reg-io-width = <4>;
  249. pinctrl-0 = <&uart1_pins>;
  250. pinctrl-names = "default";
  251. status = "disabled";
  252. };
  253. adc: adc@18101600 {
  254. compatible = "cosmic,10001-adc";
  255. reg = <0x18101600 0x24>;
  256. adc-reserved-channels = <0x30>;
  257. clocks = <&clk_core CLK_AUX_ADC>;
  258. clock-names = "adc";
  259. assigned-clocks = <&clk_core CLK_AUX_ADC_INTERNAL_DIV>,
  260. <&clk_core CLK_AUX_ADC_DIV>;
  261. assigned-clock-rates = <100000000>, <1000000>;
  262. status = "disabled";
  263. #io-channel-cells = <1>;
  264. };
  265. pinctrl: pinctrl@18101c00 {
  266. compatible = "img,pistachio-system-pinctrl";
  267. reg = <0x18101c00 0x400>;
  268. gpio0: gpio0 {
  269. interrupts = <GIC_SHARED 71 IRQ_TYPE_LEVEL_HIGH>;
  270. gpio-controller;
  271. #gpio-cells = <2>;
  272. gpio-ranges = <&pinctrl 0 0 16>;
  273. interrupt-controller;
  274. #interrupt-cells = <2>;
  275. };
  276. gpio1: gpio1 {
  277. interrupts = <GIC_SHARED 72 IRQ_TYPE_LEVEL_HIGH>;
  278. gpio-controller;
  279. #gpio-cells = <2>;
  280. gpio-ranges = <&pinctrl 0 16 16>;
  281. interrupt-controller;
  282. #interrupt-cells = <2>;
  283. };
  284. gpio2: gpio2 {
  285. interrupts = <GIC_SHARED 73 IRQ_TYPE_LEVEL_HIGH>;
  286. gpio-controller;
  287. #gpio-cells = <2>;
  288. gpio-ranges = <&pinctrl 0 32 16>;
  289. interrupt-controller;
  290. #interrupt-cells = <2>;
  291. };
  292. gpio3: gpio3 {
  293. interrupts = <GIC_SHARED 74 IRQ_TYPE_LEVEL_HIGH>;
  294. gpio-controller;
  295. #gpio-cells = <2>;
  296. gpio-ranges = <&pinctrl 0 48 16>;
  297. interrupt-controller;
  298. #interrupt-cells = <2>;
  299. };
  300. gpio4: gpio4 {
  301. interrupts = <GIC_SHARED 75 IRQ_TYPE_LEVEL_HIGH>;
  302. gpio-controller;
  303. #gpio-cells = <2>;
  304. gpio-ranges = <&pinctrl 0 64 16>;
  305. interrupt-controller;
  306. #interrupt-cells = <2>;
  307. };
  308. gpio5: gpio5 {
  309. interrupts = <GIC_SHARED 76 IRQ_TYPE_LEVEL_HIGH>;
  310. gpio-controller;
  311. #gpio-cells = <2>;
  312. gpio-ranges = <&pinctrl 0 80 10>;
  313. interrupt-controller;
  314. #interrupt-cells = <2>;
  315. };
  316. i2c0_pins: i2c0-pins {
  317. pin_i2c0: i2c0 {
  318. pins = "mfio28", "mfio29";
  319. function = "i2c0";
  320. drive-strength = <4>;
  321. };
  322. };
  323. i2c1_pins: i2c1-pins {
  324. pin_i2c1: i2c1 {
  325. pins = "mfio30", "mfio31";
  326. function = "i2c1";
  327. drive-strength = <4>;
  328. };
  329. };
  330. i2c2_pins: i2c2-pins {
  331. pin_i2c2: i2c2 {
  332. pins = "mfio32", "mfio33";
  333. function = "i2c2";
  334. drive-strength = <4>;
  335. };
  336. };
  337. i2c3_pins: i2c3-pins {
  338. pin_i2c3: i2c3 {
  339. pins = "mfio34", "mfio35";
  340. function = "i2c3";
  341. drive-strength = <4>;
  342. };
  343. };
  344. spim0_pins: spim0-pins {
  345. pin_spim0: spim0 {
  346. pins = "mfio9", "mfio10";
  347. function = "spim0";
  348. drive-strength = <4>;
  349. };
  350. spim0_clk: spim0-clk {
  351. pins = "mfio8";
  352. function = "spim0";
  353. drive-strength = <4>;
  354. };
  355. };
  356. spim0_cs0_alt_pin: spim0-cs0-alt-pin {
  357. spim0-cs0 {
  358. pins = "mfio2";
  359. drive-strength = <2>;
  360. };
  361. };
  362. spim0_cs1_pin: spim0-cs1-pin {
  363. spim0-cs1 {
  364. pins = "mfio1";
  365. drive-strength = <2>;
  366. };
  367. };
  368. spim0_cs2_pin: spim0-cs2-pin {
  369. spim0-cs2 {
  370. pins = "mfio55";
  371. drive-strength = <2>;
  372. };
  373. };
  374. spim0_cs2_alt_pin: spim0-cs2-alt-pin {
  375. spim0-cs2 {
  376. pins = "mfio28";
  377. drive-strength = <2>;
  378. };
  379. };
  380. spim0_cs3_pin: spim0-cs3-pin {
  381. spim0-cs3 {
  382. pins = "mfio56";
  383. drive-strength = <2>;
  384. };
  385. };
  386. spim0_cs3_alt_pin: spim0-cs3-alt-pin {
  387. spim0-cs3 {
  388. pins = "mfio29";
  389. drive-strength = <2>;
  390. };
  391. };
  392. spim0_cs4_pin: spim0-cs4-pin {
  393. spim0-cs4 {
  394. pins = "mfio57";
  395. drive-strength = <2>;
  396. };
  397. };
  398. spim0_cs4_alt_pin: spim0-cs4-alt-pin {
  399. spim0-cs4 {
  400. pins = "mfio30";
  401. drive-strength = <2>;
  402. };
  403. };
  404. spim1_pins: spim1-pins {
  405. spim1 {
  406. pins = "mfio3", "mfio4", "mfio5";
  407. function = "spim1";
  408. drive-strength = <2>;
  409. };
  410. };
  411. spim1_quad_pins: spim1-quad-pins {
  412. spim1-quad {
  413. pins = "mfio6", "mfio7";
  414. function = "spim1";
  415. drive-strength = <2>;
  416. };
  417. };
  418. spim1_cs0_pin: spim1-cs0-pins {
  419. spim1-cs0 {
  420. pins = "mfio0";
  421. function = "spim1";
  422. drive-strength = <2>;
  423. };
  424. };
  425. spim1_cs1_pin: spim1-cs1-pin {
  426. spim1-cs1 {
  427. pins = "mfio1";
  428. function = "spim1";
  429. drive-strength = <2>;
  430. };
  431. };
  432. spim1_cs1_alt_pin: spim1-cs1-alt-pin {
  433. spim1-cs1 {
  434. pins = "mfio58";
  435. function = "spim1";
  436. drive-strength = <2>;
  437. };
  438. };
  439. spim1_cs2_pin: spim1-cs2-pin {
  440. spim1-cs2 {
  441. pins = "mfio2";
  442. function = "spim1";
  443. drive-strength = <2>;
  444. };
  445. };
  446. spim1_cs2_alt0_pin: spim1-cs2-alt0-pin {
  447. spim1-cs2 {
  448. pins = "mfio31";
  449. function = "spim1";
  450. drive-strength = <2>;
  451. };
  452. };
  453. spim1_cs2_alt1_pin: spim1-cs2-alt1-pin {
  454. spim1-cs2 {
  455. pins = "mfio55";
  456. function = "spim1";
  457. drive-strength = <2>;
  458. };
  459. };
  460. spim1_cs3_pin: spim1-cs3-pin {
  461. spim1-cs3 {
  462. pins = "mfio56";
  463. function = "spim1";
  464. drive-strength = <2>;
  465. };
  466. };
  467. spim1_cs4_pin: spim1-cs4-pin {
  468. spim1-cs4 {
  469. pins = "mfio57";
  470. function = "spim1";
  471. drive-strength = <2>;
  472. };
  473. };
  474. uart0_pins: uart0-pins {
  475. uart0 {
  476. pins = "mfio55", "mfio56";
  477. function = "uart0";
  478. drive-strength = <2>;
  479. };
  480. };
  481. uart0_rts_cts_pins: uart0-rts-cts-pins {
  482. uart0-rts-cts {
  483. pins = "mfio57", "mfio58";
  484. function = "uart0";
  485. drive-strength = <2>;
  486. };
  487. };
  488. uart1_pins: uart1-pins {
  489. uart1 {
  490. pins = "mfio59", "mfio60";
  491. function = "uart1";
  492. drive-strength = <2>;
  493. };
  494. };
  495. uart1_rts_cts_pins: uart1-rts-cts-pins {
  496. uart1-rts-cts {
  497. pins = "mfio1", "mfio2";
  498. function = "uart1";
  499. drive-strength = <2>;
  500. };
  501. };
  502. enet_pins: enet-pins {
  503. pin_enet: enet {
  504. pins = "mfio63", "mfio64", "mfio65", "mfio66",
  505. "mfio67", "mfio68", "mfio69", "mfio70";
  506. function = "eth";
  507. slew-rate = <1>;
  508. drive-strength = <4>;
  509. };
  510. pin_enet_phy_clk: enet-phy-clk {
  511. pins = "mfio71";
  512. function = "eth";
  513. slew-rate = <1>;
  514. drive-strength = <8>;
  515. };
  516. };
  517. sdhost_pins: sdhost-pins {
  518. pin_sdhost_clk: sdhost-clk {
  519. pins = "mfio15";
  520. function = "sdhost";
  521. slew-rate = <1>;
  522. drive-strength = <4>;
  523. };
  524. pin_sdhost_cmd: sdhost-cmd {
  525. pins = "mfio16";
  526. function = "sdhost";
  527. slew-rate = <1>;
  528. drive-strength = <4>;
  529. };
  530. pin_sdhost_data: sdhost-data {
  531. pins = "mfio17", "mfio18", "mfio19", "mfio20",
  532. "mfio21", "mfio22", "mfio23", "mfio24";
  533. function = "sdhost";
  534. slew-rate = <1>;
  535. drive-strength = <4>;
  536. };
  537. pin_sdhost_power_select: sdhost-power-select {
  538. pins = "mfio25";
  539. function = "sdhost";
  540. slew-rate = <1>;
  541. drive-strength = <2>;
  542. };
  543. pin_sdhost_card_detect: sdhost-card-detect {
  544. pins = "mfio26";
  545. function = "sdhost";
  546. drive-strength = <2>;
  547. };
  548. pin_sdhost_write_protect: sdhost-write-protect {
  549. pins = "mfio27";
  550. function = "sdhost";
  551. drive-strength = <2>;
  552. };
  553. };
  554. ir_pin: ir-pin {
  555. ir-data {
  556. pins = "mfio72";
  557. function = "ir";
  558. drive-strength = <2>;
  559. };
  560. };
  561. pwmpdm0_pin: pwmpdm0-pin {
  562. pwmpdm0 {
  563. pins = "mfio73";
  564. function = "pwmpdm";
  565. drive-strength = <2>;
  566. };
  567. };
  568. pwmpdm1_pin: pwmpdm1-pin {
  569. pwmpdm1 {
  570. pins = "mfio74";
  571. function = "pwmpdm";
  572. drive-strength = <2>;
  573. };
  574. };
  575. pwmpdm2_pin: pwmpdm2-pin {
  576. pwmpdm2 {
  577. pins = "mfio75";
  578. function = "pwmpdm";
  579. drive-strength = <2>;
  580. };
  581. };
  582. pwmpdm3_pin: pwmpdm3-pin {
  583. pwmpdm3 {
  584. pins = "mfio76";
  585. function = "pwmpdm";
  586. drive-strength = <2>;
  587. };
  588. };
  589. dac_clk_pin: dac-clk-pin {
  590. pin_dac_clk: dac-clk {
  591. pins = "mfio45";
  592. function = "i2s_dac_clk";
  593. drive-strength = <4>;
  594. };
  595. };
  596. i2s_mclk_pin: i2s-mclk-pin {
  597. pin_i2s_mclk: i2s-mclk {
  598. pins = "mfio36";
  599. function = "i2s_out";
  600. drive-strength = <4>;
  601. };
  602. };
  603. spdif_out_pin: spdif-out-pin {
  604. spdif-out {
  605. pins = "mfio61";
  606. function = "spdif_out";
  607. slew-rate = <1>;
  608. drive-strength = <2>;
  609. };
  610. };
  611. spdif_in_pin: spdif-in-pin {
  612. spdif-in {
  613. pins = "mfio62";
  614. function = "spdif_in";
  615. drive-strength = <2>;
  616. };
  617. };
  618. i2s_out_pins: i2s-out-pins {
  619. pins_i2s_out_clk: i2s-out-clk {
  620. pins = "mfio37", "mfio38";
  621. function = "i2s_out";
  622. drive-strength = <4>;
  623. };
  624. pins_i2s_out: i2s-out {
  625. pins = "mfio39", "mfio40",
  626. "mfio41", "mfio42",
  627. "mfio43", "mfio44";
  628. function = "i2s_out";
  629. drive-strength = <2>;
  630. };
  631. };
  632. i2s_in_pins: i2s-in-pins {
  633. i2s-in {
  634. pins = "mfio47", "mfio48", "mfio49",
  635. "mfio50", "mfio51", "mfio52",
  636. "mfio53", "mfio54";
  637. function = "i2s_in";
  638. drive-strength = <2>;
  639. };
  640. };
  641. };
  642. timer: timer@18102000 {
  643. compatible = "img,pistachio-gptimer";
  644. reg = <0x18102000 0x100>;
  645. interrupts = <GIC_SHARED 60 IRQ_TYPE_LEVEL_HIGH>;
  646. clocks = <&clk_periph PERIPH_CLK_COUNTER_FAST>,
  647. <&cr_periph SYS_CLK_TIMER>;
  648. clock-names = "fast", "sys";
  649. img,cr-periph = <&cr_periph>;
  650. };
  651. wdt: watchdog@18102100 {
  652. compatible = "img,pdc-wdt";
  653. reg = <0x18102100 0x100>;
  654. interrupts = <GIC_SHARED 52 IRQ_TYPE_LEVEL_HIGH>;
  655. clocks = <&clk_periph PERIPH_CLK_WD>, <&cr_periph SYS_CLK_WD>;
  656. clock-names = "wdt", "sys";
  657. assigned-clocks = <&clk_periph PERIPH_CLK_WD_PRE_DIV>,
  658. <&clk_periph PERIPH_CLK_WD_DIV>;
  659. assigned-clock-rates = <4000000>, <32768>;
  660. };
  661. ir: ir@18102200 {
  662. compatible = "img,ir-rev1";
  663. reg = <0x18102200 0x100>;
  664. interrupts = <GIC_SHARED 51 IRQ_TYPE_LEVEL_HIGH>;
  665. clocks = <&clk_periph PERIPH_CLK_IR>, <&cr_periph SYS_CLK_IR>;
  666. clock-names = "core", "sys";
  667. assigned-clocks = <&clk_periph PERIPH_CLK_IR_PRE_DIV>,
  668. <&clk_periph PERIPH_CLK_IR_DIV>;
  669. assigned-clock-rates = <4000000>, <32768>;
  670. pinctrl-0 = <&ir_pin>;
  671. pinctrl-names = "default";
  672. status = "disabled";
  673. };
  674. usb: usb@18120000 {
  675. compatible = "snps,dwc2";
  676. reg = <0x18120000 0x1c000>;
  677. interrupts = <GIC_SHARED 49 IRQ_TYPE_LEVEL_HIGH>;
  678. phys = <&usb_phy>;
  679. phy-names = "usb2-phy";
  680. g-tx-fifo-size = <256 256 256 256>;
  681. status = "disabled";
  682. };
  683. enet: ethernet@18140000 {
  684. compatible = "snps,dwmac";
  685. reg = <0x18140000 0x2000>;
  686. interrupts = <GIC_SHARED 50 IRQ_TYPE_LEVEL_HIGH>;
  687. interrupt-names = "macirq";
  688. clocks = <&clk_core CLK_ENET>, <&cr_periph SYS_CLK_ENET>;
  689. clock-names = "stmmaceth", "pclk";
  690. assigned-clocks = <&clk_core CLK_ENET_MUX>,
  691. <&clk_core CLK_ENET_DIV>;
  692. assigned-clock-parents = <&clk_core CLK_SYS_INTERNAL_DIV>;
  693. assigned-clock-rates = <0>, <50000000>;
  694. pinctrl-0 = <&enet_pins>;
  695. pinctrl-names = "default";
  696. phy-mode = "rmii";
  697. status = "disabled";
  698. };
  699. sdhost: mmc@18142000 {
  700. compatible = "img,pistachio-dw-mshc";
  701. reg = <0x18142000 0x400>;
  702. interrupts = <GIC_SHARED 39 IRQ_TYPE_LEVEL_HIGH>;
  703. clocks = <&clk_core CLK_SD_HOST>, <&cr_periph SYS_CLK_SD_HOST>;
  704. clock-names = "ciu", "biu";
  705. pinctrl-0 = <&sdhost_pins>;
  706. pinctrl-names = "default";
  707. fifo-depth = <0x20>;
  708. clock-frequency = <50000000>;
  709. bus-width = <8>;
  710. cap-mmc-highspeed;
  711. cap-sd-highspeed;
  712. status = "disabled";
  713. };
  714. sram: sram@1b000000 {
  715. compatible = "mmio-sram";
  716. reg = <0x1b000000 0x10000>;
  717. };
  718. mdc: dma-controller@18143000 {
  719. compatible = "img,pistachio-mdc-dma";
  720. reg = <0x18143000 0x1000>;
  721. interrupts = <GIC_SHARED 27 IRQ_TYPE_LEVEL_HIGH>,
  722. <GIC_SHARED 28 IRQ_TYPE_LEVEL_HIGH>,
  723. <GIC_SHARED 29 IRQ_TYPE_LEVEL_HIGH>,
  724. <GIC_SHARED 30 IRQ_TYPE_LEVEL_HIGH>,
  725. <GIC_SHARED 31 IRQ_TYPE_LEVEL_HIGH>,
  726. <GIC_SHARED 32 IRQ_TYPE_LEVEL_HIGH>,
  727. <GIC_SHARED 33 IRQ_TYPE_LEVEL_HIGH>,
  728. <GIC_SHARED 34 IRQ_TYPE_LEVEL_HIGH>,
  729. <GIC_SHARED 35 IRQ_TYPE_LEVEL_HIGH>,
  730. <GIC_SHARED 36 IRQ_TYPE_LEVEL_HIGH>,
  731. <GIC_SHARED 37 IRQ_TYPE_LEVEL_HIGH>,
  732. <GIC_SHARED 38 IRQ_TYPE_LEVEL_HIGH>;
  733. clocks = <&cr_periph SYS_CLK_MDC>;
  734. clock-names = "sys";
  735. img,max-burst-multiplier = <16>;
  736. img,cr-periph = <&cr_periph>;
  737. #dma-cells = <3>;
  738. };
  739. clk_core: clk@18144000 {
  740. compatible = "img,pistachio-clk", "syscon";
  741. clocks = <&xtal>, <&cr_top EXT_CLK_AUDIO_IN>,
  742. <&cr_top EXT_CLK_ENET_IN>;
  743. clock-names = "xtal", "audio_refclk_ext_gate",
  744. "ext_enet_in_gate";
  745. reg = <0x18144000 0x800>;
  746. #clock-cells = <1>;
  747. };
  748. clk_periph: clk@18144800 {
  749. compatible = "img,pistachio-clk-periph";
  750. reg = <0x18144800 0x1000>;
  751. clocks = <&clk_core CLK_PERIPH_SYS>;
  752. clock-names = "periph_sys_core";
  753. #clock-cells = <1>;
  754. };
  755. cr_periph: clk@18148000 {
  756. compatible = "img,pistachio-cr-periph", "syscon", "simple-bus";
  757. reg = <0x18148000 0x1000>;
  758. clocks = <&clk_periph PERIPH_CLK_SYS>;
  759. clock-names = "sys";
  760. #clock-cells = <1>;
  761. pistachio_reset: reset-controller {
  762. compatible = "img,pistachio-reset";
  763. #reset-cells = <1>;
  764. };
  765. };
  766. cr_top: clk@18149000 {
  767. compatible = "img,pistachio-cr-top", "syscon";
  768. reg = <0x18149000 0x200>;
  769. #clock-cells = <1>;
  770. };
  771. hash: hash@18149600 {
  772. compatible = "img,hash-accelerator";
  773. reg = <0x18149600 0x100>, <0x18101100 0x4>;
  774. interrupts = <GIC_SHARED 59 IRQ_TYPE_LEVEL_HIGH>;
  775. dmas = <&mdc 8 0xffffffff 0>;
  776. dma-names = "tx";
  777. clocks = <&cr_periph SYS_CLK_HASH>,
  778. <&clk_periph PERIPH_CLK_ROM>;
  779. clock-names = "sys", "hash";
  780. };
  781. gic: interrupt-controller@1bdc0000 {
  782. compatible = "mti,gic";
  783. reg = <0x1bdc0000 0x20000>;
  784. interrupt-controller;
  785. #interrupt-cells = <3>;
  786. timer {
  787. compatible = "mti,gic-timer";
  788. interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
  789. clocks = <&clk_core CLK_MIPS>;
  790. };
  791. };
  792. cpc: cpc@1bde0000 {
  793. compatible = "mti,mips-cpc";
  794. reg = <0x1bde0000 0x10000>;
  795. };
  796. cdmm: cdmm@1bdf0000 {
  797. compatible = "mti,mips-cdmm";
  798. reg = <0x1bdf0000 0x10000>;
  799. };
  800. usb_phy: usb-phy {
  801. compatible = "img,pistachio-usb-phy";
  802. clocks = <&clk_core CLK_USB_PHY>;
  803. clock-names = "usb_phy";
  804. assigned-clocks = <&clk_core CLK_USB_PHY_DIV>;
  805. assigned-clock-rates = <50000000>;
  806. img,refclk = <0x2>;
  807. img,cr-top = <&cr_top>;
  808. #phy-cells = <0>;
  809. };
  810. xtal: xtal {
  811. compatible = "fixed-clock";
  812. #clock-cells = <0>;
  813. clock-frequency = <52000000>;
  814. clock-output-names = "xtal";
  815. };
  816. };