sunxi-h3-h5.dtsi 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  1. /*
  2. * Copyright (C) 2015 Jens Kuske <jenskuske@gmail.com>
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. * a) This file is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This file is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * Or, alternatively,
  20. *
  21. * b) Permission is hereby granted, free of charge, to any person
  22. * obtaining a copy of this software and associated documentation
  23. * files (the "Software"), to deal in the Software without
  24. * restriction, including without limitation the rights to use,
  25. * copy, modify, merge, publish, distribute, sublicense, and/or
  26. * sell copies of the Software, and to permit persons to whom the
  27. * Software is furnished to do so, subject to the following
  28. * conditions:
  29. *
  30. * The above copyright notice and this permission notice shall be
  31. * included in all copies or substantial portions of the Software.
  32. *
  33. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  34. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  35. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  36. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  37. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  38. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  39. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  40. * OTHER DEALINGS IN THE SOFTWARE.
  41. */
  42. #include <dt-bindings/clock/sun8i-de2.h>
  43. #include <dt-bindings/clock/sun8i-h3-ccu.h>
  44. #include <dt-bindings/clock/sun8i-r-ccu.h>
  45. #include <dt-bindings/interrupt-controller/arm-gic.h>
  46. #include <dt-bindings/reset/sun8i-de2.h>
  47. #include <dt-bindings/reset/sun8i-h3-ccu.h>
  48. #include <dt-bindings/reset/sun8i-r-ccu.h>
  49. / {
  50. interrupt-parent = <&gic>;
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. chosen {
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. ranges;
  57. framebuffer-hdmi {
  58. compatible = "allwinner,simple-framebuffer",
  59. "simple-framebuffer";
  60. allwinner,pipeline = "mixer0-lcd0-hdmi";
  61. clocks = <&display_clocks CLK_MIXER0>,
  62. <&ccu CLK_TCON0>, <&ccu CLK_HDMI>;
  63. status = "disabled";
  64. };
  65. framebuffer-tve {
  66. compatible = "allwinner,simple-framebuffer",
  67. "simple-framebuffer";
  68. allwinner,pipeline = "mixer1-lcd1-tve";
  69. clocks = <&display_clocks CLK_MIXER1>,
  70. <&ccu CLK_TVE>;
  71. status = "disabled";
  72. };
  73. };
  74. clocks {
  75. #address-cells = <1>;
  76. #size-cells = <1>;
  77. ranges;
  78. osc24M: osc24M_clk {
  79. #clock-cells = <0>;
  80. compatible = "fixed-clock";
  81. clock-frequency = <24000000>;
  82. clock-output-names = "osc24M";
  83. };
  84. osc32k: osc32k_clk {
  85. #clock-cells = <0>;
  86. compatible = "fixed-clock";
  87. clock-frequency = <32768>;
  88. clock-output-names = "osc32k";
  89. };
  90. iosc: internal-osc-clk {
  91. #clock-cells = <0>;
  92. compatible = "fixed-clock";
  93. clock-frequency = <16000000>;
  94. clock-accuracy = <300000000>;
  95. clock-output-names = "iosc";
  96. };
  97. };
  98. de: display-engine {
  99. compatible = "allwinner,sun8i-h3-display-engine";
  100. allwinner,pipelines = <&mixer0>;
  101. status = "disabled";
  102. };
  103. soc {
  104. compatible = "simple-bus";
  105. #address-cells = <1>;
  106. #size-cells = <1>;
  107. ranges;
  108. display_clocks: clock@1000000 {
  109. /* compatible is in per SoC .dtsi file */
  110. reg = <0x01000000 0x100000>;
  111. clocks = <&ccu CLK_DE>,
  112. <&ccu CLK_BUS_DE>;
  113. clock-names = "mod",
  114. "bus";
  115. resets = <&ccu RST_BUS_DE>;
  116. #clock-cells = <1>;
  117. #reset-cells = <1>;
  118. };
  119. mixer0: mixer@1100000 {
  120. compatible = "allwinner,sun8i-h3-de2-mixer-0";
  121. reg = <0x01100000 0x100000>;
  122. clocks = <&display_clocks CLK_BUS_MIXER0>,
  123. <&display_clocks CLK_MIXER0>;
  124. clock-names = "bus",
  125. "mod";
  126. resets = <&display_clocks RST_MIXER0>;
  127. ports {
  128. #address-cells = <1>;
  129. #size-cells = <0>;
  130. mixer0_out: port@1 {
  131. reg = <1>;
  132. mixer0_out_tcon0: endpoint {
  133. remote-endpoint = <&tcon0_in_mixer0>;
  134. };
  135. };
  136. };
  137. };
  138. syscon: syscon@1c00000 {
  139. compatible = "allwinner,sun8i-h3-system-controller",
  140. "syscon";
  141. reg = <0x01c00000 0x1000>;
  142. };
  143. dma: dma-controller@1c02000 {
  144. compatible = "allwinner,sun8i-h3-dma";
  145. reg = <0x01c02000 0x1000>;
  146. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  147. clocks = <&ccu CLK_BUS_DMA>;
  148. resets = <&ccu RST_BUS_DMA>;
  149. #dma-cells = <1>;
  150. };
  151. tcon0: lcd-controller@1c0c000 {
  152. compatible = "allwinner,sun8i-h3-tcon-tv",
  153. "allwinner,sun8i-a83t-tcon-tv";
  154. reg = <0x01c0c000 0x1000>;
  155. interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
  156. clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>;
  157. clock-names = "ahb", "tcon-ch1";
  158. resets = <&ccu RST_BUS_TCON0>;
  159. reset-names = "lcd";
  160. ports {
  161. #address-cells = <1>;
  162. #size-cells = <0>;
  163. tcon0_in: port@0 {
  164. reg = <0>;
  165. tcon0_in_mixer0: endpoint {
  166. remote-endpoint = <&mixer0_out_tcon0>;
  167. };
  168. };
  169. tcon0_out: port@1 {
  170. #address-cells = <1>;
  171. #size-cells = <0>;
  172. reg = <1>;
  173. tcon0_out_hdmi: endpoint@1 {
  174. reg = <1>;
  175. remote-endpoint = <&hdmi_in_tcon0>;
  176. };
  177. };
  178. };
  179. };
  180. mmc0: mmc@1c0f000 {
  181. /* compatible and clocks are in per SoC .dtsi file */
  182. reg = <0x01c0f000 0x1000>;
  183. pinctrl-names = "default";
  184. pinctrl-0 = <&mmc0_pins>;
  185. resets = <&ccu RST_BUS_MMC0>;
  186. reset-names = "ahb";
  187. interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
  188. status = "disabled";
  189. #address-cells = <1>;
  190. #size-cells = <0>;
  191. };
  192. mmc1: mmc@1c10000 {
  193. /* compatible and clocks are in per SoC .dtsi file */
  194. reg = <0x01c10000 0x1000>;
  195. pinctrl-names = "default";
  196. pinctrl-0 = <&mmc1_pins>;
  197. resets = <&ccu RST_BUS_MMC1>;
  198. reset-names = "ahb";
  199. interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
  200. status = "disabled";
  201. #address-cells = <1>;
  202. #size-cells = <0>;
  203. };
  204. mmc2: mmc@1c11000 {
  205. /* compatible and clocks are in per SoC .dtsi file */
  206. reg = <0x01c11000 0x1000>;
  207. resets = <&ccu RST_BUS_MMC2>;
  208. reset-names = "ahb";
  209. interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
  210. status = "disabled";
  211. #address-cells = <1>;
  212. #size-cells = <0>;
  213. };
  214. usb_otg: usb@1c19000 {
  215. compatible = "allwinner,sun8i-h3-musb";
  216. reg = <0x01c19000 0x400>;
  217. clocks = <&ccu CLK_BUS_OTG>;
  218. resets = <&ccu RST_BUS_OTG>;
  219. interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  220. interrupt-names = "mc";
  221. phys = <&usbphy 0>;
  222. phy-names = "usb";
  223. extcon = <&usbphy 0>;
  224. status = "disabled";
  225. };
  226. usbphy: phy@1c19400 {
  227. compatible = "allwinner,sun8i-h3-usb-phy";
  228. reg = <0x01c19400 0x2c>,
  229. <0x01c1a800 0x4>,
  230. <0x01c1b800 0x4>,
  231. <0x01c1c800 0x4>,
  232. <0x01c1d800 0x4>;
  233. reg-names = "phy_ctrl",
  234. "pmu0",
  235. "pmu1",
  236. "pmu2",
  237. "pmu3";
  238. clocks = <&ccu CLK_USB_PHY0>,
  239. <&ccu CLK_USB_PHY1>,
  240. <&ccu CLK_USB_PHY2>,
  241. <&ccu CLK_USB_PHY3>;
  242. clock-names = "usb0_phy",
  243. "usb1_phy",
  244. "usb2_phy",
  245. "usb3_phy";
  246. resets = <&ccu RST_USB_PHY0>,
  247. <&ccu RST_USB_PHY1>,
  248. <&ccu RST_USB_PHY2>,
  249. <&ccu RST_USB_PHY3>;
  250. reset-names = "usb0_reset",
  251. "usb1_reset",
  252. "usb2_reset",
  253. "usb3_reset";
  254. status = "disabled";
  255. #phy-cells = <1>;
  256. };
  257. ehci0: usb@1c1a000 {
  258. compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  259. reg = <0x01c1a000 0x100>;
  260. interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
  261. clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>;
  262. resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
  263. status = "disabled";
  264. };
  265. ohci0: usb@1c1a400 {
  266. compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  267. reg = <0x01c1a400 0x100>;
  268. interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
  269. clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>,
  270. <&ccu CLK_USB_OHCI0>;
  271. resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
  272. status = "disabled";
  273. };
  274. ehci1: usb@1c1b000 {
  275. compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  276. reg = <0x01c1b000 0x100>;
  277. interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
  278. clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>;
  279. resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>;
  280. phys = <&usbphy 1>;
  281. phy-names = "usb";
  282. status = "disabled";
  283. };
  284. ohci1: usb@1c1b400 {
  285. compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  286. reg = <0x01c1b400 0x100>;
  287. interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
  288. clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>,
  289. <&ccu CLK_USB_OHCI1>;
  290. resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>;
  291. phys = <&usbphy 1>;
  292. phy-names = "usb";
  293. status = "disabled";
  294. };
  295. ehci2: usb@1c1c000 {
  296. compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  297. reg = <0x01c1c000 0x100>;
  298. interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
  299. clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>;
  300. resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>;
  301. phys = <&usbphy 2>;
  302. phy-names = "usb";
  303. status = "disabled";
  304. };
  305. ohci2: usb@1c1c400 {
  306. compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  307. reg = <0x01c1c400 0x100>;
  308. interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
  309. clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>,
  310. <&ccu CLK_USB_OHCI2>;
  311. resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>;
  312. phys = <&usbphy 2>;
  313. phy-names = "usb";
  314. status = "disabled";
  315. };
  316. ehci3: usb@1c1d000 {
  317. compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  318. reg = <0x01c1d000 0x100>;
  319. interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
  320. clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>;
  321. resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>;
  322. phys = <&usbphy 3>;
  323. phy-names = "usb";
  324. status = "disabled";
  325. };
  326. ohci3: usb@1c1d400 {
  327. compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  328. reg = <0x01c1d400 0x100>;
  329. interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
  330. clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>,
  331. <&ccu CLK_USB_OHCI3>;
  332. resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>;
  333. phys = <&usbphy 3>;
  334. phy-names = "usb";
  335. status = "disabled";
  336. };
  337. ccu: clock@1c20000 {
  338. /* compatible is in per SoC .dtsi file */
  339. reg = <0x01c20000 0x400>;
  340. clocks = <&osc24M>, <&osc32k>;
  341. clock-names = "hosc", "losc";
  342. #clock-cells = <1>;
  343. #reset-cells = <1>;
  344. };
  345. pio: pinctrl@1c20800 {
  346. /* compatible is in per SoC .dtsi file */
  347. reg = <0x01c20800 0x400>;
  348. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
  349. <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  350. clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc32k>;
  351. clock-names = "apb", "hosc", "losc";
  352. gpio-controller;
  353. #gpio-cells = <3>;
  354. interrupt-controller;
  355. #interrupt-cells = <3>;
  356. emac_rgmii_pins: emac0 {
  357. pins = "PD0", "PD1", "PD2", "PD3", "PD4",
  358. "PD5", "PD7", "PD8", "PD9", "PD10",
  359. "PD12", "PD13", "PD15", "PD16", "PD17";
  360. function = "emac";
  361. drive-strength = <40>;
  362. };
  363. i2c0_pins: i2c0 {
  364. pins = "PA11", "PA12";
  365. function = "i2c0";
  366. };
  367. i2c1_pins: i2c1 {
  368. pins = "PA18", "PA19";
  369. function = "i2c1";
  370. };
  371. i2c2_pins: i2c2 {
  372. pins = "PE12", "PE13";
  373. function = "i2c2";
  374. };
  375. mmc0_pins: mmc0 {
  376. pins = "PF0", "PF1", "PF2", "PF3",
  377. "PF4", "PF5";
  378. function = "mmc0";
  379. drive-strength = <30>;
  380. bias-pull-up;
  381. };
  382. mmc1_pins: mmc1 {
  383. pins = "PG0", "PG1", "PG2", "PG3",
  384. "PG4", "PG5";
  385. function = "mmc1";
  386. drive-strength = <30>;
  387. bias-pull-up;
  388. };
  389. mmc2_8bit_pins: mmc2_8bit {
  390. pins = "PC5", "PC6", "PC8",
  391. "PC9", "PC10", "PC11",
  392. "PC12", "PC13", "PC14",
  393. "PC15", "PC16";
  394. function = "mmc2";
  395. drive-strength = <30>;
  396. bias-pull-up;
  397. };
  398. spdif_tx_pins_a: spdif {
  399. pins = "PA17";
  400. function = "spdif";
  401. };
  402. spi0_pins: spi0 {
  403. pins = "PC0", "PC1", "PC2", "PC3";
  404. function = "spi0";
  405. };
  406. spi1_pins: spi1 {
  407. pins = "PA15", "PA16", "PA14", "PA13";
  408. function = "spi1";
  409. };
  410. uart0_pins_a: uart0 {
  411. pins = "PA4", "PA5";
  412. function = "uart0";
  413. };
  414. uart1_pins: uart1 {
  415. pins = "PG6", "PG7";
  416. function = "uart1";
  417. };
  418. uart1_rts_cts_pins: uart1_rts_cts {
  419. pins = "PG8", "PG9";
  420. function = "uart1";
  421. };
  422. uart2_pins: uart2 {
  423. pins = "PA0", "PA1";
  424. function = "uart2";
  425. };
  426. uart3_pins: uart3 {
  427. pins = "PA13", "PA14";
  428. function = "uart3";
  429. };
  430. uart3_rts_cts_pins: uart3_rts_cts {
  431. pins = "PA15", "PA16";
  432. function = "uart3";
  433. };
  434. };
  435. timer@1c20c00 {
  436. compatible = "allwinner,sun4i-a10-timer";
  437. reg = <0x01c20c00 0xa0>;
  438. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
  439. <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  440. clocks = <&osc24M>;
  441. };
  442. emac: ethernet@1c30000 {
  443. compatible = "allwinner,sun8i-h3-emac";
  444. syscon = <&syscon>;
  445. reg = <0x01c30000 0x10000>;
  446. interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
  447. interrupt-names = "macirq";
  448. resets = <&ccu RST_BUS_EMAC>;
  449. reset-names = "stmmaceth";
  450. clocks = <&ccu CLK_BUS_EMAC>;
  451. clock-names = "stmmaceth";
  452. status = "disabled";
  453. mdio: mdio {
  454. #address-cells = <1>;
  455. #size-cells = <0>;
  456. compatible = "snps,dwmac-mdio";
  457. };
  458. mdio-mux {
  459. compatible = "allwinner,sun8i-h3-mdio-mux";
  460. #address-cells = <1>;
  461. #size-cells = <0>;
  462. mdio-parent-bus = <&mdio>;
  463. /* Only one MDIO is usable at the time */
  464. internal_mdio: mdio@1 {
  465. compatible = "allwinner,sun8i-h3-mdio-internal";
  466. reg = <1>;
  467. #address-cells = <1>;
  468. #size-cells = <0>;
  469. int_mii_phy: ethernet-phy@1 {
  470. compatible = "ethernet-phy-ieee802.3-c22";
  471. reg = <1>;
  472. clocks = <&ccu CLK_BUS_EPHY>;
  473. resets = <&ccu RST_BUS_EPHY>;
  474. };
  475. };
  476. external_mdio: mdio@2 {
  477. reg = <2>;
  478. #address-cells = <1>;
  479. #size-cells = <0>;
  480. };
  481. };
  482. };
  483. spi0: spi@1c68000 {
  484. compatible = "allwinner,sun8i-h3-spi";
  485. reg = <0x01c68000 0x1000>;
  486. interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
  487. clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
  488. clock-names = "ahb", "mod";
  489. dmas = <&dma 23>, <&dma 23>;
  490. dma-names = "rx", "tx";
  491. pinctrl-names = "default";
  492. pinctrl-0 = <&spi0_pins>;
  493. resets = <&ccu RST_BUS_SPI0>;
  494. status = "disabled";
  495. #address-cells = <1>;
  496. #size-cells = <0>;
  497. };
  498. spi1: spi@1c69000 {
  499. compatible = "allwinner,sun8i-h3-spi";
  500. reg = <0x01c69000 0x1000>;
  501. interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
  502. clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
  503. clock-names = "ahb", "mod";
  504. dmas = <&dma 24>, <&dma 24>;
  505. dma-names = "rx", "tx";
  506. pinctrl-names = "default";
  507. pinctrl-0 = <&spi1_pins>;
  508. resets = <&ccu RST_BUS_SPI1>;
  509. status = "disabled";
  510. #address-cells = <1>;
  511. #size-cells = <0>;
  512. };
  513. wdt0: watchdog@1c20ca0 {
  514. compatible = "allwinner,sun6i-a31-wdt";
  515. reg = <0x01c20ca0 0x20>;
  516. interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  517. };
  518. spdif: spdif@1c21000 {
  519. #sound-dai-cells = <0>;
  520. compatible = "allwinner,sun8i-h3-spdif";
  521. reg = <0x01c21000 0x400>;
  522. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  523. clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
  524. resets = <&ccu RST_BUS_SPDIF>;
  525. clock-names = "apb", "spdif";
  526. dmas = <&dma 2>;
  527. dma-names = "tx";
  528. status = "disabled";
  529. };
  530. pwm: pwm@1c21400 {
  531. compatible = "allwinner,sun8i-h3-pwm";
  532. reg = <0x01c21400 0x8>;
  533. clocks = <&osc24M>;
  534. #pwm-cells = <3>;
  535. status = "disabled";
  536. };
  537. i2s0: i2s@1c22000 {
  538. #sound-dai-cells = <0>;
  539. compatible = "allwinner,sun8i-h3-i2s";
  540. reg = <0x01c22000 0x400>;
  541. interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  542. clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
  543. clock-names = "apb", "mod";
  544. dmas = <&dma 3>, <&dma 3>;
  545. resets = <&ccu RST_BUS_I2S0>;
  546. dma-names = "rx", "tx";
  547. status = "disabled";
  548. };
  549. i2s1: i2s@1c22400 {
  550. #sound-dai-cells = <0>;
  551. compatible = "allwinner,sun8i-h3-i2s";
  552. reg = <0x01c22400 0x400>;
  553. interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
  554. clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>;
  555. clock-names = "apb", "mod";
  556. dmas = <&dma 4>, <&dma 4>;
  557. resets = <&ccu RST_BUS_I2S1>;
  558. dma-names = "rx", "tx";
  559. status = "disabled";
  560. };
  561. codec: codec@1c22c00 {
  562. #sound-dai-cells = <0>;
  563. compatible = "allwinner,sun8i-h3-codec";
  564. reg = <0x01c22c00 0x400>;
  565. interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  566. clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
  567. clock-names = "apb", "codec";
  568. resets = <&ccu RST_BUS_CODEC>;
  569. dmas = <&dma 15>, <&dma 15>;
  570. dma-names = "rx", "tx";
  571. allwinner,codec-analog-controls = <&codec_analog>;
  572. status = "disabled";
  573. };
  574. uart0: serial@1c28000 {
  575. compatible = "snps,dw-apb-uart";
  576. reg = <0x01c28000 0x400>;
  577. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  578. reg-shift = <2>;
  579. reg-io-width = <4>;
  580. clocks = <&ccu CLK_BUS_UART0>;
  581. resets = <&ccu RST_BUS_UART0>;
  582. dmas = <&dma 6>, <&dma 6>;
  583. dma-names = "rx", "tx";
  584. status = "disabled";
  585. };
  586. uart1: serial@1c28400 {
  587. compatible = "snps,dw-apb-uart";
  588. reg = <0x01c28400 0x400>;
  589. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  590. reg-shift = <2>;
  591. reg-io-width = <4>;
  592. clocks = <&ccu CLK_BUS_UART1>;
  593. resets = <&ccu RST_BUS_UART1>;
  594. dmas = <&dma 7>, <&dma 7>;
  595. dma-names = "rx", "tx";
  596. status = "disabled";
  597. };
  598. uart2: serial@1c28800 {
  599. compatible = "snps,dw-apb-uart";
  600. reg = <0x01c28800 0x400>;
  601. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  602. reg-shift = <2>;
  603. reg-io-width = <4>;
  604. clocks = <&ccu CLK_BUS_UART2>;
  605. resets = <&ccu RST_BUS_UART2>;
  606. dmas = <&dma 8>, <&dma 8>;
  607. dma-names = "rx", "tx";
  608. status = "disabled";
  609. };
  610. uart3: serial@1c28c00 {
  611. compatible = "snps,dw-apb-uart";
  612. reg = <0x01c28c00 0x400>;
  613. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  614. reg-shift = <2>;
  615. reg-io-width = <4>;
  616. clocks = <&ccu CLK_BUS_UART3>;
  617. resets = <&ccu RST_BUS_UART3>;
  618. dmas = <&dma 9>, <&dma 9>;
  619. dma-names = "rx", "tx";
  620. status = "disabled";
  621. };
  622. i2c0: i2c@1c2ac00 {
  623. compatible = "allwinner,sun6i-a31-i2c";
  624. reg = <0x01c2ac00 0x400>;
  625. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  626. clocks = <&ccu CLK_BUS_I2C0>;
  627. resets = <&ccu RST_BUS_I2C0>;
  628. pinctrl-names = "default";
  629. pinctrl-0 = <&i2c0_pins>;
  630. status = "disabled";
  631. #address-cells = <1>;
  632. #size-cells = <0>;
  633. };
  634. i2c1: i2c@1c2b000 {
  635. compatible = "allwinner,sun6i-a31-i2c";
  636. reg = <0x01c2b000 0x400>;
  637. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  638. clocks = <&ccu CLK_BUS_I2C1>;
  639. resets = <&ccu RST_BUS_I2C1>;
  640. pinctrl-names = "default";
  641. pinctrl-0 = <&i2c1_pins>;
  642. status = "disabled";
  643. #address-cells = <1>;
  644. #size-cells = <0>;
  645. };
  646. i2c2: i2c@1c2b400 {
  647. compatible = "allwinner,sun6i-a31-i2c";
  648. reg = <0x01c2b400 0x400>;
  649. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  650. clocks = <&ccu CLK_BUS_I2C2>;
  651. resets = <&ccu RST_BUS_I2C2>;
  652. pinctrl-names = "default";
  653. pinctrl-0 = <&i2c2_pins>;
  654. status = "disabled";
  655. #address-cells = <1>;
  656. #size-cells = <0>;
  657. };
  658. gic: interrupt-controller@1c81000 {
  659. compatible = "arm,gic-400";
  660. reg = <0x01c81000 0x1000>,
  661. <0x01c82000 0x2000>,
  662. <0x01c84000 0x2000>,
  663. <0x01c86000 0x2000>;
  664. interrupt-controller;
  665. #interrupt-cells = <3>;
  666. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  667. };
  668. hdmi: hdmi@1ee0000 {
  669. compatible = "allwinner,sun8i-h3-dw-hdmi",
  670. "allwinner,sun8i-a83t-dw-hdmi";
  671. reg = <0x01ee0000 0x10000>;
  672. reg-io-width = <1>;
  673. interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
  674. clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
  675. <&ccu CLK_HDMI>;
  676. clock-names = "iahb", "isfr", "tmds";
  677. resets = <&ccu RST_BUS_HDMI1>;
  678. reset-names = "ctrl";
  679. phys = <&hdmi_phy>;
  680. phy-names = "hdmi-phy";
  681. status = "disabled";
  682. ports {
  683. #address-cells = <1>;
  684. #size-cells = <0>;
  685. hdmi_in: port@0 {
  686. reg = <0>;
  687. hdmi_in_tcon0: endpoint {
  688. remote-endpoint = <&tcon0_out_hdmi>;
  689. };
  690. };
  691. hdmi_out: port@1 {
  692. reg = <1>;
  693. };
  694. };
  695. };
  696. hdmi_phy: hdmi-phy@1ef0000 {
  697. compatible = "allwinner,sun8i-h3-hdmi-phy";
  698. reg = <0x01ef0000 0x10000>;
  699. clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
  700. <&ccu 6>;
  701. clock-names = "bus", "mod", "pll-0";
  702. resets = <&ccu RST_BUS_HDMI0>;
  703. reset-names = "phy";
  704. #phy-cells = <0>;
  705. };
  706. rtc: rtc@1f00000 {
  707. compatible = "allwinner,sun6i-a31-rtc";
  708. reg = <0x01f00000 0x54>;
  709. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
  710. <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
  711. };
  712. r_ccu: clock@1f01400 {
  713. compatible = "allwinner,sun8i-h3-r-ccu";
  714. reg = <0x01f01400 0x100>;
  715. clocks = <&osc24M>, <&osc32k>, <&iosc>,
  716. <&ccu 9>;
  717. clock-names = "hosc", "losc", "iosc", "pll-periph";
  718. #clock-cells = <1>;
  719. #reset-cells = <1>;
  720. };
  721. codec_analog: codec-analog@1f015c0 {
  722. compatible = "allwinner,sun8i-h3-codec-analog";
  723. reg = <0x01f015c0 0x4>;
  724. };
  725. ir: ir@1f02000 {
  726. compatible = "allwinner,sun5i-a13-ir";
  727. clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>;
  728. clock-names = "apb", "ir";
  729. resets = <&r_ccu RST_APB0_IR>;
  730. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  731. reg = <0x01f02000 0x40>;
  732. status = "disabled";
  733. };
  734. r_i2c: i2c@1f02400 {
  735. compatible = "allwinner,sun6i-a31-i2c";
  736. reg = <0x01f02400 0x400>;
  737. interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
  738. pinctrl-names = "default";
  739. pinctrl-0 = <&r_i2c_pins>;
  740. clocks = <&r_ccu CLK_APB0_I2C>;
  741. resets = <&r_ccu RST_APB0_I2C>;
  742. status = "disabled";
  743. #address-cells = <1>;
  744. #size-cells = <0>;
  745. };
  746. r_pio: pinctrl@1f02c00 {
  747. compatible = "allwinner,sun8i-h3-r-pinctrl";
  748. reg = <0x01f02c00 0x400>;
  749. interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
  750. clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
  751. clock-names = "apb", "hosc", "losc";
  752. gpio-controller;
  753. #gpio-cells = <3>;
  754. interrupt-controller;
  755. #interrupt-cells = <3>;
  756. ir_pins_a: ir {
  757. pins = "PL11";
  758. function = "s_cir_rx";
  759. };
  760. r_i2c_pins: r-i2c {
  761. pins = "PL0", "PL1";
  762. function = "s_i2c";
  763. };
  764. };
  765. };
  766. };