sun5i.dtsi 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810
  1. /*
  2. * Copyright 2012-2015 Maxime Ripard
  3. *
  4. * Maxime Ripard <[email protected]>
  5. *
  6. * This file is dual-licensed: you can use it either under the terms
  7. * of the GPL or the X11 license, at your option. Note that this dual
  8. * licensing only applies to this file, and not this project as a
  9. * whole.
  10. *
  11. * a) This library is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of the
  14. * License, or (at your option) any later version.
  15. *
  16. * This library is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * Or, alternatively,
  22. *
  23. * b) Permission is hereby granted, free of charge, to any person
  24. * obtaining a copy of this software and associated documentation
  25. * files (the "Software"), to deal in the Software without
  26. * restriction, including without limitation the rights to use,
  27. * copy, modify, merge, publish, distribute, sublicense, and/or
  28. * sell copies of the Software, and to permit persons to whom the
  29. * Software is furnished to do so, subject to the following
  30. * conditions:
  31. *
  32. * The above copyright notice and this permission notice shall be
  33. * included in all copies or substantial portions of the Software.
  34. *
  35. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  36. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  37. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  38. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  39. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  40. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  41. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  42. * OTHER DEALINGS IN THE SOFTWARE.
  43. */
  44. #include <dt-bindings/clock/sun5i-ccu.h>
  45. #include <dt-bindings/dma/sun4i-a10.h>
  46. #include <dt-bindings/reset/sun5i-ccu.h>
  47. / {
  48. interrupt-parent = <&intc>;
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. cpus {
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. cpu0: cpu@0 {
  55. device_type = "cpu";
  56. compatible = "arm,cortex-a8";
  57. reg = <0x0>;
  58. clocks = <&ccu CLK_CPU>;
  59. };
  60. };
  61. chosen {
  62. #address-cells = <1>;
  63. #size-cells = <1>;
  64. ranges;
  65. framebuffer-lcd0 {
  66. compatible = "allwinner,simple-framebuffer",
  67. "simple-framebuffer";
  68. allwinner,pipeline = "de_be0-lcd0";
  69. clocks = <&ccu CLK_AHB_LCD>, <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
  70. <&ccu CLK_TCON_CH0>, <&ccu CLK_DRAM_DE_BE>;
  71. status = "disabled";
  72. };
  73. framebuffer-lcd0-tve0 {
  74. compatible = "allwinner,simple-framebuffer",
  75. "simple-framebuffer";
  76. allwinner,pipeline = "de_be0-lcd0-tve0";
  77. clocks = <&ccu CLK_AHB_TVE>, <&ccu CLK_AHB_LCD>,
  78. <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
  79. <&ccu CLK_TCON_CH1>, <&ccu CLK_DRAM_DE_BE>;
  80. status = "disabled";
  81. };
  82. };
  83. clocks {
  84. #address-cells = <1>;
  85. #size-cells = <1>;
  86. ranges;
  87. osc24M: clk-24M {
  88. #clock-cells = <0>;
  89. compatible = "fixed-clock";
  90. clock-frequency = <24000000>;
  91. clock-output-names = "osc24M";
  92. };
  93. osc32k: clk-32k {
  94. #clock-cells = <0>;
  95. compatible = "fixed-clock";
  96. clock-frequency = <32768>;
  97. clock-output-names = "osc32k";
  98. };
  99. };
  100. reserved-memory {
  101. #address-cells = <1>;
  102. #size-cells = <1>;
  103. ranges;
  104. /* Address must be kept in the lower 256 MiBs of DRAM for VE. */
  105. default-pool {
  106. compatible = "shared-dma-pool";
  107. size = <0x6000000>;
  108. alloc-ranges = <0x40000000 0x10000000>;
  109. reusable;
  110. linux,cma-default;
  111. };
  112. };
  113. soc {
  114. compatible = "simple-bus";
  115. #address-cells = <1>;
  116. #size-cells = <1>;
  117. dma-ranges;
  118. ranges;
  119. system-control@1c00000 {
  120. compatible = "allwinner,sun5i-a13-system-control";
  121. reg = <0x01c00000 0x30>;
  122. #address-cells = <1>;
  123. #size-cells = <1>;
  124. ranges;
  125. sram_a: sram@0 {
  126. compatible = "mmio-sram";
  127. reg = <0x00000000 0xc000>;
  128. #address-cells = <1>;
  129. #size-cells = <1>;
  130. ranges = <0 0x00000000 0xc000>;
  131. emac_sram: sram-section@8000 {
  132. compatible = "allwinner,sun5i-a13-sram-a3-a4",
  133. "allwinner,sun4i-a10-sram-a3-a4";
  134. reg = <0x8000 0x4000>;
  135. status = "disabled";
  136. };
  137. };
  138. sram_d: sram@10000 {
  139. compatible = "mmio-sram";
  140. reg = <0x00010000 0x1000>;
  141. #address-cells = <1>;
  142. #size-cells = <1>;
  143. ranges = <0 0x00010000 0x1000>;
  144. otg_sram: sram-section@0 {
  145. compatible = "allwinner,sun5i-a13-sram-d",
  146. "allwinner,sun4i-a10-sram-d";
  147. reg = <0x0000 0x1000>;
  148. status = "disabled";
  149. };
  150. };
  151. sram_c: sram@1d00000 {
  152. compatible = "mmio-sram";
  153. reg = <0x01d00000 0xd0000>;
  154. #address-cells = <1>;
  155. #size-cells = <1>;
  156. ranges = <0 0x01d00000 0xd0000>;
  157. ve_sram: sram-section@0 {
  158. compatible = "allwinner,sun5i-a13-sram-c1",
  159. "allwinner,sun4i-a10-sram-c1";
  160. reg = <0x000000 0x80000>;
  161. };
  162. };
  163. };
  164. mbus: dram-controller@1c01000 {
  165. compatible = "allwinner,sun5i-a13-mbus";
  166. reg = <0x01c01000 0x1000>;
  167. clocks = <&ccu CLK_MBUS>;
  168. #address-cells = <1>;
  169. #size-cells = <1>;
  170. dma-ranges = <0x00000000 0x40000000 0x20000000>;
  171. #interconnect-cells = <1>;
  172. };
  173. dma: dma-controller@1c02000 {
  174. compatible = "allwinner,sun4i-a10-dma";
  175. reg = <0x01c02000 0x1000>;
  176. interrupts = <27>;
  177. clocks = <&ccu CLK_AHB_DMA>;
  178. #dma-cells = <2>;
  179. };
  180. nfc: nand-controller@1c03000 {
  181. compatible = "allwinner,sun4i-a10-nand";
  182. reg = <0x01c03000 0x1000>;
  183. interrupts = <37>;
  184. clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
  185. clock-names = "ahb", "mod";
  186. dmas = <&dma SUN4I_DMA_DEDICATED 3>;
  187. dma-names = "rxtx";
  188. status = "disabled";
  189. #address-cells = <1>;
  190. #size-cells = <0>;
  191. };
  192. spi0: spi@1c05000 {
  193. compatible = "allwinner,sun4i-a10-spi";
  194. reg = <0x01c05000 0x1000>;
  195. interrupts = <10>;
  196. clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>;
  197. clock-names = "ahb", "mod";
  198. dmas = <&dma SUN4I_DMA_DEDICATED 27>,
  199. <&dma SUN4I_DMA_DEDICATED 26>;
  200. dma-names = "rx", "tx";
  201. status = "disabled";
  202. #address-cells = <1>;
  203. #size-cells = <0>;
  204. };
  205. spi1: spi@1c06000 {
  206. compatible = "allwinner,sun4i-a10-spi";
  207. reg = <0x01c06000 0x1000>;
  208. interrupts = <11>;
  209. clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>;
  210. clock-names = "ahb", "mod";
  211. dmas = <&dma SUN4I_DMA_DEDICATED 9>,
  212. <&dma SUN4I_DMA_DEDICATED 8>;
  213. dma-names = "rx", "tx";
  214. status = "disabled";
  215. #address-cells = <1>;
  216. #size-cells = <0>;
  217. };
  218. tve0: tv-encoder@1c0a000 {
  219. compatible = "allwinner,sun4i-a10-tv-encoder";
  220. reg = <0x01c0a000 0x1000>;
  221. clocks = <&ccu CLK_AHB_TVE>;
  222. resets = <&ccu RST_TVE>;
  223. status = "disabled";
  224. port {
  225. tve0_in_tcon0: endpoint {
  226. remote-endpoint = <&tcon0_out_tve0>;
  227. };
  228. };
  229. };
  230. emac: ethernet@1c0b000 {
  231. compatible = "allwinner,sun4i-a10-emac";
  232. reg = <0x01c0b000 0x1000>;
  233. interrupts = <55>;
  234. clocks = <&ccu CLK_AHB_EMAC>;
  235. allwinner,sram = <&emac_sram 1>;
  236. status = "disabled";
  237. };
  238. mdio: mdio@1c0b080 {
  239. compatible = "allwinner,sun4i-a10-mdio";
  240. reg = <0x01c0b080 0x14>;
  241. status = "disabled";
  242. #address-cells = <1>;
  243. #size-cells = <0>;
  244. };
  245. tcon0: lcd-controller@1c0c000 {
  246. compatible = "allwinner,sun5i-a13-tcon";
  247. reg = <0x01c0c000 0x1000>;
  248. interrupts = <44>;
  249. dmas = <&dma SUN4I_DMA_DEDICATED 14>;
  250. resets = <&ccu RST_LCD>;
  251. reset-names = "lcd";
  252. clocks = <&ccu CLK_AHB_LCD>,
  253. <&ccu CLK_TCON_CH0>,
  254. <&ccu CLK_TCON_CH1>;
  255. clock-names = "ahb",
  256. "tcon-ch0",
  257. "tcon-ch1";
  258. clock-output-names = "tcon-pixel-clock";
  259. #clock-cells = <0>;
  260. status = "disabled";
  261. ports {
  262. #address-cells = <1>;
  263. #size-cells = <0>;
  264. tcon0_in: port@0 {
  265. reg = <0>;
  266. tcon0_in_be0: endpoint {
  267. remote-endpoint = <&be0_out_tcon0>;
  268. };
  269. };
  270. tcon0_out: port@1 {
  271. #address-cells = <1>;
  272. #size-cells = <0>;
  273. reg = <1>;
  274. tcon0_out_tve0: endpoint@1 {
  275. reg = <1>;
  276. remote-endpoint = <&tve0_in_tcon0>;
  277. allwinner,tcon-channel = <1>;
  278. };
  279. };
  280. };
  281. };
  282. video-codec@1c0e000 {
  283. compatible = "allwinner,sun5i-a13-video-engine";
  284. reg = <0x01c0e000 0x1000>;
  285. clocks = <&ccu CLK_AHB_VE>, <&ccu CLK_VE>,
  286. <&ccu CLK_DRAM_VE>;
  287. clock-names = "ahb", "mod", "ram";
  288. resets = <&ccu RST_VE>;
  289. interrupts = <53>;
  290. allwinner,sram = <&ve_sram 1>;
  291. };
  292. mmc0: mmc@1c0f000 {
  293. compatible = "allwinner,sun5i-a13-mmc";
  294. reg = <0x01c0f000 0x1000>;
  295. clocks = <&ccu CLK_AHB_MMC0>, <&ccu CLK_MMC0>;
  296. clock-names = "ahb", "mmc";
  297. interrupts = <32>;
  298. pinctrl-names = "default";
  299. pinctrl-0 = <&mmc0_pins>;
  300. status = "disabled";
  301. #address-cells = <1>;
  302. #size-cells = <0>;
  303. };
  304. mmc1: mmc@1c10000 {
  305. compatible = "allwinner,sun5i-a13-mmc";
  306. reg = <0x01c10000 0x1000>;
  307. clocks = <&ccu CLK_AHB_MMC1>, <&ccu CLK_MMC1>;
  308. clock-names = "ahb", "mmc";
  309. interrupts = <33>;
  310. status = "disabled";
  311. #address-cells = <1>;
  312. #size-cells = <0>;
  313. };
  314. mmc2: mmc@1c11000 {
  315. compatible = "allwinner,sun5i-a13-mmc";
  316. reg = <0x01c11000 0x1000>;
  317. clocks = <&ccu CLK_AHB_MMC2>, <&ccu CLK_MMC2>;
  318. clock-names = "ahb", "mmc";
  319. interrupts = <34>;
  320. status = "disabled";
  321. #address-cells = <1>;
  322. #size-cells = <0>;
  323. };
  324. usb_otg: usb@1c13000 {
  325. compatible = "allwinner,sun4i-a10-musb";
  326. reg = <0x01c13000 0x0400>;
  327. clocks = <&ccu CLK_AHB_OTG>;
  328. interrupts = <38>;
  329. interrupt-names = "mc";
  330. phys = <&usbphy 0>;
  331. phy-names = "usb";
  332. extcon = <&usbphy 0>;
  333. allwinner,sram = <&otg_sram 1>;
  334. dr_mode = "otg";
  335. status = "disabled";
  336. };
  337. usbphy: phy@1c13400 {
  338. #phy-cells = <1>;
  339. compatible = "allwinner,sun5i-a13-usb-phy";
  340. reg = <0x01c13400 0x10>, <0x01c14800 0x4>;
  341. reg-names = "phy_ctrl", "pmu1";
  342. clocks = <&ccu CLK_USB_PHY0>;
  343. clock-names = "usb_phy";
  344. resets = <&ccu RST_USB_PHY0>, <&ccu RST_USB_PHY1>;
  345. reset-names = "usb0_reset", "usb1_reset";
  346. status = "disabled";
  347. };
  348. ehci0: usb@1c14000 {
  349. compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
  350. reg = <0x01c14000 0x100>;
  351. interrupts = <39>;
  352. clocks = <&ccu CLK_AHB_EHCI>;
  353. phys = <&usbphy 1>;
  354. phy-names = "usb";
  355. status = "disabled";
  356. };
  357. ohci0: usb@1c14400 {
  358. compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
  359. reg = <0x01c14400 0x100>;
  360. interrupts = <40>;
  361. clocks = <&ccu CLK_USB_OHCI>, <&ccu CLK_AHB_OHCI>;
  362. phys = <&usbphy 1>;
  363. phy-names = "usb";
  364. status = "disabled";
  365. };
  366. crypto: crypto-engine@1c15000 {
  367. compatible = "allwinner,sun5i-a13-crypto",
  368. "allwinner,sun4i-a10-crypto";
  369. reg = <0x01c15000 0x1000>;
  370. interrupts = <54>;
  371. clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
  372. clock-names = "ahb", "mod";
  373. };
  374. spi2: spi@1c17000 {
  375. compatible = "allwinner,sun4i-a10-spi";
  376. reg = <0x01c17000 0x1000>;
  377. interrupts = <12>;
  378. clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
  379. clock-names = "ahb", "mod";
  380. dmas = <&dma SUN4I_DMA_DEDICATED 29>,
  381. <&dma SUN4I_DMA_DEDICATED 28>;
  382. dma-names = "rx", "tx";
  383. status = "disabled";
  384. #address-cells = <1>;
  385. #size-cells = <0>;
  386. };
  387. ccu: clock@1c20000 {
  388. reg = <0x01c20000 0x400>;
  389. clocks = <&osc24M>, <&osc32k>;
  390. clock-names = "hosc", "losc";
  391. #clock-cells = <1>;
  392. #reset-cells = <1>;
  393. };
  394. intc: interrupt-controller@1c20400 {
  395. compatible = "allwinner,sun4i-a10-ic";
  396. reg = <0x01c20400 0x400>;
  397. interrupt-controller;
  398. #interrupt-cells = <1>;
  399. };
  400. pio: pinctrl@1c20800 {
  401. reg = <0x01c20800 0x400>;
  402. interrupts = <28>;
  403. clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
  404. clock-names = "apb", "hosc", "losc";
  405. gpio-controller;
  406. interrupt-controller;
  407. #interrupt-cells = <3>;
  408. #gpio-cells = <3>;
  409. emac_pd_pins: emac-pd-pins {
  410. pins = "PD6", "PD7", "PD10",
  411. "PD11", "PD12", "PD13", "PD14",
  412. "PD15", "PD18", "PD19", "PD20",
  413. "PD21", "PD22", "PD23", "PD24",
  414. "PD25", "PD26", "PD27";
  415. function = "emac";
  416. };
  417. i2c0_pins: i2c0-pins {
  418. pins = "PB0", "PB1";
  419. function = "i2c0";
  420. };
  421. i2c1_pins: i2c1-pins {
  422. pins = "PB15", "PB16";
  423. function = "i2c1";
  424. };
  425. i2c2_pins: i2c2-pins {
  426. pins = "PB17", "PB18";
  427. function = "i2c2";
  428. };
  429. ir0_rx_pin: ir0-rx-pin {
  430. pins = "PB4";
  431. function = "ir0";
  432. };
  433. lcd_rgb565_pins: lcd-rgb565-pins {
  434. pins = "PD3", "PD4", "PD5", "PD6", "PD7",
  435. "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
  436. "PD19", "PD20", "PD21", "PD22", "PD23",
  437. "PD24", "PD25", "PD26", "PD27";
  438. function = "lcd0";
  439. };
  440. lcd_rgb666_pins: lcd-rgb666-pins {
  441. pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
  442. "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
  443. "PD18", "PD19", "PD20", "PD21", "PD22", "PD23",
  444. "PD24", "PD25", "PD26", "PD27";
  445. function = "lcd0";
  446. };
  447. mmc0_pins: mmc0-pins {
  448. pins = "PF0", "PF1", "PF2", "PF3",
  449. "PF4", "PF5";
  450. function = "mmc0";
  451. drive-strength = <30>;
  452. bias-pull-up;
  453. };
  454. mmc2_4bit_pc_pins: mmc2-4bit-pc-pins {
  455. pins = "PC6", "PC7", "PC8", "PC9",
  456. "PC10", "PC11";
  457. function = "mmc2";
  458. drive-strength = <30>;
  459. bias-pull-up;
  460. };
  461. mmc2_8bit_pins: mmc2-8bit-pins {
  462. pins = "PC6", "PC7", "PC8", "PC9",
  463. "PC10", "PC11", "PC12", "PC13",
  464. "PC14", "PC15";
  465. function = "mmc2";
  466. drive-strength = <30>;
  467. bias-pull-up;
  468. };
  469. nand_pins: nand-pins {
  470. pins = "PC0", "PC1", "PC2",
  471. "PC5", "PC8", "PC9", "PC10",
  472. "PC11", "PC12", "PC13", "PC14",
  473. "PC15";
  474. function = "nand0";
  475. };
  476. nand_cs0_pin: nand-cs0-pin {
  477. pins = "PC4";
  478. function = "nand0";
  479. };
  480. nand_rb0_pin: nand-rb0-pin {
  481. pins = "PC6";
  482. function = "nand0";
  483. };
  484. pwm0_pin: pwm0-pin {
  485. pins = "PB2";
  486. function = "pwm";
  487. };
  488. spi2_pe_pins: spi2-pe-pins {
  489. pins = "PE1", "PE2", "PE3";
  490. function = "spi2";
  491. };
  492. spi2_cs0_pe_pin: spi2-cs0-pe-pin {
  493. pins = "PE0";
  494. function = "spi2";
  495. };
  496. uart1_pe_pins: uart1-pe-pins {
  497. pins = "PE10", "PE11";
  498. function = "uart1";
  499. };
  500. uart1_pg_pins: uart1-pg-pins {
  501. pins = "PG3", "PG4";
  502. function = "uart1";
  503. };
  504. uart2_pd_pins: uart2-pd-pins {
  505. pins = "PD2", "PD3";
  506. function = "uart2";
  507. };
  508. uart2_cts_rts_pd_pins: uart2-cts-rts-pd-pins {
  509. pins = "PD4", "PD5";
  510. function = "uart2";
  511. };
  512. uart3_pg_pins: uart3-pg-pins {
  513. pins = "PG9", "PG10";
  514. function = "uart3";
  515. };
  516. uart3_cts_rts_pg_pins: uart3-cts-rts-pg-pins {
  517. pins = "PG11", "PG12";
  518. function = "uart3";
  519. };
  520. };
  521. timer@1c20c00 {
  522. compatible = "allwinner,sun4i-a10-timer";
  523. reg = <0x01c20c00 0x90>;
  524. interrupts = <22>,
  525. <23>,
  526. <24>,
  527. <25>,
  528. <67>,
  529. <68>;
  530. clocks = <&ccu CLK_HOSC>;
  531. };
  532. wdt: watchdog@1c20c90 {
  533. compatible = "allwinner,sun4i-a10-wdt";
  534. reg = <0x01c20c90 0x10>;
  535. interrupts = <24>;
  536. clocks = <&osc24M>;
  537. };
  538. ir0: ir@1c21800 {
  539. compatible = "allwinner,sun4i-a10-ir";
  540. clocks = <&ccu CLK_APB0_IR>, <&ccu CLK_IR>;
  541. clock-names = "apb", "ir";
  542. interrupts = <5>;
  543. reg = <0x01c21800 0x40>;
  544. status = "disabled";
  545. };
  546. lradc: lradc@1c22800 {
  547. compatible = "allwinner,sun4i-a10-lradc-keys";
  548. reg = <0x01c22800 0x100>;
  549. interrupts = <31>;
  550. status = "disabled";
  551. };
  552. codec: codec@1c22c00 {
  553. #sound-dai-cells = <0>;
  554. compatible = "allwinner,sun4i-a10-codec";
  555. reg = <0x01c22c00 0x40>;
  556. interrupts = <30>;
  557. clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
  558. clock-names = "apb", "codec";
  559. dmas = <&dma SUN4I_DMA_NORMAL 19>,
  560. <&dma SUN4I_DMA_NORMAL 19>;
  561. dma-names = "rx", "tx";
  562. status = "disabled";
  563. };
  564. sid: eeprom@1c23800 {
  565. compatible = "allwinner,sun4i-a10-sid";
  566. reg = <0x01c23800 0x10>;
  567. };
  568. rtp: rtp@1c25000 {
  569. compatible = "allwinner,sun5i-a13-ts";
  570. reg = <0x01c25000 0x100>;
  571. interrupts = <29>;
  572. #thermal-sensor-cells = <0>;
  573. };
  574. uart0: serial@1c28000 {
  575. compatible = "snps,dw-apb-uart";
  576. reg = <0x01c28000 0x400>;
  577. interrupts = <1>;
  578. reg-shift = <2>;
  579. reg-io-width = <4>;
  580. clocks = <&ccu CLK_APB1_UART0>;
  581. status = "disabled";
  582. };
  583. uart1: serial@1c28400 {
  584. compatible = "snps,dw-apb-uart";
  585. reg = <0x01c28400 0x400>;
  586. interrupts = <2>;
  587. reg-shift = <2>;
  588. reg-io-width = <4>;
  589. clocks = <&ccu CLK_APB1_UART1>;
  590. status = "disabled";
  591. };
  592. uart2: serial@1c28800 {
  593. compatible = "snps,dw-apb-uart";
  594. reg = <0x01c28800 0x400>;
  595. interrupts = <3>;
  596. reg-shift = <2>;
  597. reg-io-width = <4>;
  598. clocks = <&ccu CLK_APB1_UART2>;
  599. status = "disabled";
  600. };
  601. uart3: serial@1c28c00 {
  602. compatible = "snps,dw-apb-uart";
  603. reg = <0x01c28c00 0x400>;
  604. interrupts = <4>;
  605. reg-shift = <2>;
  606. reg-io-width = <4>;
  607. clocks = <&ccu CLK_APB1_UART3>;
  608. status = "disabled";
  609. };
  610. i2c0: i2c@1c2ac00 {
  611. compatible = "allwinner,sun4i-a10-i2c";
  612. reg = <0x01c2ac00 0x400>;
  613. interrupts = <7>;
  614. clocks = <&ccu CLK_APB1_I2C0>;
  615. pinctrl-names = "default";
  616. pinctrl-0 = <&i2c0_pins>;
  617. status = "disabled";
  618. #address-cells = <1>;
  619. #size-cells = <0>;
  620. };
  621. i2c1: i2c@1c2b000 {
  622. compatible = "allwinner,sun4i-a10-i2c";
  623. reg = <0x01c2b000 0x400>;
  624. interrupts = <8>;
  625. clocks = <&ccu CLK_APB1_I2C1>;
  626. pinctrl-names = "default";
  627. pinctrl-0 = <&i2c1_pins>;
  628. status = "disabled";
  629. #address-cells = <1>;
  630. #size-cells = <0>;
  631. };
  632. i2c2: i2c@1c2b400 {
  633. compatible = "allwinner,sun4i-a10-i2c";
  634. reg = <0x01c2b400 0x400>;
  635. interrupts = <9>;
  636. clocks = <&ccu CLK_APB1_I2C2>;
  637. pinctrl-names = "default";
  638. pinctrl-0 = <&i2c2_pins>;
  639. status = "disabled";
  640. #address-cells = <1>;
  641. #size-cells = <0>;
  642. };
  643. mali: gpu@1c40000 {
  644. compatible = "allwinner,sun4i-a10-mali", "arm,mali-400";
  645. reg = <0x01c40000 0x10000>;
  646. interrupts = <69>, <70>, <71>, <72>, <73>;
  647. interrupt-names = "gp", "gpmmu", "pp0", "ppmmu0", "pmu";
  648. clocks = <&ccu CLK_AHB_GPU>, <&ccu CLK_GPU>;
  649. clock-names = "bus", "core";
  650. resets = <&ccu RST_GPU>;
  651. assigned-clocks = <&ccu CLK_GPU>;
  652. assigned-clock-rates = <320000000>;
  653. };
  654. timer@1c60000 {
  655. compatible = "allwinner,sun5i-a13-hstimer";
  656. reg = <0x01c60000 0x1000>;
  657. interrupts = <82>, <83>;
  658. clocks = <&ccu CLK_AHB_HSTIMER>;
  659. };
  660. fe0: display-frontend@1e00000 {
  661. compatible = "allwinner,sun5i-a13-display-frontend";
  662. reg = <0x01e00000 0x20000>;
  663. interrupts = <47>;
  664. clocks = <&ccu CLK_DE_FE>, <&ccu CLK_DE_FE>,
  665. <&ccu CLK_DRAM_DE_FE>;
  666. clock-names = "ahb", "mod",
  667. "ram";
  668. resets = <&ccu RST_DE_FE>;
  669. interconnects = <&mbus 19>;
  670. interconnect-names = "dma-mem";
  671. status = "disabled";
  672. ports {
  673. #address-cells = <1>;
  674. #size-cells = <0>;
  675. fe0_out: port@1 {
  676. reg = <1>;
  677. fe0_out_be0: endpoint {
  678. remote-endpoint = <&be0_in_fe0>;
  679. };
  680. };
  681. };
  682. };
  683. be0: display-backend@1e60000 {
  684. compatible = "allwinner,sun5i-a13-display-backend";
  685. reg = <0x01e60000 0x10000>;
  686. interrupts = <47>;
  687. clocks = <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
  688. <&ccu CLK_DRAM_DE_BE>;
  689. clock-names = "ahb", "mod",
  690. "ram";
  691. resets = <&ccu RST_DE_BE>;
  692. interconnects = <&mbus 18>;
  693. interconnect-names = "dma-mem";
  694. status = "disabled";
  695. ports {
  696. #address-cells = <1>;
  697. #size-cells = <0>;
  698. be0_in: port@0 {
  699. reg = <0>;
  700. be0_in_fe0: endpoint {
  701. remote-endpoint = <&fe0_out_be0>;
  702. };
  703. };
  704. be0_out: port@1 {
  705. reg = <1>;
  706. be0_out_tcon0: endpoint {
  707. remote-endpoint = <&tcon0_in_be0>;
  708. };
  709. };
  710. };
  711. };
  712. };
  713. };