sun5i.dtsi 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  1. /*
  2. * Copyright 2012-2015 Maxime Ripard
  3. *
  4. * Maxime Ripard <maxime.ripard@free-electrons.com>
  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 "skeleton.dtsi"
  45. #include <dt-bindings/clock/sun4i-a10-pll2.h>
  46. #include <dt-bindings/dma/sun4i-a10.h>
  47. #include <dt-bindings/pinctrl/sun4i-a10.h>
  48. / {
  49. interrupt-parent = <&intc>;
  50. cpus {
  51. #address-cells = <1>;
  52. #size-cells = <0>;
  53. cpu0: cpu@0 {
  54. device_type = "cpu";
  55. compatible = "arm,cortex-a8";
  56. reg = <0x0>;
  57. clocks = <&cpu>;
  58. };
  59. };
  60. clocks {
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63. ranges;
  64. /*
  65. * This is a dummy clock, to be used as placeholder on
  66. * other mux clocks when a specific parent clock is not
  67. * yet implemented. It should be dropped when the driver
  68. * is complete.
  69. */
  70. dummy: dummy {
  71. #clock-cells = <0>;
  72. compatible = "fixed-clock";
  73. clock-frequency = <0>;
  74. };
  75. osc24M: clk@01c20050 {
  76. #clock-cells = <0>;
  77. compatible = "allwinner,sun4i-a10-osc-clk";
  78. reg = <0x01c20050 0x4>;
  79. clock-frequency = <24000000>;
  80. clock-output-names = "osc24M";
  81. };
  82. osc32k: clk@0 {
  83. #clock-cells = <0>;
  84. compatible = "fixed-clock";
  85. clock-frequency = <32768>;
  86. clock-output-names = "osc32k";
  87. };
  88. pll1: clk@01c20000 {
  89. #clock-cells = <0>;
  90. compatible = "allwinner,sun4i-a10-pll1-clk";
  91. reg = <0x01c20000 0x4>;
  92. clocks = <&osc24M>;
  93. clock-output-names = "pll1";
  94. };
  95. pll2: clk@01c20008 {
  96. #clock-cells = <1>;
  97. compatible = "allwinner,sun5i-a13-pll2-clk";
  98. reg = <0x01c20008 0x8>;
  99. clocks = <&osc24M>;
  100. clock-output-names = "pll2-1x", "pll2-2x",
  101. "pll2-4x", "pll2-8x";
  102. };
  103. pll4: clk@01c20018 {
  104. #clock-cells = <0>;
  105. compatible = "allwinner,sun4i-a10-pll1-clk";
  106. reg = <0x01c20018 0x4>;
  107. clocks = <&osc24M>;
  108. clock-output-names = "pll4";
  109. };
  110. pll5: clk@01c20020 {
  111. #clock-cells = <1>;
  112. compatible = "allwinner,sun4i-a10-pll5-clk";
  113. reg = <0x01c20020 0x4>;
  114. clocks = <&osc24M>;
  115. clock-output-names = "pll5_ddr", "pll5_other";
  116. };
  117. pll6: clk@01c20028 {
  118. #clock-cells = <1>;
  119. compatible = "allwinner,sun4i-a10-pll6-clk";
  120. reg = <0x01c20028 0x4>;
  121. clocks = <&osc24M>;
  122. clock-output-names = "pll6_sata", "pll6_other", "pll6";
  123. };
  124. /* dummy is 200M */
  125. cpu: cpu@01c20054 {
  126. #clock-cells = <0>;
  127. compatible = "allwinner,sun4i-a10-cpu-clk";
  128. reg = <0x01c20054 0x4>;
  129. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
  130. clock-output-names = "cpu";
  131. };
  132. axi: axi@01c20054 {
  133. #clock-cells = <0>;
  134. compatible = "allwinner,sun4i-a10-axi-clk";
  135. reg = <0x01c20054 0x4>;
  136. clocks = <&cpu>;
  137. clock-output-names = "axi";
  138. };
  139. ahb: ahb@01c20054 {
  140. #clock-cells = <0>;
  141. compatible = "allwinner,sun5i-a13-ahb-clk";
  142. reg = <0x01c20054 0x4>;
  143. clocks = <&axi>, <&cpu>, <&pll6 1>;
  144. clock-output-names = "ahb";
  145. /*
  146. * Use PLL6 as parent, instead of CPU/AXI
  147. * which has rate changes due to cpufreq
  148. */
  149. assigned-clocks = <&ahb>;
  150. assigned-clock-parents = <&pll6 1>;
  151. };
  152. apb0: apb0@01c20054 {
  153. #clock-cells = <0>;
  154. compatible = "allwinner,sun4i-a10-apb0-clk";
  155. reg = <0x01c20054 0x4>;
  156. clocks = <&ahb>;
  157. clock-output-names = "apb0";
  158. };
  159. apb1: clk@01c20058 {
  160. #clock-cells = <0>;
  161. compatible = "allwinner,sun4i-a10-apb1-clk";
  162. reg = <0x01c20058 0x4>;
  163. clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
  164. clock-output-names = "apb1";
  165. };
  166. axi_gates: clk@01c2005c {
  167. #clock-cells = <1>;
  168. compatible = "allwinner,sun4i-a10-axi-gates-clk";
  169. reg = <0x01c2005c 0x4>;
  170. clocks = <&axi>;
  171. clock-indices = <0>;
  172. clock-output-names = "axi_dram";
  173. };
  174. nand_clk: clk@01c20080 {
  175. #clock-cells = <0>;
  176. compatible = "allwinner,sun4i-a10-mod0-clk";
  177. reg = <0x01c20080 0x4>;
  178. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  179. clock-output-names = "nand";
  180. };
  181. ms_clk: clk@01c20084 {
  182. #clock-cells = <0>;
  183. compatible = "allwinner,sun4i-a10-mod0-clk";
  184. reg = <0x01c20084 0x4>;
  185. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  186. clock-output-names = "ms";
  187. };
  188. mmc0_clk: clk@01c20088 {
  189. #clock-cells = <1>;
  190. compatible = "allwinner,sun4i-a10-mmc-clk";
  191. reg = <0x01c20088 0x4>;
  192. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  193. clock-output-names = "mmc0",
  194. "mmc0_output",
  195. "mmc0_sample";
  196. };
  197. mmc1_clk: clk@01c2008c {
  198. #clock-cells = <1>;
  199. compatible = "allwinner,sun4i-a10-mmc-clk";
  200. reg = <0x01c2008c 0x4>;
  201. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  202. clock-output-names = "mmc1",
  203. "mmc1_output",
  204. "mmc1_sample";
  205. };
  206. mmc2_clk: clk@01c20090 {
  207. #clock-cells = <1>;
  208. compatible = "allwinner,sun4i-a10-mmc-clk";
  209. reg = <0x01c20090 0x4>;
  210. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  211. clock-output-names = "mmc2",
  212. "mmc2_output",
  213. "mmc2_sample";
  214. };
  215. ts_clk: clk@01c20098 {
  216. #clock-cells = <0>;
  217. compatible = "allwinner,sun4i-a10-mod0-clk";
  218. reg = <0x01c20098 0x4>;
  219. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  220. clock-output-names = "ts";
  221. };
  222. ss_clk: clk@01c2009c {
  223. #clock-cells = <0>;
  224. compatible = "allwinner,sun4i-a10-mod0-clk";
  225. reg = <0x01c2009c 0x4>;
  226. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  227. clock-output-names = "ss";
  228. };
  229. spi0_clk: clk@01c200a0 {
  230. #clock-cells = <0>;
  231. compatible = "allwinner,sun4i-a10-mod0-clk";
  232. reg = <0x01c200a0 0x4>;
  233. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  234. clock-output-names = "spi0";
  235. };
  236. spi1_clk: clk@01c200a4 {
  237. #clock-cells = <0>;
  238. compatible = "allwinner,sun4i-a10-mod0-clk";
  239. reg = <0x01c200a4 0x4>;
  240. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  241. clock-output-names = "spi1";
  242. };
  243. spi2_clk: clk@01c200a8 {
  244. #clock-cells = <0>;
  245. compatible = "allwinner,sun4i-a10-mod0-clk";
  246. reg = <0x01c200a8 0x4>;
  247. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  248. clock-output-names = "spi2";
  249. };
  250. ir0_clk: clk@01c200b0 {
  251. #clock-cells = <0>;
  252. compatible = "allwinner,sun4i-a10-mod0-clk";
  253. reg = <0x01c200b0 0x4>;
  254. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  255. clock-output-names = "ir0";
  256. };
  257. usb_clk: clk@01c200cc {
  258. #clock-cells = <1>;
  259. #reset-cells = <1>;
  260. compatible = "allwinner,sun5i-a13-usb-clk";
  261. reg = <0x01c200cc 0x4>;
  262. clocks = <&pll6 1>;
  263. clock-output-names = "usb_ohci0", "usb_phy";
  264. };
  265. codec_clk: clk@01c20140 {
  266. #clock-cells = <0>;
  267. compatible = "allwinner,sun4i-a10-codec-clk";
  268. reg = <0x01c20140 0x4>;
  269. clocks = <&pll2 SUN4I_A10_PLL2_1X>;
  270. clock-output-names = "codec";
  271. };
  272. mbus_clk: clk@01c2015c {
  273. #clock-cells = <0>;
  274. compatible = "allwinner,sun5i-a13-mbus-clk";
  275. reg = <0x01c2015c 0x4>;
  276. clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
  277. clock-output-names = "mbus";
  278. };
  279. };
  280. soc@01c00000 {
  281. compatible = "simple-bus";
  282. #address-cells = <1>;
  283. #size-cells = <1>;
  284. ranges;
  285. sram-controller@01c00000 {
  286. compatible = "allwinner,sun4i-a10-sram-controller";
  287. reg = <0x01c00000 0x30>;
  288. #address-cells = <1>;
  289. #size-cells = <1>;
  290. ranges;
  291. sram_a: sram@00000000 {
  292. compatible = "mmio-sram";
  293. reg = <0x00000000 0xc000>;
  294. #address-cells = <1>;
  295. #size-cells = <1>;
  296. ranges = <0 0x00000000 0xc000>;
  297. };
  298. sram_d: sram@00010000 {
  299. compatible = "mmio-sram";
  300. reg = <0x00010000 0x1000>;
  301. #address-cells = <1>;
  302. #size-cells = <1>;
  303. ranges = <0 0x00010000 0x1000>;
  304. otg_sram: sram-section@0000 {
  305. compatible = "allwinner,sun4i-a10-sram-d";
  306. reg = <0x0000 0x1000>;
  307. status = "disabled";
  308. };
  309. };
  310. };
  311. dma: dma-controller@01c02000 {
  312. compatible = "allwinner,sun4i-a10-dma";
  313. reg = <0x01c02000 0x1000>;
  314. interrupts = <27>;
  315. clocks = <&ahb_gates 6>;
  316. #dma-cells = <2>;
  317. };
  318. spi0: spi@01c05000 {
  319. compatible = "allwinner,sun4i-a10-spi";
  320. reg = <0x01c05000 0x1000>;
  321. interrupts = <10>;
  322. clocks = <&ahb_gates 20>, <&spi0_clk>;
  323. clock-names = "ahb", "mod";
  324. dmas = <&dma SUN4I_DMA_DEDICATED 27>,
  325. <&dma SUN4I_DMA_DEDICATED 26>;
  326. dma-names = "rx", "tx";
  327. status = "disabled";
  328. #address-cells = <1>;
  329. #size-cells = <0>;
  330. };
  331. spi1: spi@01c06000 {
  332. compatible = "allwinner,sun4i-a10-spi";
  333. reg = <0x01c06000 0x1000>;
  334. interrupts = <11>;
  335. clocks = <&ahb_gates 21>, <&spi1_clk>;
  336. clock-names = "ahb", "mod";
  337. dmas = <&dma SUN4I_DMA_DEDICATED 9>,
  338. <&dma SUN4I_DMA_DEDICATED 8>;
  339. dma-names = "rx", "tx";
  340. status = "disabled";
  341. #address-cells = <1>;
  342. #size-cells = <0>;
  343. };
  344. mmc0: mmc@01c0f000 {
  345. compatible = "allwinner,sun5i-a13-mmc";
  346. reg = <0x01c0f000 0x1000>;
  347. clocks = <&ahb_gates 8>,
  348. <&mmc0_clk 0>,
  349. <&mmc0_clk 1>,
  350. <&mmc0_clk 2>;
  351. clock-names = "ahb",
  352. "mmc",
  353. "output",
  354. "sample";
  355. interrupts = <32>;
  356. status = "disabled";
  357. #address-cells = <1>;
  358. #size-cells = <0>;
  359. };
  360. mmc1: mmc@01c10000 {
  361. compatible = "allwinner,sun5i-a13-mmc";
  362. reg = <0x01c10000 0x1000>;
  363. clocks = <&ahb_gates 9>,
  364. <&mmc1_clk 0>,
  365. <&mmc1_clk 1>,
  366. <&mmc1_clk 2>;
  367. clock-names = "ahb",
  368. "mmc",
  369. "output",
  370. "sample";
  371. interrupts = <33>;
  372. status = "disabled";
  373. #address-cells = <1>;
  374. #size-cells = <0>;
  375. };
  376. mmc2: mmc@01c11000 {
  377. compatible = "allwinner,sun5i-a13-mmc";
  378. reg = <0x01c11000 0x1000>;
  379. clocks = <&ahb_gates 10>,
  380. <&mmc2_clk 0>,
  381. <&mmc2_clk 1>,
  382. <&mmc2_clk 2>;
  383. clock-names = "ahb",
  384. "mmc",
  385. "output",
  386. "sample";
  387. interrupts = <34>;
  388. status = "disabled";
  389. #address-cells = <1>;
  390. #size-cells = <0>;
  391. };
  392. usb_otg: usb@01c13000 {
  393. compatible = "allwinner,sun4i-a10-musb";
  394. reg = <0x01c13000 0x0400>;
  395. clocks = <&ahb_gates 0>;
  396. interrupts = <38>;
  397. interrupt-names = "mc";
  398. phys = <&usbphy 0>;
  399. phy-names = "usb";
  400. extcon = <&usbphy 0>;
  401. allwinner,sram = <&otg_sram 1>;
  402. status = "disabled";
  403. };
  404. usbphy: phy@01c13400 {
  405. #phy-cells = <1>;
  406. compatible = "allwinner,sun5i-a13-usb-phy";
  407. reg = <0x01c13400 0x10 0x01c14800 0x4>;
  408. reg-names = "phy_ctrl", "pmu1";
  409. clocks = <&usb_clk 8>;
  410. clock-names = "usb_phy";
  411. resets = <&usb_clk 0>, <&usb_clk 1>;
  412. reset-names = "usb0_reset", "usb1_reset";
  413. status = "disabled";
  414. };
  415. ehci0: usb@01c14000 {
  416. compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
  417. reg = <0x01c14000 0x100>;
  418. interrupts = <39>;
  419. clocks = <&ahb_gates 1>;
  420. phys = <&usbphy 1>;
  421. phy-names = "usb";
  422. status = "disabled";
  423. };
  424. ohci0: usb@01c14400 {
  425. compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
  426. reg = <0x01c14400 0x100>;
  427. interrupts = <40>;
  428. clocks = <&usb_clk 6>, <&ahb_gates 2>;
  429. phys = <&usbphy 1>;
  430. phy-names = "usb";
  431. status = "disabled";
  432. };
  433. spi2: spi@01c17000 {
  434. compatible = "allwinner,sun4i-a10-spi";
  435. reg = <0x01c17000 0x1000>;
  436. interrupts = <12>;
  437. clocks = <&ahb_gates 22>, <&spi2_clk>;
  438. clock-names = "ahb", "mod";
  439. dmas = <&dma SUN4I_DMA_DEDICATED 29>,
  440. <&dma SUN4I_DMA_DEDICATED 28>;
  441. dma-names = "rx", "tx";
  442. status = "disabled";
  443. #address-cells = <1>;
  444. #size-cells = <0>;
  445. };
  446. intc: interrupt-controller@01c20400 {
  447. compatible = "allwinner,sun4i-a10-ic";
  448. reg = <0x01c20400 0x400>;
  449. interrupt-controller;
  450. #interrupt-cells = <1>;
  451. };
  452. pio: pinctrl@01c20800 {
  453. reg = <0x01c20800 0x400>;
  454. interrupts = <28>;
  455. clocks = <&apb0_gates 5>;
  456. gpio-controller;
  457. interrupt-controller;
  458. #interrupt-cells = <3>;
  459. #gpio-cells = <3>;
  460. i2c0_pins_a: i2c0@0 {
  461. allwinner,pins = "PB0", "PB1";
  462. allwinner,function = "i2c0";
  463. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  464. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  465. };
  466. i2c1_pins_a: i2c1@0 {
  467. allwinner,pins = "PB15", "PB16";
  468. allwinner,function = "i2c1";
  469. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  470. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  471. };
  472. i2c2_pins_a: i2c2@0 {
  473. allwinner,pins = "PB17", "PB18";
  474. allwinner,function = "i2c2";
  475. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  476. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  477. };
  478. mmc0_pins_a: mmc0@0 {
  479. allwinner,pins = "PF0", "PF1", "PF2", "PF3",
  480. "PF4", "PF5";
  481. allwinner,function = "mmc0";
  482. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  483. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  484. };
  485. mmc2_pins_a: mmc2@0 {
  486. allwinner,pins = "PC6", "PC7", "PC8", "PC9",
  487. "PC10", "PC11", "PC12", "PC13",
  488. "PC14", "PC15";
  489. allwinner,function = "mmc2";
  490. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  491. allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
  492. };
  493. uart3_pins_a: uart3@0 {
  494. allwinner,pins = "PG9", "PG10";
  495. allwinner,function = "uart3";
  496. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  497. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  498. };
  499. uart3_pins_cts_rts_a: uart3-cts-rts@0 {
  500. allwinner,pins = "PG11", "PG12";
  501. allwinner,function = "uart3";
  502. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  503. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  504. };
  505. pwm0_pins: pwm0 {
  506. allwinner,pins = "PB2";
  507. allwinner,function = "pwm";
  508. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  509. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  510. };
  511. };
  512. timer@01c20c00 {
  513. compatible = "allwinner,sun4i-a10-timer";
  514. reg = <0x01c20c00 0x90>;
  515. interrupts = <22>;
  516. clocks = <&osc24M>;
  517. };
  518. wdt: watchdog@01c20c90 {
  519. compatible = "allwinner,sun4i-a10-wdt";
  520. reg = <0x01c20c90 0x10>;
  521. };
  522. lradc: lradc@01c22800 {
  523. compatible = "allwinner,sun4i-a10-lradc-keys";
  524. reg = <0x01c22800 0x100>;
  525. interrupts = <31>;
  526. status = "disabled";
  527. };
  528. codec: codec@01c22c00 {
  529. #sound-dai-cells = <0>;
  530. compatible = "allwinner,sun4i-a10-codec";
  531. reg = <0x01c22c00 0x40>;
  532. interrupts = <30>;
  533. clocks = <&apb0_gates 0>, <&codec_clk>;
  534. clock-names = "apb", "codec";
  535. dmas = <&dma SUN4I_DMA_NORMAL 19>,
  536. <&dma SUN4I_DMA_NORMAL 19>;
  537. dma-names = "rx", "tx";
  538. status = "disabled";
  539. };
  540. sid: eeprom@01c23800 {
  541. compatible = "allwinner,sun4i-a10-sid";
  542. reg = <0x01c23800 0x10>;
  543. };
  544. rtp: rtp@01c25000 {
  545. compatible = "allwinner,sun5i-a13-ts";
  546. reg = <0x01c25000 0x100>;
  547. interrupts = <29>;
  548. #thermal-sensor-cells = <0>;
  549. };
  550. uart1: serial@01c28400 {
  551. compatible = "snps,dw-apb-uart";
  552. reg = <0x01c28400 0x400>;
  553. interrupts = <2>;
  554. reg-shift = <2>;
  555. reg-io-width = <4>;
  556. clocks = <&apb1_gates 17>;
  557. status = "disabled";
  558. };
  559. uart3: serial@01c28c00 {
  560. compatible = "snps,dw-apb-uart";
  561. reg = <0x01c28c00 0x400>;
  562. interrupts = <4>;
  563. reg-shift = <2>;
  564. reg-io-width = <4>;
  565. clocks = <&apb1_gates 19>;
  566. status = "disabled";
  567. };
  568. i2c0: i2c@01c2ac00 {
  569. compatible = "allwinner,sun4i-a10-i2c";
  570. reg = <0x01c2ac00 0x400>;
  571. interrupts = <7>;
  572. clocks = <&apb1_gates 0>;
  573. status = "disabled";
  574. #address-cells = <1>;
  575. #size-cells = <0>;
  576. };
  577. i2c1: i2c@01c2b000 {
  578. compatible = "allwinner,sun4i-a10-i2c";
  579. reg = <0x01c2b000 0x400>;
  580. interrupts = <8>;
  581. clocks = <&apb1_gates 1>;
  582. status = "disabled";
  583. #address-cells = <1>;
  584. #size-cells = <0>;
  585. };
  586. i2c2: i2c@01c2b400 {
  587. compatible = "allwinner,sun4i-a10-i2c";
  588. reg = <0x01c2b400 0x400>;
  589. interrupts = <9>;
  590. clocks = <&apb1_gates 2>;
  591. status = "disabled";
  592. #address-cells = <1>;
  593. #size-cells = <0>;
  594. };
  595. timer@01c60000 {
  596. compatible = "allwinner,sun5i-a13-hstimer";
  597. reg = <0x01c60000 0x1000>;
  598. interrupts = <82>, <83>;
  599. clocks = <&ahb_gates 28>;
  600. };
  601. };
  602. };