sun4i-a10-cubieboard.dts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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@01c20000 {
  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: serial@01c28000 {
  34. pinctrl-names = "default";
  35. pinctrl-0 = <&uart0_pins_a>;
  36. status = "okay";
  37. };
  38. };
  39. leds {
  40. compatible = "gpio-leds";
  41. pinctrl-names = "default";
  42. pinctrl-0 = <&led_pins_cubieboard>;
  43. blue {
  44. label = "cubieboard::blue";
  45. gpios = <&pio 7 21 0>; /* LED1 */
  46. };
  47. green {
  48. label = "cubieboard::green";
  49. gpios = <&pio 7 20 0>; /* LED2 */
  50. linux,default-trigger = "heartbeat";
  51. };
  52. };
  53. };