TINY-AC.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. / {
  4. compatible = "TINY-AC", "ralink,mt7620a-soc";
  5. model = "Dovado Tiny AC";
  6. chosen {
  7. bootargs = "console=ttyS0,57600";
  8. };
  9. gpio-leds {
  10. compatible = "gpio-leds";
  11. usb {
  12. label = "tiny-ac:green:usb";
  13. gpios = <&gpio0 11 1>;
  14. };
  15. wifi {
  16. label = "tiny-ac:orange:wifi";
  17. gpios = <&gpio3 0 1>;
  18. };
  19. };
  20. gpio-keys-polled {
  21. compatible = "gpio-keys-polled";
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. poll-interval = <20>;
  25. reset {
  26. label = "reset";
  27. gpios = <&gpio0 13 1>;
  28. linux,code = <0x198>;
  29. };
  30. };
  31. gpio_export {
  32. compatible = "gpio-export";
  33. #size-cells = <0>;
  34. usbpower {
  35. gpio-export,name = "usbpower";
  36. gpio-export,output = <1>;
  37. gpios = <&gpio2 5 0>;
  38. };
  39. };
  40. };
  41. &gpio0 {
  42. status = "okay";
  43. };
  44. &gpio2 {
  45. status = "okay";
  46. };
  47. &gpio3 {
  48. status = "okay";
  49. };
  50. &spi0 {
  51. status = "okay";
  52. m25p80@0 {
  53. #address-cells = <1>;
  54. #size-cells = <1>;
  55. compatible = "jedec,spi-nor";
  56. reg = <0>;
  57. linux,modalias = "m25p80", "mx25l6405d";
  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. &wmac {
  118. ralink,eeprom = "rt2x00pci_1_0.eeprom";
  119. };
  120. &pcie {
  121. status = "okay";
  122. };
  123. &pinctrl {
  124. state_default: pinctrl0 {
  125. gpio {
  126. ralink,group = "uartf", "nd_sd", "wled";
  127. ralink,function = "gpio";
  128. };
  129. };
  130. };