sun8i-v3s.dtsi 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. /*
  2. * Copyright (C) 2016 Icenowy Zheng <[email protected]>
  3. * Copyright (C) 2021 Tobias Schramm <[email protected]>
  4. *
  5. * This file is dual-licensed: you can use it either under the terms
  6. * of the GPL or the X11 license, at your option. Note that this dual
  7. * licensing only applies to this file, and not this project as a
  8. * whole.
  9. *
  10. * a) This file is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of the
  13. * License, or (at your option) any later version.
  14. *
  15. * This file is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * Or, alternatively,
  21. *
  22. * b) Permission is hereby granted, free of charge, to any person
  23. * obtaining a copy of this software and associated documentation
  24. * files (the "Software"), to deal in the Software without
  25. * restriction, including without limitation the rights to use,
  26. * copy, modify, merge, publish, distribute, sublicense, and/or
  27. * sell copies of the Software, and to permit persons to whom the
  28. * Software is furnished to do so, subject to the following
  29. * conditions:
  30. *
  31. * The above copyright notice and this permission notice shall be
  32. * included in all copies or substantial portions of the Software.
  33. *
  34. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  35. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  36. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  37. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  38. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  39. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  40. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  41. * OTHER DEALINGS IN THE SOFTWARE.
  42. */
  43. #include <dt-bindings/interrupt-controller/arm-gic.h>
  44. #include <dt-bindings/clock/sun6i-rtc.h>
  45. #include <dt-bindings/clock/sun8i-v3s-ccu.h>
  46. #include <dt-bindings/reset/sun8i-v3s-ccu.h>
  47. #include <dt-bindings/clock/sun8i-de2.h>
  48. / {
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. interrupt-parent = <&gic>;
  52. chosen {
  53. #address-cells = <1>;
  54. #size-cells = <1>;
  55. ranges;
  56. framebuffer-lcd {
  57. compatible = "allwinner,simple-framebuffer",
  58. "simple-framebuffer";
  59. allwinner,pipeline = "mixer0-lcd0";
  60. clocks = <&display_clocks CLK_MIXER0>,
  61. <&ccu CLK_TCON0>;
  62. status = "disabled";
  63. };
  64. };
  65. cpus {
  66. #address-cells = <1>;
  67. #size-cells = <0>;
  68. cpu@0 {
  69. compatible = "arm,cortex-a7";
  70. device_type = "cpu";
  71. reg = <0>;
  72. clocks = <&ccu CLK_CPU>;
  73. };
  74. };
  75. de: display-engine {
  76. compatible = "allwinner,sun8i-v3s-display-engine";
  77. allwinner,pipelines = <&mixer0>;
  78. status = "disabled";
  79. };
  80. timer {
  81. compatible = "arm,armv7-timer";
  82. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  83. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  84. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  85. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  86. };
  87. clocks {
  88. #address-cells = <1>;
  89. #size-cells = <1>;
  90. ranges;
  91. osc24M: osc24M_clk {
  92. #clock-cells = <0>;
  93. compatible = "fixed-clock";
  94. clock-frequency = <24000000>;
  95. clock-accuracy = <50000>;
  96. clock-output-names = "osc24M";
  97. };
  98. osc32k: osc32k_clk {
  99. #clock-cells = <0>;
  100. compatible = "fixed-clock";
  101. clock-frequency = <32768>;
  102. clock-accuracy = <50000>;
  103. clock-output-names = "ext-osc32k";
  104. };
  105. };
  106. soc {
  107. compatible = "simple-bus";
  108. #address-cells = <1>;
  109. #size-cells = <1>;
  110. ranges;
  111. display_clocks: clock@1000000 {
  112. compatible = "allwinner,sun8i-v3s-de2-clk";
  113. reg = <0x01000000 0x10000>;
  114. clocks = <&ccu CLK_BUS_DE>,
  115. <&ccu CLK_DE>;
  116. clock-names = "bus",
  117. "mod";
  118. resets = <&ccu RST_BUS_DE>;
  119. #clock-cells = <1>;
  120. #reset-cells = <1>;
  121. };
  122. mixer0: mixer@1100000 {
  123. compatible = "allwinner,sun8i-v3s-de2-mixer";
  124. reg = <0x01100000 0x100000>;
  125. clocks = <&display_clocks 0>,
  126. <&display_clocks 6>;
  127. clock-names = "bus",
  128. "mod";
  129. resets = <&display_clocks 0>;
  130. ports {
  131. #address-cells = <1>;
  132. #size-cells = <0>;
  133. mixer0_out: port@1 {
  134. reg = <1>;
  135. mixer0_out_tcon0: endpoint {
  136. remote-endpoint = <&tcon0_in_mixer0>;
  137. };
  138. };
  139. };
  140. };
  141. syscon: system-control@1c00000 {
  142. compatible = "allwinner,sun8i-v3s-system-control",
  143. "allwinner,sun8i-h3-system-control";
  144. reg = <0x01c00000 0xd0>;
  145. #address-cells = <1>;
  146. #size-cells = <1>;
  147. ranges;
  148. };
  149. nmi_intc: interrupt-controller@1c000d0 {
  150. compatible = "allwinner,sun8i-v3s-nmi",
  151. "allwinner,sun9i-a80-nmi";
  152. interrupt-controller;
  153. #interrupt-cells = <2>;
  154. reg = <0x01c000d0 0x0c>;
  155. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  156. };
  157. dma: dma-controller@1c02000 {
  158. compatible = "allwinner,sun8i-v3s-dma";
  159. reg = <0x01c02000 0x1000>;
  160. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  161. clocks = <&ccu CLK_BUS_DMA>;
  162. resets = <&ccu RST_BUS_DMA>;
  163. #dma-cells = <1>;
  164. };
  165. tcon0: lcd-controller@1c0c000 {
  166. compatible = "allwinner,sun8i-v3s-tcon";
  167. reg = <0x01c0c000 0x1000>;
  168. interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
  169. clocks = <&ccu CLK_BUS_TCON0>,
  170. <&ccu CLK_TCON0>;
  171. clock-names = "ahb",
  172. "tcon-ch0";
  173. clock-output-names = "tcon-pixel-clock";
  174. #clock-cells = <0>;
  175. resets = <&ccu RST_BUS_TCON0>;
  176. reset-names = "lcd";
  177. status = "disabled";
  178. ports {
  179. #address-cells = <1>;
  180. #size-cells = <0>;
  181. tcon0_in: port@0 {
  182. reg = <0>;
  183. tcon0_in_mixer0: endpoint {
  184. remote-endpoint = <&mixer0_out_tcon0>;
  185. };
  186. };
  187. tcon0_out: port@1 {
  188. #address-cells = <1>;
  189. #size-cells = <0>;
  190. reg = <1>;
  191. };
  192. };
  193. };
  194. mmc0: mmc@1c0f000 {
  195. compatible = "allwinner,sun7i-a20-mmc";
  196. reg = <0x01c0f000 0x1000>;
  197. clocks = <&ccu CLK_BUS_MMC0>,
  198. <&ccu CLK_MMC0>,
  199. <&ccu CLK_MMC0_OUTPUT>,
  200. <&ccu CLK_MMC0_SAMPLE>;
  201. clock-names = "ahb",
  202. "mmc",
  203. "output",
  204. "sample";
  205. resets = <&ccu RST_BUS_MMC0>;
  206. reset-names = "ahb";
  207. interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
  208. pinctrl-names = "default";
  209. pinctrl-0 = <&mmc0_pins>;
  210. status = "disabled";
  211. #address-cells = <1>;
  212. #size-cells = <0>;
  213. };
  214. mmc1: mmc@1c10000 {
  215. compatible = "allwinner,sun7i-a20-mmc";
  216. reg = <0x01c10000 0x1000>;
  217. clocks = <&ccu CLK_BUS_MMC1>,
  218. <&ccu CLK_MMC1>,
  219. <&ccu CLK_MMC1_OUTPUT>,
  220. <&ccu CLK_MMC1_SAMPLE>;
  221. clock-names = "ahb",
  222. "mmc",
  223. "output",
  224. "sample";
  225. resets = <&ccu RST_BUS_MMC1>;
  226. reset-names = "ahb";
  227. interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
  228. pinctrl-names = "default";
  229. pinctrl-0 = <&mmc1_pins>;
  230. status = "disabled";
  231. #address-cells = <1>;
  232. #size-cells = <0>;
  233. };
  234. mmc2: mmc@1c11000 {
  235. compatible = "allwinner,sun7i-a20-mmc";
  236. reg = <0x01c11000 0x1000>;
  237. clocks = <&ccu CLK_BUS_MMC2>,
  238. <&ccu CLK_MMC2>,
  239. <&ccu CLK_MMC2_OUTPUT>,
  240. <&ccu CLK_MMC2_SAMPLE>;
  241. clock-names = "ahb",
  242. "mmc",
  243. "output",
  244. "sample";
  245. resets = <&ccu RST_BUS_MMC2>;
  246. reset-names = "ahb";
  247. interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
  248. status = "disabled";
  249. #address-cells = <1>;
  250. #size-cells = <0>;
  251. };
  252. crypto@1c15000 {
  253. compatible = "allwinner,sun8i-v3s-crypto",
  254. "allwinner,sun8i-a33-crypto";
  255. reg = <0x01c15000 0x1000>;
  256. interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
  257. clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
  258. clock-names = "ahb", "mod";
  259. dmas = <&dma 16>, <&dma 16>;
  260. dma-names = "rx", "tx";
  261. resets = <&ccu RST_BUS_CE>;
  262. reset-names = "ahb";
  263. };
  264. usb_otg: usb@1c19000 {
  265. compatible = "allwinner,sun8i-h3-musb";
  266. reg = <0x01c19000 0x0400>;
  267. clocks = <&ccu CLK_BUS_OTG>;
  268. resets = <&ccu RST_BUS_OTG>;
  269. interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  270. interrupt-names = "mc";
  271. phys = <&usbphy 0>;
  272. phy-names = "usb";
  273. extcon = <&usbphy 0>;
  274. status = "disabled";
  275. };
  276. usbphy: phy@1c19400 {
  277. compatible = "allwinner,sun8i-v3s-usb-phy";
  278. reg = <0x01c19400 0x2c>,
  279. <0x01c1a800 0x4>;
  280. reg-names = "phy_ctrl",
  281. "pmu0";
  282. clocks = <&ccu CLK_USB_PHY0>;
  283. clock-names = "usb0_phy";
  284. resets = <&ccu RST_USB_PHY0>;
  285. reset-names = "usb0_reset";
  286. status = "disabled";
  287. #phy-cells = <1>;
  288. };
  289. ccu: clock@1c20000 {
  290. compatible = "allwinner,sun8i-v3s-ccu";
  291. reg = <0x01c20000 0x400>;
  292. clocks = <&osc24M>, <&rtc CLK_OSC32K>;
  293. clock-names = "hosc", "losc";
  294. #clock-cells = <1>;
  295. #reset-cells = <1>;
  296. };
  297. rtc: rtc@1c20400 {
  298. #clock-cells = <1>;
  299. compatible = "allwinner,sun8i-v3-rtc";
  300. reg = <0x01c20400 0x54>;
  301. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
  302. <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
  303. clocks = <&osc32k>;
  304. clock-output-names = "osc32k", "osc32k-out";
  305. };
  306. pio: pinctrl@1c20800 {
  307. compatible = "allwinner,sun8i-v3s-pinctrl";
  308. reg = <0x01c20800 0x400>;
  309. interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
  310. <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  311. clocks = <&ccu CLK_BUS_PIO>, <&osc24M>,
  312. <&rtc CLK_OSC32K>;
  313. clock-names = "apb", "hosc", "losc";
  314. gpio-controller;
  315. #gpio-cells = <3>;
  316. interrupt-controller;
  317. #interrupt-cells = <3>;
  318. /omit-if-no-ref/
  319. csi0_mclk_pin: csi0-mclk-pin {
  320. pins = "PE20";
  321. function = "csi_mipi";
  322. };
  323. /omit-if-no-ref/
  324. csi1_8bit_pins: csi1-8bit-pins {
  325. pins = "PE0", "PE2", "PE3", "PE8", "PE9",
  326. "PE10", "PE11", "PE12", "PE13", "PE14",
  327. "PE15";
  328. function = "csi";
  329. };
  330. /omit-if-no-ref/
  331. csi1_mclk_pin: csi1-mclk-pin {
  332. pins = "PE1";
  333. function = "csi";
  334. };
  335. i2c0_pins: i2c0-pins {
  336. pins = "PB6", "PB7";
  337. function = "i2c0";
  338. };
  339. /omit-if-no-ref/
  340. i2c1_pb_pins: i2c1-pb-pins {
  341. pins = "PB8", "PB9";
  342. function = "i2c1";
  343. };
  344. /omit-if-no-ref/
  345. i2c1_pe_pins: i2c1-pe-pins {
  346. pins = "PE21", "PE22";
  347. function = "i2c1";
  348. };
  349. uart0_pb_pins: uart0-pb-pins {
  350. pins = "PB8", "PB9";
  351. function = "uart0";
  352. };
  353. uart2_pins: uart2-pins {
  354. pins = "PB0", "PB1";
  355. function = "uart2";
  356. };
  357. mmc0_pins: mmc0-pins {
  358. pins = "PF0", "PF1", "PF2", "PF3",
  359. "PF4", "PF5";
  360. function = "mmc0";
  361. drive-strength = <30>;
  362. bias-pull-up;
  363. };
  364. mmc1_pins: mmc1-pins {
  365. pins = "PG0", "PG1", "PG2", "PG3",
  366. "PG4", "PG5";
  367. function = "mmc1";
  368. drive-strength = <30>;
  369. bias-pull-up;
  370. };
  371. spi0_pins: spi0-pins {
  372. pins = "PC0", "PC1", "PC2", "PC3";
  373. function = "spi0";
  374. };
  375. };
  376. timer@1c20c00 {
  377. compatible = "allwinner,sun8i-v3s-timer";
  378. reg = <0x01c20c00 0xa0>;
  379. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
  380. <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
  381. <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  382. clocks = <&osc24M>;
  383. };
  384. wdt0: watchdog@1c20ca0 {
  385. compatible = "allwinner,sun6i-a31-wdt";
  386. reg = <0x01c20ca0 0x20>;
  387. interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  388. clocks = <&osc24M>;
  389. };
  390. pwm: pwm@1c21400 {
  391. compatible = "allwinner,sun8i-v3s-pwm",
  392. "allwinner,sun7i-a20-pwm";
  393. reg = <0x01c21400 0xc>;
  394. clocks = <&osc24M>;
  395. #pwm-cells = <3>;
  396. status = "disabled";
  397. };
  398. lradc: lradc@1c22800 {
  399. compatible = "allwinner,sun4i-a10-lradc-keys";
  400. reg = <0x01c22800 0x400>;
  401. interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  402. status = "disabled";
  403. };
  404. codec: codec@1c22c00 {
  405. #sound-dai-cells = <0>;
  406. compatible = "allwinner,sun8i-v3s-codec";
  407. reg = <0x01c22c00 0x400>;
  408. interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  409. clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
  410. clock-names = "apb", "codec";
  411. resets = <&ccu RST_BUS_CODEC>;
  412. dmas = <&dma 15>, <&dma 15>;
  413. dma-names = "rx", "tx";
  414. allwinner,codec-analog-controls = <&codec_analog>;
  415. status = "disabled";
  416. };
  417. codec_analog: codec-analog@1c23000 {
  418. compatible = "allwinner,sun8i-v3s-codec-analog";
  419. reg = <0x01c23000 0x4>;
  420. };
  421. uart0: serial@1c28000 {
  422. compatible = "snps,dw-apb-uart";
  423. reg = <0x01c28000 0x400>;
  424. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  425. reg-shift = <2>;
  426. reg-io-width = <4>;
  427. clocks = <&ccu CLK_BUS_UART0>;
  428. dmas = <&dma 6>, <&dma 6>;
  429. dma-names = "rx", "tx";
  430. resets = <&ccu RST_BUS_UART0>;
  431. status = "disabled";
  432. };
  433. uart1: serial@1c28400 {
  434. compatible = "snps,dw-apb-uart";
  435. reg = <0x01c28400 0x400>;
  436. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  437. reg-shift = <2>;
  438. reg-io-width = <4>;
  439. clocks = <&ccu CLK_BUS_UART1>;
  440. dmas = <&dma 7>, <&dma 7>;
  441. dma-names = "rx", "tx";
  442. resets = <&ccu RST_BUS_UART1>;
  443. status = "disabled";
  444. };
  445. uart2: serial@1c28800 {
  446. compatible = "snps,dw-apb-uart";
  447. reg = <0x01c28800 0x400>;
  448. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  449. reg-shift = <2>;
  450. reg-io-width = <4>;
  451. clocks = <&ccu CLK_BUS_UART2>;
  452. dmas = <&dma 8>, <&dma 8>;
  453. dma-names = "rx", "tx";
  454. resets = <&ccu RST_BUS_UART2>;
  455. pinctrl-0 = <&uart2_pins>;
  456. pinctrl-names = "default";
  457. status = "disabled";
  458. };
  459. i2c0: i2c@1c2ac00 {
  460. compatible = "allwinner,sun6i-a31-i2c";
  461. reg = <0x01c2ac00 0x400>;
  462. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  463. clocks = <&ccu CLK_BUS_I2C0>;
  464. resets = <&ccu RST_BUS_I2C0>;
  465. pinctrl-names = "default";
  466. pinctrl-0 = <&i2c0_pins>;
  467. status = "disabled";
  468. #address-cells = <1>;
  469. #size-cells = <0>;
  470. };
  471. i2c1: i2c@1c2b000 {
  472. compatible = "allwinner,sun6i-a31-i2c";
  473. reg = <0x01c2b000 0x400>;
  474. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  475. clocks = <&ccu CLK_BUS_I2C1>;
  476. resets = <&ccu RST_BUS_I2C1>;
  477. status = "disabled";
  478. #address-cells = <1>;
  479. #size-cells = <0>;
  480. };
  481. emac: ethernet@1c30000 {
  482. compatible = "allwinner,sun8i-v3s-emac";
  483. syscon = <&syscon>;
  484. reg = <0x01c30000 0x10000>;
  485. interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
  486. interrupt-names = "macirq";
  487. resets = <&ccu RST_BUS_EMAC>;
  488. reset-names = "stmmaceth";
  489. clocks = <&ccu CLK_BUS_EMAC>;
  490. clock-names = "stmmaceth";
  491. phy-handle = <&int_mii_phy>;
  492. phy-mode = "mii";
  493. status = "disabled";
  494. mdio: mdio {
  495. #address-cells = <1>;
  496. #size-cells = <0>;
  497. compatible = "snps,dwmac-mdio";
  498. };
  499. mdio_mux: mdio-mux {
  500. compatible = "allwinner,sun8i-h3-mdio-mux";
  501. #address-cells = <1>;
  502. #size-cells = <0>;
  503. mdio-parent-bus = <&mdio>;
  504. /* Only one MDIO is usable at the time */
  505. internal_mdio: mdio@1 {
  506. compatible = "allwinner,sun8i-h3-mdio-internal";
  507. reg = <1>;
  508. #address-cells = <1>;
  509. #size-cells = <0>;
  510. int_mii_phy: ethernet-phy@1 {
  511. compatible = "ethernet-phy-ieee802.3-c22";
  512. reg = <1>;
  513. clocks = <&ccu CLK_BUS_EPHY>;
  514. resets = <&ccu RST_BUS_EPHY>;
  515. };
  516. };
  517. };
  518. };
  519. spi0: spi@1c68000 {
  520. compatible = "allwinner,sun8i-h3-spi";
  521. reg = <0x01c68000 0x1000>;
  522. interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
  523. clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
  524. clock-names = "ahb", "mod";
  525. dmas = <&dma 23>, <&dma 23>;
  526. dma-names = "rx", "tx";
  527. pinctrl-names = "default";
  528. pinctrl-0 = <&spi0_pins>;
  529. resets = <&ccu RST_BUS_SPI0>;
  530. status = "disabled";
  531. #address-cells = <1>;
  532. #size-cells = <0>;
  533. };
  534. gic: interrupt-controller@1c81000 {
  535. compatible = "arm,gic-400";
  536. reg = <0x01c81000 0x1000>,
  537. <0x01c82000 0x2000>,
  538. <0x01c84000 0x2000>,
  539. <0x01c86000 0x2000>;
  540. interrupt-controller;
  541. #interrupt-cells = <3>;
  542. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  543. };
  544. csi1: camera@1cb4000 {
  545. compatible = "allwinner,sun8i-v3s-csi";
  546. reg = <0x01cb4000 0x3000>;
  547. interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
  548. clocks = <&ccu CLK_BUS_CSI>,
  549. <&ccu CLK_CSI1_SCLK>,
  550. <&ccu CLK_DRAM_CSI>;
  551. clock-names = "bus", "mod", "ram";
  552. resets = <&ccu RST_BUS_CSI>;
  553. status = "disabled";
  554. };
  555. };
  556. };