sun4i-a10-cubieboard.dts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. /*
  2. * Copyright 2012 Stefan Roese
  3. * Stefan Roese <[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. /dts-v1/;
  44. #include "sun4i-a10.dtsi"
  45. #include "sunxi-common-regulators.dtsi"
  46. #include <dt-bindings/gpio/gpio.h>
  47. / {
  48. model = "Cubietech Cubieboard";
  49. compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10";
  50. aliases {
  51. serial0 = &uart0;
  52. };
  53. chosen {
  54. stdout-path = "serial0:115200n8";
  55. };
  56. hdmi-connector {
  57. compatible = "hdmi-connector";
  58. type = "a";
  59. port {
  60. hdmi_con_in: endpoint {
  61. remote-endpoint = <&hdmi_out_con>;
  62. };
  63. };
  64. };
  65. leds {
  66. compatible = "gpio-leds";
  67. pinctrl-names = "default";
  68. pinctrl-0 = <&led_pins_cubieboard>;
  69. led-0 {
  70. label = "cubieboard:blue:usr";
  71. gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* LED1 */
  72. };
  73. led-1 {
  74. label = "cubieboard:green:usr";
  75. gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; /* LED2 */
  76. linux,default-trigger = "heartbeat";
  77. };
  78. };
  79. };
  80. &ahci {
  81. target-supply = <&reg_ahci_5v>;
  82. status = "okay";
  83. };
  84. &codec {
  85. status = "okay";
  86. };
  87. &cpu0 {
  88. cpu-supply = <&reg_dcdc2>;
  89. };
  90. &de {
  91. status = "okay";
  92. };
  93. &ehci0 {
  94. status = "okay";
  95. };
  96. &ehci1 {
  97. status = "okay";
  98. };
  99. &emac {
  100. phy-handle = <&phy1>;
  101. status = "okay";
  102. };
  103. &emac_sram {
  104. status = "okay";
  105. };
  106. &hdmi {
  107. status = "okay";
  108. };
  109. &hdmi_out {
  110. hdmi_out_con: endpoint {
  111. remote-endpoint = <&hdmi_con_in>;
  112. };
  113. };
  114. &i2c0 {
  115. status = "okay";
  116. axp209: pmic@34 {
  117. reg = <0x34>;
  118. interrupts = <0>;
  119. };
  120. };
  121. &i2c1 {
  122. status = "okay";
  123. };
  124. &ir0 {
  125. pinctrl-names = "default";
  126. pinctrl-0 = <&ir0_rx_pins>;
  127. status = "okay";
  128. };
  129. &mdio {
  130. status = "okay";
  131. phy1: ethernet-phy@1 {
  132. reg = <1>;
  133. };
  134. };
  135. &mmc0 {
  136. vmmc-supply = <&reg_vcc3v3>;
  137. bus-width = <4>;
  138. cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
  139. status = "okay";
  140. };
  141. &ohci0 {
  142. status = "okay";
  143. };
  144. &ohci1 {
  145. status = "okay";
  146. };
  147. &otg_sram {
  148. status = "okay";
  149. };
  150. &pio {
  151. led_pins_cubieboard: led-pins {
  152. pins = "PH20", "PH21";
  153. function = "gpio_out";
  154. drive-strength = <20>;
  155. };
  156. };
  157. &reg_ahci_5v {
  158. status = "okay";
  159. };
  160. #include "axp209.dtsi"
  161. &ac_power_supply {
  162. status = "okay";
  163. };
  164. &reg_dcdc2 {
  165. regulator-always-on;
  166. regulator-min-microvolt = <1000000>;
  167. regulator-max-microvolt = <1450000>;
  168. regulator-name = "vdd-cpu";
  169. };
  170. &reg_dcdc3 {
  171. regulator-always-on;
  172. regulator-min-microvolt = <1000000>;
  173. regulator-max-microvolt = <1400000>;
  174. regulator-name = "vdd-int-dll";
  175. };
  176. &reg_ldo1 {
  177. regulator-name = "vdd-rtc";
  178. };
  179. &reg_ldo2 {
  180. regulator-always-on;
  181. regulator-min-microvolt = <3000000>;
  182. regulator-max-microvolt = <3000000>;
  183. regulator-name = "avcc";
  184. };
  185. &reg_usb1_vbus {
  186. status = "okay";
  187. };
  188. &reg_usb2_vbus {
  189. status = "okay";
  190. };
  191. &spi0 {
  192. pinctrl-names = "default";
  193. pinctrl-0 = <&spi0_pi_pins>,
  194. <&spi0_cs0_pi_pin>;
  195. status = "okay";
  196. };
  197. &uart0 {
  198. pinctrl-names = "default";
  199. pinctrl-0 = <&uart0_pb_pins>;
  200. status = "okay";
  201. };
  202. &usb_otg {
  203. dr_mode = "otg";
  204. status = "okay";
  205. };
  206. &usbphy {
  207. usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
  208. usb1_vbus-supply = <&reg_usb1_vbus>;
  209. usb2_vbus-supply = <&reg_usb2_vbus>;
  210. status = "okay";
  211. };