sun8i-a23-a33.dtsi 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. /*
  2. * Copyright 2014 Chen-Yu Tsai
  3. *
  4. * Chen-Yu Tsai <wens@csie.org>
  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 "skeleton.dtsi"
  45. #include <dt-bindings/interrupt-controller/arm-gic.h>
  46. #include <dt-bindings/clock/sun8i-a23-a33-ccu.h>
  47. #include <dt-bindings/pinctrl/sun4i-a10.h>
  48. #include <dt-bindings/reset/sun8i-a23-a33-ccu.h>
  49. / {
  50. interrupt-parent = <&gic>;
  51. chosen {
  52. #address-cells = <1>;
  53. #size-cells = <1>;
  54. ranges;
  55. simplefb_lcd: framebuffer@0 {
  56. compatible = "allwinner,simple-framebuffer",
  57. "simple-framebuffer";
  58. allwinner,pipeline = "de_be0-lcd0";
  59. clocks = <&ccu CLK_BUS_LCD>, <&ccu CLK_BUS_DE_BE>,
  60. <&ccu CLK_LCD_CH0>, <&ccu CLK_DE_BE>,
  61. <&ccu CLK_DRAM_DE_BE>, <&ccu CLK_DRC>;
  62. status = "disabled";
  63. };
  64. };
  65. timer {
  66. compatible = "arm,armv7-timer";
  67. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  68. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  69. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  70. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  71. clock-frequency = <24000000>;
  72. arm,cpu-registers-not-fw-configured;
  73. };
  74. cpus {
  75. enable-method = "allwinner,sun8i-a23";
  76. #address-cells = <1>;
  77. #size-cells = <0>;
  78. cpu@0 {
  79. compatible = "arm,cortex-a7";
  80. device_type = "cpu";
  81. reg = <0>;
  82. };
  83. cpu@1 {
  84. compatible = "arm,cortex-a7";
  85. device_type = "cpu";
  86. reg = <1>;
  87. };
  88. };
  89. clocks {
  90. #address-cells = <1>;
  91. #size-cells = <1>;
  92. ranges;
  93. osc24M: osc24M_clk {
  94. #clock-cells = <0>;
  95. compatible = "fixed-clock";
  96. clock-frequency = <24000000>;
  97. clock-output-names = "osc24M";
  98. };
  99. osc32k: osc32k_clk {
  100. #clock-cells = <0>;
  101. compatible = "fixed-clock";
  102. clock-frequency = <32768>;
  103. clock-output-names = "osc32k";
  104. };
  105. };
  106. soc@01c00000 {
  107. compatible = "simple-bus";
  108. #address-cells = <1>;
  109. #size-cells = <1>;
  110. ranges;
  111. dma: dma-controller@01c02000 {
  112. compatible = "allwinner,sun8i-a23-dma";
  113. reg = <0x01c02000 0x1000>;
  114. interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  115. clocks = <&ccu CLK_BUS_DMA>;
  116. resets = <&ccu RST_BUS_DMA>;
  117. #dma-cells = <1>;
  118. };
  119. mmc0: mmc@01c0f000 {
  120. compatible = "allwinner,sun7i-a20-mmc";
  121. reg = <0x01c0f000 0x1000>;
  122. clocks = <&ccu CLK_BUS_MMC0>,
  123. <&ccu CLK_MMC0>,
  124. <&ccu CLK_MMC0_OUTPUT>,
  125. <&ccu CLK_MMC0_SAMPLE>;
  126. clock-names = "ahb",
  127. "mmc",
  128. "output",
  129. "sample";
  130. resets = <&ccu RST_BUS_MMC0>;
  131. reset-names = "ahb";
  132. interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
  133. status = "disabled";
  134. #address-cells = <1>;
  135. #size-cells = <0>;
  136. };
  137. mmc1: mmc@01c10000 {
  138. compatible = "allwinner,sun7i-a20-mmc";
  139. reg = <0x01c10000 0x1000>;
  140. clocks = <&ccu CLK_BUS_MMC1>,
  141. <&ccu CLK_MMC1>,
  142. <&ccu CLK_MMC1_OUTPUT>,
  143. <&ccu CLK_MMC1_SAMPLE>;
  144. clock-names = "ahb",
  145. "mmc",
  146. "output",
  147. "sample";
  148. resets = <&ccu RST_BUS_MMC1>;
  149. reset-names = "ahb";
  150. interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
  151. status = "disabled";
  152. #address-cells = <1>;
  153. #size-cells = <0>;
  154. };
  155. mmc2: mmc@01c11000 {
  156. compatible = "allwinner,sun7i-a20-mmc";
  157. reg = <0x01c11000 0x1000>;
  158. clocks = <&ccu CLK_BUS_MMC2>,
  159. <&ccu CLK_MMC2>,
  160. <&ccu CLK_MMC2_OUTPUT>,
  161. <&ccu CLK_MMC2_SAMPLE>;
  162. clock-names = "ahb",
  163. "mmc",
  164. "output",
  165. "sample";
  166. resets = <&ccu RST_BUS_MMC2>;
  167. reset-names = "ahb";
  168. interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
  169. status = "disabled";
  170. #address-cells = <1>;
  171. #size-cells = <0>;
  172. };
  173. nfc: nand@01c03000 {
  174. compatible = "allwinner,sun4i-a10-nand";
  175. reg = <0x01c03000 0x1000>;
  176. interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
  177. clocks = <&ccu CLK_BUS_NAND>, <&ccu CLK_NAND>;
  178. clock-names = "ahb", "mod";
  179. resets = <&ccu RST_BUS_NAND>;
  180. reset-names = "ahb";
  181. status = "disabled";
  182. #address-cells = <1>;
  183. #size-cells = <0>;
  184. };
  185. usb_otg: usb@01c19000 {
  186. /* compatible gets set in SoC specific dtsi file */
  187. reg = <0x01c19000 0x0400>;
  188. clocks = <&ccu CLK_BUS_OTG>;
  189. resets = <&ccu RST_BUS_OTG>;
  190. interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  191. interrupt-names = "mc";
  192. phys = <&usbphy 0>;
  193. phy-names = "usb";
  194. extcon = <&usbphy 0>;
  195. status = "disabled";
  196. };
  197. usbphy: phy@01c19400 {
  198. /*
  199. * compatible and address regions get set in
  200. * SoC specific dtsi file
  201. */
  202. clocks = <&ccu CLK_USB_PHY0>,
  203. <&ccu CLK_USB_PHY1>;
  204. clock-names = "usb0_phy",
  205. "usb1_phy";
  206. resets = <&ccu RST_USB_PHY0>,
  207. <&ccu RST_USB_PHY1>;
  208. reset-names = "usb0_reset",
  209. "usb1_reset";
  210. status = "disabled";
  211. #phy-cells = <1>;
  212. };
  213. ehci0: usb@01c1a000 {
  214. compatible = "allwinner,sun8i-a23-ehci", "generic-ehci";
  215. reg = <0x01c1a000 0x100>;
  216. interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
  217. clocks = <&ccu CLK_BUS_EHCI>;
  218. resets = <&ccu RST_BUS_EHCI>;
  219. phys = <&usbphy 1>;
  220. phy-names = "usb";
  221. status = "disabled";
  222. };
  223. ohci0: usb@01c1a400 {
  224. compatible = "allwinner,sun8i-a23-ohci", "generic-ohci";
  225. reg = <0x01c1a400 0x100>;
  226. interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
  227. clocks = <&ccu CLK_BUS_OHCI>, <&ccu CLK_USB_OHCI>;
  228. resets = <&ccu RST_BUS_OHCI>;
  229. phys = <&usbphy 1>;
  230. phy-names = "usb";
  231. status = "disabled";
  232. };
  233. ccu: clock@01c20000 {
  234. reg = <0x01c20000 0x400>;
  235. clocks = <&osc24M>, <&osc32k>;
  236. clock-names = "hosc", "losc";
  237. #clock-cells = <1>;
  238. #reset-cells = <1>;
  239. };
  240. pio: pinctrl@01c20800 {
  241. /* compatible gets set in SoC specific dtsi file */
  242. reg = <0x01c20800 0x400>;
  243. /* interrupts get set in SoC specific dtsi file */
  244. clocks = <&ccu CLK_BUS_PIO>;
  245. gpio-controller;
  246. interrupt-controller;
  247. #interrupt-cells = <3>;
  248. #gpio-cells = <3>;
  249. uart0_pins_a: uart0@0 {
  250. allwinner,pins = "PF2", "PF4";
  251. allwinner,function = "uart0";
  252. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  253. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  254. };
  255. uart1_pins_a: uart1@0 {
  256. allwinner,pins = "PG6", "PG7";
  257. allwinner,function = "uart1";
  258. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  259. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  260. };
  261. uart1_pins_cts_rts_a: uart1-cts-rts@0 {
  262. allwinner,pins = "PG8", "PG9";
  263. allwinner,function = "uart1";
  264. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  265. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  266. };
  267. mmc0_pins_a: mmc0@0 {
  268. allwinner,pins = "PF0", "PF1", "PF2",
  269. "PF3", "PF4", "PF5";
  270. allwinner,function = "mmc0";
  271. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  272. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  273. };
  274. mmc1_pins_a: mmc1@0 {
  275. allwinner,pins = "PG0", "PG1", "PG2",
  276. "PG3", "PG4", "PG5";
  277. allwinner,function = "mmc1";
  278. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  279. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  280. };
  281. mmc2_8bit_pins: mmc2_8bit {
  282. allwinner,pins = "PC5", "PC6", "PC8",
  283. "PC9", "PC10", "PC11",
  284. "PC12", "PC13", "PC14",
  285. "PC15", "PC16";
  286. allwinner,function = "mmc2";
  287. allwinner,drive = <SUN4I_PINCTRL_30_MA>;
  288. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  289. };
  290. pwm0_pins: pwm0 {
  291. allwinner,pins = "PH0";
  292. allwinner,function = "pwm0";
  293. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  294. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  295. };
  296. i2c0_pins_a: i2c0@0 {
  297. allwinner,pins = "PH2", "PH3";
  298. allwinner,function = "i2c0";
  299. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  300. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  301. };
  302. i2c1_pins_a: i2c1@0 {
  303. allwinner,pins = "PH4", "PH5";
  304. allwinner,function = "i2c1";
  305. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  306. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  307. };
  308. i2c2_pins_a: i2c2@0 {
  309. allwinner,pins = "PE12", "PE13";
  310. allwinner,function = "i2c2";
  311. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  312. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  313. };
  314. lcd_rgb666_pins: lcd-rgb666@0 {
  315. allwinner,pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
  316. "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
  317. "PD18", "PD19", "PD20", "PD21", "PD22", "PD23",
  318. "PD24", "PD25", "PD26", "PD27";
  319. allwinner,function = "lcd0";
  320. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  321. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  322. };
  323. };
  324. timer@01c20c00 {
  325. compatible = "allwinner,sun4i-a10-timer";
  326. reg = <0x01c20c00 0xa0>;
  327. interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
  328. <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  329. clocks = <&osc24M>;
  330. };
  331. wdt0: watchdog@01c20ca0 {
  332. compatible = "allwinner,sun6i-a31-wdt";
  333. reg = <0x01c20ca0 0x20>;
  334. interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  335. };
  336. pwm: pwm@01c21400 {
  337. compatible = "allwinner,sun7i-a20-pwm";
  338. reg = <0x01c21400 0xc>;
  339. clocks = <&osc24M>;
  340. #pwm-cells = <3>;
  341. status = "disabled";
  342. };
  343. lradc: lradc@01c22800 {
  344. compatible = "allwinner,sun4i-a10-lradc-keys";
  345. reg = <0x01c22800 0x100>;
  346. interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  347. status = "disabled";
  348. };
  349. uart0: serial@01c28000 {
  350. compatible = "snps,dw-apb-uart";
  351. reg = <0x01c28000 0x400>;
  352. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  353. reg-shift = <2>;
  354. reg-io-width = <4>;
  355. clocks = <&ccu CLK_BUS_UART0>;
  356. resets = <&ccu RST_BUS_UART0>;
  357. dmas = <&dma 6>, <&dma 6>;
  358. dma-names = "rx", "tx";
  359. status = "disabled";
  360. };
  361. uart1: serial@01c28400 {
  362. compatible = "snps,dw-apb-uart";
  363. reg = <0x01c28400 0x400>;
  364. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  365. reg-shift = <2>;
  366. reg-io-width = <4>;
  367. clocks = <&ccu CLK_BUS_UART1>;
  368. resets = <&ccu RST_BUS_UART1>;
  369. dmas = <&dma 7>, <&dma 7>;
  370. dma-names = "rx", "tx";
  371. status = "disabled";
  372. };
  373. uart2: serial@01c28800 {
  374. compatible = "snps,dw-apb-uart";
  375. reg = <0x01c28800 0x400>;
  376. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  377. reg-shift = <2>;
  378. reg-io-width = <4>;
  379. clocks = <&ccu CLK_BUS_UART2>;
  380. resets = <&ccu RST_BUS_UART2>;
  381. dmas = <&dma 8>, <&dma 8>;
  382. dma-names = "rx", "tx";
  383. status = "disabled";
  384. };
  385. uart3: serial@01c28c00 {
  386. compatible = "snps,dw-apb-uart";
  387. reg = <0x01c28c00 0x400>;
  388. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  389. reg-shift = <2>;
  390. reg-io-width = <4>;
  391. clocks = <&ccu CLK_BUS_UART3>;
  392. resets = <&ccu RST_BUS_UART3>;
  393. dmas = <&dma 9>, <&dma 9>;
  394. dma-names = "rx", "tx";
  395. status = "disabled";
  396. };
  397. uart4: serial@01c29000 {
  398. compatible = "snps,dw-apb-uart";
  399. reg = <0x01c29000 0x400>;
  400. interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
  401. reg-shift = <2>;
  402. reg-io-width = <4>;
  403. clocks = <&ccu CLK_BUS_UART4>;
  404. resets = <&ccu RST_BUS_UART4>;
  405. dmas = <&dma 10>, <&dma 10>;
  406. dma-names = "rx", "tx";
  407. status = "disabled";
  408. };
  409. i2c0: i2c@01c2ac00 {
  410. compatible = "allwinner,sun6i-a31-i2c";
  411. reg = <0x01c2ac00 0x400>;
  412. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  413. clocks = <&ccu CLK_BUS_I2C0>;
  414. resets = <&ccu RST_BUS_I2C0>;
  415. status = "disabled";
  416. #address-cells = <1>;
  417. #size-cells = <0>;
  418. };
  419. i2c1: i2c@01c2b000 {
  420. compatible = "allwinner,sun6i-a31-i2c";
  421. reg = <0x01c2b000 0x400>;
  422. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  423. clocks = <&ccu CLK_BUS_I2C1>;
  424. resets = <&ccu RST_BUS_I2C1>;
  425. status = "disabled";
  426. #address-cells = <1>;
  427. #size-cells = <0>;
  428. };
  429. i2c2: i2c@01c2b400 {
  430. compatible = "allwinner,sun6i-a31-i2c";
  431. reg = <0x01c2b400 0x400>;
  432. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  433. clocks = <&ccu CLK_BUS_I2C2>;
  434. resets = <&ccu RST_BUS_I2C2>;
  435. status = "disabled";
  436. #address-cells = <1>;
  437. #size-cells = <0>;
  438. };
  439. gic: interrupt-controller@01c81000 {
  440. compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  441. reg = <0x01c81000 0x1000>,
  442. <0x01c82000 0x1000>,
  443. <0x01c84000 0x2000>,
  444. <0x01c86000 0x2000>;
  445. interrupt-controller;
  446. #interrupt-cells = <3>;
  447. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  448. };
  449. rtc: rtc@01f00000 {
  450. compatible = "allwinner,sun6i-a31-rtc";
  451. reg = <0x01f00000 0x54>;
  452. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
  453. <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
  454. };
  455. nmi_intc: interrupt-controller@01f00c0c {
  456. compatible = "allwinner,sun6i-a31-sc-nmi";
  457. interrupt-controller;
  458. #interrupt-cells = <2>;
  459. reg = <0x01f00c0c 0x38>;
  460. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  461. };
  462. prcm@01f01400 {
  463. compatible = "allwinner,sun8i-a23-prcm";
  464. reg = <0x01f01400 0x200>;
  465. ar100: ar100_clk {
  466. compatible = "fixed-factor-clock";
  467. #clock-cells = <0>;
  468. clock-div = <1>;
  469. clock-mult = <1>;
  470. clocks = <&osc24M>;
  471. clock-output-names = "ar100";
  472. };
  473. ahb0: ahb0_clk {
  474. compatible = "fixed-factor-clock";
  475. #clock-cells = <0>;
  476. clock-div = <1>;
  477. clock-mult = <1>;
  478. clocks = <&ar100>;
  479. clock-output-names = "ahb0";
  480. };
  481. apb0: apb0_clk {
  482. compatible = "allwinner,sun8i-a23-apb0-clk";
  483. #clock-cells = <0>;
  484. clocks = <&ahb0>;
  485. clock-output-names = "apb0";
  486. };
  487. apb0_gates: apb0_gates_clk {
  488. compatible = "allwinner,sun8i-a23-apb0-gates-clk";
  489. #clock-cells = <1>;
  490. clocks = <&apb0>;
  491. clock-output-names = "apb0_pio", "apb0_timer",
  492. "apb0_rsb", "apb0_uart",
  493. "apb0_i2c";
  494. };
  495. apb0_rst: apb0_rst {
  496. compatible = "allwinner,sun6i-a31-clock-reset";
  497. #reset-cells = <1>;
  498. };
  499. };
  500. cpucfg@01f01c00 {
  501. compatible = "allwinner,sun8i-a23-cpuconfig";
  502. reg = <0x01f01c00 0x300>;
  503. };
  504. r_uart: serial@01f02800 {
  505. compatible = "snps,dw-apb-uart";
  506. reg = <0x01f02800 0x400>;
  507. interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  508. reg-shift = <2>;
  509. reg-io-width = <4>;
  510. clocks = <&apb0_gates 4>;
  511. resets = <&apb0_rst 4>;
  512. status = "disabled";
  513. };
  514. r_pio: pinctrl@01f02c00 {
  515. compatible = "allwinner,sun8i-a23-r-pinctrl";
  516. reg = <0x01f02c00 0x400>;
  517. interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
  518. clocks = <&apb0_gates 0>;
  519. resets = <&apb0_rst 0>;
  520. gpio-controller;
  521. interrupt-controller;
  522. #interrupt-cells = <3>;
  523. #address-cells = <1>;
  524. #size-cells = <0>;
  525. #gpio-cells = <3>;
  526. r_rsb_pins: r_rsb {
  527. allwinner,pins = "PL0", "PL1";
  528. allwinner,function = "s_rsb";
  529. allwinner,drive = <SUN4I_PINCTRL_20_MA>;
  530. allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
  531. };
  532. r_uart_pins_a: r_uart@0 {
  533. allwinner,pins = "PL2", "PL3";
  534. allwinner,function = "s_uart";
  535. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  536. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  537. };
  538. };
  539. r_rsb: rsb@01f03400 {
  540. compatible = "allwinner,sun8i-a23-rsb";
  541. reg = <0x01f03400 0x400>;
  542. interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
  543. clocks = <&apb0_gates 3>;
  544. clock-frequency = <3000000>;
  545. resets = <&apb0_rst 3>;
  546. pinctrl-names = "default";
  547. pinctrl-0 = <&r_rsb_pins>;
  548. status = "disabled";
  549. #address-cells = <1>;
  550. #size-cells = <0>;
  551. };
  552. };
  553. };