sun7i-a20-cubietruck.dts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright 2013 Oliver Schinagl
  3. *
  4. * Oliver Schinagl <oliver@schinagl.nl>
  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 Cubietruck";
  17. compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
  18. soc@01c00000 {
  19. pinctrl@01c20800 {
  20. led_pins_cubietruck: led_pins@0 {
  21. allwinner,pins = "PH7", "PH11", "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_cubietruck>;
  37. blue {
  38. label = "cubietruck:blue:usr";
  39. gpios = <&pio 7 21 0>;
  40. };
  41. orange {
  42. label = "cubietruck:orange:usr";
  43. gpios = <&pio 7 20 0>;
  44. };
  45. white {
  46. label = "cubietruck:white:usr";
  47. gpios = <&pio 7 11 0>;
  48. };
  49. green {
  50. label = "cubietruck:green:usr";
  51. gpios = <&pio 7 7 0>;
  52. };
  53. };
  54. };