WITI.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  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 = <KEY_RESTART>;
  32. };
  33. };
  34. };
  35. &sdhci {
  36. status = "okay";
  37. };
  38. &spi0 {
  39. status = "okay";
  40. m25p80@0 {
  41. #address-cells = <1>;
  42. #size-cells = <1>;
  43. compatible = "jedec,spi-nor";
  44. reg = <0>;
  45. spi-max-frequency = <10000000>;
  46. m25p,chunked-io = <32>;
  47. partition@0 {
  48. label = "u-boot";
  49. reg = <0x0 0x30000>;
  50. read-only;
  51. };
  52. partition@30000 {
  53. label = "u-boot-env";
  54. reg = <0x30000 0x10000>;
  55. read-only;
  56. };
  57. factory: partition@40000 {
  58. label = "factory";
  59. reg = <0x40000 0x10000>;
  60. };
  61. partition@50000 {
  62. label = "firmware";
  63. reg = <0x50000 0xfb0000>;
  64. };
  65. };
  66. };
  67. &pcie {
  68. status = "okay";
  69. pcie0 {
  70. mt76@0,0 {
  71. reg = <0x0000 0 0 0 0>;
  72. device_type = "pci";
  73. mediatek,mtd-eeprom = <&factory 0x8000>;
  74. ieee80211-freq-limit = <5000000 6000000>;
  75. mtd-mac-address = <&factory 0xe000>;
  76. };
  77. };
  78. pcie1 {
  79. mt76@1,0 {
  80. reg = <0x0000 0 0 0 0>;
  81. device_type = "pci";
  82. mediatek,mtd-eeprom = <&factory 0x0000>;
  83. ieee80211-freq-limit = <2400000 2500000>;
  84. mtd-mac-address = <&factory 0xe000>;
  85. };
  86. };
  87. };
  88. &ethernet {
  89. mtd-mac-address = <&factory 0xe000>;
  90. };
  91. &pinctrl {
  92. state_default: pinctrl0 {
  93. gpio {
  94. ralink,group = "wdt", "rgmii2", "jtag", "mdio";
  95. ralink,function = "gpio";
  96. };
  97. };
  98. };