sun4i-a10-hackberry.dts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Copyright 2012 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/ "sun4i-a10.dtsi"
  15. / {
  16. model = "Miniand Hackberry";
  17. compatible = "miniand,hackberry", "allwinner,sun4i-a10";
  18. chosen {
  19. bootargs = "earlyprintk console=ttyS0,115200";
  20. };
  21. soc@01c20000 {
  22. emac: ethernet@01c0b000 {
  23. pinctrl-names = "default";
  24. pinctrl-0 = <&emac_pins_a>;
  25. phy = <&phy0>;
  26. status = "okay";
  27. };
  28. mdio@01c0b080 {
  29. phy-supply = <&reg_emac_3v3>;
  30. status = "okay";
  31. phy0: ethernet-phy@0 {
  32. reg = <0>;
  33. };
  34. };
  35. pio: pinctrl@01c20800 {
  36. pinctrl-names = "default";
  37. pinctrl-0 = <&hackberry_hogs>;
  38. hackberry_hogs: hogs@0 {
  39. allwinner,pins = "PH19";
  40. allwinner,function = "gpio_out";
  41. allwinner,drive = <0>;
  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. };
  51. regulators {
  52. compatible = "simple-bus";
  53. reg_emac_3v3: emac-3v3 {
  54. compatible = "regulator-fixed";
  55. regulator-name = "emac-3v3";
  56. regulator-min-microvolt = <3300000>;
  57. regulator-max-microvolt = <3300000>;
  58. enable-active-high;
  59. gpio = <&pio 7 19 0>;
  60. };
  61. };
  62. };