sun7i-a20-olinuxino-micro.dts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 = "Olimex A20-Olinuxino Micro";
  17. compatible = "olimex,a20-olinuxino-micro", "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_olinuxino: led_pins@0 {
  33. allwinner,pins = "PH2";
  34. allwinner,function = "gpio_out";
  35. allwinner,drive = <1>;
  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. uart6: serial@01c29800 {
  45. pinctrl-names = "default";
  46. pinctrl-0 = <&uart6_pins_a>;
  47. status = "okay";
  48. };
  49. uart7: serial@01c29c00 {
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&uart7_pins_a>;
  52. status = "okay";
  53. };
  54. i2c0: i2c@01c2ac00 {
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&i2c0_pins_a>;
  57. status = "okay";
  58. };
  59. i2c1: i2c@01c2b000 {
  60. pinctrl-names = "default";
  61. pinctrl-0 = <&i2c1_pins_a>;
  62. status = "okay";
  63. };
  64. i2c2: i2c@01c2b400 {
  65. pinctrl-names = "default";
  66. pinctrl-0 = <&i2c2_pins_a>;
  67. status = "okay";
  68. };
  69. };
  70. leds {
  71. compatible = "gpio-leds";
  72. pinctrl-names = "default";
  73. pinctrl-0 = <&led_pins_olinuxino>;
  74. green {
  75. label = "a20-olinuxino-micro:green:usr";
  76. gpios = <&pio 7 2 0>;
  77. default-state = "on";
  78. };
  79. };
  80. };