GL-MT750.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. / {
  4. compatible = "GL-MT750", "ralink,mt7620a-soc";
  5. model = "GL-MT750";
  6. chosen {
  7. bootargs = "console=ttyS0,115200";
  8. };
  9. gpio-leds {
  10. compatible = "gpio-leds";
  11. wan {
  12. label = "gl-mt750:wan";
  13. gpios = <&gpio2 0 1>;
  14. };
  15. lan {
  16. label = "gl-mt750:lan";
  17. gpios = <&gpio2 1 1>;
  18. };
  19. wlan {
  20. label = "gl-mt750:wlan";
  21. gpios = <&gpio3 0 1>;
  22. };
  23. };
  24. gpio-keys-polled {
  25. compatible = "gpio-keys-polled";
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. poll-interval = <20>;
  29. reset {
  30. label = "reset";
  31. gpios = <&gpio0 13 1>;
  32. linux,code = <0x198>;
  33. };
  34. BTN_0 {
  35. label = "BTN_0";
  36. gpios = <&gpio2 2 1>;
  37. linux,code = <0x100>;
  38. };
  39. BTN_1 {
  40. label = "BTN_1";
  41. gpios = <&gpio2 3 1>;
  42. linux,code = <0x101>;
  43. };
  44. };
  45. };
  46. &gpio0 {
  47. status = "okay";
  48. };
  49. &gpio1 {
  50. status = "okay";
  51. };
  52. &gpio2 {
  53. status = "okay";
  54. };
  55. &gpio3 {
  56. status = "okay";
  57. };
  58. &spi0 {
  59. status = "okay";
  60. m25p80@0 {
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63. compatible = "w25q128";
  64. reg = <0>;
  65. linux,modalias = "m25p80", "w25q128";
  66. spi-max-frequency = <10000000>;
  67. partition@0 {
  68. label = "u-boot";
  69. reg = <0x0 0x30000>;
  70. };
  71. partition@30000 {
  72. label = "u-boot-env";
  73. reg = <0x30000 0x10000>;
  74. read-only;
  75. };
  76. factory: partition@40000 {
  77. label = "factory";
  78. reg = <0x40000 0x10000>;
  79. read-only;
  80. };
  81. partition@50000 {
  82. label = "firmware";
  83. reg = <0x50000 0xf80000>;
  84. };
  85. partition@ff0000 {
  86. label = "art";
  87. reg = <0xff0000 0x10000>;
  88. };
  89. };
  90. };
  91. &sdhci {
  92. status = "okay";
  93. };
  94. &ehci {
  95. status = "okay";
  96. };
  97. &ohci {
  98. status = "okay";
  99. };
  100. &ethernet {
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&ephy_pins>;
  103. mtd-mac-address = <&factory 0x4000>;
  104. ralink,port-map = "llllw";
  105. };
  106. &wmac {
  107. ralink,mtd-eeprom = <&factory 0>;
  108. };
  109. &pcie {
  110. status = "okay";
  111. pcie-bridge {
  112. mt76@0,0 {
  113. reg = <0x0000 0 0 0 0>;
  114. device_type = "pci";
  115. mediatek,mtd-eeprom = <&factory 0x8000>;
  116. mediatek,2ghz = <0>;
  117. };
  118. };
  119. };
  120. &pinctrl {
  121. state_default: pinctrl0 {
  122. gpio {
  123. ralink,group = "wled","ephy","uartf";
  124. ralink,function = "gpio";
  125. };
  126. };
  127. };