sun7i-a20-cubieboard2.dts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. /dts-v1/;
  14. /include/ "sun7i-a20.dtsi"
  15. / {
  16. model = "Cubietech Cubieboard2";
  17. compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";
  18. soc@01c00000 {
  19. pinctrl@01c20800 {
  20. led_pins_cubieboard2: led_pins@0 {
  21. allwinner,pins = "PH20", "PH21";
  22. allwinner,function = "gpio_out";
  23. allwinner,drive = <0>;
  24. allwinner,pull = <0>;
  25. };
  26. };
  27. uart0: serial@01c28000 {
  28. pinctrl-names = "default";
  29. pinctrl-0 = <&uart0_pins_a>;
  30. status = "okay";
  31. };
  32. };
  33. leds {
  34. compatible = "gpio-leds";
  35. pinctrl-names = "default";
  36. pinctrl-0 = <&led_pins_cubieboard2>;
  37. blue {
  38. label = "cubieboard2:blue:usr";
  39. gpios = <&pio 7 21 0>;
  40. };
  41. green {
  42. label = "cubieboard2:green:usr";
  43. gpios = <&pio 7 20 0>;
  44. };
  45. };
  46. };