sun4i-a10-cubieboard.dts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. emac: ethernet@01c0b000 {
  26. pinctrl-names = "default";
  27. pinctrl-0 = <&emac_pins_a>;
  28. phy = <&phy1>;
  29. status = "okay";
  30. };
  31. mdio@01c0b080 {
  32. status = "okay";
  33. phy1: ethernet-phy@1 {
  34. reg = <1>;
  35. };
  36. };
  37. pinctrl@01c20800 {
  38. led_pins_cubieboard: led_pins@0 {
  39. allwinner,pins = "PH20", "PH21";
  40. allwinner,function = "gpio_out";
  41. allwinner,drive = <1>;
  42. allwinner,pull = <0>;
  43. };
  44. };
  45. uart0: serial@01c28000 {
  46. pinctrl-names = "default";
  47. pinctrl-0 = <&uart0_pins_a>;
  48. status = "okay";
  49. };
  50. i2c0: i2c@01c2ac00 {
  51. pinctrl-names = "default";
  52. pinctrl-0 = <&i2c0_pins_a>;
  53. status = "okay";
  54. };
  55. i2c1: i2c@01c2b000 {
  56. pinctrl-names = "default";
  57. pinctrl-0 = <&i2c1_pins_a>;
  58. status = "okay";
  59. };
  60. };
  61. leds {
  62. compatible = "gpio-leds";
  63. pinctrl-names = "default";
  64. pinctrl-0 = <&led_pins_cubieboard>;
  65. blue {
  66. label = "cubieboard::blue";
  67. gpios = <&pio 7 21 0>; /* LED1 */
  68. };
  69. green {
  70. label = "cubieboard::green";
  71. gpios = <&pio 7 20 0>; /* LED2 */
  72. linux,default-trigger = "heartbeat";
  73. };
  74. };
  75. };