sun5i.dtsi 18 KB

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