sun50i-a64.dtsi 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  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/clock/sun50i-a64-ccu.h>
  45. #include <dt-bindings/clock/sun8i-de2.h>
  46. #include <dt-bindings/clock/sun8i-r-ccu.h>
  47. #include <dt-bindings/interrupt-controller/arm-gic.h>
  48. #include <dt-bindings/reset/sun50i-a64-ccu.h>
  49. #include <dt-bindings/reset/sun8i-de2.h>
  50. #include <dt-bindings/reset/sun8i-r-ccu.h>
  51. / {
  52. interrupt-parent = <&gic>;
  53. #address-cells = <1>;
  54. #size-cells = <1>;
  55. chosen {
  56. #address-cells = <1>;
  57. #size-cells = <1>;
  58. ranges;
  59. simplefb_lcd: framebuffer-lcd {
  60. compatible = "allwinner,simple-framebuffer",
  61. "simple-framebuffer";
  62. allwinner,pipeline = "mixer0-lcd0";
  63. clocks = <&ccu CLK_TCON0>,
  64. <&display_clocks CLK_MIXER0>;
  65. status = "disabled";
  66. };
  67. simplefb_hdmi: framebuffer-hdmi {
  68. compatible = "allwinner,simple-framebuffer",
  69. "simple-framebuffer";
  70. allwinner,pipeline = "mixer1-lcd1-hdmi";
  71. clocks = <&display_clocks CLK_MIXER1>,
  72. <&ccu CLK_TCON1>, <&ccu CLK_HDMI>;
  73. status = "disabled";
  74. };
  75. };
  76. cpus {
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. cpu0: cpu@0 {
  80. compatible = "arm,cortex-a53", "arm,armv8";
  81. device_type = "cpu";
  82. reg = <0>;
  83. enable-method = "psci";
  84. };
  85. cpu1: cpu@1 {
  86. compatible = "arm,cortex-a53", "arm,armv8";
  87. device_type = "cpu";
  88. reg = <1>;
  89. enable-method = "psci";
  90. };
  91. cpu2: cpu@2 {
  92. compatible = "arm,cortex-a53", "arm,armv8";
  93. device_type = "cpu";
  94. reg = <2>;
  95. enable-method = "psci";
  96. };
  97. cpu3: cpu@3 {
  98. compatible = "arm,cortex-a53", "arm,armv8";
  99. device_type = "cpu";
  100. reg = <3>;
  101. enable-method = "psci";
  102. };
  103. };
  104. osc24M: osc24M_clk {
  105. #clock-cells = <0>;
  106. compatible = "fixed-clock";
  107. clock-frequency = <24000000>;
  108. clock-output-names = "osc24M";
  109. };
  110. osc32k: osc32k_clk {
  111. #clock-cells = <0>;
  112. compatible = "fixed-clock";
  113. clock-frequency = <32768>;
  114. clock-output-names = "osc32k";
  115. };
  116. iosc: internal-osc-clk {
  117. #clock-cells = <0>;
  118. compatible = "fixed-clock";
  119. clock-frequency = <16000000>;
  120. clock-accuracy = <300000000>;
  121. clock-output-names = "iosc";
  122. };
  123. psci {
  124. compatible = "arm,psci-0.2";
  125. method = "smc";
  126. };
  127. sound_spdif {
  128. compatible = "simple-audio-card";
  129. simple-audio-card,name = "On-board SPDIF";
  130. simple-audio-card,cpu {
  131. sound-dai = <&spdif>;
  132. };
  133. simple-audio-card,codec {
  134. sound-dai = <&spdif_out>;
  135. };
  136. };
  137. spdif_out: spdif-out {
  138. #sound-dai-cells = <0>;
  139. compatible = "linux,spdif-dit";
  140. };
  141. timer {
  142. compatible = "arm,armv8-timer";
  143. interrupts = <GIC_PPI 13
  144. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  145. <GIC_PPI 14
  146. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  147. <GIC_PPI 11
  148. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  149. <GIC_PPI 10
  150. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  151. };
  152. soc {
  153. compatible = "simple-bus";
  154. #address-cells = <1>;
  155. #size-cells = <1>;
  156. ranges;
  157. de2@1000000 {
  158. compatible = "allwinner,sun50i-a64-de2";
  159. reg = <0x1000000 0x400000>;
  160. allwinner,sram = <&de2_sram 1>;
  161. #address-cells = <1>;
  162. #size-cells = <1>;
  163. ranges = <0 0x1000000 0x400000>;
  164. display_clocks: clock@0 {
  165. compatible = "allwinner,sun50i-a64-de2-clk";
  166. reg = <0x0 0x100000>;
  167. clocks = <&ccu CLK_DE>,
  168. <&ccu CLK_BUS_DE>;
  169. clock-names = "mod",
  170. "bus";
  171. resets = <&ccu RST_BUS_DE>;
  172. #clock-cells = <1>;
  173. #reset-cells = <1>;
  174. };
  175. };
  176. syscon: syscon@1c00000 {
  177. compatible = "allwinner,sun50i-a64-system-control";
  178. reg = <0x01c00000 0x1000>;
  179. #address-cells = <1>;
  180. #size-cells = <1>;
  181. ranges;
  182. sram_c: sram@18000 {
  183. compatible = "mmio-sram";
  184. reg = <0x00018000 0x28000>;
  185. #address-cells = <1>;
  186. #size-cells = <1>;
  187. ranges = <0 0x00018000 0x28000>;
  188. de2_sram: sram-section@0 {
  189. compatible = "allwinner,sun50i-a64-sram-c";
  190. reg = <0x0000 0x28000>;
  191. };
  192. };
  193. };
  194. dma: dma-controller@1c02000 {
  195. compatible = "allwinner,sun50i-a64-dma";
  196. reg = <0x01c02000 0x1000>;
  197. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  198. clocks = <&ccu CLK_BUS_DMA>;
  199. dma-channels = <8>;
  200. dma-requests = <27>;
  201. resets = <&ccu RST_BUS_DMA>;
  202. #dma-cells = <1>;
  203. };
  204. mmc0: mmc@1c0f000 {
  205. compatible = "allwinner,sun50i-a64-mmc";
  206. reg = <0x01c0f000 0x1000>;
  207. clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
  208. clock-names = "ahb", "mmc";
  209. resets = <&ccu RST_BUS_MMC0>;
  210. reset-names = "ahb";
  211. interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
  212. max-frequency = <150000000>;
  213. status = "disabled";
  214. #address-cells = <1>;
  215. #size-cells = <0>;
  216. };
  217. mmc1: mmc@1c10000 {
  218. compatible = "allwinner,sun50i-a64-mmc";
  219. reg = <0x01c10000 0x1000>;
  220. clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
  221. clock-names = "ahb", "mmc";
  222. resets = <&ccu RST_BUS_MMC1>;
  223. reset-names = "ahb";
  224. interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
  225. max-frequency = <150000000>;
  226. status = "disabled";
  227. #address-cells = <1>;
  228. #size-cells = <0>;
  229. };
  230. mmc2: mmc@1c11000 {
  231. compatible = "allwinner,sun50i-a64-emmc";
  232. reg = <0x01c11000 0x1000>;
  233. clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
  234. clock-names = "ahb", "mmc";
  235. resets = <&ccu RST_BUS_MMC2>;
  236. reset-names = "ahb";
  237. interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
  238. max-frequency = <150000000>;
  239. status = "disabled";
  240. #address-cells = <1>;
  241. #size-cells = <0>;
  242. };
  243. usb_otg: usb@1c19000 {
  244. compatible = "allwinner,sun8i-a33-musb";
  245. reg = <0x01c19000 0x0400>;
  246. clocks = <&ccu CLK_BUS_OTG>;
  247. resets = <&ccu RST_BUS_OTG>;
  248. interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  249. interrupt-names = "mc";
  250. phys = <&usbphy 0>;
  251. phy-names = "usb";
  252. extcon = <&usbphy 0>;
  253. status = "disabled";
  254. };
  255. usbphy: phy@1c19400 {
  256. compatible = "allwinner,sun50i-a64-usb-phy";
  257. reg = <0x01c19400 0x14>,
  258. <0x01c1a800 0x4>,
  259. <0x01c1b800 0x4>;
  260. reg-names = "phy_ctrl",
  261. "pmu0",
  262. "pmu1";
  263. clocks = <&ccu CLK_USB_PHY0>,
  264. <&ccu CLK_USB_PHY1>;
  265. clock-names = "usb0_phy",
  266. "usb1_phy";
  267. resets = <&ccu RST_USB_PHY0>,
  268. <&ccu RST_USB_PHY1>;
  269. reset-names = "usb0_reset",
  270. "usb1_reset";
  271. status = "disabled";
  272. #phy-cells = <1>;
  273. };
  274. ehci0: usb@1c1a000 {
  275. compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
  276. reg = <0x01c1a000 0x100>;
  277. interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
  278. clocks = <&ccu CLK_BUS_OHCI0>,
  279. <&ccu CLK_BUS_EHCI0>,
  280. <&ccu CLK_USB_OHCI0>;
  281. resets = <&ccu RST_BUS_OHCI0>,
  282. <&ccu RST_BUS_EHCI0>;
  283. phys = <&usbphy 0>;
  284. phy-names = "usb";
  285. status = "disabled";
  286. };
  287. ohci0: usb@1c1a400 {
  288. compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
  289. reg = <0x01c1a400 0x100>;
  290. interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
  291. clocks = <&ccu CLK_BUS_OHCI0>,
  292. <&ccu CLK_USB_OHCI0>;
  293. resets = <&ccu RST_BUS_OHCI0>;
  294. phys = <&usbphy 0>;
  295. phy-names = "usb";
  296. status = "disabled";
  297. };
  298. ehci1: usb@1c1b000 {
  299. compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
  300. reg = <0x01c1b000 0x100>;
  301. interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
  302. clocks = <&ccu CLK_BUS_OHCI1>,
  303. <&ccu CLK_BUS_EHCI1>,
  304. <&ccu CLK_USB_OHCI1>;
  305. resets = <&ccu RST_BUS_OHCI1>,
  306. <&ccu RST_BUS_EHCI1>;
  307. phys = <&usbphy 1>;
  308. phy-names = "usb";
  309. status = "disabled";
  310. };
  311. ohci1: usb@1c1b400 {
  312. compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
  313. reg = <0x01c1b400 0x100>;
  314. interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
  315. clocks = <&ccu CLK_BUS_OHCI1>,
  316. <&ccu CLK_USB_OHCI1>;
  317. resets = <&ccu RST_BUS_OHCI1>;
  318. phys = <&usbphy 1>;
  319. phy-names = "usb";
  320. status = "disabled";
  321. };
  322. ccu: clock@1c20000 {
  323. compatible = "allwinner,sun50i-a64-ccu";
  324. reg = <0x01c20000 0x400>;
  325. clocks = <&osc24M>, <&osc32k>;
  326. clock-names = "hosc", "losc";
  327. #clock-cells = <1>;
  328. #reset-cells = <1>;
  329. };
  330. pio: pinctrl@1c20800 {
  331. compatible = "allwinner,sun50i-a64-pinctrl";
  332. reg = <0x01c20800 0x400>;
  333. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
  334. <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
  335. <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  336. clocks = <&ccu 58>, <&osc24M>, <&rtc 0>;
  337. clock-names = "apb", "hosc", "losc";
  338. gpio-controller;
  339. #gpio-cells = <3>;
  340. interrupt-controller;
  341. #interrupt-cells = <3>;
  342. i2c0_pins: i2c0_pins {
  343. pins = "PH0", "PH1";
  344. function = "i2c0";
  345. };
  346. i2c1_pins: i2c1_pins {
  347. pins = "PH2", "PH3";
  348. function = "i2c1";
  349. };
  350. mmc0_pins: mmc0-pins {
  351. pins = "PF0", "PF1", "PF2", "PF3",
  352. "PF4", "PF5";
  353. function = "mmc0";
  354. drive-strength = <30>;
  355. bias-pull-up;
  356. };
  357. mmc1_pins: mmc1-pins {
  358. pins = "PG0", "PG1", "PG2", "PG3",
  359. "PG4", "PG5";
  360. function = "mmc1";
  361. drive-strength = <30>;
  362. bias-pull-up;
  363. };
  364. mmc2_pins: mmc2-pins {
  365. pins = "PC1", "PC5", "PC6", "PC8", "PC9",
  366. "PC10","PC11", "PC12", "PC13",
  367. "PC14", "PC15", "PC16";
  368. function = "mmc2";
  369. drive-strength = <30>;
  370. bias-pull-up;
  371. };
  372. pwm_pin: pwm_pin {
  373. pins = "PD22";
  374. function = "pwm";
  375. };
  376. rmii_pins: rmii_pins {
  377. pins = "PD10", "PD11", "PD13", "PD14", "PD17",
  378. "PD18", "PD19", "PD20", "PD22", "PD23";
  379. function = "emac";
  380. drive-strength = <40>;
  381. };
  382. rgmii_pins: rgmii_pins {
  383. pins = "PD8", "PD9", "PD10", "PD11", "PD12",
  384. "PD13", "PD15", "PD16", "PD17", "PD18",
  385. "PD19", "PD20", "PD21", "PD22", "PD23";
  386. function = "emac";
  387. drive-strength = <40>;
  388. };
  389. spdif_tx_pin: spdif {
  390. pins = "PH8";
  391. function = "spdif";
  392. };
  393. spi0_pins: spi0 {
  394. pins = "PC0", "PC1", "PC2", "PC3";
  395. function = "spi0";
  396. };
  397. spi1_pins: spi1 {
  398. pins = "PD0", "PD1", "PD2", "PD3";
  399. function = "spi1";
  400. };
  401. uart0_pins_a: uart0 {
  402. pins = "PB8", "PB9";
  403. function = "uart0";
  404. };
  405. uart1_pins: uart1_pins {
  406. pins = "PG6", "PG7";
  407. function = "uart1";
  408. };
  409. uart1_rts_cts_pins: uart1_rts_cts_pins {
  410. pins = "PG8", "PG9";
  411. function = "uart1";
  412. };
  413. uart2_pins: uart2-pins {
  414. pins = "PB0", "PB1";
  415. function = "uart2";
  416. };
  417. uart3_pins: uart3-pins {
  418. pins = "PD0", "PD1";
  419. function = "uart3";
  420. };
  421. uart4_pins: uart4-pins {
  422. pins = "PD2", "PD3";
  423. function = "uart4";
  424. };
  425. uart4_rts_cts_pins: uart4-rts-cts-pins {
  426. pins = "PD4", "PD5";
  427. function = "uart4";
  428. };
  429. };
  430. spdif: spdif@1c21000 {
  431. #sound-dai-cells = <0>;
  432. compatible = "allwinner,sun50i-a64-spdif",
  433. "allwinner,sun8i-h3-spdif";
  434. reg = <0x01c21000 0x400>;
  435. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  436. clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
  437. resets = <&ccu RST_BUS_SPDIF>;
  438. clock-names = "apb", "spdif";
  439. dmas = <&dma 2>;
  440. dma-names = "tx";
  441. pinctrl-names = "default";
  442. pinctrl-0 = <&spdif_tx_pin>;
  443. status = "disabled";
  444. };
  445. i2s0: i2s@1c22000 {
  446. #sound-dai-cells = <0>;
  447. compatible = "allwinner,sun50i-a64-i2s",
  448. "allwinner,sun8i-h3-i2s";
  449. reg = <0x01c22000 0x400>;
  450. interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  451. clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
  452. clock-names = "apb", "mod";
  453. resets = <&ccu RST_BUS_I2S0>;
  454. dma-names = "rx", "tx";
  455. dmas = <&dma 3>, <&dma 3>;
  456. status = "disabled";
  457. };
  458. i2s1: i2s@1c22400 {
  459. #sound-dai-cells = <0>;
  460. compatible = "allwinner,sun50i-a64-i2s",
  461. "allwinner,sun8i-h3-i2s";
  462. reg = <0x01c22400 0x400>;
  463. interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
  464. clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>;
  465. clock-names = "apb", "mod";
  466. resets = <&ccu RST_BUS_I2S1>;
  467. dma-names = "rx", "tx";
  468. dmas = <&dma 4>, <&dma 4>;
  469. status = "disabled";
  470. };
  471. uart0: serial@1c28000 {
  472. compatible = "snps,dw-apb-uart";
  473. reg = <0x01c28000 0x400>;
  474. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  475. reg-shift = <2>;
  476. reg-io-width = <4>;
  477. clocks = <&ccu CLK_BUS_UART0>;
  478. resets = <&ccu RST_BUS_UART0>;
  479. status = "disabled";
  480. };
  481. uart1: serial@1c28400 {
  482. compatible = "snps,dw-apb-uart";
  483. reg = <0x01c28400 0x400>;
  484. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  485. reg-shift = <2>;
  486. reg-io-width = <4>;
  487. clocks = <&ccu CLK_BUS_UART1>;
  488. resets = <&ccu RST_BUS_UART1>;
  489. status = "disabled";
  490. };
  491. uart2: serial@1c28800 {
  492. compatible = "snps,dw-apb-uart";
  493. reg = <0x01c28800 0x400>;
  494. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  495. reg-shift = <2>;
  496. reg-io-width = <4>;
  497. clocks = <&ccu CLK_BUS_UART2>;
  498. resets = <&ccu RST_BUS_UART2>;
  499. status = "disabled";
  500. };
  501. uart3: serial@1c28c00 {
  502. compatible = "snps,dw-apb-uart";
  503. reg = <0x01c28c00 0x400>;
  504. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  505. reg-shift = <2>;
  506. reg-io-width = <4>;
  507. clocks = <&ccu CLK_BUS_UART3>;
  508. resets = <&ccu RST_BUS_UART3>;
  509. status = "disabled";
  510. };
  511. uart4: serial@1c29000 {
  512. compatible = "snps,dw-apb-uart";
  513. reg = <0x01c29000 0x400>;
  514. interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
  515. reg-shift = <2>;
  516. reg-io-width = <4>;
  517. clocks = <&ccu CLK_BUS_UART4>;
  518. resets = <&ccu RST_BUS_UART4>;
  519. status = "disabled";
  520. };
  521. i2c0: i2c@1c2ac00 {
  522. compatible = "allwinner,sun6i-a31-i2c";
  523. reg = <0x01c2ac00 0x400>;
  524. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  525. clocks = <&ccu CLK_BUS_I2C0>;
  526. resets = <&ccu RST_BUS_I2C0>;
  527. status = "disabled";
  528. #address-cells = <1>;
  529. #size-cells = <0>;
  530. };
  531. i2c1: i2c@1c2b000 {
  532. compatible = "allwinner,sun6i-a31-i2c";
  533. reg = <0x01c2b000 0x400>;
  534. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  535. clocks = <&ccu CLK_BUS_I2C1>;
  536. resets = <&ccu RST_BUS_I2C1>;
  537. status = "disabled";
  538. #address-cells = <1>;
  539. #size-cells = <0>;
  540. };
  541. i2c2: i2c@1c2b400 {
  542. compatible = "allwinner,sun6i-a31-i2c";
  543. reg = <0x01c2b400 0x400>;
  544. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  545. clocks = <&ccu CLK_BUS_I2C2>;
  546. resets = <&ccu RST_BUS_I2C2>;
  547. status = "disabled";
  548. #address-cells = <1>;
  549. #size-cells = <0>;
  550. };
  551. spi0: spi@1c68000 {
  552. compatible = "allwinner,sun8i-h3-spi";
  553. reg = <0x01c68000 0x1000>;
  554. interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
  555. clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
  556. clock-names = "ahb", "mod";
  557. dmas = <&dma 23>, <&dma 23>;
  558. dma-names = "rx", "tx";
  559. pinctrl-names = "default";
  560. pinctrl-0 = <&spi0_pins>;
  561. resets = <&ccu RST_BUS_SPI0>;
  562. status = "disabled";
  563. num-cs = <1>;
  564. #address-cells = <1>;
  565. #size-cells = <0>;
  566. };
  567. spi1: spi@1c69000 {
  568. compatible = "allwinner,sun8i-h3-spi";
  569. reg = <0x01c69000 0x1000>;
  570. interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
  571. clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
  572. clock-names = "ahb", "mod";
  573. dmas = <&dma 24>, <&dma 24>;
  574. dma-names = "rx", "tx";
  575. pinctrl-names = "default";
  576. pinctrl-0 = <&spi1_pins>;
  577. resets = <&ccu RST_BUS_SPI1>;
  578. status = "disabled";
  579. num-cs = <1>;
  580. #address-cells = <1>;
  581. #size-cells = <0>;
  582. };
  583. emac: ethernet@1c30000 {
  584. compatible = "allwinner,sun50i-a64-emac";
  585. syscon = <&syscon>;
  586. reg = <0x01c30000 0x10000>;
  587. interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
  588. interrupt-names = "macirq";
  589. resets = <&ccu RST_BUS_EMAC>;
  590. reset-names = "stmmaceth";
  591. clocks = <&ccu CLK_BUS_EMAC>;
  592. clock-names = "stmmaceth";
  593. status = "disabled";
  594. mdio: mdio {
  595. compatible = "snps,dwmac-mdio";
  596. #address-cells = <1>;
  597. #size-cells = <0>;
  598. };
  599. };
  600. gic: interrupt-controller@1c81000 {
  601. compatible = "arm,gic-400";
  602. reg = <0x01c81000 0x1000>,
  603. <0x01c82000 0x2000>,
  604. <0x01c84000 0x2000>,
  605. <0x01c86000 0x2000>;
  606. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  607. interrupt-controller;
  608. #interrupt-cells = <3>;
  609. };
  610. pwm: pwm@1c21400 {
  611. compatible = "allwinner,sun50i-a64-pwm",
  612. "allwinner,sun5i-a13-pwm";
  613. reg = <0x01c21400 0x400>;
  614. clocks = <&osc24M>;
  615. pinctrl-names = "default";
  616. pinctrl-0 = <&pwm_pin>;
  617. #pwm-cells = <3>;
  618. status = "disabled";
  619. };
  620. rtc: rtc@1f00000 {
  621. compatible = "allwinner,sun6i-a31-rtc";
  622. reg = <0x01f00000 0x54>;
  623. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
  624. <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
  625. clock-output-names = "rtc-osc32k", "rtc-osc32k-out";
  626. clocks = <&osc32k>;
  627. #clock-cells = <1>;
  628. };
  629. r_intc: interrupt-controller@1f00c00 {
  630. compatible = "allwinner,sun50i-a64-r-intc",
  631. "allwinner,sun6i-a31-r-intc";
  632. interrupt-controller;
  633. #interrupt-cells = <2>;
  634. reg = <0x01f00c00 0x400>;
  635. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  636. };
  637. r_ccu: clock@1f01400 {
  638. compatible = "allwinner,sun50i-a64-r-ccu";
  639. reg = <0x01f01400 0x100>;
  640. clocks = <&osc24M>, <&osc32k>, <&iosc>,
  641. <&ccu 11>;
  642. clock-names = "hosc", "losc", "iosc", "pll-periph";
  643. #clock-cells = <1>;
  644. #reset-cells = <1>;
  645. };
  646. r_i2c: i2c@1f02400 {
  647. compatible = "allwinner,sun50i-a64-i2c",
  648. "allwinner,sun6i-a31-i2c";
  649. reg = <0x01f02400 0x400>;
  650. interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
  651. clocks = <&r_ccu CLK_APB0_I2C>;
  652. resets = <&r_ccu RST_APB0_I2C>;
  653. status = "disabled";
  654. #address-cells = <1>;
  655. #size-cells = <0>;
  656. };
  657. r_pwm: pwm@1f03800 {
  658. compatible = "allwinner,sun50i-a64-pwm",
  659. "allwinner,sun5i-a13-pwm";
  660. reg = <0x01f03800 0x400>;
  661. clocks = <&osc24M>;
  662. pinctrl-names = "default";
  663. pinctrl-0 = <&r_pwm_pin>;
  664. #pwm-cells = <3>;
  665. status = "disabled";
  666. };
  667. r_pio: pinctrl@1f02c00 {
  668. compatible = "allwinner,sun50i-a64-r-pinctrl";
  669. reg = <0x01f02c00 0x400>;
  670. interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
  671. clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
  672. clock-names = "apb", "hosc", "losc";
  673. gpio-controller;
  674. #gpio-cells = <3>;
  675. interrupt-controller;
  676. #interrupt-cells = <3>;
  677. r_i2c_pins_a: i2c-a {
  678. pins = "PL8", "PL9";
  679. function = "s_i2c";
  680. };
  681. r_pwm_pin: pwm {
  682. pins = "PL10";
  683. function = "s_pwm";
  684. };
  685. r_rsb_pins: rsb {
  686. pins = "PL0", "PL1";
  687. function = "s_rsb";
  688. };
  689. };
  690. r_rsb: rsb@1f03400 {
  691. compatible = "allwinner,sun8i-a23-rsb";
  692. reg = <0x01f03400 0x400>;
  693. interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
  694. clocks = <&r_ccu 6>;
  695. clock-frequency = <3000000>;
  696. resets = <&r_ccu 2>;
  697. pinctrl-names = "default";
  698. pinctrl-0 = <&r_rsb_pins>;
  699. status = "disabled";
  700. #address-cells = <1>;
  701. #size-cells = <0>;
  702. };
  703. wdt0: watchdog@1c20ca0 {
  704. compatible = "allwinner,sun50i-a64-wdt",
  705. "allwinner,sun6i-a31-wdt";
  706. reg = <0x01c20ca0 0x20>;
  707. interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  708. };
  709. };
  710. };