WITI.dtsi 1.8 KB

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