TINY-AC.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "TINY-AC", "ralink,mt7620a-soc";
  6. model = "Dovado Tiny AC";
  7. chosen {
  8. bootargs = "console=ttyS0,57600";
  9. };
  10. gpio-leds {
  11. compatible = "gpio-leds";
  12. usb {
  13. label = "tiny-ac:green:usb";
  14. gpios = <&gpio0 11 1>;
  15. };
  16. wifi {
  17. label = "tiny-ac:orange:wifi";
  18. gpios = <&gpio3 0 1>;
  19. };
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. poll-interval = <20>;
  26. reset {
  27. label = "reset";
  28. gpios = <&gpio0 13 1>;
  29. linux,code = <KEY_RESTART>;
  30. };
  31. };
  32. gpio_export {
  33. compatible = "gpio-export";
  34. #size-cells = <0>;
  35. usbpower {
  36. gpio-export,name = "usbpower";
  37. gpio-export,output = <1>;
  38. gpios = <&gpio2 5 0>;
  39. };
  40. };
  41. };
  42. &gpio0 {
  43. status = "okay";
  44. };
  45. &gpio2 {
  46. status = "okay";
  47. };
  48. &gpio3 {
  49. status = "okay";
  50. };
  51. &spi0 {
  52. status = "okay";
  53. m25p80@0 {
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. compatible = "jedec,spi-nor";
  57. reg = <0>;
  58. spi-max-frequency = <10000000>;
  59. partition@0 {
  60. label = "u-boot";
  61. reg = <0x0 0x30000>;
  62. read-only;
  63. };
  64. partition@30000 {
  65. label = "u-boot-env";
  66. reg = <0x30000 0x10000>;
  67. read-only;
  68. };
  69. factory: partition@40000 {
  70. label = "factory";
  71. reg = <0x40000 0x10000>;
  72. read-only;
  73. };
  74. partition@50000 {
  75. label = "firmware";
  76. reg = <0x50000 0x7b0000>;
  77. };
  78. };
  79. };
  80. &ehci {
  81. status = "okay";
  82. };
  83. &ohci {
  84. status = "okay";
  85. };
  86. &ethernet {
  87. status = "okay";
  88. pinctrl-names = "default";
  89. pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
  90. mediatek,portmap = "llllw";
  91. port@4 {
  92. status = "okay";
  93. phy-mode = "rgmii";
  94. phy-handle = <&phy4>;
  95. };
  96. port@5 {
  97. status = "okay";
  98. phy-mode = "rgmii";
  99. phy-handle = <&phy5>;
  100. };
  101. mdio-bus {
  102. status = "okay";
  103. phy4: ethernet-phy@4 {
  104. reg = <4>;
  105. phy-mode = "rgmii";
  106. };
  107. phy5: ethernet-phy@5 {
  108. reg = <5>;
  109. phy-mode = "rgmii";
  110. };
  111. };
  112. };
  113. &gsw {
  114. mediatek,port4 = "gmac";
  115. mediatek,mt7530 = <1>;
  116. };
  117. &pcie {
  118. status = "okay";
  119. };
  120. &pinctrl {
  121. state_default: pinctrl0 {
  122. gpio {
  123. ralink,group = "uartf", "nd_sd", "wled";
  124. ralink,function = "gpio";
  125. };
  126. };
  127. };