sun4i-a10-cubieboard.dts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright 2012 Stefan Roese
  3. * Stefan Roese <sr@denx.de>
  4. *
  5. * The code contained herein is licensed under the GNU General Public
  6. * License. You may obtain a copy of the GNU General Public License
  7. * Version 2 or later at the following locations:
  8. *
  9. * http://www.opensource.org/licenses/gpl-license.html
  10. * http://www.gnu.org/copyleft/gpl.html
  11. */
  12. /dts-v1/;
  13. /include/ "sun4i-a10.dtsi"
  14. / {
  15. model = "Cubietech Cubieboard";
  16. compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10";
  17. aliases {
  18. serial0 = &uart0;
  19. serial1 = &uart1;
  20. };
  21. chosen {
  22. bootargs = "earlyprintk console=ttyS0,115200";
  23. };
  24. soc {
  25. pinctrl@01c20800 {
  26. led_pins_cubieboard: led_pins@0 {
  27. allwinner,pins = "PH20", "PH21";
  28. allwinner,function = "gpio_out";
  29. allwinner,drive = <1>;
  30. allwinner,pull = <0>;
  31. };
  32. };
  33. uart0: uart@01c28000 {
  34. status = "okay";
  35. };
  36. uart1: uart@01c28400 {
  37. status = "okay";
  38. };
  39. };
  40. leds {
  41. compatible = "gpio-leds";
  42. pinctrl-names = "default";
  43. pinctrl-0 = <&led_pins_cubieboard>;
  44. blue {
  45. label = "cubieboard::blue";
  46. gpios = <&pio 7 21 0>; /* LED1 */
  47. };
  48. green {
  49. label = "cubieboard::green";
  50. gpios = <&pio 7 20 0>; /* LED2 */
  51. linux,default-trigger = "heartbeat";
  52. };
  53. };
  54. };