FIREWRT.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /dts-v1/;
  2. /include/ "mt7621.dtsi"
  3. / {
  4. compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
  5. model = "Firefly FireWRT";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,57600";
  12. };
  13. sdhci@10130000 {
  14. status = "okay";
  15. };
  16. palmbus@1E000000 {
  17. spi@b00 {
  18. status = "okay";
  19. m25p80@0 {
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. compatible = "w25q128";
  23. reg = <0 0>;
  24. linux,modalias = "m25p80";
  25. spi-max-frequency = <10000000>;
  26. partition@0 {
  27. label = "u-boot";
  28. reg = <0x0 0x30000>;
  29. read-only;
  30. };
  31. partition@30000 {
  32. label = "u-boot-env";
  33. reg = <0x30000 0x10000>;
  34. read-only;
  35. };
  36. factory: partition@40000 {
  37. label = "factory";
  38. reg = <0x40000 0x10000>;
  39. read-only;
  40. };
  41. partition@50000 {
  42. label = "firmware";
  43. reg = <0x50000 0xfb0000>;
  44. };
  45. };
  46. };
  47. };
  48. pcie@1e140000 {
  49. status = "okay";
  50. pcie0 {
  51. mt76@0,0 {
  52. reg = <0x0000 0 0 0 0>;
  53. device_type = "pci";
  54. mediatek,mtd-eeprom = <&factory 0x8000>;
  55. mediatek,2ghz = <0>;
  56. };
  57. };
  58. pcie1 {
  59. mt76@1,0 {
  60. reg = <0x0000 0 0 0 0>;
  61. device_type = "pci";
  62. mediatek,mtd-eeprom = <&factory 0x0000>;
  63. mediatek,5ghz = <0>;
  64. };
  65. };
  66. };
  67. ethernet@1e100000 {
  68. mtd-mac-address = <&factory 0xe000>;
  69. };
  70. gpio-leds {
  71. compatible = "gpio-leds";
  72. power {
  73. label = "firewrt:green:power";
  74. gpios = <&gpio0 22 1>;
  75. };
  76. };
  77. gpio-keys-polled {
  78. compatible = "gpio-keys-polled";
  79. #address-cells = <1>;
  80. #size-cells = <0>;
  81. poll-interval = <20>;
  82. wps {
  83. label = "wps";
  84. gpios = <&gpio0 18 1>;
  85. linux,code = <0x211>;
  86. };
  87. power {
  88. label = "power";
  89. gpios = <&gpio0 23 1>;
  90. linux,code = <116>;
  91. };
  92. };
  93. pinctrl {
  94. state_default: pinctrl0 {
  95. gpio {
  96. ralink,group = "wdt", "rgmii2";
  97. ralink,function = "gpio";
  98. };
  99. };
  100. };
  101. };