ZBT-WG2626.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. / {
  4. compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
  5. model = "ZBT-WG2626";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,115200";
  12. };
  13. palmbus: palmbus@1E000000 {
  14. i2c@900 {
  15. status = "okay";
  16. };
  17. };
  18. gpio-keys-polled {
  19. compatible = "gpio-keys-polled";
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. poll-interval = <20>;
  23. reset {
  24. label = "reset";
  25. gpios = <&gpio0 18 1>;
  26. linux,code = <0x198>;
  27. };
  28. };
  29. gpio-leds {
  30. compatible = "gpio-leds";
  31. status {
  32. label = "zbt-wg2626:green:status";
  33. gpios = <&gpio0 24 1>;
  34. };
  35. };
  36. };
  37. &sdhci {
  38. status = "okay";
  39. };
  40. &spi0 {
  41. status = "okay";
  42. m25p80@0 {
  43. #address-cells = <1>;
  44. #size-cells = <1>;
  45. compatible = "jedec,spi-nor";
  46. reg = <0>;
  47. linux,modalias = "m25p80";
  48. spi-max-frequency = <10000000>;
  49. partition@0 {
  50. label = "u-boot";
  51. reg = <0x0 0x30000>;
  52. read-only;
  53. };
  54. partition@30000 {
  55. label = "u-boot-env";
  56. reg = <0x30000 0x10000>;
  57. read-only;
  58. };
  59. factory: partition@40000 {
  60. label = "factory";
  61. reg = <0x40000 0x10000>;
  62. read-only;
  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. };
  79. };
  80. pcie1 {
  81. mt76@1,0 {
  82. reg = <0x0000 0 0 0 0>;
  83. device_type = "pci";
  84. mediatek,mtd-eeprom = <&factory 0x0000>;
  85. mediatek,5ghz = <0>;
  86. };
  87. };
  88. };
  89. &ethernet {
  90. mtd-mac-address = <&factory 0xe000>;
  91. };
  92. &pinctrl {
  93. state_default: pinctrl0 {
  94. gpio {
  95. ralink,group = "wdt", "rgmii2", "wdt rst", "jtag", "mdio";
  96. ralink,function = "gpio";
  97. };
  98. };
  99. };