sun50i-a64.dtsi 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. /*
  2. * Copyright (C) 2016 ARM Ltd.
  3. * based on the Allwinner H3 dtsi:
  4. * Copyright (C) 2015 Jens Kuske <jenskuske@gmail.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 file 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 file 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/interrupt-controller/arm-gic.h>
  45. #include <dt-bindings/pinctrl/sun4i-a10.h>
  46. / {
  47. interrupt-parent = <&gic>;
  48. #address-cells = <1>;
  49. #size-cells = <1>;
  50. cpus {
  51. #address-cells = <1>;
  52. #size-cells = <0>;
  53. cpu@0 {
  54. compatible = "arm,cortex-a53", "arm,armv8";
  55. device_type = "cpu";
  56. reg = <0>;
  57. enable-method = "psci";
  58. };
  59. cpu@1 {
  60. compatible = "arm,cortex-a53", "arm,armv8";
  61. device_type = "cpu";
  62. reg = <1>;
  63. enable-method = "psci";
  64. };
  65. cpu@2 {
  66. compatible = "arm,cortex-a53", "arm,armv8";
  67. device_type = "cpu";
  68. reg = <2>;
  69. enable-method = "psci";
  70. };
  71. cpu@3 {
  72. compatible = "arm,cortex-a53", "arm,armv8";
  73. device_type = "cpu";
  74. reg = <3>;
  75. enable-method = "psci";
  76. };
  77. };
  78. psci {
  79. compatible = "arm,psci-0.2";
  80. method = "smc";
  81. };
  82. memory {
  83. device_type = "memory";
  84. reg = <0x40000000 0>;
  85. };
  86. gic: interrupt-controller@1c81000 {
  87. compatible = "arm,gic-400";
  88. interrupt-controller;
  89. #interrupt-cells = <3>;
  90. #address-cells = <0>;
  91. reg = <0x01c81000 0x1000>,
  92. <0x01c82000 0x2000>,
  93. <0x01c84000 0x2000>,
  94. <0x01c86000 0x2000>;
  95. interrupts = <GIC_PPI 9
  96. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  97. };
  98. timer {
  99. compatible = "arm,armv8-timer";
  100. interrupts = <GIC_PPI 13
  101. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  102. <GIC_PPI 14
  103. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  104. <GIC_PPI 11
  105. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  106. <GIC_PPI 10
  107. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  108. };
  109. clocks {
  110. #address-cells = <1>;
  111. #size-cells = <1>;
  112. ranges;
  113. osc24M: osc24M_clk {
  114. #clock-cells = <0>;
  115. compatible = "fixed-clock";
  116. clock-frequency = <24000000>;
  117. clock-output-names = "osc24M";
  118. };
  119. osc32k: osc32k_clk {
  120. #clock-cells = <0>;
  121. compatible = "fixed-clock";
  122. clock-frequency = <32768>;
  123. clock-output-names = "osc32k";
  124. };
  125. pll1: pll1_clk@1c20000 {
  126. #clock-cells = <0>;
  127. compatible = "allwinner,sun8i-a23-pll1-clk";
  128. reg = <0x01c20000 0x4>;
  129. clocks = <&osc24M>;
  130. clock-output-names = "pll1";
  131. };
  132. pll6: pll6_clk@1c20028 {
  133. #clock-cells = <1>;
  134. compatible = "allwinner,sun6i-a31-pll6-clk";
  135. reg = <0x01c20028 0x4>;
  136. clocks = <&osc24M>;
  137. clock-output-names = "pll6", "pll6x2";
  138. };
  139. pll6d2: pll6d2_clk {
  140. #clock-cells = <0>;
  141. compatible = "fixed-factor-clock";
  142. clock-div = <2>;
  143. clock-mult = <1>;
  144. clocks = <&pll6 0>;
  145. clock-output-names = "pll6d2";
  146. };
  147. pll7: pll7_clk@1c2002c {
  148. #clock-cells = <1>;
  149. compatible = "allwinner,sun6i-a31-pll6-clk";
  150. reg = <0x01c2002c 0x4>;
  151. clocks = <&osc24M>;
  152. clock-output-names = "pll7", "pll7x2";
  153. };
  154. cpu: cpu_clk@1c20050 {
  155. #clock-cells = <0>;
  156. compatible = "allwinner,sun4i-a10-cpu-clk";
  157. reg = <0x01c20050 0x4>;
  158. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
  159. clock-output-names = "cpu";
  160. critical-clocks = <0>;
  161. };
  162. axi: axi_clk@1c20050 {
  163. #clock-cells = <0>;
  164. compatible = "allwinner,sun4i-a10-axi-clk";
  165. reg = <0x01c20050 0x4>;
  166. clocks = <&cpu>;
  167. clock-output-names = "axi";
  168. };
  169. ahb1: ahb1_clk@1c20054 {
  170. #clock-cells = <0>;
  171. compatible = "allwinner,sun6i-a31-ahb1-clk";
  172. reg = <0x01c20054 0x4>;
  173. clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6 0>;
  174. clock-output-names = "ahb1";
  175. };
  176. ahb2: ahb2_clk@1c2005c {
  177. #clock-cells = <0>;
  178. compatible = "allwinner,sun8i-h3-ahb2-clk";
  179. reg = <0x01c2005c 0x4>;
  180. clocks = <&ahb1>, <&pll6d2>;
  181. clock-output-names = "ahb2";
  182. };
  183. apb1: apb1_clk@1c20054 {
  184. #clock-cells = <0>;
  185. compatible = "allwinner,sun4i-a10-apb0-clk";
  186. reg = <0x01c20054 0x4>;
  187. clocks = <&ahb1>;
  188. clock-output-names = "apb1";
  189. };
  190. apb2: apb2_clk@1c20058 {
  191. #clock-cells = <0>;
  192. compatible = "allwinner,sun4i-a10-apb1-clk";
  193. reg = <0x01c20058 0x4>;
  194. clocks = <&osc32k>, <&osc24M>, <&pll6 1>, <&pll6 1>;
  195. clock-output-names = "apb2";
  196. };
  197. bus_gates: bus_gates_clk@1c20060 {
  198. #clock-cells = <1>;
  199. compatible = "allwinner,sun50i-a64-bus-gates-clk",
  200. "allwinner,sunxi-multi-bus-gates-clk";
  201. reg = <0x01c20060 0x14>;
  202. ahb1_parent {
  203. clocks = <&ahb1>;
  204. clock-indices = <1>, <5>,
  205. <6>, <8>,
  206. <9>, <10>,
  207. <13>, <14>,
  208. <18>, <19>,
  209. <20>, <21>,
  210. <23>, <24>,
  211. <25>, <28>,
  212. <32>, <35>,
  213. <36>, <37>,
  214. <40>, <43>,
  215. <44>, <52>,
  216. <53>, <54>,
  217. <135>;
  218. clock-output-names = "bus_mipidsi", "bus_ce",
  219. "bus_dma", "bus_mmc0",
  220. "bus_mmc1", "bus_mmc2",
  221. "bus_nand", "bus_sdram",
  222. "bus_ts", "bus_hstimer",
  223. "bus_spi0", "bus_spi1",
  224. "bus_otg", "bus_otg_ehci0",
  225. "bus_ehci0", "bus_otg_ohci0",
  226. "bus_ve", "bus_lcd0",
  227. "bus_lcd1", "bus_deint",
  228. "bus_csi", "bus_hdmi",
  229. "bus_de", "bus_gpu",
  230. "bus_msgbox", "bus_spinlock",
  231. "bus_dbg";
  232. };
  233. ahb2_parent {
  234. clocks = <&ahb2>;
  235. clock-indices = <17>, <29>;
  236. clock-output-names = "bus_gmac", "bus_ohci0";
  237. };
  238. apb1_parent {
  239. clocks = <&apb1>;
  240. clock-indices = <64>, <65>,
  241. <69>, <72>,
  242. <76>, <77>,
  243. <78>;
  244. clock-output-names = "bus_codec", "bus_spdif",
  245. "bus_pio", "bus_ths",
  246. "bus_i2s0", "bus_i2s1",
  247. "bus_i2s2";
  248. };
  249. abp2_parent {
  250. clocks = <&apb2>;
  251. clock-indices = <96>, <97>,
  252. <98>, <101>,
  253. <112>, <113>,
  254. <114>, <115>,
  255. <116>;
  256. clock-output-names = "bus_i2c0", "bus_i2c1",
  257. "bus_i2c2", "bus_scr",
  258. "bus_uart0", "bus_uart1",
  259. "bus_uart2", "bus_uart3",
  260. "bus_uart4";
  261. };
  262. };
  263. mmc0_clk: mmc0_clk@1c20088 {
  264. #clock-cells = <0>;
  265. compatible = "allwinner,sun4i-a10-mod0-clk";
  266. reg = <0x01c20088 0x4>;
  267. clocks = <&osc24M>, <&pll6 1>, <&pll7 1>;
  268. clock-output-names = "mmc0";
  269. };
  270. mmc1_clk: mmc1_clk@1c2008c {
  271. #clock-cells = <0>;
  272. compatible = "allwinner,sun4i-a10-mod0-clk";
  273. reg = <0x01c2008c 0x4>;
  274. clocks = <&osc24M>, <&pll6 1>, <&pll7 1>;
  275. clock-output-names = "mmc1";
  276. };
  277. mmc2_clk: mmc2_clk@1c20090 {
  278. #clock-cells = <0>;
  279. compatible = "allwinner,sun4i-a10-mod0-clk";
  280. reg = <0x01c20090 0x4>;
  281. clocks = <&osc24M>, <&pll6 1>, <&pll7 1>;
  282. clock-output-names = "mmc2";
  283. };
  284. };
  285. soc {
  286. compatible = "simple-bus";
  287. #address-cells = <1>;
  288. #size-cells = <1>;
  289. ranges;
  290. mmc0: mmc@1c0f000 {
  291. compatible = "allwinner,sun50i-a64-mmc",
  292. "allwinner,sun5i-a13-mmc";
  293. reg = <0x01c0f000 0x1000>;
  294. clocks = <&bus_gates 8>, <&mmc0_clk>,
  295. <&mmc0_clk>, <&mmc0_clk>;
  296. clock-names = "ahb", "mmc",
  297. "output", "sample";
  298. resets = <&ahb_rst 8>;
  299. reset-names = "ahb";
  300. interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
  301. status = "disabled";
  302. #address-cells = <1>;
  303. #size-cells = <0>;
  304. };
  305. mmc1: mmc@1c10000 {
  306. compatible = "allwinner,sun50i-a64-mmc",
  307. "allwinner,sun5i-a13-mmc";
  308. reg = <0x01c10000 0x1000>;
  309. clocks = <&bus_gates 9>, <&mmc1_clk>,
  310. <&mmc1_clk>, <&mmc1_clk>;
  311. clock-names = "ahb", "mmc",
  312. "output", "sample";
  313. resets = <&ahb_rst 9>;
  314. reset-names = "ahb";
  315. interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
  316. status = "disabled";
  317. #address-cells = <1>;
  318. #size-cells = <0>;
  319. };
  320. mmc2: mmc@1c11000 {
  321. compatible = "allwinner,sun50i-a64-mmc",
  322. "allwinner,sun5i-a13-mmc";
  323. reg = <0x01c11000 0x1000>;
  324. clocks = <&bus_gates 10>, <&mmc2_clk>,
  325. <&mmc2_clk>, <&mmc2_clk>;
  326. clock-names = "ahb", "mmc",
  327. "output", "sample";
  328. resets = <&ahb_rst 10>;
  329. reset-names = "ahb";
  330. interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
  331. status = "disabled";
  332. #address-cells = <1>;
  333. #size-cells = <0>;
  334. };
  335. pio: pinctrl@1c20800 {
  336. compatible = "allwinner,sun50i-a64-pinctrl";
  337. reg = <0x01c20800 0x400>;
  338. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
  339. <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
  340. <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  341. clocks = <&bus_gates 69>;
  342. gpio-controller;
  343. #gpio-cells = <3>;
  344. interrupt-controller;
  345. #interrupt-cells = <2>;
  346. uart0_pins_a: uart0@0 {
  347. allwinner,pins = "PB8", "PB9";
  348. allwinner,function = "uart0";
  349. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  350. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  351. };
  352. uart0_pins_b: uart0@1 {
  353. allwinner,pins = "PF2", "PF3";
  354. allwinner,function = "uart0";
  355. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  356. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  357. };
  358. uart1_2pins: uart1_2@0 {
  359. allwinner,pins = "PG6", "PG7";
  360. allwinner,function = "uart1";
  361. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  362. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  363. };
  364. uart1_4pins: uart1_4@0 {
  365. allwinner,pins = "PG6", "PG7", "PG8", "PG9";
  366. allwinner,function = "uart1";
  367. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  368. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  369. };
  370. uart2_2pins: uart2_2@0 {
  371. allwinner,pins = "PB0", "PB1";
  372. allwinner,function = "uart2";
  373. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  374. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  375. };
  376. uart2_4pins: uart2_4@0 {
  377. allwinner,pins = "PB0", "PB1", "PB2", "PB3";
  378. allwinner,function = "uart2";
  379. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  380. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  381. };
  382. uart3_pins_a: uart3@0 {
  383. allwinner,pins = "PD0", "PD1";
  384. allwinner,function = "uart3";
  385. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  386. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  387. };
  388. uart3_2pins_b: uart3_2@1 {
  389. allwinner,pins = "PH4", "PH5";
  390. allwinner,function = "uart3";
  391. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  392. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  393. };
  394. uart3_4pins_b: uart3_4@1 {
  395. allwinner,pins = "PH4", "PH5", "PH6", "PH7";
  396. allwinner,function = "uart3";
  397. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  398. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  399. };
  400. uart4_2pins: uart4_2@0 {
  401. allwinner,pins = "PD2", "PD3";
  402. allwinner,function = "uart4";
  403. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  404. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  405. };
  406. uart4_4pins: uart4_4@0 {
  407. allwinner,pins = "PD2", "PD3", "PD4", "PD5";
  408. allwinner,function = "uart4";
  409. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  410. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  411. };
  412. mmc0_pins: mmc0@0 {
  413. allwinner,pins = "PF0", "PF1", "PF2", "PF3",
  414. "PF4", "PF5";
  415. allwinner,function = "mmc0";
  416. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  417. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  418. };
  419. mmc0_default_cd_pin: mmc0_cd_pin@0 {
  420. allwinner,pins = "PF6";
  421. allwinner,function = "gpio_in";
  422. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  423. allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
  424. };
  425. mmc1_pins: mmc1@0 {
  426. allwinner,pins = "PG0", "PG1", "PG2", "PG3",
  427. "PG4", "PG5";
  428. allwinner,function = "mmc1";
  429. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  430. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  431. };
  432. mmc2_pins: mmc2@0 {
  433. allwinner,pins = "PC1", "PC5", "PC6", "PC8",
  434. "PC9", "PC10";
  435. allwinner,function = "mmc2";
  436. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  437. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  438. };
  439. i2c0_pins: i2c0_pins {
  440. allwinner,pins = "PH0", "PH1";
  441. allwinner,function = "i2c0";
  442. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  443. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  444. };
  445. i2c1_pins: i2c1_pins {
  446. allwinner,pins = "PH2", "PH3";
  447. allwinner,function = "i2c1";
  448. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  449. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  450. };
  451. i2c2_pins: i2c2_pins {
  452. allwinner,pins = "PE14", "PE15";
  453. allwinner,function = "i2c2";
  454. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  455. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  456. };
  457. rmii_pins: rmii_pins {
  458. allwinner,pins = "PD10", "PD11", "PD13", "PD14",
  459. "PD17", "PD18", "PD19", "PD20",
  460. "PD22", "PD23";
  461. allwinner,function = "emac";
  462. allwinner,drive = <SUN4I_PINCTRL_40_MA>;
  463. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  464. };
  465. rgmii_pins: rgmii_pins {
  466. allwinner,pins = "PD8", "PD9", "PD10", "PD11",
  467. "PD12", "PD13", "PD15",
  468. "PD16", "PD17", "PD18", "PD19",
  469. "PD20", "PD21", "PD22", "PD23";
  470. allwinner,function = "emac";
  471. allwinner,drive = <SUN4I_PINCTRL_40_MA>;
  472. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  473. };
  474. };
  475. ahb_rst: reset@1c202c0 {
  476. #reset-cells = <1>;
  477. compatible = "allwinner,sun6i-a31-clock-reset";
  478. reg = <0x01c202c0 0xc>;
  479. };
  480. apb1_rst: reset@1c202d0 {
  481. #reset-cells = <1>;
  482. compatible = "allwinner,sun6i-a31-clock-reset";
  483. reg = <0x01c202d0 0x4>;
  484. };
  485. apb2_rst: reset@1c202d8 {
  486. #reset-cells = <1>;
  487. compatible = "allwinner,sun6i-a31-clock-reset";
  488. reg = <0x01c202d8 0x4>;
  489. };
  490. uart0: serial@1c28000 {
  491. compatible = "snps,dw-apb-uart";
  492. reg = <0x01c28000 0x400>;
  493. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  494. reg-shift = <2>;
  495. reg-io-width = <4>;
  496. clocks = <&bus_gates 112>;
  497. resets = <&apb2_rst 16>;
  498. status = "disabled";
  499. };
  500. uart1: serial@1c28400 {
  501. compatible = "snps,dw-apb-uart";
  502. reg = <0x01c28400 0x400>;
  503. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  504. reg-shift = <2>;
  505. reg-io-width = <4>;
  506. clocks = <&bus_gates 113>;
  507. resets = <&apb2_rst 17>;
  508. status = "disabled";
  509. };
  510. uart2: serial@1c28800 {
  511. compatible = "snps,dw-apb-uart";
  512. reg = <0x01c28800 0x400>;
  513. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  514. reg-shift = <2>;
  515. reg-io-width = <4>;
  516. clocks = <&bus_gates 114>;
  517. resets = <&apb2_rst 18>;
  518. status = "disabled";
  519. };
  520. uart3: serial@1c28c00 {
  521. compatible = "snps,dw-apb-uart";
  522. reg = <0x01c28c00 0x400>;
  523. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  524. reg-shift = <2>;
  525. reg-io-width = <4>;
  526. clocks = <&bus_gates 115>;
  527. resets = <&apb2_rst 19>;
  528. status = "disabled";
  529. };
  530. uart4: serial@1c29000 {
  531. compatible = "snps,dw-apb-uart";
  532. reg = <0x01c29000 0x400>;
  533. interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
  534. reg-shift = <2>;
  535. reg-io-width = <4>;
  536. clocks = <&bus_gates 116>;
  537. resets = <&apb2_rst 20>;
  538. status = "disabled";
  539. };
  540. rtc: rtc@1f00000 {
  541. compatible = "allwinner,sun6i-a31-rtc";
  542. reg = <0x01f00000 0x54>;
  543. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
  544. <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
  545. };
  546. i2c0: i2c@1c2ac00 {
  547. compatible = "allwinner,sun6i-a31-i2c";
  548. reg = <0x01c2ac00 0x400>;
  549. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  550. clocks = <&bus_gates 96>;
  551. resets = <&apb2_rst 0>;
  552. status = "disabled";
  553. #address-cells = <1>;
  554. #size-cells = <0>;
  555. };
  556. i2c1: i2c@1c2b000 {
  557. compatible = "allwinner,sun6i-a31-i2c";
  558. reg = <0x01c2b000 0x400>;
  559. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  560. clocks = <&bus_gates 97>;
  561. resets = <&apb2_rst 1>;
  562. status = "disabled";
  563. #address-cells = <1>;
  564. #size-cells = <0>;
  565. };
  566. i2c2: i2c@1c2b400 {
  567. compatible = "allwinner,sun6i-a31-i2c";
  568. reg = <0x01c2b400 0x400>;
  569. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  570. clocks = <&bus_gates 98>;
  571. resets = <&apb2_rst 2>;
  572. status = "disabled";
  573. #address-cells = <1>;
  574. #size-cells = <0>;
  575. };
  576. emac: ethernet@01c30000 {
  577. compatible = "allwinner,sun50i-a64-emac";
  578. reg = <0x01c30000 0x2000>, <0x01c00030 0x4>;
  579. reg-names = "emac", "syscon";
  580. interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
  581. resets = <&ahb_rst 17>;
  582. reset-names = "ahb";
  583. clocks = <&bus_gates 17>;
  584. clock-names = "ahb";
  585. status = "disabled";
  586. #address-cells = <1>;
  587. #size-cells = <0>;
  588. };
  589. usbphy: phy@1c1b810 {
  590. compatible = "allwinner,sun50i-a64-usb-phy",
  591. "allwinner,sun8i-a33-usb-phy";
  592. reg = <0x01c1b810 0x14>, <0x01c1b800 0x4>;
  593. reg-names = "phy_ctrl", "pmu1";
  594. status = "disabled";
  595. #phy-cells = <1>;
  596. };
  597. ehci1: usb@01c1b000 {
  598. compatible = "allwinner,sun50i-a64-ehci",
  599. "generic-ehci";
  600. reg = <0x01c1b000 0x100>;
  601. interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
  602. phys = <&usbphy 1>;
  603. phy-names = "usb";
  604. status = "disabled";
  605. };
  606. ohci1: usb@01c1b400 {
  607. compatible = "allwinner,sun50i-a64-ohci",
  608. "generic-ohci";
  609. reg = <0x01c1b400 0x100>;
  610. interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
  611. phys = <&usbphy 1>;
  612. phy-names = "usb";
  613. status = "enabled";
  614. };
  615. };
  616. };