WITI.dts 1.8 KB

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