PBR-M1.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. / {
  4. compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
  5. model = "PBR-M1";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x10000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,115200";
  12. };
  13. palmbus: palmbus@1E000000 {
  14. i2c: i2c@900 {
  15. status = "okay";
  16. pcf8563: rtc@51 {
  17. status = "okay";
  18. compatible = "nxp,pcf8563";
  19. reg = <0x51>;
  20. };
  21. };
  22. };
  23. gpio-leds {
  24. compatible = "gpio-leds";
  25. power {
  26. label = "pbr-m1:blue:power";
  27. gpios = <&gpio0 31 1>;
  28. };
  29. sys {
  30. label = "pbr-m1:blue:sys";
  31. gpios = <&gpio1 0 1>;
  32. };
  33. internet {
  34. label = "pbr-m1:blue:internet";
  35. gpios = <&gpio0 29 1>;
  36. };
  37. wlan2g {
  38. label = "pbr-m1:blue:wlan2g";
  39. gpios = <&gpio1 1 1>;
  40. };
  41. wlan5g {
  42. label = "pbr-m1:blue:wlan5g";
  43. gpios = <&gpio0 28 1>;
  44. };
  45. };
  46. gpio-keys-polled {
  47. compatible = "gpio-keys-polled";
  48. #address-cells = <1>;
  49. #size-cells = <0>;
  50. poll-interval = <20>;
  51. reset {
  52. label = "reset";
  53. gpios = <&gpio0 18 1>;
  54. linux,code = <0x198>;
  55. };
  56. };
  57. gpio_export {
  58. compatible = "gpio-export";
  59. #size-cells = <0>;
  60. power_usb2 {
  61. gpio-export,name = "power_usb2";
  62. gpio-export,output = <1>;
  63. gpios = <&gpio0 22 0>;
  64. };
  65. power_usb3 {
  66. gpio-export,name = "power_usb3";
  67. gpio-export,output = <1>;
  68. gpios = <&gpio0 25 0>;
  69. };
  70. power_sata {
  71. gpio-export,name = "power_sata";
  72. gpio-export,output = <1>;
  73. gpios = <&gpio0 27 0>;
  74. };
  75. };
  76. beeper: beeper {
  77. compatible = "gpio-beeper";
  78. gpios = <&gpio0 26 1>;
  79. };
  80. };
  81. &sdhci {
  82. status = "okay";
  83. pinctrl-names = "default";
  84. pinctrl-0 = <&sdhci_pins>;
  85. };
  86. &xhci {
  87. status = "okay";
  88. };
  89. &spi0 {
  90. status = "okay";
  91. m25p80@0 {
  92. #address-cells = <1>;
  93. #size-cells = <1>;
  94. compatible = "jedec,spi-nor";
  95. reg = <0>;
  96. linux,modalias = "m25p80";
  97. spi-max-frequency = <10000000>;
  98. partition@0 {
  99. label = "u-boot";
  100. reg = <0x0 0x30000>;
  101. read-only;
  102. };
  103. partition@30000 {
  104. label = "u-boot-env";
  105. reg = <0x30000 0x10000>;
  106. read-only;
  107. };
  108. factory: partition@40000 {
  109. label = "factory";
  110. reg = <0x40000 0x10000>;
  111. read-only;
  112. };
  113. partition@50000 {
  114. label = "firmware";
  115. reg = <0x50000 0xfb0000>;
  116. };
  117. };
  118. };
  119. &pcie {
  120. status = "okay";
  121. pcie0 {
  122. mt76@0,0 {
  123. reg = <0x0000 0 0 0 0>;
  124. device_type = "pci";
  125. mediatek,mtd-eeprom = <&factory 0x8000>;
  126. mediatek,2ghz = <0>;
  127. };
  128. };
  129. pcie1 {
  130. mt76@1,0 {
  131. reg = <0x0000 0 0 0 0>;
  132. device_type = "pci";
  133. mediatek,mtd-eeprom = <&factory 0x0000>;
  134. mediatek,5ghz = <0>;
  135. };
  136. };
  137. };
  138. &ethernet {
  139. mtd-mac-address = <&factory 0xe000>;
  140. };
  141. &pinctrl {
  142. state_default: pinctrl0 {
  143. gpio {
  144. ralink,group = "wdt", "rgmii2", "jtag", "mdio";
  145. ralink,function = "gpio";
  146. };
  147. };
  148. };