Advertisement
mentaluproar

nanopi-mi exposed uart1 dtb

Jun 18th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.21 KB | None | 0 0
  1. /dts-v1/;
  2.  
  3. / {
  4. #address-cells = <0x1>;
  5. #size-cells = <0x1>;
  6. interrupt-parent = <0x1>;
  7. model = "FriendlyArm NanoPi M1";
  8. compatible = "friendlyarm,nanopi-m1", "allwinner,sun8i-h3";
  9.  
  10. chosen {
  11. stdout-path = "serial0:115200n8";
  12. };
  13.  
  14. aliases {
  15. ethernet0 = "/soc/ethernet@1c30000";
  16. serial0 = "/soc/serial@01c28000";
  17. serial1 = "/soc/serial@01c28400";
  18. };
  19.  
  20. memory {
  21. device_type = "memory";
  22. reg = <0x0 0x0>;
  23. };
  24.  
  25. cpus {
  26. #address-cells = <0x1>;
  27. #size-cells = <0x0>;
  28.  
  29. cpu@0 {
  30. compatible = "arm,cortex-a7";
  31. device_type = "cpu";
  32. reg = <0x0>;
  33. };
  34.  
  35. cpu@1 {
  36. compatible = "arm,cortex-a7";
  37. device_type = "cpu";
  38. reg = <0x1>;
  39. };
  40.  
  41. cpu@2 {
  42. compatible = "arm,cortex-a7";
  43. device_type = "cpu";
  44. reg = <0x2>;
  45. };
  46.  
  47. cpu@3 {
  48. compatible = "arm,cortex-a7";
  49. device_type = "cpu";
  50. reg = <0x3>;
  51. };
  52. };
  53.  
  54. timer {
  55. compatible = "arm,armv7-timer";
  56. interrupts = <0x1 0xd 0xf08 0x1 0xe 0xf08 0x1 0xb 0xf08 0x1 0xa 0xf08>;
  57. };
  58.  
  59. clocks {
  60. #address-cells = <0x1>;
  61. #size-cells = <0x1>;
  62. ranges;
  63.  
  64. osc24M_clk {
  65. #clock-cells = <0x0>;
  66. compatible = "fixed-clock";
  67. clock-frequency = <0x16e3600>;
  68. clock-output-names = "osc24M";
  69. linux,phandle = <0x2>;
  70. phandle = <0x2>;
  71. };
  72.  
  73. osc32k_clk {
  74. #clock-cells = <0x0>;
  75. compatible = "fixed-clock";
  76. clock-frequency = <0x8000>;
  77. clock-output-names = "osc32k";
  78. linux,phandle = <0x4>;
  79. phandle = <0x4>;
  80. };
  81.  
  82. apb0_clk {
  83. compatible = "fixed-factor-clock";
  84. #clock-cells = <0x0>;
  85. clock-div = <0x1>;
  86. clock-mult = <0x1>;
  87. clocks = <0x2>;
  88. clock-output-names = "apb0";
  89. linux,phandle = <0x3>;
  90. phandle = <0x3>;
  91. };
  92.  
  93. clk@01f01428 {
  94. compatible = "allwinner,sun8i-h3-apb0-gates-clk", "allwinner,sun4i-a10-gates-clk";
  95. reg = <0x1f01428 0x4>;
  96. #clock-cells = <0x1>;
  97. clocks = <0x3>;
  98. clock-indices = <0x0 0x1>;
  99. clock-output-names = "apb0_pio", "apb0_ir";
  100. linux,phandle = <0x13>;
  101. phandle = <0x13>;
  102. };
  103.  
  104. ir_clk@01f01454 {
  105. compatible = "allwinner,sun4i-a10-mod0-clk";
  106. reg = <0x1f01454 0x4>;
  107. #clock-cells = <0x0>;
  108. clocks = <0x4 0x2>;
  109. clock-output-names = "ir";
  110. linux,phandle = <0x14>;
  111. phandle = <0x14>;
  112. };
  113. };
  114.  
  115. soc {
  116. compatible = "simple-bus";
  117. #address-cells = <0x1>;
  118. #size-cells = <0x1>;
  119. ranges;
  120.  
  121. dma-controller@01c02000 {
  122. compatible = "allwinner,sun8i-h3-dma";
  123. reg = <0x1c02000 0x1000>;
  124. interrupts = <0x0 0x32 0x4>;
  125. clocks = <0x5 0x15>;
  126. resets = <0x5 0x6>;
  127. #dma-cells = <0x1>;
  128. linux,phandle = <0xb>;
  129. phandle = <0xb>;
  130. };
  131.  
  132. mmc@01c0f000 {
  133. compatible = "allwinner,sun7i-a20-mmc";
  134. reg = <0x1c0f000 0x1000>;
  135. clocks = <0x5 0x16 0x5 0x47 0x5 0x49 0x5 0x48>;
  136. clock-names = "ahb", "mmc", "output", "sample";
  137. resets = <0x5 0x7>;
  138. reset-names = "ahb";
  139. interrupts = <0x0 0x3c 0x4>;
  140. status = "okay";
  141. #address-cells = <0x1>;
  142. #size-cells = <0x0>;
  143. bus-width = <0x4>;
  144. cd-gpios = <0x6 0x5 0x6 0x0>;
  145. cd-inverted;
  146. pinctrl-names = "default";
  147. pinctrl-0 = <0x7 0x8>;
  148. vmmc-supply = <0x9>;
  149. linux,phandle = <0x1e>;
  150. phandle = <0x1e>;
  151. };
  152.  
  153. mmc@01c10000 {
  154. compatible = "allwinner,sun7i-a20-mmc";
  155. reg = <0x1c10000 0x1000>;
  156. clocks = <0x5 0x17 0x5 0x4a 0x5 0x4c 0x5 0x4b>;
  157. clock-names = "ahb", "mmc", "output", "sample";
  158. resets = <0x5 0x8>;
  159. reset-names = "ahb";
  160. interrupts = <0x0 0x3d 0x4>;
  161. status = "disabled";
  162. #address-cells = <0x1>;
  163. #size-cells = <0x0>;
  164. linux,phandle = <0x1f>;
  165. phandle = <0x1f>;
  166. };
  167.  
  168. mmc@01c11000 {
  169. compatible = "allwinner,sun7i-a20-mmc";
  170. reg = <0x1c11000 0x1000>;
  171. clocks = <0x5 0x18 0x5 0x4d 0x5 0x4f 0x5 0x4e>;
  172. clock-names = "ahb", "mmc", "output", "sample";
  173. resets = <0x5 0x9>;
  174. reset-names = "ahb";
  175. interrupts = <0x0 0x3e 0x4>;
  176. status = "disabled";
  177. #address-cells = <0x1>;
  178. #size-cells = <0x0>;
  179. linux,phandle = <0x20>;
  180. phandle = <0x20>;
  181. };
  182.  
  183. phy@01c19400 {
  184. compatible = "allwinner,sun8i-h3-usb-phy";
  185. reg = <0x1c19400 0x2c 0x1c1a800 0x4 0x1c1b800 0x4 0x1c1c800 0x4 0x1c1d800 0x4>;
  186. reg-names = "phy_ctrl", "pmu0", "pmu1", "pmu2", "pmu3";
  187. clocks = <0x5 0x58 0x5 0x59 0x5 0x5a 0x5 0x5b>;
  188. clock-names = "usb0_phy", "usb1_phy", "usb2_phy", "usb3_phy";
  189. resets = <0x5 0x0 0x5 0x1 0x5 0x2 0x5 0x3>;
  190. reset-names = "usb0_reset", "usb1_reset", "usb2_reset", "usb3_reset";
  191. status = "okay";
  192. #phy-cells = <0x1>;
  193. linux,phandle = <0xa>;
  194. phandle = <0xa>;
  195. };
  196.  
  197. usb@01c1b000 {
  198. compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  199. reg = <0x1c1b000 0x100>;
  200. interrupts = <0x0 0x4a 0x4>;
  201. clocks = <0x5 0x22 0x5 0x26>;
  202. resets = <0x5 0x13 0x5 0x17>;
  203. phys = <0xa 0x1>;
  204. phy-names = "usb";
  205. status = "okay";
  206. linux,phandle = <0x21>;
  207. phandle = <0x21>;
  208. };
  209.  
  210. usb@01c1b400 {
  211. compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  212. reg = <0x1c1b400 0x100>;
  213. interrupts = <0x0 0x4b 0x4>;
  214. clocks = <0x5 0x22 0x5 0x26 0x5 0x5d>;
  215. resets = <0x5 0x13 0x5 0x17>;
  216. phys = <0xa 0x1>;
  217. phy-names = "usb";
  218. status = "okay";
  219. linux,phandle = <0x22>;
  220. phandle = <0x22>;
  221. };
  222.  
  223. usb@01c1c000 {
  224. compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  225. reg = <0x1c1c000 0x100>;
  226. interrupts = <0x0 0x4c 0x4>;
  227. clocks = <0x5 0x23 0x5 0x27>;
  228. resets = <0x5 0x14 0x5 0x18>;
  229. phys = <0xa 0x2>;
  230. phy-names = "usb";
  231. status = "okay";
  232. linux,phandle = <0x23>;
  233. phandle = <0x23>;
  234. };
  235.  
  236. usb@01c1c400 {
  237. compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  238. reg = <0x1c1c400 0x100>;
  239. interrupts = <0x0 0x4d 0x4>;
  240. clocks = <0x5 0x23 0x5 0x27 0x5 0x5e>;
  241. resets = <0x5 0x14 0x5 0x18>;
  242. phys = <0xa 0x2>;
  243. phy-names = "usb";
  244. status = "okay";
  245. linux,phandle = <0x24>;
  246. phandle = <0x24>;
  247. };
  248.  
  249. usb@01c1d000 {
  250. compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
  251. reg = <0x1c1d000 0x100>;
  252. interrupts = <0x0 0x4e 0x4>;
  253. clocks = <0x5 0x24 0x5 0x28>;
  254. resets = <0x5 0x15 0x5 0x19>;
  255. phys = <0xa 0x3>;
  256. phy-names = "usb";
  257. status = "okay";
  258. linux,phandle = <0x25>;
  259. phandle = <0x25>;
  260. };
  261.  
  262. usb@01c1d400 {
  263. compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
  264. reg = <0x1c1d400 0x100>;
  265. interrupts = <0x0 0x4f 0x4>;
  266. clocks = <0x5 0x24 0x5 0x28 0x5 0x5f>;
  267. resets = <0x5 0x15 0x5 0x19>;
  268. phys = <0xa 0x3>;
  269. phy-names = "usb";
  270. status = "okay";
  271. linux,phandle = <0x26>;
  272. phandle = <0x26>;
  273. };
  274.  
  275. clock@01c20000 {
  276. compatible = "allwinner,sun8i-h3-ccu";
  277. reg = <0x1c20000 0x400>;
  278. clocks = <0x2 0x4>;
  279. clock-names = "hosc", "losc";
  280. #clock-cells = <0x1>;
  281. #reset-cells = <0x1>;
  282. linux,phandle = <0x5>;
  283. phandle = <0x5>;
  284. };
  285.  
  286. pinctrl@01c20800 {
  287. compatible = "allwinner,sun8i-h3-pinctrl";
  288. reg = <0x1c20800 0x400>;
  289. interrupts = <0x0 0xb 0x4 0x0 0x11 0x4>;
  290. clocks = <0x5 0x36 0x2 0x4>;
  291. clock-names = "apb", "hosc", "losc";
  292. gpio-controller;
  293. #gpio-cells = <0x3>;
  294. interrupt-controller;
  295. #interrupt-cells = <0x3>;
  296. linux,phandle = <0x6>;
  297. phandle = <0x6>;
  298.  
  299. i2c0 {
  300. pins = "PA11", "PA12";
  301. function = "i2c0";
  302. linux,phandle = <0x10>;
  303. phandle = <0x10>;
  304. };
  305.  
  306. i2c1 {
  307. pins = "PA18", "PA19";
  308. function = "i2c1";
  309. linux,phandle = <0x11>;
  310. phandle = <0x11>;
  311. };
  312.  
  313. i2c2 {
  314. pins = "PE12", "PE13";
  315. function = "i2c2";
  316. linux,phandle = <0x12>;
  317. phandle = <0x12>;
  318. };
  319.  
  320. mmc0@0 {
  321. pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5";
  322. function = "mmc0";
  323. drive-strength = <0x1e>;
  324. bias-pull-up;
  325. linux,phandle = <0x7>;
  326. phandle = <0x7>;
  327. };
  328.  
  329. mmc0_cd_pin@0 {
  330. pins = "PF6";
  331. function = "gpio_in";
  332. bias-pull-up;
  333. linux,phandle = <0x8>;
  334. phandle = <0x8>;
  335. };
  336.  
  337. mmc1@0 {
  338. pins = "PG0", "PG1", "PG2", "PG3", "PG4", "PG5";
  339. function = "mmc1";
  340. drive-strength = <0x1e>;
  341. bias-pull-up;
  342. linux,phandle = <0x27>;
  343. phandle = <0x27>;
  344. };
  345.  
  346. mmc2_8bit {
  347. pins = "PC5", "PC6", "PC8", "PC9", "PC10", "PC11", "PC12", "PC13", "PC14", "PC15", "PC16";
  348. function = "mmc2";
  349. drive-strength = <0x1e>;
  350. bias-pull-up;
  351. linux,phandle = <0x28>;
  352. phandle = <0x28>;
  353. };
  354.  
  355. spdif@0 {
  356. pins = "PA17";
  357. function = "spdif";
  358. linux,phandle = <0x29>;
  359. phandle = <0x29>;
  360. };
  361.  
  362. spi0 {
  363. pins = "PC0", "PC1", "PC2", "PC3";
  364. function = "spi0";
  365. linux,phandle = <0xc>;
  366. phandle = <0xc>;
  367. };
  368.  
  369. spi1 {
  370. pins = "PA15", "PA16", "PA14", "PA13";
  371. function = "spi1";
  372. linux,phandle = <0xd>;
  373. phandle = <0xd>;
  374. };
  375.  
  376. uart0@0 {
  377. pins = "PA4", "PA5";
  378. function = "uart0";
  379. linux,phandle = <0xf>;
  380. phandle = <0xf>;
  381. };
  382.  
  383. uart1 {
  384. pins = "PG6", "PG7";
  385. function = "uart1";
  386. linux,phandle = <0x2a>;
  387. phandle = <0x2a>;
  388. };
  389.  
  390. uart1_rts_cts {
  391. pins = "PG8", "PG9";
  392. function = "uart1";
  393. linux,phandle = <0x2b>;
  394. phandle = <0x2b>;
  395. };
  396.  
  397. uart2 {
  398. pins = "PA0", "PA1";
  399. function = "uart2";
  400. linux,phandle = <0x2c>;
  401. phandle = <0x2c>;
  402. };
  403.  
  404. uart3 {
  405. pins = "PA13", "PA14";
  406. function = "uart3";
  407. linux,phandle = <0x2d>;
  408. phandle = <0x2d>;
  409. };
  410.  
  411. ahci_pwr_pin@0 {
  412. pins = "PB8";
  413. function = "gpio_out";
  414. linux,phandle = <0x16>;
  415. phandle = <0x16>;
  416. };
  417.  
  418. usb0_vbus_pin@0 {
  419. pins = "PB9";
  420. function = "gpio_out";
  421. linux,phandle = <0x17>;
  422. phandle = <0x17>;
  423. };
  424.  
  425. usb1_vbus_pin@0 {
  426. pins = "PH6";
  427. function = "gpio_out";
  428. linux,phandle = <0x18>;
  429. phandle = <0x18>;
  430. };
  431.  
  432. usb2_vbus_pin@0 {
  433. pins = "PH3";
  434. function = "gpio_out";
  435. linux,phandle = <0x19>;
  436. phandle = <0x19>;
  437. };
  438.  
  439. led_pins@0 {
  440. pins = "PA10";
  441. function = "gpio_out";
  442. linux,phandle = <0x1a>;
  443. phandle = <0x1a>;
  444. };
  445. };
  446.  
  447. timer@01c20c00 {
  448. compatible = "allwinner,sun4i-a10-timer";
  449. reg = <0x1c20c00 0xa0>;
  450. interrupts = <0x0 0x12 0x4 0x0 0x13 0x4>;
  451. clocks = <0x2>;
  452. };
  453.  
  454. spi@01c68000 {
  455. compatible = "allwinner,sun8i-h3-spi";
  456. reg = <0x1c68000 0x1000>;
  457. interrupts = <0x0 0x41 0x4>;
  458. clocks = <0x5 0x1e 0x5 0x52>;
  459. clock-names = "ahb", "mod";
  460. dmas = <0xb 0x17 0xb 0x17>;
  461. dma-names = "rx", "tx";
  462. pinctrl-names = "default";
  463. pinctrl-0 = <0xc>;
  464. resets = <0x5 0xf>;
  465. status = "disabled";
  466. #address-cells = <0x1>;
  467. #size-cells = <0x0>;
  468. linux,phandle = <0x2e>;
  469. phandle = <0x2e>;
  470. };
  471.  
  472. spi@01c69000 {
  473. compatible = "allwinner,sun8i-h3-spi";
  474. reg = <0x1c69000 0x1000>;
  475. interrupts = <0x0 0x42 0x4>;
  476. clocks = <0x5 0x1f 0x5 0x53>;
  477. clock-names = "ahb", "mod";
  478. dmas = <0xb 0x18 0xb 0x18>;
  479. dma-names = "rx", "tx";
  480. pinctrl-names = "default";
  481. pinctrl-0 = <0xd>;
  482. resets = <0x5 0x10>;
  483. status = "disabled";
  484. #address-cells = <0x1>;
  485. #size-cells = <0x0>;
  486. linux,phandle = <0x2f>;
  487. phandle = <0x2f>;
  488. };
  489.  
  490. watchdog@01c20ca0 {
  491. compatible = "allwinner,sun6i-a31-wdt";
  492. reg = <0x1c20ca0 0x20>;
  493. interrupts = <0x0 0x19 0x4>;
  494. linux,phandle = <0x30>;
  495. phandle = <0x30>;
  496. };
  497.  
  498. spdif@01c21000 {
  499. #sound-dai-cells = <0x0>;
  500. compatible = "allwinner,sun8i-h3-spdif";
  501. reg = <0x1c21000 0x400>;
  502. interrupts = <0x0 0xc 0x4>;
  503. clocks = <0x5 0x35 0x5 0x57>;
  504. resets = <0x5 0x29>;
  505. clock-names = "apb", "spdif";
  506. dmas = <0xb 0x2>;
  507. dma-names = "tx";
  508. status = "disabled";
  509. linux,phandle = <0x31>;
  510. phandle = <0x31>;
  511. };
  512.  
  513. pwm@01c21400 {
  514. compatible = "allwinner,sun8i-h3-pwm";
  515. reg = <0x1c21400 0x8>;
  516. clocks = <0x2>;
  517. #pwm-cells = <0x3>;
  518. status = "disabled";
  519. linux,phandle = <0x32>;
  520. phandle = <0x32>;
  521. };
  522.  
  523. codec@01c22c00 {
  524. #sound-dai-cells = <0x0>;
  525. compatible = "allwinner,sun8i-h3-codec";
  526. reg = <0x1c22c00 0x400>;
  527. interrupts = <0x0 0x1d 0x4>;
  528. clocks = <0x5 0x34 0x5 0x6d>;
  529. clock-names = "apb", "codec";
  530. resets = <0x5 0x28>;
  531. dmas = <0xb 0xf 0xb 0xf>;
  532. dma-names = "rx", "tx";
  533. allwinner,codec-analog-controls = <0xe>;
  534. status = "disabled";
  535. linux,phandle = <0x33>;
  536. phandle = <0x33>;
  537. };
  538.  
  539. serial@01c28000 {
  540. compatible = "snps,dw-apb-uart";
  541. reg = <0x1c28000 0x400>;
  542. interrupts = <0x0 0x0 0x4>;
  543. reg-shift = <0x2>;
  544. reg-io-width = <0x4>;
  545. clocks = <0x5 0x3e>;
  546. resets = <0x5 0x31>;
  547. dmas = <0xb 0x6 0xb 0x6>;
  548. dma-names = "rx", "tx";
  549. status = "okay";
  550. pinctrl-names = "default";
  551. pinctrl-0 = <0xf>;
  552. linux,phandle = <0x34>;
  553. phandle = <0x34>;
  554. };
  555.  
  556. serial@01c28400 {
  557. compatible = "snps,dw-apb-uart";
  558. reg = <0x1c28400 0x400>;
  559. interrupts = <0x0 0x1 0x4>;
  560. reg-shift = <0x2>;
  561. reg-io-width = <0x4>;
  562. clocks = <0x5 0x3f>;
  563. resets = <0x5 0x32>;
  564. dmas = <0xb 0x7 0xb 0x7>;
  565. dma-names = "rx", "tx";
  566. status = "okay";
  567. pinctrl-names = "default";
  568. pinctrl-0 = <0xffffffff>;
  569. linux,phandle = <0x35>;
  570. phandle = <0x35>;
  571. };
  572.  
  573. serial@01c28800 {
  574. compatible = "snps,dw-apb-uart";
  575. reg = <0x1c28800 0x400>;
  576. interrupts = <0x0 0x2 0x4>;
  577. reg-shift = <0x2>;
  578. reg-io-width = <0x4>;
  579. clocks = <0x5 0x40>;
  580. resets = <0x5 0x33>;
  581. dmas = <0xb 0x8 0xb 0x8>;
  582. dma-names = "rx", "tx";
  583. status = "disabled";
  584. linux,phandle = <0x36>;
  585. phandle = <0x36>;
  586. };
  587.  
  588. serial@01c28c00 {
  589. compatible = "snps,dw-apb-uart";
  590. reg = <0x1c28c00 0x400>;
  591. interrupts = <0x0 0x3 0x4>;
  592. reg-shift = <0x2>;
  593. reg-io-width = <0x4>;
  594. clocks = <0x5 0x41>;
  595. resets = <0x5 0x34>;
  596. dmas = <0xb 0x9 0xb 0x9>;
  597. dma-names = "rx", "tx";
  598. status = "disabled";
  599. linux,phandle = <0x37>;
  600. phandle = <0x37>;
  601. };
  602.  
  603. i2c@01c2ac00 {
  604. compatible = "allwinner,sun6i-a31-i2c";
  605. reg = <0x1c2ac00 0x400>;
  606. interrupts = <0x0 0x6 0x4>;
  607. clocks = <0x5 0x3b>;
  608. resets = <0x5 0x2e>;
  609. pinctrl-names = "default";
  610. pinctrl-0 = <0x10>;
  611. status = "disabled";
  612. #address-cells = <0x1>;
  613. #size-cells = <0x0>;
  614. linux,phandle = <0x38>;
  615. phandle = <0x38>;
  616. };
  617.  
  618. i2c@01c2b000 {
  619. compatible = "allwinner,sun6i-a31-i2c";
  620. reg = <0x1c2b000 0x400>;
  621. interrupts = <0x0 0x7 0x4>;
  622. clocks = <0x5 0x3c>;
  623. resets = <0x5 0x2f>;
  624. pinctrl-names = "default";
  625. pinctrl-0 = <0x11>;
  626. status = "disabled";
  627. #address-cells = <0x1>;
  628. #size-cells = <0x0>;
  629. linux,phandle = <0x39>;
  630. phandle = <0x39>;
  631. };
  632.  
  633. i2c@01c2b400 {
  634. compatible = "allwinner,sun6i-a31-i2c";
  635. reg = <0x1c2b000 0x400>;
  636. interrupts = <0x0 0x8 0x4>;
  637. clocks = <0x5 0x3d>;
  638. resets = <0x5 0x30>;
  639. pinctrl-names = "default";
  640. pinctrl-0 = <0x12>;
  641. status = "disabled";
  642. #address-cells = <0x1>;
  643. #size-cells = <0x0>;
  644. linux,phandle = <0x3a>;
  645. phandle = <0x3a>;
  646. };
  647.  
  648. ethernet@1c30000 {
  649. compatible = "allwinner,sun8i-h3-emac";
  650. reg = <0x1c30000 0x104 0x1c00030 0x4>;
  651. reg-names = "emac", "syscon";
  652. interrupts = <0x0 0x52 0x4>;
  653. resets = <0x5 0xc 0x5 0x27>;
  654. reset-names = "ahb", "ephy";
  655. clocks = <0x5 0x1b 0x5 0x43>;
  656. clock-names = "ahb", "ephy";
  657. #address-cells = <0x1>;
  658. #size-cells = <0x0>;
  659. status = "okay";
  660. linux,phandle = <0x3b>;
  661. phandle = <0x3b>;
  662. };
  663.  
  664. interrupt-controller@01c81000 {
  665. compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  666. reg = <0x1c81000 0x1000 0x1c82000 0x2000 0x1c84000 0x2000 0x1c86000 0x2000>;
  667. interrupt-controller;
  668. #interrupt-cells = <0x3>;
  669. interrupts = <0x1 0x9 0xf04>;
  670. linux,phandle = <0x1>;
  671. phandle = <0x1>;
  672. };
  673.  
  674. rtc@01f00000 {
  675. compatible = "allwinner,sun6i-a31-rtc";
  676. reg = <0x1f00000 0x54>;
  677. interrupts = <0x0 0x28 0x4 0x0 0x29 0x4>;
  678. linux,phandle = <0x3c>;
  679. phandle = <0x3c>;
  680. };
  681.  
  682. reset@01f014b0 {
  683. reg = <0x1f014b0 0x4>;
  684. compatible = "allwinner,sun6i-a31-clock-reset";
  685. #reset-cells = <0x1>;
  686. linux,phandle = <0x15>;
  687. phandle = <0x15>;
  688. };
  689.  
  690. codec-analog@01f015c0 {
  691. compatible = "allwinner,sun8i-h3-codec-analog";
  692. reg = <0x1f015c0 0x4>;
  693. linux,phandle = <0xe>;
  694. phandle = <0xe>;
  695. };
  696.  
  697. ir@01f02000 {
  698. compatible = "allwinner,sun5i-a13-ir";
  699. clocks = <0x13 0x1 0x14>;
  700. clock-names = "apb", "ir";
  701. resets = <0x15 0x1>;
  702. interrupts = <0x0 0x25 0x4>;
  703. reg = <0x1f02000 0x40>;
  704. status = "disabled";
  705. linux,phandle = <0x3d>;
  706. phandle = <0x3d>;
  707. };
  708.  
  709. pinctrl@01f02c00 {
  710. compatible = "allwinner,sun8i-h3-r-pinctrl";
  711. reg = <0x1f02c00 0x400>;
  712. interrupts = <0x0 0x2d 0x4>;
  713. clocks = <0x13 0x0 0x2 0x4>;
  714. clock-names = "apb", "hosc", "losc";
  715. resets = <0x15 0x0>;
  716. gpio-controller;
  717. #gpio-cells = <0x3>;
  718. interrupt-controller;
  719. #interrupt-cells = <0x3>;
  720. linux,phandle = <0x1c>;
  721. phandle = <0x1c>;
  722.  
  723. ir@0 {
  724. pins = "PL11";
  725. function = "s_cir_rx";
  726. linux,phandle = <0x3e>;
  727. phandle = <0x3e>;
  728. };
  729.  
  730. led_pins@0 {
  731. pins = "PL10";
  732. function = "gpio_out";
  733. linux,phandle = <0x1b>;
  734. phandle = <0x1b>;
  735. };
  736.  
  737. key_pins@0 {
  738. pins = "PL3";
  739. function = "gpio_in";
  740. linux,phandle = <0x1d>;
  741. phandle = <0x1d>;
  742. };
  743. };
  744. };
  745.  
  746. ahci-5v {
  747. compatible = "regulator-fixed";
  748. pinctrl-names = "default";
  749. pinctrl-0 = <0x16>;
  750. regulator-name = "ahci-5v";
  751. regulator-min-microvolt = <0x4c4b40>;
  752. regulator-max-microvolt = <0x4c4b40>;
  753. regulator-boot-on;
  754. enable-active-high;
  755. gpio = <0x6 0x1 0x8 0x0>;
  756. status = "disabled";
  757. linux,phandle = <0x3f>;
  758. phandle = <0x3f>;
  759. };
  760.  
  761. usb0-vbus {
  762. compatible = "regulator-fixed";
  763. pinctrl-names = "default";
  764. pinctrl-0 = <0x17>;
  765. regulator-name = "usb0-vbus";
  766. regulator-min-microvolt = <0x4c4b40>;
  767. regulator-max-microvolt = <0x4c4b40>;
  768. enable-active-high;
  769. gpio = <0x6 0x1 0x9 0x0>;
  770. status = "disabled";
  771. linux,phandle = <0x40>;
  772. phandle = <0x40>;
  773. };
  774.  
  775. usb1-vbus {
  776. compatible = "regulator-fixed";
  777. pinctrl-names = "default";
  778. pinctrl-0 = <0x18>;
  779. regulator-name = "usb1-vbus";
  780. regulator-min-microvolt = <0x4c4b40>;
  781. regulator-max-microvolt = <0x4c4b40>;
  782. regulator-boot-on;
  783. enable-active-high;
  784. gpio = <0x6 0x7 0x6 0x0>;
  785. status = "disabled";
  786. linux,phandle = <0x41>;
  787. phandle = <0x41>;
  788. };
  789.  
  790. usb2-vbus {
  791. compatible = "regulator-fixed";
  792. pinctrl-names = "default";
  793. pinctrl-0 = <0x19>;
  794. regulator-name = "usb2-vbus";
  795. regulator-min-microvolt = <0x4c4b40>;
  796. regulator-max-microvolt = <0x4c4b40>;
  797. regulator-boot-on;
  798. enable-active-high;
  799. gpio = <0x6 0x7 0x3 0x0>;
  800. status = "disabled";
  801. linux,phandle = <0x42>;
  802. phandle = <0x42>;
  803. };
  804.  
  805. vcc3v0 {
  806. compatible = "regulator-fixed";
  807. regulator-name = "vcc3v0";
  808. regulator-min-microvolt = <0x2dc6c0>;
  809. regulator-max-microvolt = <0x2dc6c0>;
  810. linux,phandle = <0x43>;
  811. phandle = <0x43>;
  812. };
  813.  
  814. vcc3v3 {
  815. compatible = "regulator-fixed";
  816. regulator-name = "vcc3v3";
  817. regulator-min-microvolt = <0x325aa0>;
  818. regulator-max-microvolt = <0x325aa0>;
  819. linux,phandle = <0x9>;
  820. phandle = <0x9>;
  821. };
  822.  
  823. vcc5v0 {
  824. compatible = "regulator-fixed";
  825. regulator-name = "vcc5v0";
  826. regulator-min-microvolt = <0x4c4b40>;
  827. regulator-max-microvolt = <0x4c4b40>;
  828. linux,phandle = <0x44>;
  829. phandle = <0x44>;
  830. };
  831.  
  832. leds {
  833. compatible = "gpio-leds";
  834. pinctrl-names = "default";
  835. pinctrl-0 = <0x1a 0x1b>;
  836.  
  837. status {
  838. label = "nanopi:blue:status";
  839. gpios = <0x6 0x0 0xa 0x0>;
  840. linux,default-trigger = "heartbeat";
  841. };
  842.  
  843. pwr {
  844. label = "nanopi:green:pwr";
  845. gpios = <0x1c 0x0 0xa 0x0>;
  846. default-state = "on";
  847. };
  848. };
  849.  
  850. r_gpio_keys {
  851. compatible = "gpio-keys";
  852. input-name = "k1";
  853. pinctrl-names = "default";
  854. pinctrl-0 = <0x1d>;
  855.  
  856. k1@0 {
  857. label = "k1";
  858. linux,code = <0x74>;
  859. gpios = <0x1c 0x0 0x3 0x1>;
  860. };
  861. };
  862.  
  863. __symbols__ {
  864. osc24M = "/clocks/osc24M_clk";
  865. osc32k = "/clocks/osc32k_clk";
  866. apb0 = "/clocks/apb0_clk";
  867. apb0_gates = "/clocks/clk@01f01428";
  868. ir_clk = "/clocks/ir_clk@01f01454";
  869. dma = "/soc/dma-controller@01c02000";
  870. mmc0 = "/soc/mmc@01c0f000";
  871. mmc1 = "/soc/mmc@01c10000";
  872. mmc2 = "/soc/mmc@01c11000";
  873. usbphy = "/soc/phy@01c19400";
  874. ehci1 = "/soc/usb@01c1b000";
  875. ohci1 = "/soc/usb@01c1b400";
  876. ehci2 = "/soc/usb@01c1c000";
  877. ohci2 = "/soc/usb@01c1c400";
  878. ehci3 = "/soc/usb@01c1d000";
  879. ohci3 = "/soc/usb@01c1d400";
  880. ccu = "/soc/clock@01c20000";
  881. pio = "/soc/pinctrl@01c20800";
  882. i2c0_pins = "/soc/pinctrl@01c20800/i2c0";
  883. i2c1_pins = "/soc/pinctrl@01c20800/i2c1";
  884. i2c2_pins = "/soc/pinctrl@01c20800/i2c2";
  885. mmc0_pins_a = "/soc/pinctrl@01c20800/mmc0@0";
  886. mmc0_cd_pin = "/soc/pinctrl@01c20800/mmc0_cd_pin@0";
  887. mmc1_pins_a = "/soc/pinctrl@01c20800/mmc1@0";
  888. mmc2_8bit_pins = "/soc/pinctrl@01c20800/mmc2_8bit";
  889. spdif_tx_pins_a = "/soc/pinctrl@01c20800/spdif@0";
  890. spi0_pins = "/soc/pinctrl@01c20800/spi0";
  891. spi1_pins = "/soc/pinctrl@01c20800/spi1";
  892. uart0_pins_a = "/soc/pinctrl@01c20800/uart0@0";
  893. uart1_pins = "/soc/pinctrl@01c20800/uart1";
  894. uart1_rts_cts_pins = "/soc/pinctrl@01c20800/uart1_rts_cts";
  895. uart2_pins = "/soc/pinctrl@01c20800/uart2";
  896. uart3_pins = "/soc/pinctrl@01c20800/uart3";
  897. ahci_pwr_pin_a = "/soc/pinctrl@01c20800/ahci_pwr_pin@0";
  898. usb0_vbus_pin_a = "/soc/pinctrl@01c20800/usb0_vbus_pin@0";
  899. usb1_vbus_pin_a = "/soc/pinctrl@01c20800/usb1_vbus_pin@0";
  900. usb2_vbus_pin_a = "/soc/pinctrl@01c20800/usb2_vbus_pin@0";
  901. leds_npi = "/soc/pinctrl@01c20800/led_pins@0";
  902. spi0 = "/soc/spi@01c68000";
  903. spi1 = "/soc/spi@01c69000";
  904. wdt0 = "/soc/watchdog@01c20ca0";
  905. spdif = "/soc/spdif@01c21000";
  906. pwm = "/soc/pwm@01c21400";
  907. codec = "/soc/codec@01c22c00";
  908. uart0 = "/soc/serial@01c28000";
  909. uart1 = "/soc/serial@01c28400";
  910. uart2 = "/soc/serial@01c28800";
  911. uart3 = "/soc/serial@01c28c00";
  912. i2c0 = "/soc/i2c@01c2ac00";
  913. i2c1 = "/soc/i2c@01c2b000";
  914. i2c2 = "/soc/i2c@01c2b400";
  915. emac = "/soc/ethernet@1c30000";
  916. gic = "/soc/interrupt-controller@01c81000";
  917. rtc = "/soc/rtc@01f00000";
  918. apb0_reset = "/soc/reset@01f014b0";
  919. codec_analog = "/soc/codec-analog@01f015c0";
  920. ir = "/soc/ir@01f02000";
  921. r_pio = "/soc/pinctrl@01f02c00";
  922. ir_pins_a = "/soc/pinctrl@01f02c00/ir@0";
  923. leds_r_npi = "/soc/pinctrl@01f02c00/led_pins@0";
  924. sw_r_npi = "/soc/pinctrl@01f02c00/key_pins@0";
  925. reg_ahci_5v = "/ahci-5v";
  926. reg_usb0_vbus = "/usb0-vbus";
  927. reg_usb1_vbus = "/usb1-vbus";
  928. reg_usb2_vbus = "/usb2-vbus";
  929. reg_vcc3v0 = "/vcc3v0";
  930. reg_vcc3v3 = "/vcc3v3";
  931. reg_vcc5v0 = "/vcc5v0";
  932. };
  933. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement