Advertisement
Guest User

Untitled

a guest
Aug 24th, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.40 KB | None | 0 0
  1. /*
  2. * Copyright 2013 Maxime Ripard
  3. *
  4. * Maxime Ripard <maxime.ripard@free-electrons.com>
  5. *
  6. * The code contained herein is licensed under the GNU General Public
  7. * License. You may obtain a copy of the GNU General Public License
  8. * Version 2 or later at the following locations:
  9. *
  10. * http://www.opensource.org/licenses/gpl-license.html
  11. * http://www.gnu.org/copyleft/gpl.html
  12. */
  13.  
  14. /dts-v1/;
  15. /include/ "sun7i-a20.dtsi"
  16. /include/ "sunxi-common-regulators.dtsi"
  17.  
  18. / {
  19. model = "Cubietech Cubieboard2";
  20. compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";
  21.  
  22. soc@01c00000 {
  23. nfc: nand@01c03000 {
  24. pinctrl-names = "default";
  25. pinctrl-0 = <&nand_pins_a &nand_cs0_pins_a &nand_rb0_pins_a>;
  26. status = "okay";
  27.  
  28. nand@0 {
  29. #address-cells = <2>;
  30. #size-cells = <2>;
  31. reg = <0>;
  32. allwinner,rb = <0>;
  33.  
  34. nand-ecc-mode = "hw";
  35. nand-rnd-mode = "hw";
  36. nand-on-flash-bbt;
  37.  
  38. boot0@0 {
  39. label = "boot0";
  40. reg = /bits/ 64 <0x0 0x200000>;
  41. nand-ecc-mode = "hw_syndrome";
  42. nand-rnd-mode = "hw";
  43. nand-randomizer-seeds = /bits/ 16 <0x4a80>;
  44. };
  45.  
  46. boot0-rescue@200000 {
  47. label = "boot0-rescue";
  48. reg = /bits/ 64 <0x200000 0x200000>;
  49. nand-ecc-mode = "hw_syndrome";
  50. nand-rnd-mode = "hw";
  51. nand-randomizer-seeds = /bits/ 16 <0x4a80>;
  52. };
  53.  
  54. main@200000 {
  55. label = "main";
  56. reg = /bits/ 64 <0x400000 0xffe00000>;
  57. nand-ecc-mode = "hw";
  58. nand-rnd-mode = "hw";
  59. nand-randomizer-seeds = /bits/ 16 <
  60. 0x2b75 0x0bd0 0x5ca3 0x62d1 0x1c93 0x07e9 0x2162 0x3a72
  61. 0x0d67 0x67f9 0x1be7 0x077d 0x032f 0x0dac 0x2716 0x2436
  62. 0x7922 0x1510 0x3860 0x5287 0x480f 0x4252 0x1789 0x5a2d
  63. 0x2a49 0x5e10 0x437f 0x4b4e 0x2f45 0x216e 0x5cb7 0x7130
  64. 0x2a3f 0x60e4 0x4dc9 0x0ef0 0x0f52 0x1bb9 0x6211 0x7a56
  65. 0x226d 0x4ea7 0x6f36 0x3692 0x38bf 0x0c62 0x05eb 0x4c55
  66. 0x60f4 0x728c 0x3b6f 0x2037 0x7f69 0x0936 0x651a 0x4ceb
  67. 0x6218 0x79f3 0x383f 0x18d9 0x4f05 0x5c82 0x2912 0x6f17
  68. 0x6856 0x5938 0x1007 0x61ab 0x3e7f 0x57c2 0x542f 0x4f62
  69. 0x7454 0x2eac 0x7739 0x42d4 0x2f90 0x435a 0x2e52 0x2064
  70. 0x637c 0x66ad 0x2c90 0x0bad 0x759c 0x0029 0x0986 0x7126
  71. 0x1ca7 0x1605 0x386a 0x27f5 0x1380 0x6d75 0x24c3 0x0f8e
  72. 0x2b7a 0x1418 0x1fd1 0x7dc1 0x2d8e 0x43af 0x2267 0x7da3
  73. 0x4e3d 0x1338 0x50db 0x454d 0x764d 0x40a3 0x42e6 0x262b
  74. 0x2d2e 0x1aea 0x2e17 0x173d 0x3a6e 0x71bf 0x25f9 0x0a5d
  75. 0x7c57 0x0fbe 0x46ce 0x4939 0x6b17 0x37bb 0x3e91 0x76db>;
  76. };
  77. };
  78. };
  79.  
  80. mmc0: mmc@01c0f000 {
  81. pinctrl-names = "default";
  82. pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
  83. vmmc-supply = <&reg_vcc3v3>;
  84. bus-width = <4>;
  85. cd-gpios = <&pio 7 1 0>; /* PH1 */
  86. cd-inverted;
  87. status = "okay";
  88. };
  89.  
  90. usbphy: phy@01c13400 {
  91. usb1_vbus-supply = <&reg_usb1_vbus>;
  92. usb2_vbus-supply = <&reg_usb2_vbus>;
  93. status = "okay";
  94. };
  95.  
  96. ehci0: usb@01c14000 {
  97. status = "okay";
  98. };
  99.  
  100. ohci0: usb@01c14400 {
  101. status = "okay";
  102. };
  103.  
  104. ahci: sata@01c18000 {
  105. target-supply = <&reg_ahci_5v>;
  106. status = "okay";
  107. };
  108.  
  109. ehci1: usb@01c1c000 {
  110. status = "okay";
  111. };
  112.  
  113. ohci1: usb@01c1c400 {
  114. status = "okay";
  115. };
  116.  
  117. pinctrl@01c20800 {
  118. led_pins_cubieboard2: led_pins@0 {
  119. allwinner,pins = "PH20", "PH21";
  120. allwinner,function = "gpio_out";
  121. allwinner,drive = <0>;
  122. allwinner,pull = <0>;
  123. };
  124. };
  125.  
  126. uart0: serial@01c28000 {
  127. pinctrl-names = "default";
  128. pinctrl-0 = <&uart0_pins_a>;
  129. status = "okay";
  130. };
  131.  
  132. i2c0: i2c@01c2ac00 {
  133. pinctrl-names = "default";
  134. pinctrl-0 = <&i2c0_pins_a>;
  135. status = "okay";
  136. };
  137.  
  138. i2c1: i2c@01c2b000 {
  139. pinctrl-names = "default";
  140. pinctrl-0 = <&i2c1_pins_a>;
  141. status = "okay";
  142. };
  143.  
  144. gmac: ethernet@01c50000 {
  145. pinctrl-names = "default";
  146. pinctrl-0 = <&gmac_pins_mii_a>;
  147. phy = <&phy1>;
  148. phy-mode = "mii";
  149. status = "okay";
  150.  
  151. phy1: ethernet-phy@1 {
  152. reg = <1>;
  153. };
  154. };
  155. };
  156.  
  157. leds {
  158. compatible = "gpio-leds";
  159. pinctrl-names = "default";
  160. pinctrl-0 = <&led_pins_cubieboard2>;
  161.  
  162. blue {
  163. label = "cubieboard2:blue:usr";
  164. gpios = <&pio 7 21 0>;
  165. };
  166.  
  167. green {
  168. label = "cubieboard2:green:usr";
  169. gpios = <&pio 7 20 0>;
  170. };
  171. };
  172.  
  173. reg_ahci_5v: ahci-5v {
  174. status = "okay";
  175. };
  176.  
  177. reg_usb1_vbus: usb1-vbus {
  178. status = "okay";
  179. };
  180.  
  181. reg_usb2_vbus: usb2-vbus {
  182. status = "okay";
  183. };
  184. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement