sun4i-a10-a1000.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. * Copyright 2013 Emilio López
  3. *
  4. * Emilio López <emilio@elopez.com.ar>
  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/ "sun4i-a10.dtsi"
  15. / {
  16. model = "Mele A1000";
  17. compatible = "mele,a1000", "allwinner,sun4i-a10";
  18. aliases {
  19. serial0 = &uart0;
  20. };
  21. soc@01c00000 {
  22. emac: ethernet@01c0b000 {
  23. pinctrl-names = "default";
  24. pinctrl-0 = <&emac_pins_a>;
  25. phy = <&phy1>;
  26. status = "okay";
  27. };
  28. mdio@01c0b080 {
  29. phy-supply = <&reg_emac_3v3>;
  30. status = "okay";
  31. phy1: ethernet-phy@1 {
  32. reg = <1>;
  33. };
  34. };
  35. pinctrl@01c20800 {
  36. emac_power_pin_a1000: emac_power_pin@0 {
  37. allwinner,pins = "PH15";
  38. allwinner,function = "gpio_out";
  39. allwinner,drive = <0>;
  40. allwinner,pull = <0>;
  41. };
  42. led_pins_a1000: led_pins@0 {
  43. allwinner,pins = "PH10", "PH20";
  44. allwinner,function = "gpio_out";
  45. allwinner,drive = <0>;
  46. allwinner,pull = <0>;
  47. };
  48. };
  49. uart0: serial@01c28000 {
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&uart0_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. };
  60. leds {
  61. compatible = "gpio-leds";
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&led_pins_a1000>;
  64. red {
  65. label = "a1000:red:usr";
  66. gpios = <&pio 7 10 0>;
  67. };
  68. blue {
  69. label = "a1000:blue:usr";
  70. gpios = <&pio 7 20 0>;
  71. };
  72. };
  73. regulators {
  74. compatible = "simple-bus";
  75. reg_emac_3v3: emac-3v3 {
  76. compatible = "regulator-fixed";
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&emac_power_pin_a1000>;
  79. regulator-name = "emac-3v3";
  80. regulator-min-microvolt = <3300000>;
  81. regulator-max-microvolt = <3300000>;
  82. enable-active-high;
  83. gpio = <&pio 7 15 0>;
  84. };
  85. };
  86. };