sun50i-a64.dtsi 24 KB

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