sun50i-a64.dtsi 20 KB

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