sunxi-h3-h5.dtsi 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975
  1. /*
  2. * Copyright (C) 2015 Jens Kuske <[email protected]>
  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/sun6i-rtc.h>
  43. #include <dt-bindings/clock/sun8i-de2.h>
  44. #include <dt-bindings/clock/sun8i-h3-ccu.h>
  45. #include <dt-bindings/clock/sun8i-r-ccu.h>
  46. #include <dt-bindings/interrupt-controller/arm-gic.h>
  47. #include <dt-bindings/reset/sun8i-de2.h>
  48. #include <dt-bindings/reset/sun8i-h3-ccu.h>
  49. #include <dt-bindings/reset/sun8i-r-ccu.h>
  50. / {
  51. interrupt-parent = <&gic>;
  52. #address-cells = <1>;
  53. #size-cells = <1>;
  54. chosen {
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. ranges;
  58. framebuffer-hdmi {
  59. compatible = "allwinner,simple-framebuffer",
  60. "simple-framebuffer";
  61. allwinner,pipeline = "mixer0-lcd0-hdmi";
  62. clocks = <&display_clocks CLK_MIXER0>,
  63. <&ccu CLK_TCON0>, <&ccu CLK_HDMI>;
  64. status = "disabled";
  65. };
  66. framebuffer-tve {
  67. compatible = "allwinner,simple-framebuffer",
  68. "simple-framebuffer";
  69. allwinner,pipeline = "mixer1-lcd1-tve";
  70. clocks = <&display_clocks CLK_MIXER1>,
  71. <&ccu CLK_TVE>;
  72. status = "disabled";
  73. };
  74. };
  75. clocks {
  76. #address-cells = <1>;
  77. #size-cells = <1>;
  78. ranges;
  79. osc24M: osc24M_clk {
  80. #clock-cells = <0>;
  81. compatible = "fixed-clock";
  82. clock-frequency = <24000000>;
  83. clock-accuracy = <50000>;
  84. clock-output-names = "osc24M";
  85. };
  86. osc32k: osc32k_clk {
  87. #clock-cells = <0>;
  88. compatible = "fixed-clock";
  89. clock-frequency = <32768>;
  90. clock-accuracy = <50000>;
  91. clock-output-names = "ext_osc32k";
  92. };
  93. };
  94. de: display-engine {
  95. compatible = "allwinner,sun8i-h3-display-engine";
  96. allwinner,pipelines = <&mixer0>;
  97. status = "disabled";
  98. };
  99. soc {
  100. compatible = "simple-bus";
  101. #address-cells = <1>;
  102. #size-cells = <1>;
  103. dma-ranges;
  104. ranges;
  105. display_clocks: clock@1000000 {
  106. /* compatible is in per SoC .dtsi file */
  107. reg = <0x01000000 0x10000>;
  108. clocks = <&ccu CLK_BUS_DE>,
  109. <&ccu CLK_DE>;
  110. clock-names = "bus",
  111. "mod";
  112. resets = <&ccu RST_BUS_DE>;
  113. #clock-cells = <1>;
  114. #reset-cells = <1>;
  115. };
  116. mixer0: mixer@1100000 {
  117. compatible = "allwinner,sun8i-h3-de2-mixer-0";
  118. reg = <0x01100000 0x100000>;
  119. clocks = <&display_clocks CLK_BUS_MIXER0>,
  120. <&display_clocks CLK_MIXER0>;
  121. clock-names = "bus",
  122. "mod";
  123. resets = <&display_clocks RST_MIXER0>;
  124. ports {
  125. #address-cells = <1>;
  126. #size-cells = <0>;
  127. mixer0_out: port@1 {
  128. reg = <1>;
  129. mixer0_out_tcon0: endpoint {
  130. remote-endpoint = <&tcon0_in_mixer0>;
  131. };
  132. };
  133. };
  134. };
  135. dma: dma-controller@1c02000 {
  136. compatible = "allwinner,sun8i-h3-dma";
  137. reg = <0x01c02000 0x1000>;
  138. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  139. clocks = <&ccu CLK_BUS_DMA>;
  140. resets = <&ccu RST_BUS_DMA>;
  141. #dma-cells = <1>;
  142. };
  143. tcon0: lcd-controller@1c0c000 {
  144. compatible = "allwinner,sun8i-h3-tcon-tv",
  145. "allwinner,sun8i-a83t-tcon-tv";
  146. reg = <0x01c0c000 0x1000>;
  147. interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
  148. clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>;
  149. clock-names = "ahb", "tcon-ch1";
  150. resets = <&ccu RST_BUS_TCON0>;
  151. reset-names = "lcd";
  152. ports {
  153. #address-cells = <1>;
  154. #size-cells = <0>;
  155. tcon0_in: port@0 {
  156. reg = <0>;
  157. tcon0_in_mixer0: endpoint {
  158. remote-endpoint = <&mixer0_out_tcon0>;
  159. };
  160. };
  161. tcon0_out: port@1 {
  162. #address-cells = <1>;
  163. #size-cells = <0>;
  164. reg = <1>;
  165. tcon0_out_hdmi: endpoint@1 {
  166. reg = <1>;
  167. remote-endpoint = <&hdmi_in_tcon0>;
  168. };
  169. };
  170. };
  171. };
  172. mmc0: mmc@1c0f000 {
  173. /* compatible and clocks are in per SoC .dtsi file */
  174. reg = <0x01c0f000 0x1000>;
  175. pinctrl-names = "default";
  176. pinctrl-0 = <&mmc0_pins>;
  177. resets = <&ccu RST_BUS_MMC0>;
  178. reset-names = "ahb";
  179. interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
  180. status = "disabled";
  181. #address-cells = <1>;
  182. #size-cells = <0>;
  183. };
  184. mmc1: mmc@1c10000 {
  185. /* compatible and clocks are in per SoC .dtsi file */
  186. reg = <0x01c10000 0x1000>;
  187. pinctrl-names = "default";
  188. pinctrl-0 = <&mmc1_pins>;
  189. resets = <&ccu RST_BUS_MMC1>;
  190. reset-names = "ahb";
  191. interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
  192. status = "disabled";
  193. #address-cells = <1>;
  194. #size-cells = <0>;
  195. };
  196. mmc2: mmc@1c11000 {
  197. /* compatible and clocks are in per SoC .dtsi file */
  198. reg = <0x01c11000 0x1000>;
  199. resets = <&ccu RST_BUS_MMC2>;
  200. reset-names = "ahb";
  201. interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
  202. status = "disabled";
  203. #address-cells = <1>;
  204. #size-cells = <0>;
  205. };
  206. sid: eeprom@1c14000 {
  207. /* compatible is in per SoC .dtsi file */
  208. reg = <0x1c14000 0x400>;
  209. #address-cells = <1>;
  210. #size-cells = <1>;
  211. ths_calibration: thermal-sensor-calibration@34 {
  212. reg = <0x34 4>;
  213. };
  214. };
  215. msgbox: mailbox@1c17000 {
  216. compatible = "allwinner,sun8i-h3-msgbox",
  217. "allwinner,sun6i-a31-msgbox";
  218. reg = <0x01c17000 0x1000>;
  219. clocks = <&ccu CLK_BUS_MSGBOX>;
  220. resets = <&ccu RST_BUS_MSGBOX>;
  221. interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
  222. #mbox-cells = <1>;
  223. };
  224. usb_otg: usb@1c19000 {
  225. compatible = "allwinner,sun8i-h3-musb";
  226. reg = <0x01c19000 0x400>;
  227. clocks = <&ccu CLK_BUS_OTG>;
  228. resets = <&ccu RST_BUS_OTG>;
  229. interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  230. interrupt-names = "mc";
  231. phys = <&usbphy 0>;
  232. phy-names = "usb";
  233. extcon = <&usbphy 0>;
  234. dr_mode = "otg";
  235. status = "disabled";
  236. };
  237. usbphy: phy@1c19400 {
  238. compatible = "allwinner,sun8i-h3-usb-phy";
  239. reg = <0x01c19400 0x2c>,
  240. <0x01c1a800 0x4>,
  241. <0x01c1b800 0x4>,
  242. <0x01c1c800 0x4>,
  243. <0x01c1d800 0x4>;
  244. reg-names = "phy_ctrl",
  245. "pmu0",
  246. "pmu1",
  247. "pmu2",
  248. "pmu3";
  249. clocks = <&ccu CLK_USB_PHY0>,
  250. <&ccu CLK_USB_PHY1>,
  251. <&ccu CLK_USB_PHY2>,
  252. <&ccu CLK_USB_PHY3>;
  253. clock-names = "usb0_phy",
  254. "usb1_phy",
  255. "usb2_phy",
  256. "usb3_phy";
  257. resets = <&ccu RST_USB_PHY0>,
  258. <&ccu RST_USB_PHY1>,
  259. <&ccu RST_USB_PHY2>,
  260. <&ccu RST_USB_PHY3>;
  261. reset-names = "usb0_reset",
  262. "usb1_reset",
  263. "usb2_reset",
  264. "usb3_reset";
  265. status = "disabled";
  266. #phy-cells = <1>;
  267. };
  268. ehci0: usb@1c1a000 {
  269. compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  270. reg = <0x01c1a000 0x100>;
  271. interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
  272. clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>;
  273. resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
  274. status = "disabled";
  275. };
  276. ohci0: usb@1c1a400 {
  277. compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  278. reg = <0x01c1a400 0x100>;
  279. interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
  280. clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>,
  281. <&ccu CLK_USB_OHCI0>;
  282. resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
  283. status = "disabled";
  284. };
  285. ehci1: usb@1c1b000 {
  286. compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  287. reg = <0x01c1b000 0x100>;
  288. interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
  289. clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>;
  290. resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>;
  291. phys = <&usbphy 1>;
  292. phy-names = "usb";
  293. status = "disabled";
  294. };
  295. ohci1: usb@1c1b400 {
  296. compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  297. reg = <0x01c1b400 0x100>;
  298. interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
  299. clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>,
  300. <&ccu CLK_USB_OHCI1>;
  301. resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>;
  302. phys = <&usbphy 1>;
  303. phy-names = "usb";
  304. status = "disabled";
  305. };
  306. ehci2: usb@1c1c000 {
  307. compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  308. reg = <0x01c1c000 0x100>;
  309. interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
  310. clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>;
  311. resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>;
  312. phys = <&usbphy 2>;
  313. phy-names = "usb";
  314. status = "disabled";
  315. };
  316. ohci2: usb@1c1c400 {
  317. compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  318. reg = <0x01c1c400 0x100>;
  319. interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
  320. clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>,
  321. <&ccu CLK_USB_OHCI2>;
  322. resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>;
  323. phys = <&usbphy 2>;
  324. phy-names = "usb";
  325. status = "disabled";
  326. };
  327. ehci3: usb@1c1d000 {
  328. compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  329. reg = <0x01c1d000 0x100>;
  330. interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
  331. clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>;
  332. resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>;
  333. phys = <&usbphy 3>;
  334. phy-names = "usb";
  335. status = "disabled";
  336. };
  337. ohci3: usb@1c1d400 {
  338. compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  339. reg = <0x01c1d400 0x100>;
  340. interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
  341. clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>,
  342. <&ccu CLK_USB_OHCI3>;
  343. resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>;
  344. phys = <&usbphy 3>;
  345. phy-names = "usb";
  346. status = "disabled";
  347. };
  348. ccu: clock@1c20000 {
  349. /* compatible is in per SoC .dtsi file */
  350. reg = <0x01c20000 0x400>;
  351. clocks = <&osc24M>, <&rtc CLK_OSC32K>;
  352. clock-names = "hosc", "losc";
  353. #clock-cells = <1>;
  354. #reset-cells = <1>;
  355. };
  356. pio: pinctrl@1c20800 {
  357. /* compatible is in per SoC .dtsi file */
  358. reg = <0x01c20800 0x400>;
  359. interrupt-parent = <&r_intc>;
  360. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
  361. <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  362. clocks = <&ccu CLK_BUS_PIO>, <&osc24M>,
  363. <&rtc CLK_OSC32K>;
  364. clock-names = "apb", "hosc", "losc";
  365. gpio-controller;
  366. #gpio-cells = <3>;
  367. interrupt-controller;
  368. #interrupt-cells = <3>;
  369. csi_pins: csi-pins {
  370. pins = "PE0", "PE2", "PE3", "PE4", "PE5",
  371. "PE6", "PE7", "PE8", "PE9", "PE10",
  372. "PE11";
  373. function = "csi";
  374. };
  375. emac_rgmii_pins: emac-rgmii-pins {
  376. pins = "PD0", "PD1", "PD2", "PD3", "PD4",
  377. "PD5", "PD7", "PD8", "PD9", "PD10",
  378. "PD12", "PD13", "PD15", "PD16", "PD17";
  379. function = "emac";
  380. drive-strength = <40>;
  381. };
  382. i2c0_pins: i2c0-pins {
  383. pins = "PA11", "PA12";
  384. function = "i2c0";
  385. };
  386. i2c1_pins: i2c1-pins {
  387. pins = "PA18", "PA19";
  388. function = "i2c1";
  389. };
  390. i2c2_pins: i2c2-pins {
  391. pins = "PE12", "PE13";
  392. function = "i2c2";
  393. };
  394. mmc0_pins: mmc0-pins {
  395. pins = "PF0", "PF1", "PF2", "PF3",
  396. "PF4", "PF5";
  397. function = "mmc0";
  398. drive-strength = <30>;
  399. bias-pull-up;
  400. };
  401. mmc1_pins: mmc1-pins {
  402. pins = "PG0", "PG1", "PG2", "PG3",
  403. "PG4", "PG5";
  404. function = "mmc1";
  405. drive-strength = <30>;
  406. bias-pull-up;
  407. };
  408. mmc2_8bit_pins: mmc2-8bit-pins {
  409. pins = "PC5", "PC6", "PC8",
  410. "PC9", "PC10", "PC11",
  411. "PC12", "PC13", "PC14",
  412. "PC15", "PC16";
  413. function = "mmc2";
  414. drive-strength = <30>;
  415. bias-pull-up;
  416. };
  417. spdif_tx_pin: spdif-tx-pin {
  418. pins = "PA17";
  419. function = "spdif";
  420. };
  421. spi0_pins: spi0-pins {
  422. pins = "PC0", "PC1", "PC2", "PC3";
  423. function = "spi0";
  424. };
  425. spi1_pins: spi1-pins {
  426. pins = "PA15", "PA16", "PA14", "PA13";
  427. function = "spi1";
  428. };
  429. uart0_pa_pins: uart0-pa-pins {
  430. pins = "PA4", "PA5";
  431. function = "uart0";
  432. };
  433. uart1_pins: uart1-pins {
  434. pins = "PG6", "PG7";
  435. function = "uart1";
  436. };
  437. uart1_rts_cts_pins: uart1-rts-cts-pins {
  438. pins = "PG8", "PG9";
  439. function = "uart1";
  440. };
  441. uart2_pins: uart2-pins {
  442. pins = "PA0", "PA1";
  443. function = "uart2";
  444. };
  445. uart2_rts_cts_pins: uart2-rts-cts-pins {
  446. pins = "PA2", "PA3";
  447. function = "uart2";
  448. };
  449. uart3_pins: uart3-pins {
  450. pins = "PA13", "PA14";
  451. function = "uart3";
  452. };
  453. uart3_rts_cts_pins: uart3-rts-cts-pins {
  454. pins = "PA15", "PA16";
  455. function = "uart3";
  456. };
  457. };
  458. timer@1c20c00 {
  459. compatible = "allwinner,sun8i-a23-timer";
  460. reg = <0x01c20c00 0xa0>;
  461. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
  462. <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  463. clocks = <&osc24M>;
  464. };
  465. emac: ethernet@1c30000 {
  466. compatible = "allwinner,sun8i-h3-emac";
  467. syscon = <&syscon>;
  468. reg = <0x01c30000 0x10000>;
  469. interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
  470. interrupt-names = "macirq";
  471. resets = <&ccu RST_BUS_EMAC>;
  472. reset-names = "stmmaceth";
  473. clocks = <&ccu CLK_BUS_EMAC>;
  474. clock-names = "stmmaceth";
  475. status = "disabled";
  476. mdio: mdio {
  477. #address-cells = <1>;
  478. #size-cells = <0>;
  479. compatible = "snps,dwmac-mdio";
  480. };
  481. mdio-mux {
  482. compatible = "allwinner,sun8i-h3-mdio-mux";
  483. #address-cells = <1>;
  484. #size-cells = <0>;
  485. mdio-parent-bus = <&mdio>;
  486. /* Only one MDIO is usable at the time */
  487. internal_mdio: mdio@1 {
  488. compatible = "allwinner,sun8i-h3-mdio-internal";
  489. reg = <1>;
  490. #address-cells = <1>;
  491. #size-cells = <0>;
  492. int_mii_phy: ethernet-phy@1 {
  493. compatible = "ethernet-phy-ieee802.3-c22";
  494. reg = <1>;
  495. clocks = <&ccu CLK_BUS_EPHY>;
  496. resets = <&ccu RST_BUS_EPHY>;
  497. };
  498. };
  499. external_mdio: mdio@2 {
  500. reg = <2>;
  501. #address-cells = <1>;
  502. #size-cells = <0>;
  503. };
  504. };
  505. };
  506. mbus: dram-controller@1c62000 {
  507. /* compatible is in per SoC .dtsi file */
  508. reg = <0x01c62000 0x1000>,
  509. <0x01c63000 0x1000>;
  510. reg-names = "mbus", "dram";
  511. clocks = <&ccu CLK_MBUS>,
  512. <&ccu CLK_DRAM>,
  513. <&ccu CLK_BUS_DRAM>;
  514. clock-names = "mbus", "dram", "bus";
  515. #address-cells = <1>;
  516. #size-cells = <1>;
  517. dma-ranges = <0x00000000 0x40000000 0xc0000000>;
  518. #interconnect-cells = <1>;
  519. };
  520. spi0: spi@1c68000 {
  521. compatible = "allwinner,sun8i-h3-spi";
  522. reg = <0x01c68000 0x1000>;
  523. interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
  524. clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
  525. clock-names = "ahb", "mod";
  526. dmas = <&dma 23>, <&dma 23>;
  527. dma-names = "rx", "tx";
  528. pinctrl-names = "default";
  529. pinctrl-0 = <&spi0_pins>;
  530. resets = <&ccu RST_BUS_SPI0>;
  531. status = "disabled";
  532. #address-cells = <1>;
  533. #size-cells = <0>;
  534. };
  535. spi1: spi@1c69000 {
  536. compatible = "allwinner,sun8i-h3-spi";
  537. reg = <0x01c69000 0x1000>;
  538. interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
  539. clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
  540. clock-names = "ahb", "mod";
  541. dmas = <&dma 24>, <&dma 24>;
  542. dma-names = "rx", "tx";
  543. pinctrl-names = "default";
  544. pinctrl-0 = <&spi1_pins>;
  545. resets = <&ccu RST_BUS_SPI1>;
  546. status = "disabled";
  547. #address-cells = <1>;
  548. #size-cells = <0>;
  549. };
  550. wdt0: watchdog@1c20ca0 {
  551. compatible = "allwinner,sun6i-a31-wdt";
  552. reg = <0x01c20ca0 0x20>;
  553. interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  554. clocks = <&osc24M>;
  555. };
  556. spdif: spdif@1c21000 {
  557. #sound-dai-cells = <0>;
  558. compatible = "allwinner,sun8i-h3-spdif";
  559. reg = <0x01c21000 0x400>;
  560. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  561. clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
  562. resets = <&ccu RST_BUS_SPDIF>;
  563. clock-names = "apb", "spdif";
  564. dmas = <&dma 2>;
  565. dma-names = "tx";
  566. status = "disabled";
  567. };
  568. pwm: pwm@1c21400 {
  569. compatible = "allwinner,sun8i-h3-pwm";
  570. reg = <0x01c21400 0x8>;
  571. clocks = <&osc24M>;
  572. #pwm-cells = <3>;
  573. status = "disabled";
  574. };
  575. i2s0: i2s@1c22000 {
  576. #sound-dai-cells = <0>;
  577. compatible = "allwinner,sun8i-h3-i2s";
  578. reg = <0x01c22000 0x400>;
  579. interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  580. clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
  581. clock-names = "apb", "mod";
  582. dmas = <&dma 3>, <&dma 3>;
  583. resets = <&ccu RST_BUS_I2S0>;
  584. dma-names = "rx", "tx";
  585. status = "disabled";
  586. };
  587. i2s1: i2s@1c22400 {
  588. #sound-dai-cells = <0>;
  589. compatible = "allwinner,sun8i-h3-i2s";
  590. reg = <0x01c22400 0x400>;
  591. interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
  592. clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>;
  593. clock-names = "apb", "mod";
  594. dmas = <&dma 4>, <&dma 4>;
  595. resets = <&ccu RST_BUS_I2S1>;
  596. dma-names = "rx", "tx";
  597. status = "disabled";
  598. };
  599. i2s2: i2s@1c22800 {
  600. #sound-dai-cells = <0>;
  601. compatible = "allwinner,sun8i-h3-i2s";
  602. reg = <0x01c22800 0x400>;
  603. interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
  604. clocks = <&ccu CLK_BUS_I2S2>, <&ccu CLK_I2S2>;
  605. clock-names = "apb", "mod";
  606. dmas = <&dma 27>;
  607. resets = <&ccu RST_BUS_I2S2>;
  608. dma-names = "tx";
  609. status = "disabled";
  610. };
  611. codec: codec@1c22c00 {
  612. #sound-dai-cells = <0>;
  613. compatible = "allwinner,sun8i-h3-codec";
  614. reg = <0x01c22c00 0x400>;
  615. interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  616. clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
  617. clock-names = "apb", "codec";
  618. resets = <&ccu RST_BUS_CODEC>;
  619. dmas = <&dma 15>, <&dma 15>;
  620. dma-names = "rx", "tx";
  621. allwinner,codec-analog-controls = <&codec_analog>;
  622. status = "disabled";
  623. };
  624. uart0: serial@1c28000 {
  625. compatible = "snps,dw-apb-uart";
  626. reg = <0x01c28000 0x400>;
  627. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  628. reg-shift = <2>;
  629. reg-io-width = <4>;
  630. clocks = <&ccu CLK_BUS_UART0>;
  631. resets = <&ccu RST_BUS_UART0>;
  632. dmas = <&dma 6>, <&dma 6>;
  633. dma-names = "rx", "tx";
  634. status = "disabled";
  635. };
  636. uart1: serial@1c28400 {
  637. compatible = "snps,dw-apb-uart";
  638. reg = <0x01c28400 0x400>;
  639. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  640. reg-shift = <2>;
  641. reg-io-width = <4>;
  642. clocks = <&ccu CLK_BUS_UART1>;
  643. resets = <&ccu RST_BUS_UART1>;
  644. dmas = <&dma 7>, <&dma 7>;
  645. dma-names = "rx", "tx";
  646. status = "disabled";
  647. };
  648. uart2: serial@1c28800 {
  649. compatible = "snps,dw-apb-uart";
  650. reg = <0x01c28800 0x400>;
  651. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  652. reg-shift = <2>;
  653. reg-io-width = <4>;
  654. clocks = <&ccu CLK_BUS_UART2>;
  655. resets = <&ccu RST_BUS_UART2>;
  656. dmas = <&dma 8>, <&dma 8>;
  657. dma-names = "rx", "tx";
  658. status = "disabled";
  659. };
  660. uart3: serial@1c28c00 {
  661. compatible = "snps,dw-apb-uart";
  662. reg = <0x01c28c00 0x400>;
  663. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  664. reg-shift = <2>;
  665. reg-io-width = <4>;
  666. clocks = <&ccu CLK_BUS_UART3>;
  667. resets = <&ccu RST_BUS_UART3>;
  668. dmas = <&dma 9>, <&dma 9>;
  669. dma-names = "rx", "tx";
  670. status = "disabled";
  671. };
  672. i2c0: i2c@1c2ac00 {
  673. compatible = "allwinner,sun6i-a31-i2c";
  674. reg = <0x01c2ac00 0x400>;
  675. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  676. clocks = <&ccu CLK_BUS_I2C0>;
  677. resets = <&ccu RST_BUS_I2C0>;
  678. pinctrl-names = "default";
  679. pinctrl-0 = <&i2c0_pins>;
  680. status = "disabled";
  681. #address-cells = <1>;
  682. #size-cells = <0>;
  683. };
  684. i2c1: i2c@1c2b000 {
  685. compatible = "allwinner,sun6i-a31-i2c";
  686. reg = <0x01c2b000 0x400>;
  687. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  688. clocks = <&ccu CLK_BUS_I2C1>;
  689. resets = <&ccu RST_BUS_I2C1>;
  690. pinctrl-names = "default";
  691. pinctrl-0 = <&i2c1_pins>;
  692. status = "disabled";
  693. #address-cells = <1>;
  694. #size-cells = <0>;
  695. };
  696. i2c2: i2c@1c2b400 {
  697. compatible = "allwinner,sun6i-a31-i2c";
  698. reg = <0x01c2b400 0x400>;
  699. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  700. clocks = <&ccu CLK_BUS_I2C2>;
  701. resets = <&ccu RST_BUS_I2C2>;
  702. pinctrl-names = "default";
  703. pinctrl-0 = <&i2c2_pins>;
  704. status = "disabled";
  705. #address-cells = <1>;
  706. #size-cells = <0>;
  707. };
  708. gic: interrupt-controller@1c81000 {
  709. compatible = "arm,gic-400";
  710. reg = <0x01c81000 0x1000>,
  711. <0x01c82000 0x2000>,
  712. <0x01c84000 0x2000>,
  713. <0x01c86000 0x2000>;
  714. interrupt-controller;
  715. #interrupt-cells = <3>;
  716. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  717. };
  718. csi: camera@1cb0000 {
  719. compatible = "allwinner,sun8i-h3-csi";
  720. reg = <0x01cb0000 0x1000>;
  721. interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
  722. clocks = <&ccu CLK_BUS_CSI>,
  723. <&ccu CLK_CSI_SCLK>,
  724. <&ccu CLK_DRAM_CSI>;
  725. clock-names = "bus", "mod", "ram";
  726. resets = <&ccu RST_BUS_CSI>;
  727. pinctrl-names = "default";
  728. pinctrl-0 = <&csi_pins>;
  729. status = "disabled";
  730. };
  731. hdmi: hdmi@1ee0000 {
  732. compatible = "allwinner,sun8i-h3-dw-hdmi",
  733. "allwinner,sun8i-a83t-dw-hdmi";
  734. reg = <0x01ee0000 0x10000>;
  735. reg-io-width = <1>;
  736. interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
  737. clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
  738. <&ccu CLK_HDMI>, <&rtc CLK_OSC32K>;
  739. clock-names = "iahb", "isfr", "tmds", "cec";
  740. resets = <&ccu RST_BUS_HDMI1>;
  741. reset-names = "ctrl";
  742. phys = <&hdmi_phy>;
  743. phy-names = "phy";
  744. status = "disabled";
  745. ports {
  746. #address-cells = <1>;
  747. #size-cells = <0>;
  748. hdmi_in: port@0 {
  749. reg = <0>;
  750. hdmi_in_tcon0: endpoint {
  751. remote-endpoint = <&tcon0_out_hdmi>;
  752. };
  753. };
  754. hdmi_out: port@1 {
  755. reg = <1>;
  756. };
  757. };
  758. };
  759. hdmi_phy: hdmi-phy@1ef0000 {
  760. compatible = "allwinner,sun8i-h3-hdmi-phy";
  761. reg = <0x01ef0000 0x10000>;
  762. clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
  763. <&ccu CLK_PLL_VIDEO>;
  764. clock-names = "bus", "mod", "pll-0";
  765. resets = <&ccu RST_BUS_HDMI0>;
  766. reset-names = "phy";
  767. #phy-cells = <0>;
  768. };
  769. rtc: rtc@1f00000 {
  770. /* compatible is in per SoC .dtsi file */
  771. reg = <0x01f00000 0x400>;
  772. interrupt-parent = <&r_intc>;
  773. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
  774. <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
  775. clock-output-names = "osc32k", "osc32k-out", "iosc";
  776. clocks = <&osc32k>;
  777. #clock-cells = <1>;
  778. };
  779. r_intc: interrupt-controller@1f00c00 {
  780. compatible = "allwinner,sun8i-h3-r-intc",
  781. "allwinner,sun6i-a31-r-intc";
  782. interrupt-controller;
  783. #interrupt-cells = <3>;
  784. reg = <0x01f00c00 0x400>;
  785. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  786. };
  787. r_ccu: clock@1f01400 {
  788. compatible = "allwinner,sun8i-h3-r-ccu";
  789. reg = <0x01f01400 0x100>;
  790. clocks = <&osc24M>, <&rtc CLK_OSC32K>, <&rtc CLK_IOSC>,
  791. <&ccu CLK_PLL_PERIPH0>;
  792. clock-names = "hosc", "losc", "iosc", "pll-periph";
  793. #clock-cells = <1>;
  794. #reset-cells = <1>;
  795. };
  796. codec_analog: codec-analog@1f015c0 {
  797. compatible = "allwinner,sun8i-h3-codec-analog";
  798. reg = <0x01f015c0 0x4>;
  799. };
  800. ir: ir@1f02000 {
  801. compatible = "allwinner,sun6i-a31-ir";
  802. clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>;
  803. clock-names = "apb", "ir";
  804. resets = <&r_ccu RST_APB0_IR>;
  805. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  806. reg = <0x01f02000 0x400>;
  807. status = "disabled";
  808. };
  809. r_i2c: i2c@1f02400 {
  810. compatible = "allwinner,sun6i-a31-i2c";
  811. reg = <0x01f02400 0x400>;
  812. interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
  813. pinctrl-names = "default";
  814. pinctrl-0 = <&r_i2c_pins>;
  815. clocks = <&r_ccu CLK_APB0_I2C>;
  816. resets = <&r_ccu RST_APB0_I2C>;
  817. status = "disabled";
  818. #address-cells = <1>;
  819. #size-cells = <0>;
  820. };
  821. r_uart: serial@1f02800 {
  822. compatible = "snps,dw-apb-uart";
  823. reg = <0x01f02800 0x400>;
  824. interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  825. reg-shift = <2>;
  826. reg-io-width = <4>;
  827. clocks = <&r_ccu CLK_APB0_UART>;
  828. resets = <&r_ccu RST_APB0_UART>;
  829. pinctrl-names = "default";
  830. pinctrl-0 = <&r_uart_pins>;
  831. status = "disabled";
  832. };
  833. r_pio: pinctrl@1f02c00 {
  834. compatible = "allwinner,sun8i-h3-r-pinctrl";
  835. reg = <0x01f02c00 0x400>;
  836. interrupt-parent = <&r_intc>;
  837. interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
  838. clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>,
  839. <&rtc CLK_OSC32K>;
  840. clock-names = "apb", "hosc", "losc";
  841. gpio-controller;
  842. #gpio-cells = <3>;
  843. interrupt-controller;
  844. #interrupt-cells = <3>;
  845. r_ir_rx_pin: r-ir-rx-pin {
  846. pins = "PL11";
  847. function = "s_cir_rx";
  848. };
  849. r_i2c_pins: r-i2c-pins {
  850. pins = "PL0", "PL1";
  851. function = "s_i2c";
  852. };
  853. r_pwm_pin: r-pwm-pin {
  854. pins = "PL10";
  855. function = "s_pwm";
  856. };
  857. r_uart_pins: r-uart-pins {
  858. pins = "PL2", "PL3";
  859. function = "s_uart";
  860. };
  861. };
  862. r_pwm: pwm@1f03800 {
  863. compatible = "allwinner,sun8i-h3-pwm";
  864. reg = <0x01f03800 0x8>;
  865. pinctrl-names = "default";
  866. pinctrl-0 = <&r_pwm_pin>;
  867. clocks = <&osc24M>;
  868. #pwm-cells = <3>;
  869. status = "disabled";
  870. };
  871. };
  872. };