sun7i-a20-cubieboard2.dts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. i2c0: i2c@01c2ac00 {
  45. pinctrl-names = "default";
  46. pinctrl-0 = <&i2c0_pins_a>;
  47. status = "okay";
  48. };
  49. i2c1: i2c@01c2b000 {
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&i2c1_pins_a>;
  52. status = "okay";
  53. };
  54. };
  55. leds {
  56. compatible = "gpio-leds";
  57. pinctrl-names = "default";
  58. pinctrl-0 = <&led_pins_cubieboard2>;
  59. blue {
  60. label = "cubieboard2:blue:usr";
  61. gpios = <&pio 7 21 0>;
  62. };
  63. green {
  64. label = "cubieboard2:green:usr";
  65. gpios = <&pio 7 20 0>;
  66. };
  67. };
  68. };