sun7i-a20-cubieboard2.dts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. emac: ethernet@01c0b000 {
  20. pinctrl-names = "default";
  21. pinctrl-0 = <&emac_pins_a>;
  22. phy = <&phy1>;
  23. status = "okay";
  24. };
  25. mdio@01c0b080 {
  26. status = "okay";
  27. phy1: ethernet-phy@1 {
  28. reg = <1>;
  29. };
  30. };
  31. pinctrl@01c20800 {
  32. led_pins_cubieboard2: led_pins@0 {
  33. allwinner,pins = "PH20", "PH21";
  34. allwinner,function = "gpio_out";
  35. allwinner,drive = <0>;
  36. allwinner,pull = <0>;
  37. };
  38. };
  39. uart0: serial@01c28000 {
  40. pinctrl-names = "default";
  41. pinctrl-0 = <&uart0_pins_a>;
  42. status = "okay";
  43. };
  44. };
  45. leds {
  46. compatible = "gpio-leds";
  47. pinctrl-names = "default";
  48. pinctrl-0 = <&led_pins_cubieboard2>;
  49. blue {
  50. label = "cubieboard2:blue:usr";
  51. gpios = <&pio 7 21 0>;
  52. };
  53. green {
  54. label = "cubieboard2:green:usr";
  55. gpios = <&pio 7 20 0>;
  56. };
  57. };
  58. };