ZBT-WG2626.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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,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. i2c@900 {
  48. compatible = "ralink,i2c-mt7621";
  49. reg = <0x900 0x100>;
  50. #address-cells = <1>;
  51. #size-cells = <0>;
  52. pinctrl-names = "default";
  53. pinctrl-0 = <&i2c_pins>;
  54. status = "okay";
  55. };
  56. };
  57. pcie@1e140000 {
  58. status = "okay";
  59. pcie0 {
  60. mt76@0,0 {
  61. reg = <0x0000 0 0 0 0>;
  62. device_type = "pci";
  63. mediatek,mtd-eeprom = <&factory 0x8000>;
  64. mediatek,2ghz = <0>;
  65. };
  66. };
  67. pcie1 {
  68. mt76@1,0 {
  69. reg = <0x0000 0 0 0 0>;
  70. device_type = "pci";
  71. mediatek,mtd-eeprom = <&factory 0x0000>;
  72. mediatek,5ghz = <0>;
  73. };
  74. };
  75. };
  76. ethernet@1e100000 {
  77. mtd-mac-address = <&factory 0xe000>;
  78. };
  79. gpio-keys-polled {
  80. compatible = "gpio-keys-polled";
  81. #address-cells = <1>;
  82. #size-cells = <0>;
  83. poll-interval = <20>;
  84. reset {
  85. label = "reset";
  86. gpios = <&gpio0 18 1>;
  87. linux,code = <0x198>;
  88. };
  89. };
  90. gpio-leds {
  91. compatible = "gpio-leds";
  92. status {
  93. label = "zbt-wg2626:green:status";
  94. gpios = <&gpio0 24 1>;
  95. };
  96. };
  97. pinctrl {
  98. state_default: pinctrl0 {
  99. gpio {
  100. ralink,group = "wdt", "rgmii2", "i2c", "mdio";
  101. ralink,function = "gpio";
  102. };
  103. };
  104. };
  105. };