1
0

TINY-AC.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. linux,modalias = "m25p80", "mx25l6405d";
  59. spi-max-frequency = <10000000>;
  60. partition@0 {
  61. label = "u-boot";
  62. reg = <0x0 0x30000>;
  63. read-only;
  64. };
  65. partition@30000 {
  66. label = "u-boot-env";
  67. reg = <0x30000 0x10000>;
  68. read-only;
  69. };
  70. factory: partition@40000 {
  71. label = "factory";
  72. reg = <0x40000 0x10000>;
  73. read-only;
  74. };
  75. partition@50000 {
  76. label = "firmware";
  77. reg = <0x50000 0x7b0000>;
  78. };
  79. };
  80. };
  81. &ehci {
  82. status = "okay";
  83. };
  84. &ohci {
  85. status = "okay";
  86. };
  87. &ethernet {
  88. status = "okay";
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
  91. mediatek,portmap = "llllw";
  92. port@4 {
  93. status = "okay";
  94. phy-mode = "rgmii";
  95. phy-handle = <&phy4>;
  96. };
  97. port@5 {
  98. status = "okay";
  99. phy-mode = "rgmii";
  100. phy-handle = <&phy5>;
  101. };
  102. mdio-bus {
  103. status = "okay";
  104. phy4: ethernet-phy@4 {
  105. reg = <4>;
  106. phy-mode = "rgmii";
  107. };
  108. phy5: ethernet-phy@5 {
  109. reg = <5>;
  110. phy-mode = "rgmii";
  111. };
  112. };
  113. };
  114. &gsw {
  115. mediatek,port4 = "gmac";
  116. mediatek,mt7530 = <1>;
  117. };
  118. &pcie {
  119. status = "okay";
  120. };
  121. &pinctrl {
  122. state_default: pinctrl0 {
  123. gpio {
  124. ralink,group = "uartf", "nd_sd", "wled";
  125. ralink,function = "gpio";
  126. };
  127. };
  128. };